/* ═══════════════════════════════════════════════════════════════════════════
   ANTIGRAVITY — UTILITY CLASSES (Zero Inline Policy)
   Reemplaza todos los style="" del HTML con clases semánticas reutilizables.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Enlace de marca: bloque limpio sin decoración */
.brand-link,
.footer__brand-link {
    display: block;
    text-decoration: none;
    color: inherit;
    outline: none;
}
.footer__brand-link {
    display: inline-block;
}

/* QR placeholder oscuro (modal de descarga) */
.qr-placeholder--dim {
    filter: brightness(0);
    opacity: 0.1;
}

/* Notas de facturación ocultas por defecto (controladas por pricing.js) */
.js-billing-note--hidden {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANTIGRAVITY — CSS PERFORMANCE CONTAINMENT
   Aísla el impacto de reflow/repaint a nivel de sección.
   ═══════════════════════════════════════════════════════════════════════════ */
.risk-disclaimers,
.story-timeline-section,
.features-section,
.pricing-section {
    contain: layout style;
}

/* 1. RESET Y ESTILOS BASE */
body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    /* Erradicado el negro para revelar blanco puro absoluto */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    color: white;
}

/* 1.5. CABECERA INMORTAL Y TEMAS */
.site-header {
    position: fixed;
    top: 46px; /* Offset for coming soon banner */
    left: 0;
    width: 100%;
    z-index: 9999;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease, border-bottom 0.3s ease, transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 6vw;
    box-sizing: border-box;
}

/* ── Variante tema claro — páginas legales (cookies, privacidad, términos) ── */
.site-header.header--light {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-header.header--light .site-header__link {
    color: #141414;
}

.site-header.header--light .site-header__link:hover {
    color: #00d663;
}

/* Logo SVG: forzar color oscuro (el SVG usa fill="white" por defecto) */
.site-header.header--light .brand-logo {
    filter: brightness(0); /* convierte el logo blanco a negro puro */
}

.brand-logo {
    height: 28px;
    transition: filter 0.3s ease;
}

.site-header__nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.site-header__link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.site-header__link:hover {
    color: #00d663;
}

.site-header__btn-register {
    background-color: #00d663;
    color: #0A0A0C;
    border: none;
    border-radius: 30px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.site-header__btn-register:hover {
    transform: scale(1.05);
    background-color: #00e86d;
}

/* CHAMELEONIC HEADER: DARK THEME (Fondo Oscuro/Defecto) */
.site-header.is-dark .site-header__link {
    color: #ffffff !important;
}

.site-header.is-dark .site-header__btn-register {
    background-color: #00d663 !important;
    color: #0A0A0C !important;
}

.site-header.is-dark .brand-logo {
    content: url('../assets/img/logo_traideo.svg') !important;
    /* Forza logo blanco */
}

.site-header.is-dark.is-scrolled {
    background-color: rgba(10, 10, 12, 0.85) !important;
    /* Frost oscuro reforzado */
    border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

/* CHAMELEONIC HEADER: LIGHT THEME (Fondo Blanco) */
.site-header.is-light .site-header__link {
    color: #0A0A0C !important;
}

.site-header.is-light .site-header__link:hover {
    color: #00d663 !important;
}

.site-header.is-light .site-header__btn-register {
    background-color: #0A0A0C !important;
    color: #ffffff !important;
}

.site-header.is-light .brand-logo {
    content: url('../assets/img/Logo_v3.svg') !important;
    /* Reemplazo de logo via CSS */
}

.site-header.is-light.is-scrolled {
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-bottom-color: rgba(0, 0, 0, 0.05) !important;
}

/* EFECTO FROSTED GLASS — Fallback elegante para navegadores sin soporte */
.site-header.is-scrolled {
    /* Fallback sólido para navegadores sin backdrop-filter */
    background-color: rgba(11, 12, 11, 0.92);
    border-bottom: 1px solid transparent;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .site-header.is-scrolled {
        background-color: rgba(11, 12, 11, 0.72);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }
}

/* 2. ESPACIO DE SCROLL (Anclaje Virtual) */
.hero-track {
    height: 200vh;
    position: relative;
    /* Native Scroll-Driven Animation Timeline */
    view-timeline-name: --hero-scroll;
    view-timeline-axis: block;
}

/* 3. CONTENEDOR FIJO (LA PANTALLA) */
.hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #ffffff;
    /* Blanco estÃ¡tico para revelaciÃ³n natural (Zero-repaint) */
}

/* 4. TEXTOS FRONTALES (Los que desaparecen) */
.text-overlay {
    position: absolute;
    top: 20%;
    left: 10%;
    z-index: 10;
    max-width: 600px;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.text-overlay h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin: 0 0 10px 0;
    font-weight: 700;
    letter-spacing: -2px;
    background: linear-gradient(180deg, #FFFFFF 0%, #A1A1A1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.text-overlay p {
    font-size: 1.5rem;
    margin: 0 0 30px 0;
    color: #cccccc;
}

.btn-demo {
    background-color: black;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #333;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
    display: inline-block;
}

.btn-demo:hover {
    transform: scale(1.05);
}

/* 5. EFECTO REVOLUT (Masking parallax) */
.mockup-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    transform-origin: center center;
    will-change: transform;
    z-index: 1;
    transition: transform 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-image-wrapper {
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 0px;
    overflow: hidden;
    /* Vital para que la imagen de fondo no desborde al animar el borde */
    will-change: width, height, border-radius;
    z-index: 1;
    /* Debajo del marco transparente */
    background: transparent;
    /* Eliminado fondo blanco fantasma */
    transition: all 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.card-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 15vh));
    height: 80vh;
    max-height: 600px;
    width: auto;
    aspect-ratio: 10 / 19;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: clamp(24px, 4vh, 40px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    z-index: 5;
    pointer-events: none;
    /* La pantalla actÃºa como mÃ¡scara natural para las notificaciones que entran desde abajo */
    overflow: hidden;
    transition: all 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 6. SCROLL FASE 2: ENCOGIMIENTO DEL HERO (CSS Native Architecture) */
body.is-shrunk .text-overlay {
    opacity: 0;
    transform: translateY(-50px);
}

body.is-shrunk .hero-image-wrapper {
    width: calc(min(60vh, 450px) * (10 / 19));
    height: min(60vh, 450px);
    border-radius: clamp(18px, 3vh, 30px);
}

body.is-shrunk .card-frame {
    width: calc(min(60vh, 450px) * (10 / 19));
    height: min(60vh, 450px);
    top: 50%;
    transform: translate(-50%, -50%);
}

body.is-shrunk .mockup-container {
    transform: translateY(0);
}

/* 8. NOTIFICACIONES FINANCIERAS APILADAS */
.notifications-wrapper {
    position: absolute;
    bottom: 10%;
    left: 50%;
    width: 92%;
    max-width: 280px;
    /* initial state: scaled down */
    transform: translateX(-50%) scale(0.95);
    z-index: 20;
    display: block;
    /* Contenedor abierto: se elimina el clip-path para evitar guillotina */
    transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.notifications-wrapper.is-popped {
    transform: translateX(-50%) scale(1.1);
}

body.is-shrunk .notifications-wrapper.is-popped {
    transform: translateX(-50%) scale(0.85);
}

/* Base idÃ©ntica absoluta para clonaciÃ³n visual perfecta */
.ai-stock-alert {
    width: 100%;
    min-height: 64px;
    /* Altura idÃ©ntica forzada */
    display: flex;
    align-items: center;
    gap: 12px;
    /* Fallback sólido (sin coste GPU) para browsers sin soporte backdrop-filter */
    background: rgba(255, 255, 255, 0.98);
    padding: 10px 14px;
    border-radius: 18px;
    /* Sombra simplificada: 1 capa vs 2 → -50% GPU overdraw */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    box-sizing: border-box;
    color: black;
    pointer-events: auto;
    /* will-change solo en animación, no en reposo */
    transform: translateZ(0); /* promote individual layer sin will-change global */
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .ai-stock-alert {
        background: rgba(255, 255, 255, 0.82);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
    }
}

/* --- Primera notificaciÃ³n: NVIDIA (Fija la altura del Wrapper) --- */
.ai-stock-alert--nvidia {
    position: relative;
    opacity: 0;
    transform: translate3d(0, 40px, 0);
    /* Pop origin */
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease-out;
}

/* El pop JS revela Nvidia e instancia el monopoly de scroll */
.notifications-wrapper.is-popped .ai-stock-alert--nvidia {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    /* CoreografÃ­a unificada vinculada 100% al scroll principal */
    animation: stack-nvidia linear both;
    animation-timeline: --hero-scroll;
    animation-range: contain 0% contain 100%;
}

/* --- Segunda notificaciÃ³n: Traideo (Flota sobre NVIDIA) --- */
.ai-stock-alert--traideo {
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translate3d(0, 150px, 0);
    /* 150px = Fuera de la pantalla por debajo, protegido por overflow: hidden de la pantalla mÃ³vil */
    opacity: 0;
    /* Oculta totalmente hasta la fase de empuje */
    animation: stack-traideo linear both;
    animation-timeline: --hero-scroll;
    animation-range: contain 0% contain 100%;
}

/* 
FÃSICAS DEL STACKING: Pacing y Lock-up Premium
Fase 1 (0-40%): Wait estÃ¡tico. NVIDIA visible, TrAIdeo fuera.
Fase 2 (40-60%): Empuje sincronizado. TrAIdeo usa el rebote nativo.
Fase 3 (60-100%): Lock-Up fijo. CeÃ±idos a enteros (-68px y 0px).
*/
@keyframes stack-nvidia {

    0%,
    40% {
        transform: translate3d(0, 0, 0);
        opacity: 1;
        animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    60%,
    100% {
        transform: translate3d(0, -80px, 0);
        opacity: 1;
    }
}

@keyframes stack-traideo {

    0%,
    40% {
        transform: translate3d(0, 150px, 0);
        opacity: 0;
        /* Rebote nativo iOS/Android para la entrada (Overshoot) */
        animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    60%,
    100% {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

.notif-logo-wrapper {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    flex-grow: 0;
    background-color: transparent;
    /* Removido fondo blanco cuadrado */
    border-radius: 50%;
    /* CÃ­rculo perfecto */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.notif-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cubrir todo el cÃ­rculo */
}

.alert-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.alert-content strong {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.alert-content span {
    font-size: 13px;
    color: #4a4a4b;
    max-width: 200px;
    line-height: 1.3;
}

/* ------------------------------------- */
/* 2. HEADER DINÃMICO Y NAVEGACIÃ“N       */
/* ------------------------------------- */
.site-header {
    position: fixed;
    top: 46px; /* Offset for coming soon banner */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4vw;
    box-sizing: border-box;
    z-index: 9999;
    will-change: transform, opacity;
    transition: background-color 0.3s ease, top 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-header__link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.site-header__link:hover {
    color: #00d663;
}

.site-header__btn-register {
    background-color: #00d663;
    color: #111;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.site-header__btn-register:hover {
    transform: scale(1.05);
    background-color: #00e66a;
}

.brand-logo {
    width: 140px;
    height: auto;
    filter: brightness(1);
    /* will-change solo activo durante la transición del header (evita capa GPU permanente) */
    transition: filter 0.3s ease;
}
/* Promover GPU únicamente mientras el header está animándose */
.site-header.is-animating .brand-logo {
    will-change: filter;
}

/* Modificador Oscuro (Activado por JS) */
.site-header.is-dark .site-header__link {
    color: #111111;
}

.site-header.is-dark .site-header__link:hover {
    color: #00d663;
}

.site-header.is-dark .site-header__btn-register {
    background-color: #111111;
    color: #ffffff;
}

.site-header.is-dark .site-header__btn-register:hover {
    background-color: #333333;
}

/* ------------------------------------- */
/* 8. MODAL DE DESCARGA                  */
/* ------------------------------------- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-backdrop.is-open .modal-content {
    transform: translateY(0);
}

.modal-content h3 {
    margin: 0 0 16px;
    font-size: 1.5rem;
    color: #111;
}

.modal-content p {
    color: #666;
    margin-bottom: 24px;
}

.btn-demo {
    display: inline-block;
    padding: 14px 28px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.btn-demo:hover {
    transform: scale(1.05);
    background: #222;
}

/* ------------------------------------- */
/* 9. STORYTELLING SECTION (TIMELINE)    */
/* ------------------------------------- */
.story-timeline-section {
    padding-top: 100px;
    padding-bottom: 150px;
    background: linear-gradient(to bottom, #1A1A1D 0%, #0A0A0C 100%);
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* ------------------------------------- */
/* 9.1 STORYTELLING: FILOSOFIA HEADER    */
/* ------------------------------------- */
.philosophy-intro {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.philosophy-kicker {
    display: block;
    color: #00d663;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.philosophy-intro h2 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 auto 24px;
    /* auto laterales = centrado dentro del contenedor */
    max-width: 820px;
    /* compresión del bloque en escritorio */
    line-height: 1.15;
    letter-spacing: -0.02em;
    /* Degradado en tinta (Blanco a Plata) */
    background: linear-gradient(to bottom, #ffffff 10%, #9ca3af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Blindaje de color sólido para el span destacado */
.philosophy-intro h2 .text-fluor {
    background: none;
    -webkit-text-fill-color: initial;
    color: #00d663 !important;
}

.philosophy-intro p {
    max-width: 750px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #9CA3AF;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 80px;
    /* Margen respirador antes de arrancar Timeline */
}

.philosophy-card {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Efecto TÃ¡ctil Glow en InteracciÃ³n */
.philosophy-card:hover {
    border-color: #00d663;
    box-shadow: 0 0 20px rgba(0, 214, 99, 0.15);
    transform: translateY(-4px);
}

.philosophy-card .card-metric {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: #9CA3AF;
    /* Color inicial (Gris neutro) */
    margin-bottom: 12px;
    line-height: 1;
}

.philosophy-card .card-metric.metric-active {
    color: #ef4444;
    /* Alerta visual inmediata (Rojo intenso) */
    transition: color 0.1s ease;
}

.philosophy-card .card-desc {
    font-size: 0.95rem;
    color: #888888;
    margin: 0;
    line-height: 1.5;
}

.story-timeline__container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
    box-sizing: border-box;
    /* Force padding constraints for node positioning */
}

.story-timeline__container * {
    box-sizing: border-box;
}

/* The vertical guiding line */
.story-timeline__line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 1px);
    width: 2px;
    background-color: rgba(255, 255, 255, 0.25);
    /* Faint guide */
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 20px;
    /* Reducción de margen para acercar al eje */
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    /* Constrain to half screen */
    text-align: left;
    /* Bloques izquierda: alinear a la izquierda */
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Alternate targeting */
.timeline-item.timeline-right {
    align-self: flex-end;
    justify-content: flex-start;
    padding-left: 20px;
    /* Reducción de margen para acercar al eje */
    padding-right: 0;
    margin-left: 50%;
    text-align: right;
    /* Bloques derecha: alinear a la derecha */
}

/* Glowing Nodes */
.timeline-node {
    position: absolute;
    top: 3px;
    /* visual center with Kicker */
    right: -6px;
    /* 50% line offset center */
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 214, 99, 0.4);
    /* Estado apagado (latente) */
    transition: all 0.4s ease-out;
    z-index: 2;
    overflow: visible;
    /* permite que .timeline-perched-dragonfly desborde el óvalo */
}

/* Estado de Activación: Neón Glow */
.timeline-node.node-active {
    background-color: #00d663;
    /* Verde sólido puro */
    box-shadow:
        0 0 10px rgba(0, 214, 99, 0.8),
        /* Brillo cercano */
        0 0 20px rgba(0, 214, 99, 0.6),
        /* Brillo medio */
        0 0 40px rgba(0, 214, 99, 0.4);
    /* Halo exterior */
    transform: scale(1.15);
    /* Latido envolvente */
}

.timeline-item.timeline-right .timeline-node {
    left: -6px;
    right: auto;
}

/* ♥ DRAGONFLY PERCH
   Ancla: .timeline-node (12×12px, overflow:visible)
   ────────────────────────────────────────────────
   bottom: 100%  → borde inferior imagen = borde superior nodo (toque exacto)
   margin-bottom: -5px  → las patas muerden 5px del punto (efecto "percha" real)
   left: 50% + translateX(-50%)  → centrada sobre el nodo
   scaleX(-1)  → espejo horizontal: mira a la izquierda
*/
.timeline-perched-dragonfly {
    position: absolute;
    bottom: 100%;
    /*
     * margin-bottom negativo "empuja" la imagen hacia abajo sobre el punto.
     * Con -5px solo la cola tocaba. Con -20px el tórax/patas (≈centro-bajo
     * de la imagen) queda apoyado encima del punto verde.
     */
    margin-bottom: -10px;
    left: 180%;
    transform: translateX(-50%) scaleX(-1);
    /* espejo horizontal: mira a la izquierda */
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.5;
    pointer-events: none;
    /* Sin filter → color verde corporativo original */
    transition: opacity 0.4s ease-out;
    z-index: 3;
}

/* Cuando el nodo brilla, la libélula "despierta" */
.timeline-node.node-active .timeline-perched-dragonfly {
    opacity: 0.9;
}

.timeline-content {
    max-width: 400px;
    /* Reducción de anchura para compresión de texto */
}

.timeline-kicker {
    display: inline-block;
    color: #00d663;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.timeline-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
    line-height: 1.2;
}

.timeline-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #9CA3AF;
    margin: 0;
}

.text-fluor {
    color: #00d663;
    font-weight: 600;
}

/* ------------------------------------- */
/* 9.2 STORYTELLING: QUOTE CARD PREMIUM  */
/* ------------------------------------- */

.quote-card-container {
    max-width: 1100px;
    margin: 80px auto 0;
    padding: 0 20px;
}

.quote-card {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Sobrio */
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
}

.quote-card .quote-text {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 24px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    /* Degradado en tinta */
    background: linear-gradient(to bottom, #ffffff 10%, #9ca3af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.quote-card .quote-attribution {
    font-size: 1rem;
    color: #9CA3AF;
    /* Sólido constante para anular el gradient padre si existiera herencia */
    font-weight: 400;
    margin: 0;
}

/* GPU Accelerated Entrance Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Colapso Mobile */
@media (max-width: 768px) {
    .story-timeline-section {
        padding-top: 180px;
        padding-bottom: 80px;
    }

    .quote-card .quote-text {
        font-size: 1.5rem;
        /* Ajuste fluido en el móvil para evitar saturación */
    }

    .quote-card {
        padding: 40px 20px;
        /* Reducción de relleno en pantallas estrechas */
    }

    .philosophy-intro h2 {
        font-size: 2.2rem;
        max-width: 100%;
        /* en móvil la pantalla ya es estrecha, liberamos la restricción */
        line-height: 1.2;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .philosophy-card {
        padding: 30px 20px;
    }

    .story-timeline__line {
        left: 20px;
        /* Desplazado al borde izquierdo con margen */
    }

    .timeline-item {
        width: 100%;
        /* Toma todo el ancho */
        justify-content: flex-start;
        padding-left: 45px;
        /* Asegura espacio para la linea forzada a la izq */
        padding-right: 0;
        margin-bottom: 40px;
    }

    .timeline-item.timeline-right {
        margin-left: 0;
        text-align: left;
        /* Reset de alineación en móvil */
    }

    .timeline-node,
    .timeline-item.timeline-right .timeline-node {
        left: 14px;
        /* Centro matemÃ¡tico para la lÃ­nea anclada a 20px */
        right: auto;
    }

    .timeline-content h2 {
        font-size: 1.4rem;
    }
}

/* ------------------------------------- */
/* 10. CAROUSEL FEATURES SECTION         */
/* ------------------------------------- */
.features-section {
    background-color: #fbfbfb;
    /* Light Mode premium */
    padding: 100px 0 100px 10%;
    /* Eliminamos el padding derecho para que las tarjetas rebasen la pantalla (Peeking) */
    color: #111111;
    /* TipografÃ­a oscura */
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

.features-section__container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.features-section__content {
    /* Oxigenar el texto (Columna Izquierda), evitando que se apelmace */
    flex: 0 0 38%;
    padding-left: 6vw;
    padding-right: 3rem;
    /* RespiraciÃ³n crÃ­tica contra el carousel */
}

.features-section__content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    color: #111111;
}

.features-section__content p {
    color: #555555;
    /* Gris legible */
    font-size: 1.1rem;
    line-height: 1.6;
}

.features-section__content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Clases dinÃ¡micas para Storytelling Fade */
.fade-text {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.text-hidden {
    opacity: 0;
    transform: translateY(5px);
}

.features-section__carousel-wrapper {
    /* El Marco del Carrusel toma el espacio restante */
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.carousel-viewport {
    /* Expandido al 100% de LA COLUMNA o hasta 680px de max-width */
    width: 100%;
    /* 680px aloja exactamente: 1.5 tarjetas + 1 tarjeta = 2.5 tarjetas peeking */
    max-width: 680px;
    /* Empujar viewport a la derecha del todo creando bleed nativo */
    margin-left: auto;
    overflow: hidden !important;
    position: relative;
    cursor: grab;
}

.carousel-viewport:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    gap: 20px;
    /* JS uses this transition for the smooth sliding loop */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.app-card {
    /* El tope estricto de altura restringe el gigantismo en Desktop */
    height: 60vh;
    max-height: 600px;
    /* El ancho es dinÃ¡mico regido por el aspect-ratio, con lÃ­mite de 280px */
    width: auto;
    max-width: 280px;
    aspect-ratio: 10 / 19;
    flex-shrink: 0;
    background-color: #ffffff;
    /* Fondo claro de tarjeta */
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Borde clarito */
    padding: 10px;
    box-sizing: border-box;
    aspect-ratio: 10 / 19;
    overflow: hidden;
    /* Transiciones fluidas a 60 FPS aceleradas por GPU */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease, box-shadow 0.5s ease, filter 0.5s ease;
}

/* Tarjeta Principal (Focus) */
.app-card.is-active {
    transform: scale(1);
    opacity: 1;
    filter: grayscale(0%);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    /* Sombra premium muy neutra y suave */
}

/* Tarjetas en Cola (Profundidad a Todo Color) */
.app-card.is-next,
.app-card.is-next-third {
    transform: scale(0.85);
    transform-origin: left center;
    /* CompensaciÃ³n fÃ­sica segura mitigando el margen fantasma de parent wrapper flex % */
    margin-right: -25px;
    opacity: 1;
    /* Eliminado el 0.6 para colores plenos */
    filter: grayscale(0%);
    /* Eliminado el 40% para colores plenos */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Indicador de Loop (Magia CSS) - SÃ³lo la tarjeta 1 se vuelve gris en la cola */
.app-card.is-next[data-index="0"],
.app-card.is-next-third[data-index="0"] {
    opacity: 0.5;
    filter: grayscale(80%);
}

.app-card__image-box {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background-color: #000;
}

.app-card__image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    background-color: #d1d1d1;
    /* Inactivo Light Mode */
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-dot.is-active {
    background-color: #00d663;
    transform: scale(1.3);
}

@media (max-width: 900px) {
    .features-section__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .carousel-viewport {
        width: 100%;
        /* Restaurar al 100% en mÃ³vil para no perder legibilidad */
        mask-image: none;
        -webkit-mask-image: none;
    }
}

/* ------------------------------------- */
/* 11. SITE FOOTER (BEM & MASK-IMAGE)    */
/* ------------------------------------- */
.site-footer {
    background-color: #141414;
    color: #ffffff;
    padding: 80px 10% 40px;
    font-family: 'Inter', sans-serif;
}

.site-footer__container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Columna Primaria (Brand, Contacto, Socials) */
.footer__brand-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Separador limpio entre bloques hijos */
}

.footer__logo-img {
    width: 140px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer__contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Column margin setup as requested */
    color: #a0a0a0;
    font-size: 0.95rem;
}

/* Contenedor de iconos */
.footer__social-links {
    display: flex;
    gap: 1.5rem;
    /* Espaciado proporcional */
    align-items: center;
}

/* Estilo base para cada enlace/icono */
.footer__social-link {
    display: block;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    /* Transformar el negro del PNG en verde flÃºor Traideo (#00d663) */
    /* Valor de filtro calculado para alcanzar el verde exacto a partir de negro */
    filter: invert(56%) sepia(93%) saturate(1478%) hue-rotate(93deg) brightness(101%) contrast(106%);

    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Rutas de imagen con nombres reales de assets */
.footer__social-link--x {
    background-image: url('../assets/img/X-logo.png');
}

.footer__social-link--tiktok {
    background-image: url('../assets/img/tiktok_logo.png');
}

.footer__social-link--instagram {
    background-image: url('../assets/img/instagram_logo.png');
}

.footer__social-link--facebook {
    background-image: url('../assets/img/facebook_logo.png');
}

.footer__social-link:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* NavegaciÃ³n Secundaria (Mantenida intacta) */
.footer__nav-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer__nav-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__nav-col li {
    margin-bottom: 12px;
}

.footer__nav-col a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__nav-col a:hover {
    color: #00d663;
}

@media (max-width: 768px) {
    .site-footer__container {
        grid-template-columns: 1fr;
    }
}

/* iPhone Status Bar Simulation */
.status-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box;
    z-index: 12;
    /* Por encima de todo en la tarjeta */
    color: #fff;
    fill: #fff;
    pointer-events: none;
}

.status-bar__time {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.status-bar__icons {
    display: flex;
    align-items: center;
}

.status-bar__icon {
    width: 17px;
    height: 17px;
    margin-left: 6px;
    opacity: 0.9;
}

/* iPhone Lock Screen Clock */
.lock-screen-time {
    position: absolute;
    top: 12%;
    left: 0;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    z-index: 10;
    pointer-events: none;
}

.lock-screen-date {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: -5px;
    text-transform: lowercase;
}

.lock-screen-date::first-letter {
    text-transform: uppercase;
}

.lock-screen-clock {
    font-size: 4.5rem;
    font-weight: 800;
    /* Aumentado a 800 para mayor presencia estilo iOS */
    letter-spacing: -3px;
    /* Estrechar un poco mÃ¡s los nÃºmeros */
    line-height: 1;
    transform: scaleY(1.3);
    transform-origin: top center;
    margin-bottom: 2vh;
}

/* ------------------------------------- */
/* 12. DOWNLOAD MODAL (Revolut Style)    */
/* ------------------------------------- */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: #fdfdfd;
    width: 90%;
    max-width: 400px;
    border-radius: 24px;
    padding: 32px 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Inter', sans-serif;
    color: #111111;
}

.modal-backdrop.is-open .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    color: #a0a0a0;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #111111;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.modal-logo {
    width: 130px;
    height: auto;
    /* Transforma el original Traideo blanco a negro ultra-puro */
    filter: brightness(0);
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.modal-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.qr-wrapper {
    width: 140px;
    height: 140px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.modal-qr p {
    font-size: 0.9rem;
    color: #666666;
    margin: 0;
    text-align: center;
}

.modal-sms {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-sms p {
    font-size: 0.85rem;
    color: #888888;
    margin: 0 0 16px 0;
    text-align: center;
}

.sms-input-group {
    display: flex;
    width: 100%;
    height: 54px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 27px;
    /* Advanced pill structure */
    align-items: center;
    padding: 0 6px 0 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 12b. MODAL: Store Download CTAs (Minimalist Icon-Only) */
.modal-download__stores-container {
    text-align: center;
    margin-top: 12px;
}

.modal-download__store-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.modal-download__store-link {
    display: inline-flex;
    transition: transform 0.2s ease-in-out;
}

.modal-download__store-link:hover {
    transform: scale(1.08);
    cursor: pointer;
}

.modal-download__store-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* ------------------------------------- */
/* 13. PRIVACY POLICY PAGE (Light Theme) */
/* ------------------------------------- */

.privacy-main,
.legal-view-wrapper {
    background-color: #fcfcfc;
    color: #2d2d2d;
    padding: 140px 20px 80px;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

.privacy-container,
.legal-container {
    max-width: 760px;
    margin: 0 auto;
    /* Antigravity Performance: Restringe el renderizado del DOM hasta el scroll visible */
    content-visibility: auto;
}

.privacy-title,
.legal-title {
    font-size: 3rem;
    font-weight: 800;
    color: #111111;
    margin-bottom: 4rem;
    letter-spacing: -1px;
}

.privacy-section,
.legal-section {
    margin-bottom: 3.5rem;
}

.privacy-section h2,
.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.privacy-section p,
.legal-section p {
    font-size: 1.1rem;
    line-height: 1.65;
    color: #2d2d2d;
    margin: 0 0 1.5rem 0;
}

.privacy-link,
.legal-link {
    color: #00d663;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.privacy-link:hover,
.legal-link:hover {
    color: #00bf58;
    text-decoration: underline;
}

/* ------------------------------------- */
/* 14. DYNAMIC THEME ROUTING (.theme-light) */
/* ------------------------------------- */

body.theme-light .site-header {
    background-color: rgba(252, 252, 252, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.theme-light .brand-logo {
    filter: brightness(0);
    /* Black SVG output */
}

body.theme-light .site-header__link {
    color: #1a1a1a;
}

body.theme-light .site-header__link:hover {
    color: #00d663;
}

body.theme-light .site-header__btn-register {
    background-color: #1a1a1a;
    color: #ffffff;
}

body.theme-light .site-header__btn-register:hover {
    background-color: #00d663;
}

/* ================================================== */
/* 15. BENTO GRID SECTION â€” #features-bento           */
/* ================================================== */

/* â€” Section wrapper â€” */
.bento-section {
    /* Strategic gradient bridging to dark section */
    background: linear-gradient(to bottom, #FFFFFF 0%, #FFFFFF 25%, #F0F0F5 50%, #1A1A1D 100%);
    padding: 120px 6vw 100px;
    font-family: 'Inter', sans-serif;
    color: #111111;
    overflow: hidden;
    /* Stacking context: cards must float above the overlapping dark section below */
    position: relative;
    z-index: 10;
}

/* â€” Section header â€” */
.bento-section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 72px;
}

.bento-section__title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: #111111;
    margin: 0 0 20px;
}

.bento-section__title-accent {
    /* Gradient matching the Traideo brand palette */
    background: linear-gradient(135deg, #00d663 0%, #00a8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.bento-section__subtitle {
    font-size: 1.15rem;
    line-height: 1.65;
    color: #666666;
    margin: 0;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* BENTO GRID â€” Mobile-first layout                   */
/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Default: single-column stack (all widths) */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "hero"
        "tall"
        "portfolio"
        "comparador";
    gap: 20px;
    max-width: 1000px !important;
    padding-left: 24px;
    padding-right: 24px;
    margin: 0 auto;
}

/* Tablet (â‰¥ 768px): 2-column symmetric */
@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "hero    tall"
            "portfolio comparador";
    }
}

/* Desktop (â‰¥ 1024px): 12-col asymmetric layout */
@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: auto auto;
        grid-template-areas:
            "hero     hero     hero     hero     hero     hero     hero     hero     tall tall tall tall"
            "portfolio portfolio portfolio portfolio portfolio portfolio comparador comparador comparador comparador comparador comparador";
        gap: 24px;
    }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* BENTO CARD â€” Base styles (floating on #FAFAFA)     */
/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* CSS custom property: brand green as RGB channels for alpha composition */
#features-bento {
    --bento-green: 0, 214, 99;
}

.bento-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 24px;
    /* Organic multi-layer floating shadow (resting state) */
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.03),
        0 20px 40px -5px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Magnetic levitation spring — GPU-composited, will-change solo en hover */
    transition:
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Promover capa GPU únicamente durante el hover activo */
.bento-card:hover {
    will-change: transform;
}

/* Magnetic hover: -8px lift + deeper diffuse shadow */
.bento-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.08),
        0 10px 20px -5px rgba(0, 0, 0, 0.05),
        0 4px 8px -2px rgba(0, 0, 0, 0.04);
}

/* Grid area assignments */
.bento-card--hero {
    grid-area: hero;
}

.bento-card--tall {
    grid-area: tall;
}

/* cards 3 & 4 via nth-child for clarity */
.bento-card:nth-child(3) {
    grid-area: portfolio;
}

.bento-card:nth-child(4) {
    grid-area: comparador;
}

/* â€” Figure: image container with CLS-safe aspect ratios â€” */
.bento-card__figure {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #F0F0F0;
    /* Placeholder shimmer bg */
    /* Aspect ratio matches the provided width/height attrs â†’ zero CLS */
    flex-shrink: 0;
}

/* Hero card: wider image */
.bento-card--hero .bento-card__figure {
    aspect-ratio: 800 / 480;
}

/* Tall card: portrait image */
.bento-card--tall .bento-card__figure {
    aspect-ratio: 400 / 500;
    flex: 1;
    /* Grow to fill available space vertically */
}

/* Standard cards */
.bento-card:nth-child(3) .bento-card__figure,
.bento-card:nth-child(4) .bento-card__figure {
    aspect-ratio: 400 / 300;
}

.bento-card__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    /* Contained by parent's overflow:hidden */
    /* Cinematic parallax zoom â€” GPU-composited, never overflows figure */
    transform: scale(1);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    /* Placeholder skeleton visible until image loads */
    background: linear-gradient(90deg,
            #f0f0f0 25%,
            #e8e8e8 50%,
            #f0f0f0 75%);
    background-size: 200% 100%;
    animation: bento-shimmer 1.5s infinite;
}

/* Trigger the internal parallax when the card receives hover */
.bento-card:hover .bento-card__figure img {
    transform: scale(1.05);
    animation: none;
    /* Halt shimmer on interaction */
}

@keyframes bento-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Stop shimmer once image is loaded (JS-free, paint-time) */
.bento-card__figure img[src]:not([src=""]) {
    animation: none;
    background: none;
}

/* â€” Card body: text layer â€” */
.bento-card__body {
    padding: 32px 32px 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Tag pill â€” Premium Fintech badge with frosted glass */
.bento-card__tag {
    display: inline-flex;
    align-self: flex-start;
    /* Frosted glass depth on translucent background */
    background: rgba(var(--bento-green), 0.09);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #009944;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    border: 1px solid rgba(var(--bento-green), 0.18);
    font-family: 'Inter', sans-serif;
}

.bento-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111111;
    letter-spacing: -0.4px;
    line-height: 1.25;
    margin: 0;
}

/* Hero card: larger title */
.bento-card--hero .bento-card__title {
    font-size: 1.55rem;
}

.bento-card__desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666666;
    margin: 0;
}

/* â€” Tall card layout on desktop: image fills, text anchors to bottom â€” */
@media (min-width: 1024px) {
    .bento-card--tall {
        flex-direction: column;
    }

    .bento-card--tall .bento-card__figure {
        aspect-ratio: unset;
        flex: 1 1 auto;
        min-height: 200px;
    }

    .bento-card--tall .bento-card__body {
        flex: 0 0 auto;
    }
}

/* â€” Responsive guard: min-height for cards on large screens â€” */
@media (min-width: 1024px) {
    .bento-card--hero {
        min-height: 280px;
    }
}

/* 10. COOKIE CONSENT BANNER (Fintech Toast UI) */
.cookie-consent-toast {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    width: calc(100% - 48px);
    max-width: 380px;
    background: rgba(26, 26, 29, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    font-family: inherit;
    color: #FFFFFF;

    /* AnimaciÃ³n inicial (Oculto Abajo) */
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.cookie-consent-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent__content {
    margin-bottom: 20px;
}

.cookie-consent__title {
    margin: 0 0 8px 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.cookie-consent__text {
    margin: 0 0 12px 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.cookie-consent__link {
    display: inline-block;
    color: #00d663;
    /* Verde Traideo */
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
}

.cookie-consent__link:hover {
    text-decoration: underline;
}

.cookie-consent__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-cookie {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
}

.btn-cookie--primary {
    background: #00d663;
    color: #111111;
}

.btn-cookie--primary:hover {
    background: #00ff73;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 214, 99, 0.2);
}

.btn-cookie--secondary {
    background: transparent;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-cookie--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 480px) {
    .cookie-consent__actions {
        flex-direction: row;
    }

    .btn-cookie {
        width: auto;
        flex: 1;
        padding: 10px 16px;
    }
}

/* 11. PÃGINAS LEGALES (Cookies, Privacidad, etc) */
.legal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 6vw;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-header__brand {
    display: inline-block;
    outline: none;
}

.legal-header__back-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.legal-header__back-link:hover {
    color: #00d663;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 140px 24px 120px;
    color: #ffffff;
    font-family: inherit;
}

.legal-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 8px 0;
    font-weight: 700;
    color: #FAFAFA;
}

.legal-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 60px 0;
}

.legal-section {
    margin-bottom: 48px;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin: 0 0 20px 0;
    font-weight: 600;
    color: #ffffff;
}

.legal-section p,
.legal-section li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 24px 0;
}

.legal-section ul {
    list-style-type: disc;
    padding-left: 24px;
    margin: 0 0 24px 0;
}

.legal-section li {
    margin: 0 0 12px 0;
}

.legal-section strong {
    color: #ffffff;
    font-weight: 600;
}

/* 11.5. Aislamiento de Tema Claro (Ej. TÃ©rminos y Condiciones) */
.theme-light .legal-container {
    color: #4A4A52;
}

.theme-light .legal-title,
.theme-light .legal-section h1,
.theme-light .legal-section h2,
.theme-light .legal-section h3,
.theme-light .legal-section strong {
    color: #1A1A1D;
}

.theme-light .legal-section p,
.theme-light .legal-section li,
.theme-light .legal-date {
    color: #4A4A52;
}

/* 12. RUTAS ACTIVAS (FOOTER ACTIVE STATE ROUTING) */
.site-footer a.is-active {
    pointer-events: none;
    color: #00d663 !important;
    opacity: 0.7;
    text-decoration: none;
    cursor: default;
}

/* ------------------------------------- */
/* 11. BOTTOM CTA SECTION                */
/* ------------------------------------- */
.bottom-cta {
    background: radial-gradient(circle at 50% -20%, rgba(0, 214, 99, 0.25) 0%, rgba(0, 214, 99, 0.05) 40%, transparent 75%), #0A0A0C;
    position: relative;
    padding: 150px 24px;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}



.bottom-cta__container {
    max-width: 800px;
    margin: 0 auto;
}

.bottom-cta__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.1;
}

.bottom-cta__title > span:not(.text-fluor) {
    background: linear-gradient(to bottom, #ffffff 10%, #9ca3af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.bottom-cta__subtitle {
    font-size: 1.2rem;
    color: #A0A0A5;
    max-width: 540px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.btn-cta-premium {
    display: inline-block;
    background-color: #00d663;
    color: #000000;
    padding: 18px 48px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn-cta-premium:hover {
    transform: scale(1.05);
    background-color: #00e86d;
    box-shadow: 0 10px 30px rgba(0, 214, 99, 0.3);
}

.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #A0A0A5;
    font-size: 0.9rem;
}

.trust-badge__icon {
    color: #00d663;
}

/* Responsividad para Bottom CTA */
@media (max-width: 768px) {
    .bottom-cta {
        padding: 80px 24px;
    }

    .trust-badges {
        flex-direction: column;
        gap: 16px;
    }

    .bottom-cta__title {
        font-size: 2.2rem;
    }
}



/* ------------------------------------- */
/* 11.5 PRICING SECTION                  */
/* ------------------------------------- */
.pricing-section {
    background-color: #0A0A0C;
    /* Matching bottom CTA */
    padding: 120px 24px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-header {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-pretitle {
    display: inline-block;
    color: #00d663;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.pricing-header h2 {
    font-size: 3rem;
    margin: 0 0 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    /* Degradado en tinta */
    background: linear-gradient(to bottom, #ffffff 10%, #9ca3af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.pricing-header p {
    font-size: 1.15rem;
    color: #A0A0AB;
    margin: 0;
}

/* Toggle Switch */
.pricing-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.toggle-label {
    font-size: 1.05rem;
    color: #A0A0AB;
    font-weight: 600;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-label--active {
    color: #ffffff;
}

.badge__discount {
    background-color: rgba(0, 214, 99, 0.15);
    color: #00d663;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 100px;
    font-weight: 700;
}

.pricing-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}

.pricing-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pricing-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333333;
    transition: .4s;
    border-radius: 34px;
}

.pricing-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.pricing-slider {
    background-color: #00d663;
}

input:checked+.pricing-slider:before {
    transform: translateX(28px);
}

/* Grid & Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 400px));
    justify-content: center;
    gap: 32px;
    align-items: stretch;
}

.pricing-card {
    background-color: #16161A;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
}

.pricing-card--pro {
    background: linear-gradient(180deg, #16161A 0%, #0F0F13 100%);
    border: 1px solid #00d663;
    box-shadow: 0 0 30px rgba(0, 214, 99, 0.1);
}

.pricing-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #00d663 0%, #00a8ff 100%);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card__name {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0 0 16px;
    font-weight: 600;
}

.pricing-card__price-box {
    display: flex;
    align-items: baseline;
    margin-bottom: 8px;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.price-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin: 0 4px;
}

.price-period {
    font-size: 1rem;
    color: #A0A0AB;
}

.pricing-card__billing-placeholder {
    height: 24px;
    margin-bottom: 16px;
}

.pricing-card__sub-price {
    font-size: 0.9rem;
    color: #00d663;
    margin: 0;
}

.pricing-card__sub-price s {
    color: #A0A0AB;
}

.pricing-card__desc {
    font-size: 1rem;
    color: #A0A0AB;
    line-height: 1.5;
    margin: 0 0 32px;
}

/* Buttons */
.pricing-btn {
    display: block;
    text-align: center;
    border-radius: 12px;
    padding: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 32px;
}

.pricing-btn--primary {
    background-color: #00d663;
    color: #000000;
}

.pricing-btn--primary:hover {
    background-color: #00b353;
    transform: scale(1.02);
}

.pricing-btn--secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Features */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #D1D1D6;
    margin-bottom: 16px;
}

.pricing-features li:last-child {
    margin-bottom: 0;
}

.icon-check {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Mobile Pricing */
@media (max-width: 768px) {
    .pricing-section {
        padding: 80px 20px;
    }

    .pricing-header h2 {
        font-size: 2.2rem;
    }

    .price-value {
        font-size: 2.8rem;
    }
}

/* ------------------------------------- */
/* 12. RISK DISCLAIMERS SECTION */
/* ------------------------------------- */
.risk-disclaimers {
    padding: 80px 24px;
    background-color: #ffffff;
}

.risk-disclaimers__container {
    max-width: 1200px;
    margin: 0 auto;
}

.risk-disclaimers__header {
    text-align: center;
    margin-bottom: 48px;
}

.risk-disclaimers__header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px 0;
}

.risk-disclaimers__header p {
    font-size: 1.1rem;
    color: #6B7280;
    margin: 0 auto;
    max-width: 600px;
    line-height: 1.6;
}

.risk-disclaimers__grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    align-items: stretch;
}

.risk-card {
    display: flex;
    flex-direction: column;
    border-top: 2px solid #E5E7EB;
    flex: 1 1 0;
    min-width: 0;
    padding-top: 24px;
}

.risk-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0, 214, 99, 0.08);
    color: #00d663;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.risk-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px 0;
    padding-top: 0;
    text-transform: none;
    line-height: 1.3;
}

.risk-card__box {
    border: none;
    padding: 0;
    height: 100%;
}

.risk-card__text {
    font-size: 0.875rem;
    color: #4B5563;
    line-height: 1.65;
    margin: 0;
}

/* ── Mobile: carrusel horizontal con scroll-snap ─────────────── */
@media (max-width: 768px) {
    .risk-disclaimers {
        padding: 50px 0 50px 24px;
    }

    .risk-disclaimers__container {
        overflow: hidden;
    }

    .risk-disclaimers__header {
        padding-right: 24px;
    }

    .risk-disclaimers__grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding-right: 24px;
        padding-bottom: 8px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        align-items: start;
    }

    .risk-disclaimers__grid::-webkit-scrollbar {
        display: none;
    }

    .risk-card {
        flex: 0 0 80vw;
        min-width: 0;
        scroll-snap-align: start;
    }

    .risk-disclaimers__header h2 {
        font-size: 1.8rem;
    }
}


/* ═══════════════════════════════════════════════════════════════ */
/* LANG SWITCHER — ES | EN                                        */
/* ═══════════════════════════════════════════════════════════════ */

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    flex-shrink: 0;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 2px;
    /* Default (dark header): inactive = grey, active = green */
    color: #9CA3AF;
    transition: color 0.2s ease;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

.lang-btn.is-active {
    color: #00D663;
}

.lang-btn:hover:not(.is-active) {
    color: #d1d5db;
}

.lang-sep {
    font-size: 0.7rem;
    color: rgba(156, 163, 175, 0.4);
    user-select: none;
    pointer-events: none;
    font-weight: 300;
    line-height: 1;
}

/* ── Light header variant ────────────────────────────────────── */
/* When the header carries .is-light class or is on light pages  */
.site-header.is-light .lang-btn {
    color: #9CA3AF;
}

.site-header.is-light .lang-btn.is-active {
    color: #000000;
}

.site-header.is-light .lang-btn:hover:not(.is-active) {
    color: #374151;
}

.site-header.is-light .lang-sep {
    color: rgba(0, 0, 0, 0.15);
}

/* ── Mobile responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
    .lang-switcher {
        margin-left: 4px;
        gap: 2px;
    }

    .lang-btn {
        font-size: 0.72rem;
        padding: 4px 1px;
    }
}

/* ── Risk carousel: dots de paginación ──────────────────────────── */
.risk-carousel-dots {
    display: none;
}

.risk-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D1D5DB;
    transition: background 0.3s ease, transform 0.3s ease, width 0.3s ease;
    flex-shrink: 0;
}

.risk-dot--active {
    background: #00d663;
    width: 18px;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .risk-carousel-dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin-top: 20px;
        padding-right: 24px;
    }
}

/* ── Header: ajuste de márgenes mobile ──────────────────────────── */
@media (max-width: 768px) {
    .site-header {
        padding: 18px 20px;
    }

    .site-header__nav {
        gap: 1rem;
    }

    .site-header__link {
        font-size: 0.88rem;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   ANTIGRAVITY — BENTO FEATURES GRID  (#bento-features)
   Composición por capas: visual como fondo absoluto + texto anclado al fondo.
   Grid 3 columnas iguales × 3 filas.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Utility: degradado metálico plateado (reutilizable en toda la UI) ───── */
.text-gradient-silver {
    background: linear-gradient(to bottom, #ffffff 10%, #9ca3af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ── Design tokens ────────────────────────────────────────────────────────── */
:root {
    --ant-accent:      #27DB7E;
    --ant-accent-dim:  rgba(39, 219, 126, 0.10);
    --ant-bg-section:  #0a0a0a;
    --ant-bg-card:     #111111;
    --ant-border:      rgba(255, 255, 255, 0.07);
    --ant-text-primary:   #ffffff;
    --ant-text-secondary: #6b7280;
    --ant-radius:      18px;
}

/* ── Sección wrapper ──────────────────────────────────────────────────────── */
.ant-bento {
    background: var(--ant-bg-section);
    padding: 100px 0 120px;
}

.ant-bento__container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Encabezado ───────────────────────────────────────────────────────────── */
.ant-bento__header {
    text-align: center;
    margin-bottom: 56px;
}

.ant-bento__kicker {
    display: block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--ant-accent);
    text-transform: uppercase;
    margin-bottom: 18px;
}

.ant-bento__title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--ant-text-primary);
    line-height: 1.1;
    margin: 0 0 18px;
    letter-spacing: -0.03em;
}

.ant-bento__title--accent {
    color: #00d663;          /* mismo tono que .text-fluor en bottom-cta */
    font-weight: 800;        /* hereda peso del h2, explicitado para consistencia */
    -webkit-text-fill-color: #00d663; /* cancela cualquier fill heredado de .text-gradient-silver */
}

.ant-bento__subtitle {
    font-size: 0.93rem;
    color: var(--ant-text-secondary);
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── Grid 3 col × 3 row ───────────────────────────────────────────────────── */
.ant-bento__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas:
        "hero    hero    chart"
        "hero    hero    winrate"
        "priv    globe   latency";
    gap: 12px;
}

/* ── Tarjeta base — lienzo unificado ─────────────────────────────────────── */
.ant-bento__card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--ant-border);
    border-radius: var(--ant-radius);
    background: var(--ant-bg-card);
    transition: border-color 0.3s ease;
    /* altura mínima por defecto para tarjetas pequeñas */
    min-height: 180px;
}

.ant-bento__card:hover {
    border-color: rgba(39, 219, 126, 0.28);
}

/* ── Visual: rellena toda la tarjeta como fondo ───────────────────────────── */
.ant-bento__card-visual {
    position: absolute;
    inset: 0;
    background: var(--ant-accent-dim);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* GPU-only zoom: promote a separate compositing layer */
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.45s ease-out;
}

/* ── Zoom premium en hover — imagen escala, texto permanece estático ─────── */
.ant-bento__card:hover .ant-bento__card-visual {
    transform: scale(1.07);
    will-change: transform; /* activo solo durante el hover, no en reposo */
}

/* ── Assets finales de cada tarjeta ──────────────────────────────────────── */
.ant-bento__card-visual--network {
    background-image: url('../assets/img/bento-ai.jpg');
    background-position: center right;
}

.ant-bento__card-visual--chart {
    background-image: url('../assets/img/bento-chart.jpg');
    background-position: center;
}

.ant-bento__card-visual--shield {
    background-image: url('../assets/img/bento-shield.jpg');
    background-position: center;
}

.ant-bento__card-visual--globe {
    background-image: url('../assets/img/bento-globe.jpg');
    background-position: center;
}

/* ── Gradiente de legibilidad (::before sobre el visual) ─────────────────── */
.ant-bento__card--hero::before,
.ant-bento__card--chart::before,
.ant-bento__card--privacy::before,
.ant-bento__card--globe::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.90) 0%,
        rgba(10, 10, 10, 0.55) 40%,
        rgba(10, 10, 10, 0.10) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* ── Contenido: anclado en la esquina inferior izquierda ─────────────────── */
.ant-bento__card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 20px 22px 24px;
}

/* ── Tarjetas stat (sin visual): contenido centrado verticalmente ─────────── */
.ant-bento__card--winrate,
.ant-bento__card--latency {
    display: flex;
    align-items: center;
}

.ant-bento__card--winrate .ant-bento__card-content,
.ant-bento__card--latency .ant-bento__card-content {
    position: static;
    padding: 24px 22px;
}

/* ── Tipografía de tarjetas ───────────────────────────────────────────────── */
.ant-bento__label {
    display: block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.60rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--ant-accent);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ant-bento__card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ant-text-primary);
    line-height: 1.3;
    margin: 0 0 6px;
}

.ant-bento__card--hero .ant-bento__card-title {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    margin-bottom: 8px;
}

.ant-bento__card-desc {
    font-size: 0.80rem;
    color: var(--ant-text-secondary);
    line-height: 1.55;
    margin: 0;
}

/* ── Números grandes ──────────────────────────────────────────────────────── */
.ant-bento__big-number {
    display: block;
    font-size: clamp(2.6rem, 5vw, 3.4rem);
    font-weight: 800;
    color: var(--ant-accent);
    line-height: 1;
    margin: 6px 0 10px;
    letter-spacing: -0.04em;
}

.ant-bento__big-number--pct {
    font-size: 0.52em;
    font-weight: 700;
}

.ant-bento__big-number--unit {
    font-size: 0.36em;
    font-weight: 500;
    color: var(--ant-text-secondary);
    margin-left: 2px;
    letter-spacing: 0;
}

/* ── Alturas y áreas de grid ──────────────────────────────────────────────── */
.ant-bento__card--hero    { grid-area: hero;    min-height: 360px; }
.ant-bento__card--chart   { grid-area: chart;   min-height: 180px; }
.ant-bento__card--winrate { grid-area: winrate; min-height: 160px; }
.ant-bento__card--privacy { grid-area: priv;    min-height: 280px; }
.ant-bento__card--globe   { grid-area: globe;   min-height: 280px; }
.ant-bento__card--latency { grid-area: latency; min-height: 280px; }

/* ── Responsividad — colapso a 1 columna en móvil ────────────────────────── */
@media (max-width: 720px) {
    .ant-bento__grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "hero"
            "chart"
            "winrate"
            "priv"
            "globe"
            "latency";
    }
    .ant-bento__card--hero    { min-height: 280px; }
    .ant-bento__card--privacy,
    .ant-bento__card--globe   { min-height: 220px; }
    .ant-bento__card--winrate,
    .ant-bento__card--latency { min-height: 140px; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   SOBRE NOSOTROS — Hero + FAQ Accordion
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero About ───────────────────────────────────────────────────────────── */
.hero-about {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    background-image: url('../assets/img/barcelona_city.webp');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    contain: layout style;
}

.hero-about__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(5, 5, 5, 0.88) 0%,
        rgba(5, 5, 5, 0.30) 45%,
        rgba(5, 5, 5, 0.10) 100%
    );
    pointer-events: none;
}

.hero-about__content {
    position: relative;
    z-index: 1;
    padding: 0 6vw 64px;
}

.hero-about__title {
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.04em;
    color: #ffffff;
    margin: 0;
}

/* ── Ambient Glow Divider ─────────────────────────────────────────────────── */
/*    body{background:#fff} bleeds through pure transparent — base must be    */
/*    the same dark tone as the surrounding sections to kill the white block.  */
.ant-ambient-glow {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 200px;
    margin: -100px 0;
    /* Dark base eliminates white body bleed; gradient sits on top as image */
    background-color: #0a0a0a !important;
    background-image: radial-gradient(
        ellipse 55% 100% at 50% 50%,
        rgba(13, 214, 99, 0.13) 0%,
        rgba(13, 214, 99, 0.05) 50%,
        transparent 100%
    );
    pointer-events: none;
}

/* Lift both flanking sections above the glow layer */
.pricing-section {
    position: relative;
    z-index: 1;
}

/* ── FAQ Section ──────────────────────────────────────────────────────────── */
.faq-section {
    position: relative;
    z-index: 1;
    background: #0a0a0a;
    padding: 80px 0 120px;
    contain: layout style;
}

.faq-section__container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

.faq-section__header {
    margin-bottom: 48px;
}

.faq-section__kicker {
    display: block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #0dd663;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.faq-section__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0;
}

/* ── FAQ Item ─────────────────────────────────────────────────────────────── */
.faq-item {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item.is-active {
    border-color: rgba(13, 214, 99, 0.25);
}

/* ── FAQ Question Button ──────────────────────────────────────────────────── */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #e5e7eb;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #ffffff;
}

.faq-item.is-active .faq-question {
    color: #0dd663;
}

/* ── Flecha SVG ───────────────────────────────────────────────────────────── */
.faq-arrow {
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.is-active .faq-arrow {
    transform: rotate(180deg);
}

/* ── Animación Antigravity: grid-template-rows trick (GPU-free) ───────────── */
.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.4s ease, opacity 0.4s ease;
}

.faq-item.is-active .faq-answer-wrapper {
    grid-template-rows: 1fr;
    opacity: 1;
}

.faq-answer-content {
    overflow: hidden;
    padding: 0 24px;
    font-size: 0.92rem;
    color: #9ca3af;
    line-height: 1.7;
    padding-bottom: 0;
    transition: padding-bottom 0.4s ease;
}

.faq-item.is-active .faq-answer-content {
    padding-bottom: 22px;
}

.faq-link {
    color: #0dd663;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-link:hover {
    color: #27DB7E;
}

/* Ensure new accordion wrappers don't break desktop layout */
@media (min-width: 769px) {
    .pricing-accordion-wrapper,
    .pricing-accordion-content {
        display: contents;
    }
}

/* ------------------------------------- */
/* ANTIGRAVITY MOBILE FIXES              */
/* ------------------------------------- */
@media (max-width: 768px) {
    /* Issue 1: Header and Hero Banner Overlap */
    #coming-soon-banner {
        flex-direction: column !important;
        padding: 5px 15px !important;
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
    }
    .site-header {
        top: 50px !important;
        padding: 0.8rem 4vw !important;
        flex-wrap: nowrap !important; /* Prevent wrapping on narrow screens */
        gap: 10px !important;
    }
    .site-header__nav {
        gap: 15px !important; /* Tighter gap for small screens */
    }
    .brand-logo {
        width: clamp(90px, 25vw, 120px) !important;
        height: auto !important;
    }
    .site-header__link, .site-header__btn-register {
        font-size: clamp(0.7rem, 3.5vw, 0.95rem) !important;
    }
    
    /* Issue 1b: Title overlapping phone frame and header */
    body:not(.is-shrunk) .text-overlay {
        top: 105px !important; /* Start right below the compacted header */
        left: 5% !important;
        right: 5% !important;
        text-align: center !important;
        max-width: 100% !important;
        width: 90% !important;
    }
    body:not(.is-shrunk) .text-overlay h1 {
        /* Use vh to aggressively shrink font on extremely short screens */
        font-size: clamp(1.4rem, 5vh, 2.3rem) !important;
        line-height: 1.15 !important;
        margin-bottom: 8px !important;
    }
    body:not(.is-shrunk) .text-overlay p {
        font-size: clamp(0.85rem, 2.8vh, 1.1rem) !important;
        margin-bottom: 12px !important;
    }
    body:not(.is-shrunk) .text-overlay .btn-demo {
        padding: clamp(8px, 1.5vh, 12px) clamp(16px, 3vh, 24px) !important; 
        font-size: clamp(0.85rem, 2vh, 1rem) !important;
    }
    body:not(.is-shrunk) .card-frame {
        /* Prevents overlapping on short screens by enforcing a minimum top pixel value, 
           while looking perfectly centered/spaced on tall screens (e.g. iPhone 12 Pro) */
        top: max(50%, 360px) !important;
        height: clamp(250px, 42vh, 380px) !important;
        transform: translate(-50%, calc(-50% + 18vh)) !important;
    }
    
    /* Issue 3: Clock and Date spilling out of phone frame on narrow/short screens */
    .lock-screen-clock {
        font-size: clamp(2rem, 5.5vh, 4.5rem) !important;
        margin-bottom: 1vh !important;
    }
    .lock-screen-date {
        font-size: clamp(0.75rem, 2vh, 1.1rem) !important;
    }

    /* Issue 2: Quote Author text overlapping with casino chips */
    .quote-card .quote-attribution {
        text-align: right !important;
        display: block !important;
        position: relative;
        z-index: 10;
    }
    .quote-card .quote-text {
        position: relative;
        z-index: 10;
    }

    /* Mobile Footer Optimization */
    .site-footer {
        padding: 50px 6vw 40px !important;
    }
    .site-footer__container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px 15px !important;
    }
    .footer__brand-col {
        grid-column: span 2;
        margin-bottom: 10px !important;
        gap: 15px !important;
    }
    .footer__nav-col h4 {
        margin-bottom: 12px !important;
        font-size: 1.05rem !important;
    }
    .footer__nav-col li {
        margin-bottom: 8px !important;
    }

    /* Mobile Pricing Cards Accordion - Smooth Grid Animation (FAQ style) */
    .pricing-card__mobile-toggle {
        display: flex !important;
        position: absolute;
        bottom: 20px;
        right: 20px;
        background: transparent;
        border: none;
        padding: 5px;
        cursor: pointer;
        z-index: 5;
        transition: transform 0.4s ease;
    }
    .pricing-card {
        position: relative !important;
        padding-bottom: 60px !important; /* Space for the arrow */
        cursor: pointer !important;
    }
    
    .pricing-accordion-wrapper {
        display: grid;
        grid-template-rows: 0fr;
        opacity: 0;
        transition: grid-template-rows 0.4s ease, opacity 0.4s ease;
    }
    
    .pricing-accordion-content {
        overflow: hidden;
        padding-top: 0;
        transition: padding-top 0.4s ease;
    }
    
    .pricing-card.is-expanded .pricing-accordion-wrapper {
        grid-template-rows: 1fr;
        opacity: 1;
    }
    
    .pricing-card.is-expanded .pricing-btn-wrapper .pricing-accordion-content {
        padding-top: 24px;
    }
    
    .pricing-card.is-expanded .pricing-features-wrapper .pricing-accordion-content {
        padding-top: 32px;
    }
    
    .pricing-card.is-expanded .pricing-card__mobile-toggle svg {
        transform: rotate(180deg);
    }
    .pricing-card.is-expanded {
        padding-bottom: 30px !important; /* Default padding for expanded card */
        cursor: default !important;
    }
}

/* Hide toggle on desktop */
.pricing-card__mobile-toggle {
    display: none;
}

@media (max-width: 900px) {
    /* Issue 3: Features carousel layout reordering */
    .features-section {
        padding: 60px 20px !important;
    }
    .features-section__container {
        display: flex !important;
        flex-direction: column !important;
    }
    .features-section__content {
        display: contents !important; /* Break out children so they can be reordered independently */
    }
    .features-section__content h2 {
        order: 1;
        width: 100%;
        text-align: center;
        margin-bottom: 30px !important;
    }
    .features-section__carousel-wrapper {
        order: 2;
        width: 100%;
    }
    .features-section__content h3 {
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 30px !important;
        margin-bottom: 4px !important;
    }
    .features-section__content p {
        order: 4;
        width: 100%;
        text-align: center;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}
