/* CSS Variables */
:root {
    /* Colors */
    --primary: #8614f0; /* Tratto Purple */
    --primary-hover: #6b10c0;
    --secondary: #0F172A; /* Slate 900 for texts */
    --surface: #FFFFFF;
    --background: #F8FAFC; /* Slate 50 */
    --border: #E2E8F0; /* Slate 200 */
    --text-main: #1E293B; /* Slate 800 */
    --text-muted: #64748B; /* Slate 500 */
    --success: #10B981;
    --danger: #EF4444;
    --whatsapp: #25D366;
    --whatsapp-hover: #1EBE55;

    /* Metrics */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    
    /* Font */
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    /* Fondo global con degradado visible y premium usando la paleta oficial (Morado y Verde) */
    background: linear-gradient(
        135deg, 
        rgba(147, 51, 234, 0.12) 0%,    /* Tratto Purple */
        rgba(37, 211, 102, 0.08) 50%,   /* Tratto Green */
        rgba(147, 51, 234, 0.06) 100%   /* Soft Purple */
    ), var(--background, #ffffff);
    background-attachment: fixed;
    line-height: 1.6; /* Mayor respiro en los textos */
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--secondary);
    line-height: 1.1;
    letter-spacing: -0.03em; /* Tighter tracking for premium feel */
    font-weight: 800;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.hero-title {
    background: linear-gradient(135deg, #0F172A 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 36px; /* Altura ideal para una navbar de 70px */
    width: auto;
    object-fit: contain;
}

.nav-cta {
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Scrollytelling Layout */
.scrolly-container {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 70px; /* offset navbar */
    padding-bottom: 0;
}

/* Mockup Sticky Setup */
.mockup-wrapper {
    grid-area: 1 / 1;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px); /* Height of screen minus navbar */
    width: 100%;
    display: flex;
    align-items: center; /* Centrado vertical absoluto */
    justify-content: center; /* Centrado horizontal absoluto */
    z-index: 50; /* Por encima de las imágenes (z-index 10) */
    pointer-events: none; 
}


.mockup-sticky {
    pointer-events: auto; 
}
/* Mockup Hardware Wrapper */
.mockup-hardware {
    position: relative;
    display: inline-block;
}

/* Phone Frame Styles - Premium Realistic iPhone Style */
.phone-frame {
    height: 85vh; 
    max-height: 850px;
    min-height: 600px;
    width: calc(85vh * 0.48); 
    max-width: 400px;
    min-width: 288px;
    background-color: #000000;
    /* The bezel: thick black border */
    border: 14px solid #1a1a1a;
    border-radius: 54px;
    /* Outer metallic ring and deep layered shadows */
    box-shadow: 
        0 0 0 2px #c8c8cc, /* outer titanium/steel ring */
        0 0 0 4px #e5e5ea, /* lighter metallic edge */
        inset 0 0 0 2px #000000, /* inner screen edge */
        0 40px 80px -15px rgba(0, 0, 0, 0.4), /* deep ambient shadow */
        0 20px 40px -10px rgba(0, 0, 0, 0.2); /* direct shadow */
    position: relative;
    overflow: hidden;
    z-index: 5;
    /* Forzar el clip en Safari iOS */
    transform: translateZ(0);
    isolation: isolate;
}

/* Hardware Buttons */
.hw-btn {
    position: absolute;
    background: linear-gradient(to right, #b4b4b8, #e5e5ea);
    border-radius: 2px;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.8), inset 0 -1px 1px rgba(0,0,0,0.2), -1px 0 2px rgba(0,0,0,0.3);
    z-index: 1;
}

.hw-action {
    width: 3px; height: 26px;
    left: -3px; top: 120px;
}
.hw-vol-up {
    width: 3px; height: 50px;
    left: -3px; top: 170px;
}
.hw-vol-down {
    width: 3px; height: 50px;
    left: -3px; top: 235px;
}
.hw-power {
    width: 3px; height: 75px;
    right: -3px; top: 190px;
    background: linear-gradient(to left, #b4b4b8, #e5e5ea);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.8), inset 0 -1px 1px rgba(0,0,0,0.2), 1px 0 2px rgba(0,0,0,0.3);
}

/* Glass Glare Effect */
.phone-frame::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(255,255,255,0.15) 0%, 
        rgba(255,255,255,0) 30%, 
        rgba(255,255,255,0) 100%
    );
    pointer-events: none;
    z-index: 100;
}

/* iOS Status Bar */
.ios-status-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    z-index: 101;
    color: #000;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.5px;
    pointer-events: none;
}

/* Dynamic Island (Modern Notch) */
.dynamic-island {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 32px;
    background-color: #000000;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
}

.dynamic-island .camera-lens {
    width: 10px; height: 10px;
    background: radial-gradient(circle at 30% 30%, #444466 0%, #0a0a1a 40%, #000 100%);
    border-radius: 50%;
    box-shadow: inset -1px -1px 2px rgba(255,255,255,0.1), 0 0 1px rgba(255,255,255,0.05);
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #EFEAE2; /* iOS WhatsApp background */
    display: flex;
    flex-direction: column;
}

/* iOS Header */
.ios-header {
    background-color: #f6f6f6;
    color: #000;
    padding: 50px 15px 10px; /* Espacio para status bar */
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    z-index: 10;
}

.header-back {
    display: flex;
    align-items: center;
    margin-right: 4px;
    cursor: pointer;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
}

.header-info {
    flex: 1;
}

.header-info strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.header-actions {
    display: flex;
    gap: 16px;
    color: #007AFF;
}

/* iOS Chat Body */
.ios-body {
    flex: 1;
    padding: 15px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    position: relative;
}

/* Subtle Doodle pattern using pseudo-element */
.ios-body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.05;
    background-image: radial-gradient(#000 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

.date-badge {
    align-self: center;
    background: #fff;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 11px;
    color: #555;
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
    margin-bottom: 12px;
    z-index: 1;
}

.chat-message {
    padding: 6px 10px 8px 12px;
    border-radius: 12px;
    font-size: 14px;
    max-width: 82%;
    position: relative;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    line-height: 1.35;
    animation: popIn 0.3s ease-out forwards;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

@keyframes popIn {
    0% { opacity: 0; transform: translateY(10px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Bot (White Bubble / Left) */
.chat-message.bot {
    background: #FFFFFF;
    align-self: flex-start;
    border-top-left-radius: 0;
    color: #000;
}
.chat-message.bot::before {
    content: '';
    position: absolute;
    top: 0; left: -8px;
    width: 0; height: 0;
    border-right: 8px solid #FFFFFF;
    border-bottom: 12px solid transparent;
}

/* User (Green Bubble / Right) */
.chat-message.user {
    background: #E7FFDB;
    align-self: flex-end;
    border-top-right-radius: 0;
    color: #000;
}
.chat-message.user::before {
    content: '';
    position: absolute;
    top: 0; right: -8px;
    width: 0; height: 0;
    border-left: 8px solid #E7FFDB;
    border-bottom: 12px solid transparent;
}

/* Timestamps inside bubbles */
.msg-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}
.msg-text {
    flex: 1 1 auto;
}
.timestamp {
    font-size: 10px;
    color: #667781;
    flex: 0 0 auto;
    margin-bottom: -2px;
    margin-right: -2px;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Typing Indicator (iOS Style) */
.typing-indicator {
    background: #FFFFFF;
    align-self: flex-start;
    border-top-left-radius: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    animation: popIn 0.3s ease-out forwards;
    width: max-content;
    z-index: 1;
}

.typing-indicator::before {
    content: '';
    position: absolute;
    top: 0; left: -8px;
    width: 0; height: 0;
    border-right: 8px solid #FFFFFF;
    border-bottom: 12px solid transparent;
}

.typing-indicator .dot {
    width: 6px;
    height: 6px;
    background-color: #8e8e93;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator .dot:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator .dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
}

/* iOS Footer */
.ios-footer {
    background: #f6f6f6;
    padding: 10px 12px 20px; /* Padding extra abajo para Home Indicator */
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-input-wrapper {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 20px;
    padding: 8px 12px;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-input-wrapper .placeholder {
    font-size: 14px;
    color: #8e8e93;
}

/* Steps Layout */
.steps-container {
    grid-area: 1 / 1;
    position: relative;
    z-index: 10;
}

/* Step Visuals (Split-Screen Full Bleed) */
.step {
    min-height: 100vh;
    padding: 80px 0;
    display: flex;
    align-items: center;
    position: relative; /* Contexto de stacking */
}

/* Glassmorphism Text Panels */
.step-content {
    width: calc(50% - 240px); /* Garantiza 240px de espacio libre hasta el centro (el teléfono mide 160px de la mitad hacia el borde), dejando 80px de margen puro. */
    max-width: 420px;
    padding: 0;
    z-index: 20;
    pointer-events: auto;
    
    /* Removed glassmorphism to let the text breathe and create more negative space */
    
    /* Animation defaults */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-left .step-content {
    margin-right: auto;
}

.step-right .step-content {
    margin-left: auto;
}

/* Activating animations */
.step.is-visible .step-content {
    opacity: 1;
    transform: translateY(0);
}

.step-right {
    justify-content: flex-end;
    text-align: right;
}

/* Content typography */
.hero-badge {
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-muted);
}

.step h2 {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 20px;
    line-height: 1.1;
}
.step p {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.mb-4 { margin-bottom: 24px; }
.mt-3 { margin-top: 12px; }

.step-visuals {
    position: absolute;
    top: 0;
    bottom: 0;
    height: 100%;
    overflow: hidden; /* Evita que el zoom haga que las imágenes traslapen otras secciones */
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    z-index: -1; /* Manda la imagen al fondo literal de ese step */
}

/* Corte diagonal para romper las líneas horizontales */
.step-left .step-visuals {
    left: 50%; /* Nace en el centro exacto */
    width: 50vw; /* Se expande hasta el borde derecho de la pantalla */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 150px);
    mask-image: linear-gradient(to right, transparent 0%, black 150px);
    clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 94%);
}

.step-right .step-visuals {
    right: 50%; /* Nace en el centro exacto */
    width: 50vw; /* Se expande hasta el borde izquierdo de la pantalla */
    -webkit-mask-image: linear-gradient(to left, transparent 0%, black 150px);
    mask-image: linear-gradient(to left, transparent 0%, black 150px);
    clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.visual-single {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Eliminamos todos los bordes, radios y sombras para hacer un fondo puro */
    border-radius: 0;
    box-shadow: none;
    border: none;
}



/* Alineamos el contenido visual para que lo importante no quede tapado por el celu */
.step-left .visual-single {
    object-position: 70% center; /* Un poco a la derecha de la mitad derecha */
}
.step-right .visual-single {
    object-position: 50% center; 
    transform: scale(1.3) translateX(-12%); /* Zoom para empujar la imagen a la izquierda de forma segura */
}



/* Forms (Sleeker and smaller) */
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

input, select, textarea {
    width: 100%;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-main);
    transition: all 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Buttons (Premium Design System) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    border-radius: 100px; /* Pill shape */
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.btn-block { width: 100%; }

.btn-primary {
    background-color: var(--primary);
    color: var(--surface);
    box-shadow: 0 4px 14px rgba(134, 20, 240, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(134, 20, 240, 0.45);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover { 
    background-color: var(--primary); 
    color: var(--surface);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(134, 20, 240, 0.25);
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

.wa-icon { margin-right: 6px; }

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-sm { font-size: 12px; }

/* Alert */
.error-alert {
    background: #FEF2F2;
    color: var(--danger);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 12px;
    border: 1px solid #FCA5A5;
}

/* Loader */
.loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Result Card */
.result-container {
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.success-icon {
    color: var(--success);
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.trigger-code-box {
    background: #F1F5F9;
    border: 1px dashed #CBD5E1;
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 16px 0;
}

#trigger-code-display {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.scrolly-footer {
    padding: 30px 0;
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* Base styles for JS injected elements */
.mobile-phone-wrapper {
    display: none;
}

/* Responsive constraints */
@media (max-width: 1024px) {
    .step-content {
        max-width: 380px;
    }
}

@media (max-width: 900px) {
    .scrolly-container {
        display: block; /* Rompe la grilla */
        margin-top: 40px;
    }

    .mockup-wrapper {
        display: none !important; /* Oculta el celular estático central */
    }

    .step-features-left {
        display: none;
    }

    .steps-container {
        display: block;
    }

    .step {
        min-height: auto;
        padding: 40px 20px;
        display: flex;
        flex-direction: column;
    }

    .step-visuals {
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        clip-path: none !important;
        mask-image: linear-gradient(to bottom, black 50%, transparent) !important;
        -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent) !important;
        opacity: 0.1 !important;
    }

    .step-content {
        width: 100%;
        max-width: 100%; /* Ocupa todo el ancho */
        text-align: left; /* Alineación natural para lectura móvil */
        margin-bottom: 20px;
    }

    .step-right {
        justify-content: flex-start;
        text-align: left;
    }

    /* Estilo del celular replicado inyectado por JS */
    .mobile-phone-wrapper {
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 20px auto 40px auto; /* Centrado debajo del texto */
    }

    .mobile-phone-wrapper .phone-frame {
        height: 580px !important; 
        min-height: 580px !important;
        width: 280px !important;
        min-width: 280px !important;
    }
    
    .mobile-phone-wrapper .phone-screen {
        border-radius: 40px;
    }

    .scrolly-footer {
        text-align: center;
        padding-top: 40px;
    }
}

/* Mini Features List (Form Step) */
.step-features-left {
    position: absolute;
    left: 0; /* Align left to avoid hitting the central phone */
    width: calc(50vw - 240px); /* Garantiza 240px desde el centro (80px de gap con el cel) */
    max-width: 380px;
    z-index: 20;
    text-align: left; /* Override inherited text-align: right from .step-right */
    
    /* Animations matching step-content */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.step.is-visible .step-features-left {
    opacity: 1;
    transform: translateY(0);
}

.step-features-left h2 {
    font-size: 26px;
    margin-bottom: 24px;
}

.mini-features-list {
    display: flex;
    flex-direction: column;
}

.mini-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.mini-feature:last-child {
    border-bottom: none;
}

.mini-feature:hover {
    transform: translateX(5px);
}

.mf-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(147, 51, 234, 0.1);
    color: var(--primary);
    flex-shrink: 0;
}

.mf-text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-muted);
}

.mf-text strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 2px;
}

/* Tech Badges */
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.03);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(0,0,0,0.05);
    color: var(--text-main);
}



/* Responsiveness for features on the left */
@media (max-width: 1024px) {
    .step-features-left {
        position: relative;
        right: auto;
        width: 100%;
        max-width: 380px;
        margin-bottom: 40px;
        transform: none; /* Already animating inside step? Actually, flex layout handles it. */
    }
}

/* Features on the right for step-left form */
.step-features-right {
    position: absolute;
    right: 0;
    width: calc(50vw - 240px);
    max-width: 380px;
    z-index: 20;
    text-align: left;
    
    /* Animations matching step-content */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.step.is-visible .step-features-right {
    opacity: 1;
    transform: translateY(0);
}

.step-features-right h2 {
    font-size: 26px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .step-features-right {
        position: relative;
        left: auto;
        width: 100%;
        max-width: 380px;
        margin-bottom: 40px;
        transform: none;
    }
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 24px;
    padding: 40px 30px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
    line-height: 1;
}
.modal-close:hover {
    color: var(--text-main);
}
.modal-header {
    text-align: center;
    margin-bottom: 24px;
}
.modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
    letter-spacing: -0.5px;
}
.modal-header p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Micro-copy and CTA Large */

.micro-copy {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 16px;
}
.btn-large {
    font-size: 18px;
    padding: 18px 40px;
    width: auto;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(147, 51, 234, 0.3);
}
.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(147, 51, 234, 0.4);
}

/* --- Soverix Lab Section --- */
.soverix-section {
    background-color: var(--bg-dark, #0F172A);
    color: var(--surface, #FFFFFF);
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.soverix-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(147, 51, 234, 0.15), transparent 60%);
    pointer-events: none;
}

.soverix-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.soverix-badge {
    display: block;
    color: #c084fc;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.soverix-section h2 {
    color: var(--surface, #FFFFFF);
    font-size: 48px;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -1px;
}

.soverix-section h3 {
    color: var(--whatsapp, #25D366); /* Usar el verde luminoso */
    font-size: 24px;
    margin-bottom: 32px;
    font-weight: 400;
}

.soverix-section p {
    color: #94A3B8; /* Slate 400 for dark mode */
    font-size: 18px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .soverix-section {
        padding: 80px 20px;
        margin-top: 40px;
    }
    .soverix-section h2 {
        font-size: 32px;
    }
    .soverix-section h3 {
        font-size: 18px;
    }
}
