/* =========================================================================
   SaaS WIZARD STYLES (Crear InvitaciÃ³n)
   ========================================================================= */

:root {
    --wz-primary: #ec4899;
    --wz-primary-dark: #be123c;
    --wz-bg: #f8fafc;
    --wz-card: #ffffff;
    --wz-text: #0f172a;
    --wz-text-light: #64748b;
    --wz-border: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--wz-bg);
    color: var(--wz-text);
    line-height: 1.5;
}

.container-wz {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Navbar */
.wizard-header {
    background: var(--wz-card);
    border-bottom: 1px solid var(--wz-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.wizard-header .container-wz {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    height: 54px;
}

.btn-cancel {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--wz-text-light);
    text-decoration: none;
}

.btn-cancel:hover {
    color: var(--wz-text);
}

/* Steps Indicator */
/* Progress Indicator Enhancements */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    position: relative;
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--wz-bg);
    border: 2px solid var(--wz-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--wz-text-light);
    transition: all 0.3s;
}

.step-label {
    font-size: 0.70rem;
    font-weight: 600;
    color: var(--wz-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: absolute;
    top: 40px;
    white-space: nowrap;
}

.step-item.active .step-dot {
    background: var(--wz-primary);
    border-color: var(--wz-primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.2);
}

.step-item.active .step-label {
    color: var(--wz-primary);
    font-weight: 700;
}

.step-item.completed .step-dot {
    background: #fdf2f8;
    border-color: var(--wz-primary);
    color: var(--wz-primary);
}

.step-line {
    width: 12px;
    height: 2px;
    background: var(--wz-border);
}

/* Main Area */
.wizard-main {
    padding: 3rem 0;
    min-height: calc(100vh - 70px);
}

.wizard-step {
    display: none;
    animation: slideIn 0.4s ease-out;
}

.wizard-step.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-header {
    margin-bottom: 2rem;
}

.step-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.step-header p {
    color: var(--wz-text-light);
    font-size: 0.95rem;
}

.text-center {
    text-align: center;
}

/* Templated Selection */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .templates-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.template-option {
    cursor: pointer;
    display: block;
}

.template-option input {
    display: none;
}

.template-card {
    background: var(--wz-card);
    border-radius: var(--radius-md);
    border: 2px solid var(--wz-border);
    overflow: hidden;
    transition: all 0.2s;
    position: relative;
}

.template-option input:checked+.template-card {
    border-color: var(--wz-primary);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.15);
    transform: translateY(-3px);
}

.template-img {
    height: 180px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-capibara {
    background: #FDF5E6;
}

.bg-brainrot {
    background: #EAE6FE;
}

.bg-labubu {
    background: #F8F6FF;
}

.bg-base {
    background: #F1F5F9;
}

.template-info {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-info h3 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
}

.check-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--wz-border);
    display: flex;
    justify-content: center;
    align-items: center;
    color: transparent;
    font-size: 0.7rem;
}

.template-option input:checked+.template-card .check-circle {
    background: var(--wz-primary);
    border-color: var(--wz-primary);
    color: #fff;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    background: var(--wz-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--wz-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.full-width {
    grid-column: 1 / -1;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wz-text);
}

.input-group small {
    font-size: 0.7rem;
    color: var(--wz-text-light);
}

input[type="text"],
input[type="number"],
input[type="tel"],
input[type="datetime-local"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    border: 1px solid var(--wz-border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--wz-primary);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* Footer Buttons */
.wizard-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--wz-border);
    margin-top: 2rem;
}

.wizard-footer.space-between {
    justify-content: space-between;
}

.wizard-footer.justify-end {
    justify-content: flex-end;
}

.btn-primary,
.btn-secondary,
.btn-success,
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--wz-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.btn-primary:hover {
    background: #db2777;
    /* Deeper fuchsia on hover */
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: scale(0.96);
}

.btn-secondary {
    background: var(--wz-bg);
    color: var(--wz-text);
    border: 1px solid var(--wz-border);
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-success {
    background: var(--wz-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.btn-pulse {
    animation: pulseHeart 2s infinite;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Preview Iframe */
.preview-container {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 320px;
    height: 650px;
    border-radius: 40px;
    border: 12px solid #0f172a;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.notch {
    width: 120px;
    height: 25px;
    background: #0f172a;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.phone-frame iframe {
    width: 100%;
    height: 100%;
    background: #fff;
}

/* Success Card */
.success-card {
    background: var(--wz-card);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid var(--wz-border);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 1s infinite alternate;
}

.link-box {
    margin: 2rem 0;
    text-align: left;
}

.link-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wz-text-light);
    margin-bottom: 0.5rem;
    display: block;
}

.link-url-container {
    display: flex;
    align-items: center;
    border: 1px solid var(--wz-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--wz-bg);
}

.link-url-container input {
    border: none;
    background: transparent;
    padding: 0.75rem 1rem;
    width: 100%;
    color: var(--wz-text);
}

.btn-copy {
    background: var(--wz-text);
    color: #fff;
    border: none;
    padding: 0 1.25rem;
    height: 100%;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-copy:hover {
    background: #000;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-full {
    width: 100%;
    font-size: 1rem;
    padding: 1rem;
    text-decoration: none;
}

.premium-success-alert {
    margin-top: 2rem;
    padding: 1.25rem;
    background: linear-gradient(145deg, #ffffff, #fdfdfd);
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 10px 30px -5px rgba(16, 185, 129, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.premium-success-alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(to bottom, #10b981, #34d399);
}

.premium-success-alert .alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #ecfdf5;
    border-radius: 50%;
    color: #10b981;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.premium-success-alert .alert-text {
    display: flex;
    flex-direction: column;
}

.premium-success-alert .alert-text strong {
    color: #064e3b;
    font-size: 1rem;
    font-weight: 700;
}

.premium-success-alert .alert-text p {
    color: #047857;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

/* Animations */
@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10px);
    }
}

@keyframes pulseHeart {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Custom File Upload & Previews */
.file-upload-wrapper {
    width: 100%;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--wz-text-light);
}

.file-upload-label i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--wz-primary);
}

.file-upload-label span {
    font-size: 0.9rem;
    font-weight: 500;
}

.file-upload-label:hover {
    background: #f1f5f9;
    border-color: var(--wz-primary);
}

.photo-previews-container {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Color palettes */
.color-palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.color-card {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.color-card:hover {
    border-color: var(--wz-primary);
}

.color-card.active {
    border-color: var(--wz-primary);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
    transform: translateY(-2px);
}

.color-swatches {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 8px;
}

.color-swatches span {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.color-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.photo-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--wz-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Map preview container */
.map-preview-container {
    margin-top: 0.75rem;
    animation: slideIn 0.3s ease-out;
}

/* Custom Message Grid Styling */
.msg-ideas-container {
    background: #fff8f1;
    border: 1px solid #fbd38d;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.msg-ideas-header {
    font-size: 0.95rem;
    font-weight: 600;
    color: #c05621;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.msg-ideas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .msg-ideas-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.msg-card {
    background: #fff;
    border: 1px solid #fbd38d;
    border-radius: var(--radius-sm);
    padding: 1rem;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    transition: all 0.2s;
    margin: 0;
}

.msg-card:hover {
    box-shadow: 0 4px 6px rgba(237, 137, 54, 0.1);
}

.msg-card input[type="radio"] {
    display: none;
}

.msg-card .mc-check {
    color: #fbd38d;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: -0.1rem;
    flex-shrink: 0;
}

.msg-card input[type="radio"]:checked+.mc-check {
    color: #ed8936;
}

.msg-card input[type="radio"]:checked~.mc-text {
    font-weight: 600;
    color: #9c4221;
}

.msg-card.active {
    border-color: #ed8936;
    box-shadow: 0 4px 6px rgba(237, 137, 54, 0.15);
}

.msg-card .mc-text {
    font-size: 0.85rem;
    color: var(--wz-text);
    line-height: 1.4;
    font-weight: 400;
}

/* Music Selector Pills */
.music-type-selector {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    gap: 4px;
}

.music-type-option {
    flex: 1;
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wz-text-light);
    cursor: pointer;
    border-radius: calc(var(--radius-md) - 2px);
    transition: all 0.2s;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.music-type-option:hover {
    color: var(--wz-text);
}

.music-type-option.active {
    background: #ffffff;
    color: var(--wz-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Indicador Radio para MÃºsica */
.music-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--wz-border);
    background: #fff;
    position: relative;
    flex-shrink: 0;
}

.music-type-option.active .music-radio {
    border-color: var(--wz-primary);
}

.music-type-option.active .music-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--wz-primary);
    border-radius: 50%;
}

.music-note-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm);
    color: #166534;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.music-note-info i {
    font-size: 1.2rem;
    color: #22c55e;
}

.copyright-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #fff8f1;
    border-radius: var(--radius-sm);
    color: #9a3412;
    font-size: 0.8rem;
    line-height: 1.4;
}

.copyright-warning i {
    margin-top: 0.1rem;
    color: #fb923c;
}

/* --- UI Móvil: Correcciones Responsive --- */
@media (max-width: 639px) {
    .wizard-header {
        padding: 1rem 0;
        height: auto;
    }
    
    .wizard-header .container-wz {
        flex-direction: column;
        height: auto;
        gap: 15px;
        align-items: center;
    }

    .logo {
        height: 48px;
    }

    .steps-indicator {
        width: 100%;
        justify-content: center;
        margin: 5px 0;
        gap: 12px;
    }

    .step-item {
        gap: 4px;
    }

    .step-label {
        position: static;
        font-size: 0.65rem;
    }

    .step-line {
        display: none; /* Simplificar en móvil */
    }

    .btn-cancel {
        order: 3;
        margin-top: 5px;
        font-size: 0.9rem;
    }

    /* Input WhatsApp & General Form Fix */
    input[type="tel"], 
    input[type="text"], 
    input[type="number"], 
    input[type="datetime-local"], 
    textarea {
        min-height: 52px !important;
        padding: 14px 16px !important;
        font-size: 16px !important; /* Evita zoom automático en iOS */
        background-color: #fff;
    }

    .form-grid {
        padding: 1.5rem;
        gap: 1rem;
    }

    /* Music Selector Solapamiento & UI */
    .music-type-selector {
        flex-direction: column;
        background: transparent;
        padding: 0;
        gap: 12px;
    }

    .music-type-option {
        background: #fff;
        border: 2px solid var(--wz-border);
        padding: 1.2rem 1rem;
        border-radius: var(--radius-md);
        justify-content: flex-start;
        text-align: left;
        width: 100%;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    }

    .music-type-option.active {
        border-color: var(--wz-primary);
        background: #fdf2f8;
        box-shadow: 0 4px 12px rgba(236, 72, 153, 0.1);
    }

    .music-note-info {
        margin-top: 10px;
    }
}

/* =========================================================================
   ANIMATED BACKGROUNDS SELECTOR
   ========================================================================= */
.animated-bg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.bg-card {
    background: #fff;
    border: 2px solid var(--wz-border);
    border-radius: var(--radius-md);
    padding: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bg-card:hover {
    border-color: var(--wz-primary);
    transform: translateY(-2px);
}

.bg-card.active {
    border-color: var(--wz-primary);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.2);
    background: #fffafa;
}

.bg-preview {
    width: 100%;
    height: 80px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
}

.bg-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wz-text);
}

.badge-premium {
    background: #8b5cf6;
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 800;
    margin-left: 5px;
    vertical-align: middle;
}

/* --- ANIMACIONES CSS CORE (PREVIEW) --- */

/* Aurora Pastel */
.bg-aurora {
    background: linear-gradient(120deg, #e0f2fe, #fdf2f8, #f5f3ff, #ecfeff);
    background-size: 400% 400%;
    animation: MovingGradient 15s ease infinite;
}

/* Rainbow Dinámico */
.bg-rainbow {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: MovingGradient 8s ease infinite;
}

/* Luces Mágicas (Blobs) */
.bg-lights {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(at 0% 0%, rgba(236, 72, 153, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(34, 197, 94, 0.15) 0px, transparent 50%);
    background-size: 100% 100%;
    animation: BreathingLights 10s ease-in-out infinite alternate;
}

.bg-none {
    background: #ffffff;
    border: 1px dashed #ddd;
}

@keyframes MovingGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes Blowing {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.05); opacity: 1; }
}

/* --- NUEVOS FONDOS --- */

/* Burbujas (Preview) */
.bg-bubbles {
    background: linear-gradient(to bottom, #a1c4fd 0%, #c2e9fb 100%);
}
.preview-bubble {
    position: absolute;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    bottom: -20px;
    animation: BubbleRise 3s infinite ease-in;
}
.preview-bubble:nth-child(1) { width: 20px; height: 20px; left: 20%; animation-delay: 0s; }
.preview-bubble:nth-child(2) { width: 15px; height: 15px; left: 60%; animation-delay: 1.5s; }

/* Ondas (Preview) */
.bg-waves {
    background: #64b5f6;
    overflow: hidden;
}
.preview-wave {
    position: absolute;
    bottom: 0;
    width: 200%;
    height: 40px;
    background: rgba(255,255,255,0.3);
    border-radius: 40%;
    animation: WaveSway 4s infinite linear;
}

/* Estrellas (Preview) */
.bg-stars {
    background: #0f172a;
}
.bg-stars::after {
    content: '✨';
    font-size: 10px;
    position: absolute;
    top: 20%; left: 30%;
    animation: pulse 2s infinite;
}

/* Custom Gradient Preview */
.bg-custom {
    background: linear-gradient(-45deg, #8b5cf6, #ec4899);
    background-size: 200% 200%;
    animation: MovingGradient 5s ease infinite;
}

/* Panel de degradado personalizado */
.custom-gradient-panel {
    background: #fff;
    border: 1px solid var(--wz-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.color-picker-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.color-picker-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--wz-text-light);
}

.color-picker-group input[type="color"] {
    border: none;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

@keyframes BubbleRise {
    0% { transform: translateY(0) scale(1); opacity: 0.6; }
    100% { transform: translateY(-100px) scale(1.5); opacity: 0; }
}

@keyframes WaveSway {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =========================================================================
   PREMIUM MARKETING & MODAL STYLES
   ========================================================================= */

/* Banners de Venta */
.premium-upsell-banner {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.08);
    position: relative;
    overflow: hidden;
    text-align: left;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    flex-wrap: wrap !important;
}

/* Decoración sutil para la tarjeta premium */
.premium-upsell-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #7c3aed, #db2777);
}

.premium-banner-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex: 1;
    min-width: 0;
}

.premium-banner-icon {
    font-size: 2.5rem;
    background: #f5f3ff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #7c3aed;
    flex-shrink: 0;
}

.premium-banner-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.premium-upsell-banner.discount {
    border-color: #fcd34d;
    background: linear-gradient(to right, #ffffff, #fffdf5);
}

.premium-upsell-banner.discount::before {
    background: linear-gradient(to bottom, #f59e0b, #fcd34d);
}

@media (max-width: 768px) {
    .premium-upsell-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    .premium-banner-content {
        flex-direction: column;
        align-items: center;
    }
    .premium-upsell-banner::before {
        width: 100%;
        height: 4px;
    }
}

.premium-upsell-banner.discount {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d;
}

.premium-upsell-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #4c1d95;
    margin: 0;
}

.premium-upsell-text {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
    max-width: 400px;
}

.btn-premium-unlock {
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.btn-premium-unlock .price-main {
    display: block;
}

.btn-premium-unlock .price-old {
    font-size: 0.8rem;
    text-decoration: line-through;
    opacity: 0.7;
    font-weight: 400;
}

/* Tip Sutil Paso 2 */
.premium-tip-box {
    background: rgba(124, 58, 237, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 0.88rem;
    color: #4b5563;
    border: none;
}

.premium-tip-link {
    color: #7c3aed;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    margin-left: 5px;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.premium-tip-link:hover {
    color: #6d28d9;
    transform: translateX(3px);
}

.btn-premium-unlock:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

/* Modal de Pago */
.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 15px;
}

.payment-modal {
    background: white;
    width: 100%;
    max-width: 450px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header-img {
    height: 120px;
    background: linear-gradient(135deg, #7c3aed, #db2777);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 3rem;
}

.modal-content {
    padding: 2rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.5rem;
    text-align: center;
}

.modal-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: #7c3aed;
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #4b5563;
}

.modal-features-list li i {
    color: #10b981;
    font-size: 1.2rem;
}

.btn-pay-now {
    width: 100%;
    background: #000;
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.btn-pay-now:hover {
    background: #222;
    transform: translateY(-2px);
}

.modal-close-btn {
    margin-top: 1rem;
    width: 100%;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
}

.old-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 1.2rem;
    margin-right: 8px;
    font-weight: 400;
}
