/* ==========================================================================
   WISEBET FRONTEND DESIGN PROTOCOL - LIGHT ELEGANCE & INTERACTIVE TECH
   ========================================================================== */

/* --- VARIABLES (SKILL.md) --- */
:root {
    --bg-main: #f7f7f8; /* White Depth Base */
    --bg-secondary: #ffffff;
    --text-main: #121212;
    --text-muted: #666666;
    --primary-blue: #0A192F;
    --accent-green: #00d687; /* Verde oficial de marca (manual WiseBet) */
    --accent-green-rgb: 0, 214, 135; /* mismo verde en RGB para usar con rgba() */
    --accent-cyan: #19B7C6;
    --accent-amber: #E8B54B;
    --accent-coral: #F06D5F;
    --surface-warm: #fbfaf7;

    /* Fuentes */
    --font-heading: 'Audiowide', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --header-height: 80px;
    --container-max: 1200px;

    /* White Depth Protocol */
    --depth-shadow-soft: 0 4px 6px -1px rgba(0,0,0,0.01), 0 2px 4px -1px rgba(0,0,0,0.006);
    --depth-shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.04), 0 10px 10px -5px rgba(0,0,0,0.01);
    --depth-border: 1px solid rgba(0,0,0,0.04);
    --shadow-air: 0 18px 50px rgba(10, 25, 47, 0.055), 0 1px 0 rgba(255,255,255,0.9) inset;
    --shadow-deep: 0 34px 90px rgba(10, 25, 47, 0.105), 0 14px 35px rgba(10, 25, 47, 0.045);
    --inner-highlight: inset 0 1px 0 rgba(255,255,255,0.88), inset 0 -1px 0 rgba(10,25,47,0.035);
    --radius-premium: 24px;
    --radius-input: 12px;
}

/* --- RESET & GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.light-theme {
    background-color: #F4F6F8;
    background-image:
        linear-gradient(115deg, rgba(25, 183, 198, 0.055) 0%, rgba(25, 183, 198, 0) 34%),
        linear-gradient(245deg, rgba(232, 181, 75, 0.07) 0%, rgba(232, 181, 75, 0) 30%),
        linear-gradient(180deg, rgba(0, 214, 135, 0.05) 0%, rgba(0, 214, 135, 0) 42%),
        /* Franjas diagonales de luz */
        linear-gradient(135deg, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0.9) 35%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.9) 65%, rgba(255, 255, 255, 0) 75%),
        linear-gradient(135deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 1) 60%, rgba(255, 255, 255, 0.9) 70%, rgba(255, 255, 255, 0) 80%),
        /* Fase 1 rediseño: Patrón de puntos verde de marca difuminado */
        radial-gradient(circle, rgba(0, 214, 135, 0.18) 1.5px, transparent 1.5px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 20px 20px;
    background-position: center, center, center, center, center, 0 0;
    background-attachment: fixed;
    color: var(--text-muted);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
.brand-logo,
.micro-tag {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 400;
    /* Audiowide solo tiene 400 */
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- RUIDO Y TEXTURA EXTRA (Opcional) --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.02;
    /* Reducido ya que tenemos el papel de fondo */
    background-image: url('data:image/svg+xml,%3Csvg viewBox=%220 0 200 200%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22noiseFilter%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.65%22 numOctaves=%223%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23noiseFilter)%22/%3E%3C/svg%3E');
}

/* --- CURSOR MAGNÉTICO --- */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background-color: var(--text-main);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
}

.custom-cursor.hovering {
    width: 40px;
    height: 40px;
    background-color: var(--accent-green);
    mix-blend-mode: normal;
    opacity: 0.8;
}

/* Cinematic Header - Títulos Gigantes */
.cinematic-header {
    position: relative;
    padding: 100px 0 50px 0;
    text-align: center;
    overflow: hidden;
    z-index: 10;
    background: transparent !important;
}

.cinematic-header::before {
    content: attr(data-label);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: clamp(4rem, 15vw, 12rem);
    color: rgba(255, 255, 255, 0.6);
    /* Más blanco y visible */
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.05);
    opacity: 0.3;
    white-space: nowrap;
    z-index: -1;
    letter-spacing: 0.2em;
    pointer-events: none;
    text-transform: uppercase;
}


/* --- PRELOADER ANIMADO --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #FAFAFA;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Background Canvas Interactivo */
#preloader-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: auto;
    /* Permite que el ratón interactúe */
}

.preloader-content {
    text-align: center;
    width: 320px;
    position: relative;
    z-index: 1;
}

.preloader-logo {
    height: 150px;
    /* Logotipo grande */
    width: auto;
    margin-bottom: 40px;
    /* Eliminado el filtro para que se vean los colores reales del manual de marca */
    filter: none;
    animation: preloaderLogoPulse 2.5s cubic-bezier(0.25, 0.1, 0.25, 1) infinite alternate;
}

@keyframes preloaderLogoPulse {
    0% {
        transform: scale(0.98);
        opacity: 0.95;
        filter: drop-shadow(0 4px 20px rgba(0, 214, 135, 0.1));
    }

    100% {
        transform: scale(1.03);
        opacity: 1;
        filter: drop-shadow(0 4px 30px rgba(0, 214, 135, 0.3));
    }
}

.preloader-bar-container {
    width: 100%;
    height: 3px;
    background: rgba(186, 186, 186, 0.3);
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.preloader-bar {
    width: 0%;
    height: 100%;
    background: var(--accent-green);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--accent-green);
}

.preloader-text {
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--text-main);
    opacity: 0.8;
}

/* --- PAGE TRANSITION --- */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #FAFAFA;
    background-image: url('../img/light_paper.png');
    background-size: cover;
    background-position: center;
    z-index: 10001;
    /* Más arriba que el preloader/navbar */
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transform: translateX(100%);
    /* Oculto inicialmente a la derecha */
}

.page-transition-inner {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.transition-logo {
    width: clamp(180px, 50vw, 400px);
    /* De 180px en móvil a 400px en desktop */
    height: auto;
    max-width: 85%;
    /* Seguridad para que nunca se salga en móviles pequeños */
    filter: drop-shadow(0 10px 30px rgba(0, 214, 135, 0.15));
}

/* --- HEADER GLASSMORPHISM --- */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(247, 247, 248, 0.8); /* White Depth Tint */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 10000;
    transition: transform 0.4s ease, background 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.brand-logo img {
    /* Fase 5.7: logo grande con drop-shadow muy sutil para destacar sobre el header */
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 1px 2px rgba(10, 25, 47, 0.06));
}

.brand-logo img:hover {
    transform: scale(1.05);
}

/* Navegación */
.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-item {
    /* Fase 5.7: tracking elegante + transición premium 180ms + lift sutil */
    position: relative;
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 1.8px;
    color: var(--text-main);
    cursor: pointer;
    padding: 12px 4px;
    opacity: 1;
    transition: color 0.18s ease, transform 0.18s ease;
}

.nav-item a {
    color: inherit;
    transition: color 0.18s ease;
}

.nav-item:hover,
.nav-item:hover a {
    color: #1AC97D;
}
.nav-item:hover {
    transform: translateY(-1px);
}

/* Submenú (Sencillo por ahora, se puede mejorar a mega-menu) */
.sub-nav {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(10, 25, 47, 0.08);
    border-radius: 12px;
    padding: 15px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 22px 55px rgba(10, 25, 47, 0.11), inset 0 1px 0 rgba(255,255,255,0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* Puente invisible para evitar el flickering al bajar el cursor */
.sub-nav::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.nav-item:hover .sub-nav {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.sub-nav a {
    display: block;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.sub-nav a:hover {
    background: rgba(0, 214, 135, 0.1);
    color: var(--text-main);
}

/* Botones (Fase 5.13: Login button más elegante, menos alto, hover invertido) */
.btn-primary {
    background: var(--text-main);
    color: var(--bg-main);
    padding: 9px 22px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 12.5px;
    letter-spacing: 1px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(10, 25, 47, 0.10);
}
.btn-primary:hover {
    background: #1AC97D;
    color: #0A192F;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(26, 201, 125, 0.30);
}

.btn-primary:hover {
    background: var(--accent-green);
    color: var(--text-main);
}

.btn-primary.large {
    padding: 18px 40px;
    font-size: 16px;
}

/* --- ESTRUCTURA SPA --- */
.view-section {
    display: none;
    padding-top: var(--header-height);
    min-height: 100vh;
    position: relative;
    /* Crítico para que el fondo se posicione bien */
}

.view-section.active-view {
    display: block;
    animation: fadeInView 0.8s ease forwards;
}

@keyframes fadeInView {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- HERO REDESIGN: WHITE DEPTH SYSTEM --- */
.hero-wrapper {
    position: relative;
    /* Fase 5: hero ocupa la pantalla MENOS el ticker (54px aprox), todo entra sin scroll */
    min-height: calc(100vh - var(--header-height) - 54px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(0, 214, 135, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 15% 85%, rgba(25, 183, 198, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #f7faf9 0%, #ffffff 50%, #f0faf5 100%);
    padding: 60px 6% 40px 6%;
    overflow: hidden;
}

/* Fase 5.11: imagen de fondo en MÁXIMA CALIDAD (sin blur) */
.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    z-index: 0;
    pointer-events: none;
    /* Sin blur, sin opacity reducida — la imagen se ve crisp y premium */
    filter: contrast(1.05) saturate(1.08);
}

/* Overlay degradado encima de la imagen para legibilidad del texto a la izquierda */
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    /* Fase 5.6: overlay sólo en lado izquierdo (texto legible).
       Lado derecho = imagen full visible con contraste subido. */
    background: linear-gradient(90deg,
        rgba(247, 250, 249, 0.88) 0%,
        rgba(255, 255, 255, 0.55) 22%,
        rgba(255, 255, 255, 0.10) 42%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Mobile: imagen oculta para ahorrar peso visual */
@media (max-width: 768px) {
    .hero-bg-img {
        display: none;
    }
    .hero-bg-overlay {
        display: none;
    }
}

/* Fase 1 rediseño: glows verdes flotantes detrás del contenido (estilo SaaS premium) */
.hero-wrapper::before,
.hero-wrapper::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.hero-wrapper::before {
    top: 10%;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 214, 135, 0.22) 0%, transparent 70%);
    filter: blur(50px);
    animation: heroGlow 8s ease-in-out infinite alternate;
}
.hero-wrapper::after {
    bottom: 5%;
    left: -180px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(25, 183, 198, 0.18) 0%, transparent 70%);
    filter: blur(60px);
    animation: heroGlow 10s ease-in-out infinite alternate-reverse;
}
@keyframes heroGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.7; }
    100% { transform: scale(1.15) translate(20px, -20px); opacity: 1; }
}

.hero-watermark {
    /* Fase 5: oculto para no competir con el logo del header y la imagen de fondo */
    display: none;
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 6rem);
    font-weight: 900;
    
    /* Efecto de Profundidad (3D sutil) */
    color: rgba(0, 0, 0, 0.04);
    text-shadow: 
        1px 1px 0px rgba(255,255,255,0.8), 
        -1px -1px 1px rgba(0,0,0,0.02);
    
    white-space: nowrap;
    user-select: none;
    z-index: 0;
    pointer-events: none;
    letter-spacing: 0.15em;
    filter: blur(0.5px); /* Suavizado para profundidad de campo */
}

.hero-content-split {
    /* Fase 5.11: solo texto+form a la izquierda, imagen completa al fondo */
    display: block;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    width: 100%;
}
.hero-content-split .hero-text-side {
    max-width: 580px;
}

/* Form simple estilo WinnerOdds (Fase 5.13: más corto, más aire, más premium) */
.hero-simple-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 360px;
    margin-top: 8px;
}

.hero-simple-input {
    width: 100%;
    padding: 16px 24px;
    border: 1px solid rgba(10, 25, 47, 0.12);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 15px;
    color: #0a0e1a;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 6px 20px rgba(10, 25, 47, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.25s ease;
    letter-spacing: 0.02em;
}
.hero-simple-input::placeholder {
    color: rgba(10, 25, 47, 0.42);
    font-weight: 400;
}
.hero-simple-input:focus {
    outline: none;
    border-color: #1AC97D;
    box-shadow:
        0 6px 20px rgba(10, 25, 47, 0.06),
        0 0 0 4px rgba(26, 201, 125, 0.10);
}

.hero-simple-submit {
    width: 100%;
    padding: 20px 24px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: #0A192F;
    background: linear-gradient(135deg, #1AC97D 0%, #10B271 50%, #0EA66B 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08),
        0 10px 26px rgba(14, 166, 107, 0.20),
        0 2px 6px rgba(14, 166, 107, 0.10);
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, background 0.18s ease;
}
.hero-simple-submit:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #20D385 0%, #14C078 50%, #11B074 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 0 28px rgba(20, 192, 120, 0.32),
        0 14px 32px rgba(14, 166, 107, 0.28);
}
.hero-simple-submit:active {
    transform: translateY(0) scale(0.985);
}

.hero-text-side {
    text-align: left;
    max-width: 580px;
}

/* Label del form (Fase 5.13: serio sin emoji, más profesional) */
.hero-form-prompt {
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(10, 25, 47, 0.55);
    margin: 30px 0 14px 0;
    text-transform: uppercase;
    font-weight: 500;
}

/* Form invite más compacto */
.hero-form-side .form-invite {
    margin-bottom: 18px;
    font-size: 0.72rem;
    line-height: 1.6;
    color: rgba(10, 25, 47, 0.62);
    letter-spacing: 0.06em;
}

/* Inputs y submit más compactos pero el botón GRANDE */
.hero-form-side .simple-signup-form {
    gap: 14px;
}
.hero-form-side .line-field {
    padding-bottom: 8px;
}
.hero-form-side .line-field input {
    font-size: 14px;
    padding: 6px 0;
}
/* Botón submit premium — Fase 5.8 (texto más amplio, magnetismo refinado) */
.hero-form-side .simple-submit {
    width: 100%;
    margin-top: 10px;
    padding: 18px 14px;
    font-size: 13.5px;
    letter-spacing: 2.2px;
    font-weight: 500;
    background: linear-gradient(135deg, #1AC97D 0%, #10B271 50%, #0EA66B 100%);
    color: #0A192F;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    /* Sombra interna sutil + sombra externa controlada */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08),
        0 8px 22px rgba(14, 166, 107, 0.18),
        0 2px 6px rgba(14, 166, 107, 0.10);
    transition:
        transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.18s ease,
        background 0.18s ease;
}
.hero-form-side .simple-submit:hover {
    /* Hover lift 2px + glow controlado, transición buttery 180ms */
    transform: translateY(-2px);
    background: linear-gradient(135deg, #20D385 0%, #14C078 50%, #11B074 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -1px 0 rgba(0, 0, 0, 0.06),
        0 0 28px rgba(20, 192, 120, 0.32),
        0 14px 32px rgba(14, 166, 107, 0.28);
}
.hero-form-side .simple-submit:active {
    transform: translateY(0) scale(0.985);
    transition-duration: 0.12s;
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.10),
        0 4px 10px rgba(14, 166, 107, 0.18);
}

/* Trust cues debajo del CTA (Fase 5.7) */
.form-trust-cues {
    margin: 14px 0 0 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 10.5px;
    letter-spacing: 1px;
    color: rgba(10, 25, 47, 0.45);
    text-align: center;
    text-transform: uppercase;
    font-weight: 500;
}

/* Ilustración del hero (Fase 2 rediseño: GIGANTE para que llene la columna derecha) */
.hero-image-side {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* Permitir que la imagen "sangre" hacia la derecha del viewport */
    margin-right: -8vw;
}

.hero-illustration {
    width: 100%;
    max-width: 1000px; /* Mucho más grande que antes (era 720) */
    height: auto;
    object-fit: contain;
    /* Drop-shadow VERDE intensa para que la imagen "flote" con identidad */
    filter:
        drop-shadow(0 50px 100px rgba(0, 214, 135, 0.22))
        drop-shadow(0 25px 50px rgba(10, 25, 47, 0.12));
    animation: heroFloat 7s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.hero-eyebrow {
    font-size: 12px;
    letter-spacing: 5px;
    color: var(--accent-green);
    /* Fase 6E: margin reducido para compactar el hero */
    margin-bottom: 24px;
    display: block;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-heading);
    /* Fase 5.8: relojero — respira 3% más entre líneas */
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 0.98;
    margin-bottom: 28px;
    font-weight: 400;
    color: var(--primary-blue);
    letter-spacing: -0.035em;
    text-transform: uppercase;
}
.hero-title .line {
    display: inline;
}
.hero-title .word {
    display: inline-block;
}

.hero-subtitle {
    /* Fase 5.13: respira más caro */
    font-size: clamp(1.05rem, 1.2vw, 1.22rem);
    color: #0a0e1a;
    max-width: 400px;
    line-height: 1.6;
    margin-top: 30px;
    border-left: 2px solid #1AC97D;
    padding-left: 22px;
    font-weight: 500;
    letter-spacing: 0.005em;
}

/* CARDS CON PROFUNDIDAD REAL (Linear Style) */
.depth-card {
    background: var(--bg-secondary);
    border: var(--depth-border);
    box-shadow: var(--depth-shadow-soft);
    border-radius: var(--radius-premium);
    padding: 48px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

.depth-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--depth-shadow-hover);
}

.form-card {
    max-width: 430px;
    margin-left: auto;
}

.hero-form-side {
    display: flex;
    justify-content: flex-end;
}

.simple-signup-card {
    /* Fase 5.8: glass premium con fade-in on load (motion silencioso) */
    width: 100%;
    max-width: 100%;
    display: block;
    margin: 0;
    padding: 32px 34px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(44px) saturate(180%);
    -webkit-backdrop-filter: blur(44px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.48);
    box-shadow:
        0 80px 160px rgba(10, 25, 47, 0.06),
        0 32px 80px rgba(10, 25, 47, 0.04),
        0 1px 3px rgba(10, 25, 47, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    animation: formFadeIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

/* Form fade on load (motion silencioso) */
@keyframes formFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(-10px);
    }
}

/* CTA hover respirado — glow oscila lento */
@keyframes ctaBreath {
    0%, 100% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.55),
            inset 0 -1px 0 rgba(0, 0, 0, 0.06),
            0 0 28px rgba(20, 192, 120, 0.32),
            0 14px 32px rgba(14, 166, 107, 0.28);
    }
    50% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.55),
            inset 0 -1px 0 rgba(0, 0, 0, 0.06),
            0 0 38px rgba(20, 192, 120, 0.42),
            0 18px 38px rgba(14, 166, 107, 0.32);
    }
}
.hero-form-side .simple-submit:hover {
    animation: ctaBreath 2.4s ease-in-out infinite;
}

.signup-copy {
    min-width: 0;
}

.form-invite {
    max-width: 280px;
    margin: 0 0 24px;
    color: rgba(10, 25, 47, 0.68);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    line-height: 1.9;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.simple-signup-form {
    display: grid;
    gap: 22px;
}

/* Fase 5.8: Form panel de sistema — line divisoria fina, labels técnicos */
.line-field {
    display: grid;
    gap: 6px;
    border-bottom: 1px solid rgba(10, 25, 47, 0.12);
    padding-bottom: 10px;
    transition: border-color 0.25s ease;
}

.line-field span {
    color: rgba(10, 25, 47, 0.42);
    font-family: var(--font-heading);
    font-size: 9.5px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    font-weight: 500;
}

.line-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #0a0e1a;
    font-family: var(--font-body);
    font-size: 14px;
    letter-spacing: 0.02em;
    line-height: 1.4;
    text-transform: none;
    font-weight: 500;
}

.line-field input::placeholder {
    color: rgba(10, 25, 47, 0.40);
    font-family: var(--font-body);
    letter-spacing: 0.02em;
    text-transform: none;
    font-weight: 400;
}

.line-field input:focus {
    outline: none;
}

.line-field:focus-within {
    border-color: #1AC97D;
    border-bottom-width: 1.5px;
}
.line-field:focus-within span {
    color: #1AC97D;
}

.simple-submit {
    /* Fase 5: gradient verde premium + texto negro elegante */
    width: 150px;
    margin-top: 10px;
    padding: 13px 20px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #42D98A 0%, #27C96E 100%);
    color: #0A192F;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.simple-submit:hover {
    /* Fase 5: glow verde premium en hover */
    transform: translateY(-2px);
    background: linear-gradient(135deg, #4DE89A 0%, #2FD97B 100%);
    box-shadow:
        0 0 30px rgba(0, 214, 135, 0.45),
        0 12px 28px rgba(0, 214, 135, 0.30);
}

.form-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
    text-transform: uppercase;
    line-height: 1.25;
}

.form-card p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.lead-success {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0, 214, 135, 0.09);
    border: 1px solid rgba(0, 214, 135, 0.2);
    color: var(--primary-blue);
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
}
/* --- SECCIÓN FISHBONE (ARQUITECTURA DE VALOR) --- */
.fishbone-section {
    padding: 120px 0;
    background: #ffffff;
    overflow: hidden;
}

.fishbone-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 40px 0;
}

/* El eje central (Spine) */
.fishbone-spine {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(0,214,135,0) 0%, rgba(0,214,135,0.4) 15%, rgba(0,214,135,0.4) 85%, rgba(0,214,135,0) 100%);
    transform: translateY(-50%);
    z-index: 1;
}

.fishbone-grid {
    display: flex;
    justify-content: space-around;
    position: relative;
    z-index: 2;
    gap: 20px;
}

.fishbone-item {
    position: relative;
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Líneas que conectan al eje (Bones) */
.bone-line {
    width: 2px;
    height: 60px;
    background: rgba(0,214,135,0.2);
    position: relative;
}

/* Nodo de conexión (El punto en el eje) */
.bone-line::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--accent-green);
}

/* Posicionamiento arriba/abajo */
.fishbone-item.bone-top {
    justify-content: flex-end;
    margin-bottom: 30px; /* Sube la carta */
}
.fishbone-item.bone-top .bone-line { order: 2; }
.fishbone-item.bone-top .bone-card { order: 1; }
.fishbone-item.bone-top .bone-line::after { bottom: -4px; } /* Punto en el extremo inferior del hueso */

.fishbone-item.bone-bottom {
    justify-content: flex-start;
    margin-top: 30px;
}
.fishbone-item.bone-bottom .bone-line { order: 1; }
.fishbone-item.bone-bottom .bone-card { order: 2; }
.fishbone-item.bone-bottom .bone-line::after { top: -4px; } /* Punto en el extremo superior del hueso */

/* La tarjeta con el contenido */
.bone-card {
    padding: 24px !important;
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.bone-card:hover {
    border-color: rgba(0,214,135,0.4);
    transform: translateY(-50px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}

.bone-card h3 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bone-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Responsive Fishbone */
@media (max-width: 992px) {
    .fishbone-spine { display: none; }
    .fishbone-grid {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .fishbone-item {
        width: 100%;
        margin: 0 !important;
    }
    .bone-line { display: none; }
}


.faq-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent-green);
    background: #fff;
}

.faq-item.active {
    background: #fff;
    border-color: var(--accent-green);
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}

.faq-question {
    width: 100%;
    padding: 24px 32px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.faq-item.active .faq-question {
    color: var(--accent-green);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.4s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--accent-green);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 32px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 32px;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-muted);
}

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

.premium-form input {
    width: 100%;
    padding: 18px 20px;
    background: #fcfcfc;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-input);
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.3s ease;
}

.premium-form input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 4px rgba(0, 214, 135, 0.08);
}

.btn-primary.full-width {
    width: 100%;
    padding: 20px;
    margin-top: 10px;
    background: var(--accent-green);
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 214, 135, 0.25);
}

.btn-primary.full-width:hover {
    background: #00f098;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 214, 135, 0.4);
}

.secure-tag {
    display: block;
    text-align: center;
    margin-top: 24px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
}

/* Responsive del hero — Fase 6I: nuevo layout text+form izquierda / imagen derecha */
@media (max-width: 1024px) {
    .hero-content-split {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 30px;
    }
    .hero-text-side {
        text-align: left;
        max-width: 100%;
    }
    .hero-subtitle {
        margin: 0;
    }
    .simple-signup-card {
        max-width: 480px;
    }
    /* Ilustración: aparece DEBAJO del form en tablet+mobile, más chica */
    .hero-image-side {
        order: 2;
        max-width: 420px;
        margin: 20px auto 0 auto;
    }
    .hero-illustration {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    /* En mobile pequeño: ocultar la ilustración completamente para ahorrar espacio
       (la primera vista debe ser texto + form, lo que convierte) */
    .hero-image-side {
        display: none;
    }
    /* Reducir glows en mobile para no saturar pantallas pequeñas */
    .hero-wrapper::before {
        width: 280px;
        height: 280px;
        right: -80px;
        top: 5%;
    }
    .hero-wrapper::after {
        width: 240px;
        height: 240px;
        left: -100px;
        bottom: 0;
    }
}

@media (max-width: 520px) {
    .simple-signup-card {
        grid-template-columns: 1fr;
        width: min(100%, 360px);
        min-height: auto;
        padding: 34px 28px;
    }

    .simple-submit {
        width: 100%;
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-weight: 300;
}


/* --- SECCIÓN ORIGEN & EQUIPO --- */
.origin-card {
    padding: 60px !important;
}

.origin-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: start;
}

.lab-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 3.5rem);
    line-height: 1.2;
    margin: 20px 0 32px 0;
    color: var(--primary-blue);
    text-transform: uppercase;
}

.lab-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.lab-text.highlight {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1.25rem;
}

.roles-list {
    list-style: none;
    padding: 0;
}

.role-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.role-item:last-child {
    border-bottom: none;
}

/* --- SECCIONES GENÉRICAS --- */
.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 100px 4vw;
    position: relative;
    /* Para estar sobre el cinematic-bg */
    z-index: 5;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-green);
}

.bento-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.bento-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-bento);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.bento-card p {
    line-height: 1.6;
    color: var(--text-muted);
}

.icon-placeholder {
    margin-bottom: 20px;
    background: rgba(0, 214, 135, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
}

/* --- TABLA GLASSMORPHISM --- */
.glass-table-container {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-strong);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-bento);
    overflow: hidden;
    padding: 20px;
}

.glass-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.glass-table th,
.glass-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--glass-border);
}

.glass-table th {
    font-family: var(--font-heading);
    color: var(--text-main);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.glass-table tr:last-child td {
    border-bottom: none;
}

.glass-table tr {
    transition: background 0.3s;
}

.glass-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.4);
}

.green-text {
    color: var(--accent-green);
    font-weight: 500;
}

/* --- SECCIÓN LABORATORIO --- */
.bento-card.full-width {
    grid-column: 1 / -1;
}

.lab-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    grid-column: 1 / -1;
}

.lab-title {
    font-size: 2rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    color: var(--text-main);
}

.lab-text {
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.lab-text.highlight {
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 500;
}

.roles-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.roles-container h4 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
}

.glass-list {
    list-style: none;
}

.glass-list-item {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.glass-list-item .bullet {
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
}

.manifesto-box,
.target-box {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.03);
    border-left: 3px solid var(--accent-green);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-main);
}

.blog-placeholder {
    background-image: linear-gradient(rgba(248, 249, 250, 0.8), rgba(248, 249, 250, 0.8)), url('data:image/svg+xml,%3Csvg viewBox=%220 0 200 200%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22noiseFilter%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.65%22 numOctaves=%223%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23noiseFilter)%22/%3E%3C/svg%3E');
    text-align: center;
    padding: 60px 20px !important;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.blog-card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-strong);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 214, 135, 0.3);
}

.blog-date {
    font-size: 0.85rem;
    color: var(--accent-green);
    margin-bottom: 10px;
    font-weight: 500;
}

.blog-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-main);
    line-height: 1.4;
    flex-grow: 1;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.blog-tag {
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- SECCIÓN ALGORITMOS --- */
.algo-card {
    padding: 40px;
    margin-bottom: 30px;
}

.algo-subtitle {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: 500;
}

/* --- SECCIÓN ALGORITMOS (Fix Visual Bug) --- */
.algo-hero-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

@media (max-width: 992px) {
    .algo-hero-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.algo-stats-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}

.algo-stat-box {
    padding: 30px 20px;
    border-right: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.algo-stat-box:nth-child(2n) {
    border-right: none;
}

.algo-stat-box:nth-last-child(-n+2) {
    border-bottom: none;
}

.algo-stat-val {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2vw, 2.2rem);
    /* Reducido ligeramente para evitar desbordamiento */
    color: var(--accent-green);
    margin-bottom: 8px;
    display: block;
    line-height: 1.1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.algo-stat-lbl {
    font-size: 10px;
    /* Reducido para dar más aire */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    opacity: 0.7;
    line-height: 1.4;
}


.bias-card {
    background: linear-gradient(135deg, var(--glass-bg), rgba(0, 214, 135, 0.05));
}

.bias-author {
    color: var(--accent-green);
    font-style: italic;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.bias-theory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.bias-theory-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.red-text {
    color: #ff4757;
    font-weight: 500;
}

/* Responsive extra para Laboratorio y Algoritmos */
@media (max-width: 768px) {
    .lab-split-grid {
        grid-template-columns: 1fr;
    }

    .algo-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bias-theory-grid {
        grid-template-columns: 1fr;
    }

    .algo-card {
        padding: 20px;
    }
}

/* --- FOOTER INTERACTIVO (Lente Mágico) --- */
.main-footer {
    background-color: #050505;
    /* Base ultra oscura */
    position: relative;
    color: #F8F9FA;
    border-top: 1px solid rgba(186, 186, 186, 0.1);
    padding: 40px 40px 18px 40px;
    margin-top: 20px;
    overflow: hidden;
    /* Variables actualizadas por JS */
    --mouse-x: 50%;
    --mouse-y: -100%;
}

/* Fondo oscuro normal (Textura) */
.main-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/dark_paper.png');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

/* Capa Clonada Lente Mágico (Modo Claro) */
.footer-lens {
    position: absolute;
    inset: 0;
    padding: 80px 40px 30px 40px;
    background-color: #F8F9FA;
    /* Blanco/Gris muy claro */
    background-image: url('../img/light_paper.png');
    /* Textura de papel claro */
    background-blend-mode: normal;
    /* Sin oscurecer */
    z-index: 10;
    pointer-events: none;
    /* Deja que el mouse interactúe con el original */
    /* Sombra interna para el lente (opcional, pero ayuda a definirlo) */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
    /* Recorte perfecto en el ratón */
    -webkit-clip-path: circle(180px at var(--mouse-x) var(--mouse-y));
    clip-path: circle(180px at var(--mouse-x) var(--mouse-y));
}

/* Forzar colores oscuros dentro del lente para contraste perfecto con el fondo blanco */
.footer-lens * {
    color: #111111 !important;
}

.footer-lens h4 {
    color: var(--accent-green) !important;
    /* Los títulos en verde para que resalten */
    font-weight: 600;
}

.footer-lens a {
    color: #111111 !important;
    font-weight: 500;
}

.footer-lens a:hover {
    color: var(--accent-green) !important;
}

.footer-lens .footer-logo {
    filter: none !important;
    /* Muestra el logo original a todo color (verde y negro) porque el fondo es blanco */
}

/* Ocultar el cursor global cuando estamos en el footer, ya que el lente es el cursor */
.custom-cursor.footer-mode {
    opacity: 0 !important;
    width: 0;
    height: 0;
}

.footer-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
    /* Texto original */
}

.footer-logo {
    height: 32px;
    margin-bottom: 12px;
    filter: brightness(1) invert(1);
    /* Invertido para que se vea en fondo oscuro */
}

.footer-desc {
    max-width: 300px;
    font-size: 0.88rem;
    color: #BABABA;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

.footer-links {
    position: relative;
    z-index: 2;
}

.footer-links h4 {
    font-family: var(--font-heading);
    margin-bottom: 12px;
    font-size: 1rem;
    color: #F8F9FA;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 6px;
    font-size: 0.88rem;
}

.footer-links a {
    color: #BABABA;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-green);
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 0.78rem;
    position: relative;
    z-index: 2;
}

.responsible-gaming {
    color: #BABABA;
    opacity: 0.8;
}

/* --- RESPONSIVE FIXES & MOBILE OPTIMIZATION --- */

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 0;
}

.nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
    border-radius: 2px;
}

@media (max-width: 992px) {
    .audit-bar-wrapper {
        margin: 20px auto 60px auto;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 100px;
        padding-bottom: 60px;
        overflow-y: auto;
        gap: 25px;
        transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1050;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        display: flex;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav.active {
        right: 0;
    }

    /* Reducción general de tamaños para un look más "pequeño y ordenado" */
    :root {
        --header-height: 60px;
    }

    .header-container {
        padding: 0 4vw;
        height: var(--header-height);
    }

    .logo-container img {
        height: 24px;
        /* Más pequeño */
    }

    .nav-toggle {
        width: 35px;
        height: 35px;
    }

    .nav-item {
        font-size: 18px;
        /* Reducido de 20px */
        margin: 15px 0;
    }

    .sub-nav a {
        font-size: 14px;
        /* Reducido de 16px */
    }

    .section-container {
        padding: 40px 5vw;
        /* Reducido de 60px */
    }

    .section-title {
        font-size: 1.8rem;
        /* Reducido de 2.2rem */
    }

    .hero-title {
        font-size: 1.6rem;
        /* Reducido */
    }

    /* Preloader Mobile Fix - Aún más pequeño */
    .preloader-logo {
        height: 80px;
        margin-bottom: 25px;
    }

    .preloader-content {
        width: 220px;
    }

    .preloader-text {
        font-size: 9px;
    }

    .sub-nav {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 10px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .sub-nav a {
        font-size: 14px;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }

    .header-actions {
        display: none;
        /* Hide VIP on mobile header to save space, or move to nav */
    }

    .main-nav .header-actions {
        display: block;
    }
}

/* Ring Section (El Motor) Responsive */
.ring-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    min-height: 80vh;
}

@media (max-width: 992px) {
    .ring-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 100px;
        padding-top: 60px;
    }

    .ring-left-sticky,
    .ring-right-sticky {
        position: relative !important;
        top: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .ring-left p {
        margin: 0 auto;
    }

    /* Reducir el radio del anillo para que no se salga de la pantalla */
    .ring-3d {
        transform: scale(0.7);
    }
}

/* Bento Grid Responsive */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-container {
        padding: 60px 5vw;
    }

    /* Preloader Mobile Fix */
    .preloader-logo {
        height: 100px;
        margin-bottom: 30px;
    }

    .preloader-content {
        width: 260px;
    }

    .preloader-text {
        font-size: 10px;
        letter-spacing: 2px;
    }
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-desc {
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

/* --- MARQUEE INTERACTIVO (Scroll Driven) --- */
.marquee-freeze-section {
    background: #000 !important;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 100;
}

.marquee-scroll-container {
    padding: 120px 0;
    overflow: hidden;
    background: #000;
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
    min-height: 50vh;
}

.marquee-row {
    display: flex;
    white-space: nowrap;
    width: fit-content;
}

.marquee-text {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5.5vw, 5.5rem);
    text-transform: uppercase;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.4);
    padding: 0 40px;
    letter-spacing: 0.1em;
    transition: color 0.3s, -webkit-text-stroke 0.3s;
}

.marquee-text.highlight {
    color: var(--accent-green);
    -webkit-text-stroke: 0;
    text-shadow: 0 0 20px rgba(0, 214, 135, 0.4);
}

/* Table Responsive */
.glass-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.glass-table {
    min-width: 600px;
}

/* General spacing fixes */
section {
    overflow: hidden;
}

/* =======================================================
   MASTER VISUAL CMS — SELECTION & MODAL STYLES
   ======================================================= */

.admin-visual-enabled [data-section] {
    cursor: pointer !important;
    position: relative;
    transition: box-shadow 0.3s ease, filter 0.3s ease;
    min-height: 20px;
    /* Evitar colapso si está vacío */
}

.admin-visual-enabled [data-section].admin-section-hover {
    box-shadow: inset 0 0 0 2px var(--accent-green), 0 0 40px rgba(0, 214, 135, 0.2);
    z-index: 1000;
}

/* Etiqueta flotante de EDITAR */
.admin-edit-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-green);
    color: #000;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(0, 214, 135, 0.3);
    pointer-events: none;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-edit-label i {
    width: 12px;
    height: 12px;
}

/* QUICK EDIT MODAL */
#admin-quick-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    /* Se activa por JS */
    align-items: center;
    justify-content: center;
}

.quick-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.quick-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-modal-header {
    padding: 24px 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quick-modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 2px;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.close-modal:hover {
    opacity: 1;
}

.quick-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
}

.quick-field {
    margin-bottom: 24px;
}

.quick-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.quick-modal-footer {
    padding: 24px 40px;
    background: #F8F9FA;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: flex-end;
}

.btn-save-quick {
    background: var(--text-main);
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-save-quick:hover {
    background: var(--accent-green);
    color: #000;
    transform: translateY(-2px);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- INLINE EDITING STYLES --- */
.admin-visual-enabled [data-field] {
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 2px 4px;
}

.admin-visual-enabled [data-field]:hover {
    background: rgba(0, 214, 135, 0.08) !important;
    outline: 2px dashed var(--accent-green) !important;
    outline-offset: 4px;
    cursor: pointer !important;
    z-index: 1000;
}

.admin-visual-enabled [data-field]:focus {
    outline: none !important;
    background: rgba(0, 214, 135, 0.1);
    box-shadow: 0 0 0 2px var(--accent-green);
}

/* Master Visual Console - Cinematic Styles */
.hero-cinematic-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    overflow: hidden;
    min-height: 400px;
}

.admin-visual-enabled .hero-cinematic-wrapper {
    min-height: 550px !important;
    /* Espacio extra para editar el fondo en admin */
}

.cinematic-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.cinematic-bg .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    filter: blur(8px);
}

.cinematic-bg .hero-bg.loaded {
    opacity: 0.6;
}

.cinematic-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 214, 135, 0.1), transparent 80%);
    z-index: 2;
    pointer-events: none;
}

.scanlines {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.05) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.01), rgba(0, 255, 0, 0.005), rgba(0, 0, 255, 0.01));
    background-size: 100% 4px, 3px 100%;
    z-index: 3;
    pointer-events: none;
    opacity: 0.3;
}

/* --- FILOSOFÍA & METODOLOGÍA LAYOUT --- */
.ring-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
    position: relative;
    background: #ffffff;
}

.ring-left {
    flex: 0 0 45%;
    position: relative;
    background: #ffffff;
    border-right: 1px solid rgba(0,0,0,0.03);
}

.ring-left-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8vw 0 6vw;
}

/* Barra de progreso vertical */
.progress-vertical {
    position: absolute;
    left: 2vw;
    top: 20vh;
    height: 60vh;
    width: 2px;
    background: rgba(0,0,0,0.05);
}

.progress-bar-inner {
    width: 100%;
    height: 0%;
    background: var(--accent-green);
    box-shadow: 0 0 15px var(--accent-green);
}


.ring-right {
    flex: 0 0 55%;
    position: relative;
    padding: 0 6vw;
}

/* Scroll Masks para bordes suave */
.ring-section::before,
.ring-section::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 15vh;
    z-index: 10;
    pointer-events: none;
}
.ring-section::before {
    top: 0;
    background: linear-gradient(to bottom, #ffffff 0%, rgba(255,255,255,0) 100%);
}
.ring-section::after {
    bottom: 0;
    background: linear-gradient(to top, #ffffff 0%, rgba(255,255,255,0) 100%);
}

/* --- METODOLOGÍA (REPLAZO DE ANILLO 3D) --- */
.methodology-steps {
    padding: 5vh 0 6vh 0; /* Compacto: poco espacio arriba y abajo */
}

.method-step {
    position: relative;
    padding: 28px 32px;
    margin-bottom: 28px;
    border-radius: 24px;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(5px);
}

.method-step.active {
    background: #ffffff;
    border-color: rgba(0,214,135,0.2);
    box-shadow: 0 30px 60px rgba(0,0,0,0.04);
}

.step-num-badge {
    position: absolute;
    top: -20px;
    right: 40px;
    background: var(--accent-green);
    color: #000;
    font-family: var(--font-heading);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    box-shadow: 0 10px 20px rgba(0,214,135,0.2);
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: var(--text-main);
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.4;
}

.step-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(26,26,26,0.65);
    font-weight: 300;
}

.methodology-conclusion-full {
    width: 100%;
    background: #ffffff;
    padding: 60px 4vw; /* Menos espacio desperdiciado */
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.02);
}

.conclusion-text {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2vw, 1.8rem); /* Tamaño elegante, no exagerado */
    line-height: 1.6;
    color: rgba(26, 26, 26, 0.8); /* Gris profundo elegante */
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
    font-style: italic; /* Toque editorial elegante */
    letter-spacing: 0.02em;
}

/* --- FISHBONE ARCHITECTURE (FACTOR DIFERENCIAL) --- */
.fishbone-section {
    padding: 120px 0;
    overflow: visible;
}

.fishbone-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 100px auto 140px auto;
    padding: 0 40px;
}

.fishbone-spine {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,214,135,0.3) 10%, rgba(0,214,135,0.3) 90%, transparent);
    z-index: 1;
}

.fishbone-spine::after {
    content: '';
    position: absolute;
    top: -3px;
    right: 10%;
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-green);
}

.fishbone-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    min-height: 500px;
}

.fishbone-item {
    position: relative;
    width: 22%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bone-card {
    padding: 32px !important;
    max-width: 300px;
    text-align: center;
}

.bone-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    color: var(--primary-blue);
}

.bone-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.bone-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--accent-green), transparent);
    margin: 0 auto;
}

/* Posicionamiento Alternado */
.fishbone-item.bone-top {
    margin-bottom: 250px; /* Sube la carta */
}

.fishbone-item.bone-top .bone-line {
    order: 2; /* Línea debajo de la carta */
    background: linear-gradient(to top, var(--accent-green), transparent);
}

.fishbone-item.bone-bottom {
    margin-top: 250px; /* Baja la carta */
}

.fishbone-item.bone-bottom .bone-line {
    order: 1; /* Línea encima de la carta */
    background: linear-gradient(to bottom, var(--accent-green), transparent);
}

/* Responsive */
@media (max-width: 1024px) {
    .fishbone-spine { display: none; }
    .fishbone-grid {
        flex-direction: column;
        gap: 40px;
        min-height: auto;
    }
    .fishbone-item {
        width: 100%;
        margin: 0 !important;
    }
    .bone-line { display: none; }
}
.admin-visual-enabled .cinematic-bg {
    pointer-events: auto !important;
}

.admin-visual-enabled .hero-bg {
    opacity: 0.9 !important;
    filter: none !important;
}


.admin-visual-enabled .glass-header {
    top: 40px !important;
}

#admin-toolbar {
    animation: slideDown 0.5s ease-out;
}

/* --- CONCLUSIÓN METODOLOGÍA (3D & COMPACT) --- */
.methodology-conclusion-full {
    width: 100%;
    background: #ffffff;
    padding: 40px 4vw; /* Espacio reducido significativamente */
    display: flex;
    justify-content: center;
}

.conclusion-highlight-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 240, 240, 0.8) 100%);
    border: 1px solid rgba(0, 214, 135, 0.2);
    border-top: 4px solid var(--accent-green);
    padding: 60px 80px;
    border-radius: 32px;
    max-width: 1000px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08), 
                inset 0 0 20px rgba(0, 214, 135, 0.05);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.conclusion-highlight-box::before {
    content: 'AI SUCCESS';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--accent-green);
    font-weight: 900;
    opacity: 0.5;
}

.3d-text {
    font-family: var(--font-heading) !important;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.1;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    text-align: center;
    /* 3D DEEP RELIEF */
    text-shadow: 
        0 1px 0 #ccc,
        0 2px 0 #c9c9c9,
        0 3px 0 #bbb,
        0 4px 0 #b9b9b9,
        0 5px 0 #aaa,
        0 6px 1px rgba(0,0,0,.1),
        0 0 5px rgba(0,0,0,.1),
        0 1px 3px rgba(0,0,0,.3),
        0 3px 5px rgba(0,0,0,.2),
        0 5px 10px rgba(0,0,0,.25),
        0 10px 10px rgba(0,0,0,.2),
        0 20px 20px rgba(0,0,0,.15);
    transform: perspective(1000px) rotateX(5deg);
}

/* --- FAQ ACCORDION --- */
.faq-accordion {
    max-width: 900px;
    margin: 20px auto 100px auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.faq-item:hover {
    border-color: var(--accent-green);
    background: #fff;
    transform: translateY(-2px);
}

.faq-item.active {
    background: #fff;
    border-color: var(--accent-green);
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}

.faq-question {
    width: 100%;
    padding: 24px 32px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.faq-item.active .faq-question {
    color: var(--accent-green);
    padding-bottom: 12px;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(0,0,0,0.3);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--accent-green);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 32px;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 800px;
    padding-bottom: 32px;
    opacity: 1;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-muted);
}

/* --- FISHBONE ANIMATION OVERRIDES --- */
.spine-glow-tip {
    position: absolute;
    left: 0;
    width: 12px;
    height: 12px;
    top: -5px;
    background: var(--accent-green);
    box-shadow: 0 0 20px var(--accent-green), 0 0 40px var(--accent-green);
    border-radius: 50%;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

.bone-line {
    height: 0;
    overflow: visible;
}

.bone-card {
    opacity: 0;
}

.fishbone-spine, .spine-glow-tip {
    pointer-events: none !important;
}

.fishbone-item {
    pointer-events: auto !important;
}

/* --- LAYOUT FIXES: GAP REDUCTION --- */
.fishbone-section {
    padding: 60px 0 0 0 !important;
}

.fishbone-wrapper {
    margin: 40px auto -180px auto !important;
}

.faq-accordion {
    margin-top: -50px !important;
    position: relative;
    z-index: 20;
}

/* --- APP SHOWCASE & CSS MOCKUPS --- */
.app-showcase-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

.app-showcase-stack {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.app-feature-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
}

.app-feature-row.reverse {
    flex-direction: row-reverse;
}

.app-feature-text {
    flex: 1;
    max-width: 450px;
}

.app-feature-text h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 24px;
    line-height: 1.2;
}

.app-feature-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* EL CELULAR (MOCKUP) */
.mockup-phone {
    width: 280px;
    height: 560px;
    background: #ffffff;
    border: 12px solid #0A0A0B; /* Marco estilo iPhone */
    border-radius: 44px;
    position: relative;
    box-shadow: 0 50px 100px rgba(0,0,0,0.1), 
                0 0 0 4px rgba(0,0,0,0.05);
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    transform-style: preserve-3d;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #0A0A0B;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #F8F9FA;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    transform: rotateX(var(--phone-tilt-x, 0deg)) rotateY(var(--phone-tilt-y, 0deg));
}

.app-header {
    padding: 40px 20px 15px 20px;
    background: linear-gradient(180deg, #060A12 0%, #0A192F 100%);
    color: var(--accent-green);
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 2px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 214, 135, 0.18);
}

.app-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.app-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* UI Components */
.bookie-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.bookie-pill {
    background: white;
    border: 1px solid #eee;
    padding: 8px;
    border-radius: 10px;
    font-size: 10px;
    text-align: center;
    color: #444;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.bookie-pill.active {
    background: #0A0A0B;
    color: white;
    border-color: #0A0A0B;
    box-shadow: 0 8px 18px rgba(10, 25, 47, 0.16);
}

.match-card {
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.match-teams {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.match-odds {
    display: flex;
    gap: 5px;
}

.odd-box {
    flex: 1;
    background: #f1f1f1;
    padding: 6px;
    border-radius: 6px;
    font-size: 11px;
    text-align: center;
    font-weight: 700;
}

.odd-box.green {
    background: var(--accent-green);
    color: #0A0A0B;
}

.bankroll-input {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin: 20px 0;
    color: #0A0A0B;
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.toggle-switch {
    width: 34px;
    height: 20px;
    background: #ddd;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
}

.toggle-switch.active {
    background: var(--accent-green);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: 0.3s;
}

.toggle-switch.active::after {
    left: 16px;
}

.app-btn {
    background: #0A0A0B;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    margin-top: auto;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dash-stat {
    background: #0A0A0B;
    color: white;
    padding: 20px;
    border-radius: 16px;
}

.dash-stat span { font-size: 10px; opacity: 0.6; }
.dash-stat strong { display: block; font-size: 20px; margin-top: 5px; color: var(--accent-green); }

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 11px;
    color: #666;
}

.dash-chart {
    height: 100px;
    margin-top: 10px;
    background: white;
    border-radius: 12px;
    padding: 10px;
}

/* Responsive App Showcase */
@media (max-width: 900px) {
    .app-feature-row, .app-feature-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .app-feature-text {
        max-width: 100%;
    }
}

/* --- RICH MOCKUP COMPONENTS --- */
.app-search-bar {
    background: #eee;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 10px;
    color: #999;
    margin-bottom: 10px;
}

.bookie-grid.scrollable {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 5px;
}

.app-bottom-nav {
    margin: auto -6px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px;
    border: 1px solid rgba(10, 25, 47, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 28px rgba(10, 25, 47, 0.06);
    font-size: 14px;
}

.app-bottom-nav .nav-item {
    width: 36px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    opacity: 0.55;
    color: #5D6675;
    transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.app-bottom-nav .nav-item.active {
    opacity: 1;
    color: var(--primary-blue);
    background: rgba(0, 214, 135, 0.14);
    box-shadow: inset 0 0 0 1px rgba(0, 214, 135, 0.18);
}

.app-filter-bar {
    padding: 10px 20px;
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(10, 25, 47, 0.08);
    box-shadow: 0 10px 22px rgba(10, 25, 47, 0.035);
}

.filter-dot { width: 8px; height: 8px; border-radius: 50%; }
.filter-dot.green { background: #00d687; }
.filter-dot.red { background: #FF4D4D; }
.filter-dot.blue { background: #4D79FF; }
.filter-dot.grey { background: #DDD; }

.match-card-rich {
    background: white;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.match-meta { font-size: 9px; color: #999; margin-bottom: 4px; }
.match-teams { font-size: 11px; font-weight: 700; margin-bottom: 10px; }

.odds-row {
    display: flex;
    gap: 4px;
}

.odd-col {
    flex: 1;
    background: #f8f8f8;
    padding: 6px 2px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.odd-col span { display: block; font-size: 7px; color: #999; margin-bottom: 2px; }
.odd-col strong { font-size: 10px; color: #333; }
.odd-col.active { background: #E6FFF5; border-color: #00d687; }
.odd-col.active strong { color: #00d687; }

.app-btn-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.app-btn.outline {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
}

.dash-stat-compact {
    background: #0A0A0B;
    color: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.dash-stat-compact span { font-size: 9px; opacity: 0.6; }
.dash-stat-compact strong { display: block; font-size: 18px; color: var(--accent-green); }

.dash-grid-rich {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.stat-item {
    background: white;
    padding: 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
}

.stat-item span { display: block; font-size: 8px; color: #999; font-weight: 400; margin-bottom: 2px; }

.dash-chart-rich {
    margin-top: 15px;
    background: white;
    padding: 12px;
    border-radius: 12px;
}

.chart-label { font-size: 9px; font-weight: 600; color: #999; margin-bottom: 8px; }
.dash-chart-rich svg { height: 60px; width: 100%; }

.app-content.scrollable {
    overflow-y: auto;
}

.mockup-phone.is-interacting .phone-screen {
    box-shadow: inset 0 0 0 1px rgba(0, 214, 135, 0.06);
}

.mockup-phone::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    background: radial-gradient(circle at var(--phone-glow-x, 50%) var(--phone-glow-y, 24%), rgba(0, 214, 135, 0.16), transparent 34%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: 2;
}

.mockup-phone.is-interacting::after {
    opacity: 1;
}

.bookie-pill:hover,
.odd-col:hover,
.app-bottom-nav .nav-item:hover {
    transform: translateY(-2px);
}

.odd-col.active {
    box-shadow: 0 8px 16px rgba(0, 214, 135, 0.12);
}

.app-btn.is-pressed {
    transform: scale(0.96);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

/* --- UX POLISH: contraste, color y profundidad sin cambiar estructura --- */
.view-section,
.section-container {
    --section-accent: var(--accent-green);
}

.ring-section,
#ring-section {
    --section-accent: var(--accent-cyan);
}

.section-container[data-section="lab_origin"] {
    --section-accent: var(--accent-amber);
}

.section-container[data-section="lab_diff_warning"] {
    --section-accent: var(--accent-green);
}

.section-container[data-section="lab_app_features"] {
    --section-accent: var(--accent-cyan);
}

.section-container[data-section="lab_faq"] {
    --section-accent: var(--accent-coral);
}

.glass-header {
    background: rgba(251, 252, 252, 0.86);
    box-shadow: 0 14px 40px rgba(10, 25, 47, 0.055);
}

.hero-wrapper {
    background:
        linear-gradient(112deg, rgba(0, 214, 135, 0.075) 0%, rgba(0, 214, 135, 0) 28%),
        linear-gradient(245deg, rgba(25, 183, 198, 0.07) 0%, rgba(25, 183, 198, 0) 30%),
        var(--bg-main);
    border-bottom: 1px solid rgba(10, 25, 47, 0.045);
}

.hero-wrapper::after {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 214, 135, 0.35), rgba(25, 183, 198, 0.22), transparent);
    pointer-events: none;
}

.hero-watermark {
    color: rgba(10, 25, 47, 0.052);
    text-shadow:
        2px 2px 0 rgba(255, 255, 255, 0.9),
        -1px -1px 0 rgba(10, 25, 47, 0.025);
}

.hero-title,
.section-title,
.lab-title {
    text-shadow: 0 12px 34px rgba(10, 25, 47, 0.075);
}

.hero-subtitle {
    color: rgba(10, 25, 47, 0.74);
    border-left-color: rgba(0, 214, 135, 0.72);
}

.simple-signup-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 253, 252, 0.86)),
        linear-gradient(115deg, rgba(0, 214, 135, 0.06), rgba(25, 183, 198, 0.025));
    border-color: rgba(10, 25, 47, 0.07);
    box-shadow: var(--shadow-deep), var(--inner-highlight);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.simple-signup-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 214, 135, 0.18);
    box-shadow: 0 40px 110px rgba(10, 25, 47, 0.13), var(--inner-highlight);
}

.line-field {
    border-bottom-color: rgba(10, 25, 47, 0.28);
}

.line-field:focus-within {
    box-shadow: 0 9px 18px -18px var(--accent-green);
}

.simple-submit {
    box-shadow: 0 14px 34px rgba(0, 214, 135, 0.22);
}

.depth-card,
.faq-item,
.match-card-rich,
.stat-item,
.dash-chart-rich {
    border-color: rgba(10, 25, 47, 0.065);
    box-shadow: var(--shadow-air);
}

.depth-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-deep);
}

.section-container::before {
    content: '';
    position: absolute;
    top: 58px;
    left: 4vw;
    width: 46px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--section-accent), transparent);
    opacity: 0.85;
}

.section-container .algo-eyebrow,
.ring-section .algo-eyebrow {
    color: var(--section-accent);
}

.section-title::before {
    background: linear-gradient(90deg, var(--section-accent), rgba(0, 0, 0, 0));
    box-shadow: 0 0 18px color-mix(in srgb, var(--section-accent) 35%, transparent);
}

.ring-section {
    background:
        linear-gradient(90deg, rgba(25, 183, 198, 0.048), rgba(255, 255, 255, 0) 34%),
        #ffffff;
}

.method-step.active {
    border-color: color-mix(in srgb, var(--section-accent) 26%, transparent);
    box-shadow: 0 28px 70px rgba(10, 25, 47, 0.065);
}

.origin-card {
    border-top: 3px solid color-mix(in srgb, var(--accent-amber) 60%, transparent);
}

.fishbone-spine {
    background: linear-gradient(to right, transparent, rgba(0,214,135,0.34) 12%, rgba(25,183,198,0.22) 52%, rgba(0,214,135,0.34) 88%, transparent);
}

.bone-card {
    box-shadow: 0 22px 62px rgba(10, 25, 47, 0.075), var(--inner-highlight);
}

.app-feature-row {
    position: relative;
}

.app-feature-row::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -46px;
    width: min(420px, 70vw);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(25, 183, 198, 0.28), transparent);
}

.mockup-phone {
    box-shadow:
        0 46px 120px rgba(10, 25, 47, 0.15),
        0 0 0 4px rgba(10, 25, 47, 0.045),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.odd-col.active {
    background: color-mix(in srgb, var(--accent-green) 13%, white);
    box-shadow: inset 0 0 0 1px rgba(0, 214, 135, 0.18);
}

.faq-item:hover,
.faq-item.active {
    border-color: color-mix(in srgb, var(--section-accent) 48%, transparent);
}

.faq-item.active .faq-question,
.faq-item.active .faq-icon {
    color: var(--section-accent);
}

.main-footer {
    box-shadow: 0 -34px 90px rgba(10, 25, 47, 0.08);
}

/* --- LABORATORIO: visión, misión y blog con narrativa visual --- */
#laboratorio {
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 12%, rgba(0, 214, 135, 0.08), transparent 28%),
        radial-gradient(circle at 88% 36%, rgba(25, 183, 198, 0.075), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(246, 248, 250, 0.92));
}

.lab-page {
    width: 100%;
    padding: 42px 0 86px;
}

.lab-page--focused {
    padding-top: 18px;
}

.lab-page .section-container {
    max-width: 1180px;
}

.lab-page--focused .lab-story-section:first-child {
    padding-top: 72px;
}

#vision,
#mision,
#blog {
    scroll-margin-top: 110px;
}

.lab-intro-scene {
    --section-accent: var(--accent-amber);
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
    gap: 36px;
    align-items: end;
    margin-top: 34px;
    padding: 96px 56px 58px;
    overflow: hidden;
    border: 1px solid rgba(10, 25, 47, 0.075);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 249, 0.84)),
        #ffffff;
    box-shadow: 0 34px 94px rgba(10, 25, 47, 0.095), inset 0 1px 0 rgba(255, 255, 255, 0.92);
    isolation: isolate;
}

.lab-intro-scene::after {
    content: '';
    position: absolute;
    inset: 18px;
    z-index: 1;
    border: 1px solid rgba(0, 214, 135, 0.1);
    background-image:
        linear-gradient(rgba(10, 25, 47, 0.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 25, 47, 0.026) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.lab-intro-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 40%;
    z-index: 0;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.56) 36%, rgba(10, 25, 47, 0.18) 100%),
        var(--lab-bg);
    background-size: cover;
    background-position: center;
    opacity: 0.72;
    filter: saturate(0.94) contrast(1.04);
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}

.lab-intro-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(10, 25, 47, 0.18) 100%),
        radial-gradient(circle at 70% 30%, rgba(0, 214, 135, 0.18), transparent 30%);
}

.lab-intro-copy,
.lab-role-panel,
.lab-copy-panel,
.lab-visual-card,
.lab-blog-head,
.lab-benefit-grid,
.lab-blog-grid {
    position: relative;
    z-index: 3;
}

.lab-intro-copy {
    max-width: 660px;
}

.lab-page-title {
    margin: 18px 0 28px;
    color: var(--primary-blue);
    font-family: var(--font-heading);
    font-size: 3.35rem;
    line-height: 1.12;
    font-weight: 400;
    text-transform: uppercase;
}

.lab-section-title {
    margin: 18px 0 26px;
    color: var(--primary-blue);
    font-family: var(--font-heading);
    font-size: 2.65rem;
    line-height: 1.16;
    font-weight: 400;
    text-transform: uppercase;
}

.lab-lead {
    max-width: 660px;
    color: rgba(10, 25, 47, 0.76);
    font-family: var(--font-body);
    font-size: 1.08rem;
    line-height: 1.86;
}

.lab-body {
    max-width: 620px;
    color: rgba(10, 25, 47, 0.62);
    font-family: var(--font-body);
    font-size: 0.98rem;
    line-height: 1.82;
}

.lab-role-panel {
    align-self: end;
    padding: 28px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(10, 25, 47, 0.075);
    border-left: 3px solid var(--section-accent);
    box-shadow: 0 24px 70px rgba(10, 25, 47, 0.08);
}

.lab-panel-label,
.lab-step {
    display: inline-flex;
    color: rgba(10, 25, 47, 0.52);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    line-height: 1.4;
    text-transform: uppercase;
}

.lab-step {
    color: var(--section-accent);
}

.lab-role-list {
    display: grid;
    gap: 18px;
    margin-top: 24px;
    list-style: none;
}

.lab-role-list li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding-top: 18px;
    border-top: 1px solid rgba(10, 25, 47, 0.08);
}

.lab-role-list span {
    color: var(--section-accent);
    font-family: var(--font-heading);
    font-size: 0.78rem;
}

.lab-role-list p {
    color: rgba(10, 25, 47, 0.68);
    font-size: 0.92rem;
    line-height: 1.68;
}

.lab-story-section {
    --section-accent: var(--accent-cyan);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
    gap: 58px;
    align-items: center;
    min-height: 670px;
    padding-top: 110px;
    padding-bottom: 110px;
}

.lab-story-section.reverse {
    --section-accent: var(--accent-amber);
    grid-template-columns: minmax(340px, 0.86fr) minmax(0, 1fr);
}

.lab-story-section::after,
.lab-blog-section::after,
.lab-benefits-section::after {
    content: '';
    position: absolute;
    left: 4vw;
    right: 4vw;
    bottom: 12px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(10, 25, 47, 0.08), transparent);
    pointer-events: none;
}

.lab-copy-panel {
    padding: 36px 0 36px 34px;
    border-left: 1px solid rgba(10, 25, 47, 0.1);
}

.lab-copy-panel::before {
    content: '';
    position: absolute;
    top: 38px;
    left: -2px;
    width: 3px;
    height: 92px;
    background: linear-gradient(180deg, var(--section-accent), transparent);
    box-shadow: 0 0 22px rgba(0, 214, 135, 0.18);
}

.lab-manifesto {
    margin-top: 30px;
    padding: 22px 24px;
    color: rgba(10, 25, 47, 0.78);
    font-size: 0.98rem;
    line-height: 1.78;
    background:
        linear-gradient(90deg, rgba(0, 214, 135, 0.09), rgba(255, 255, 255, 0.68)),
        rgba(255, 255, 255, 0.72);
    border-left: 3px solid var(--section-accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.lab-target {
    display: grid;
    gap: 10px;
    margin-top: 32px;
    padding: 22px 0;
    border-top: 1px solid rgba(10, 25, 47, 0.1);
    border-bottom: 1px solid rgba(10, 25, 47, 0.1);
}

.lab-target span {
    color: var(--section-accent);
    font-family: var(--font-heading);
    font-size: 0.76rem;
    text-transform: uppercase;
}

.lab-target strong {
    color: var(--primary-blue);
    font-size: 1.04rem;
    line-height: 1.64;
    font-weight: 700;
}

.lab-visual-card {
    min-height: 540px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: var(--primary-blue);
    box-shadow: 0 36px 92px rgba(10, 25, 47, 0.16);
    clip-path: polygon(0 0, calc(100% - 42px) 0, 100% 42px, 100% 100%, 0 100%);
    isolation: isolate;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.55s ease;
}

.lab-visual-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(180deg, rgba(10, 25, 47, 0.02) 0%, rgba(10, 25, 47, 0.68) 100%),
        var(--lab-bg);
    background-size: cover;
    background-position: center;
    transform: scale(1.035);
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.75s ease;
}

.lab-visual-card::after {
    content: '';
    position: absolute;
    inset: 18px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.24);
    pointer-events: none;
}

.lab-visual-card:hover,
.lab-visual-card:focus-visible {
    transform: translateY(-8px);
    box-shadow: 0 46px 116px rgba(10, 25, 47, 0.2);
}

.lab-visual-card:hover::before,
.lab-visual-card:focus-visible::before {
    transform: scale(1.09);
    filter: saturate(1.08) contrast(1.04);
}

.lab-visual-card:focus-visible {
    outline: 2px solid var(--section-accent);
    outline-offset: 5px;
}

.lab-visual-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 74% 24%, rgba(0, 214, 135, 0.24), transparent 24%),
        linear-gradient(120deg, rgba(10, 25, 47, 0.52), transparent 48%);
    pointer-events: none;
}

.lab-visual-caption {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 34px;
    z-index: 3;
    display: grid;
    gap: 10px;
    color: #ffffff;
}

.lab-visual-caption span {
    color: rgba(255, 255, 255, 0.68);
    font-family: var(--font-heading);
    font-size: 0.76rem;
    text-transform: uppercase;
}

.lab-visual-caption strong {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    line-height: 1.2;
    font-weight: 400;
    text-transform: uppercase;
}

.lab-benefits-section {
    --section-accent: var(--accent-green);
    padding-top: 94px;
    padding-bottom: 96px;
    border: 1px solid rgba(10, 25, 47, 0.06);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.93), rgba(247, 252, 250, 0.86)),
        linear-gradient(90deg, rgba(0, 214, 135, 0.05), transparent);
    box-shadow: 0 28px 84px rgba(10, 25, 47, 0.07);
}

.lab-benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 40px;
}

.lab-benefit-card {
    padding: 28px;
    min-height: 230px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(10, 25, 47, 0.07);
    border-top: 3px solid rgba(0, 214, 135, 0.45);
    box-shadow: 0 18px 46px rgba(10, 25, 47, 0.055);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.lab-benefit-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 214, 135, 0.3);
    box-shadow: 0 28px 70px rgba(10, 25, 47, 0.095);
}

.lab-benefit-card span {
    display: block;
    margin-bottom: 28px;
    color: var(--section-accent);
    font-family: var(--font-heading);
    font-size: 0.8rem;
}

.lab-benefit-card h3 {
    margin-bottom: 16px;
    color: var(--primary-blue);
    font-family: var(--font-heading);
    font-size: 1.02rem;
    line-height: 1.42;
    text-transform: uppercase;
}

.lab-benefit-card p {
    color: rgba(10, 25, 47, 0.64);
    font-size: 0.92rem;
    line-height: 1.72;
}

.lab-blog-section {
    --section-accent: var(--accent-coral);
    margin-top: 56px;
    padding-top: 104px;
    padding-bottom: 104px;
    border-radius: 32px;
    background:
        linear-gradient(125deg, rgba(240, 109, 95, 0.065), transparent 34%),
        linear-gradient(245deg, rgba(25, 183, 198, 0.065), transparent 32%),
        rgba(255, 255, 255, 0.72);
}

.lab-blog-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.46fr);
    gap: 42px;
    align-items: end;
    margin-bottom: 42px;
}

.lab-blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 0;
}

.lab-blog-grid .blog-card {
    min-height: 260px;
    padding: 28px;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 252, 253, 0.86)),
        #ffffff;
    border: 1px solid rgba(10, 25, 47, 0.07);
    border-bottom: 3px solid rgba(240, 109, 95, 0.34);
    box-shadow: 0 18px 52px rgba(10, 25, 47, 0.055);
}

.lab-blog-grid .blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(240, 109, 95, 0.28);
    box-shadow: 0 30px 72px rgba(10, 25, 47, 0.105);
}

.lab-blog-grid .blog-date {
    color: var(--section-accent);
    font-family: var(--font-heading);
    font-size: 0.72rem;
}

.lab-blog-grid .blog-title {
    color: var(--primary-blue);
    font-size: 1.08rem;
    line-height: 1.48;
}

.blog-excerpt {
    margin: 0 0 22px;
    color: rgba(10, 25, 47, 0.62);
    font-size: 0.9rem;
    line-height: 1.68;
}

.lab-blog-grid .blog-tag {
    border-radius: 0;
    background: rgba(10, 25, 47, 0.045);
    color: rgba(10, 25, 47, 0.58);
    font-family: var(--font-heading);
    font-size: 0.68rem;
}

.lab-empty-blog {
    padding: 42px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(10, 25, 47, 0.07);
    box-shadow: 0 20px 56px rgba(10, 25, 47, 0.06);
}

.lab-empty-blog h3 {
    margin-bottom: 12px;
    color: var(--primary-blue);
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.lab-empty-blog p {
    color: rgba(10, 25, 47, 0.64);
    line-height: 1.7;
}

@media (max-width: 980px) {
    .lab-intro-scene,
    .lab-story-section,
    .lab-story-section.reverse,
    .lab-blog-head {
        grid-template-columns: 1fr;
    }

    .lab-intro-scene {
        min-height: auto;
        padding: 84px 38px 42px;
    }

    .lab-intro-bg {
        left: 0;
        opacity: 0.24;
        clip-path: none;
    }

    .lab-role-panel {
        max-width: 620px;
    }

    .lab-story-section,
    .lab-story-section.reverse {
        min-height: auto;
        gap: 38px;
        padding-top: 78px;
        padding-bottom: 78px;
    }

    .lab-page--focused .lab-story-section:first-child {
        padding-top: 54px;
    }

    .lab-story-section.reverse .lab-copy-panel {
        order: 1;
    }

    .lab-story-section.reverse .lab-visual-card {
        order: 2;
    }

    .lab-visual-card {
        min-height: 400px;
    }

    .lab-benefit-grid,
    .lab-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .lab-page {
        padding: 20px 0 56px;
    }

    .lab-page--focused .lab-story-section:first-child {
        padding-top: 42px;
    }

    .lab-intro-scene {
        margin-top: 18px;
        padding: 70px 24px 28px;
        border-radius: 24px;
    }

    .lab-intro-scene::after {
        inset: 12px;
        background-size: 34px 34px;
    }

    .lab-page-title {
        font-size: 2.15rem;
        line-height: 1.18;
    }

    .lab-section-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .lab-lead {
        font-size: 0.98rem;
        line-height: 1.74;
    }

    .lab-body {
        font-size: 0.92rem;
    }

    .lab-role-panel,
    .lab-benefit-card,
    .lab-blog-grid .blog-card,
    .lab-empty-blog {
        padding: 22px;
    }

    .lab-copy-panel {
        padding: 26px 0 26px 22px;
    }

    .lab-visual-card {
        min-height: 310px;
        clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
    }

    .lab-visual-card::after {
        inset: 12px;
    }

    .lab-visual-caption {
        left: 22px;
        right: 22px;
        bottom: 22px;
    }

    .lab-visual-caption strong {
        font-size: 1.25rem;
    }

    .lab-benefits-section,
    .lab-blog-section {
        border-radius: 22px;
        padding-top: 66px;
        padding-bottom: 66px;
    }

    .lab-benefit-grid,
    .lab-blog-grid {
        grid-template-columns: 1fr;
    }
}

/* --- HOME: motor con fondos ambientales y planos flotantes --- */
#ring-section {
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 16%, rgba(25, 183, 198, 0.08), transparent 28%),
        radial-gradient(circle at 86% 54%, rgba(0, 214, 135, 0.055), transparent 34%),
        #ffffff;
}

.ring-section {
    perspective: 1400px;
    background:
        linear-gradient(90deg, rgba(25, 183, 198, 0.07), rgba(255, 255, 255, 0) 44%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 249, 0.88)),
        #ffffff;
}

.ring-left {
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(246, 252, 250, 0.64)),
        transparent;
    isolation: isolate;
}

.ring-left::before,
.ring-left::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    z-index: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.2;
    filter: saturate(0.96) contrast(1.04);
    transform: translateZ(0) scale(1.04);
}

.ring-left::before {
    top: 0;
    height: 45%;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.94)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.22)),
        url('../img/assets/lab_vision.webp');
    background-position: center 18%;
    clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%);
    animation: ringAmbientDrift 15s ease-in-out infinite alternate;
}

.ring-left::after {
    bottom: 0;
    height: 40%;
    background-image:
        linear-gradient(0deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.94)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.16)),
        url('../img/assets/methodology_bg.webp');
    background-position: center 76%;
    clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%);
    animation: ringAmbientDrift 18s ease-in-out infinite alternate-reverse;
}

.ring-left-sticky {
    z-index: 2;
    transform-style: preserve-3d;
    isolation: isolate;
}

.ring-left-sticky::before {
    content: '';
    position: absolute;
    top: 20%;
    left: calc(6vw - 26px);
    width: min(430px, 74%);
    height: 60%;
    z-index: -1;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.42)),
        radial-gradient(circle at 18% 18%, rgba(25, 183, 198, 0.12), transparent 34%),
        radial-gradient(circle at 90% 70%, rgba(0, 214, 135, 0.12), transparent 36%);
    border: 1px solid rgba(10, 25, 47, 0.055);
    box-shadow:
        0 38px 98px rgba(10, 25, 47, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
    transform: translateZ(-22px) rotateY(-4deg);
}

.ring-left .algo-eyebrow,
.philosophy-title,
.philosophy-main-text,
.ring-section .philosophy-manifesto {
    position: relative;
    z-index: 2;
}

.philosophy-title {
    max-width: 430px;
    margin: 0 0 26px;
    color: var(--primary-blue);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 2.8vw, 3.7rem);
    line-height: 1.12;
    font-weight: 400;
    text-transform: uppercase;
    text-shadow: 0 18px 42px rgba(10, 25, 47, 0.11);
    transform: translateZ(36px);
}

.philosophy-main-text {
    max-width: 390px;
    color: rgba(10, 25, 47, 0.72);
    font-size: 1rem;
    line-height: 1.9;
    font-weight: 300;
    transform: translateZ(30px);
}

.ring-section .philosophy-manifesto {
    max-width: 390px;
    margin-top: 42px;
    padding: 24px 26px;
    opacity: 0.88;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(238, 255, 249, 0.66)),
        rgba(255, 255, 255, 0.62);
    border-left: 3px solid var(--accent-green);
    box-shadow: 0 22px 62px rgba(10, 25, 47, 0.075);
    transform: translateZ(42px);
}

.ring-right {
    z-index: 2;
    transform-style: preserve-3d;
}

.methodology-steps {
    position: relative;
    padding: 12vh 0 14vh;
}

.methodology-steps::before {
    content: '';
    position: absolute;
    top: 8vh;
    bottom: 8vh;
    left: 12px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(0, 214, 135, 0.22), rgba(25, 183, 198, 0.16), transparent);
    box-shadow: 0 0 20px rgba(0, 214, 135, 0.16);
}

.ring-section .method-step {
    margin-bottom: 72px;
    border: 1px solid rgba(10, 25, 47, 0.065);
    border-radius: 20px 4px 20px 4px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 251, 0.8)),
        radial-gradient(circle at 88% 12%, rgba(0, 214, 135, 0.12), transparent 34%);
    box-shadow:
        0 26px 72px rgba(10, 25, 47, 0.075),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
    transform-style: preserve-3d;
}

.ring-section .method-step:nth-child(1) {
    margin-left: -20px;
}

.ring-section .method-step:nth-child(2) {
    margin-left: 34px;
    margin-right: -10px;
}

.ring-section .method-step:nth-child(3) {
    margin-left: -4px;
    margin-right: 28px;
}

.ring-section .method-step::before {
    content: '';
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(0, 214, 135, 0.075);
    pointer-events: none;
}

.ring-section .method-step::after {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: -1px;
    width: 3px;
    background: linear-gradient(180deg, var(--section-accent), transparent);
    opacity: 0.54;
}

.ring-section .method-step.active {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 253, 251, 0.9)),
        radial-gradient(circle at 88% 12%, rgba(0, 214, 135, 0.16), transparent 36%);
    border-color: rgba(0, 214, 135, 0.2);
    box-shadow:
        0 36px 96px rgba(10, 25, 47, 0.115),
        0 0 0 1px rgba(0, 214, 135, 0.08) inset;
}

.ring-section .step-title {
    color: var(--primary-blue);
    text-shadow: 0 12px 30px rgba(10, 25, 47, 0.06);
}

.ring-section .step-desc {
    color: rgba(10, 25, 47, 0.64);
}

@keyframes ringAmbientDrift {
    from {
        transform: translate3d(-2%, 0, 0) scale(1.04);
    }

    to {
        transform: translate3d(2%, -2%, 0) scale(1.09);
    }
}

/* --- LABORATORIO: presentación al entrar por Visión, Misión y Blog --- */
.lab-story-section,
.lab-blog-section {
    --route-glow: 0;
}

.lab-story-section.is-route-focus::before,
.lab-blog-section.is-route-focus::before {
    width: 82px;
    opacity: 0.86;
    box-shadow: 0 0 24px color-mix(in srgb, var(--section-accent) 36%, transparent);
}

.lab-story-section.is-route-focus::after,
.lab-blog-section.is-route-focus::after {
    opacity: 0.72;
}

.lab-story-section.is-route-focus .lab-copy-panel::after,
.lab-blog-section.is-route-focus .lab-blog-head::after {
    content: '';
    position: absolute;
    inset: -18px -28px;
    z-index: -1;
    background:
        radial-gradient(circle at 0% 22%, color-mix(in srgb, var(--section-accent) 14%, transparent), transparent 34%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.42), transparent);
    opacity: var(--route-glow);
    pointer-events: none;
}

.lab-blog-head {
    position: relative;
}

.lab-story-section.is-route-focus .lab-visual-card::after {
    border-color: color-mix(in srgb, var(--section-accent) 36%, rgba(255, 255, 255, 0.24));
    box-shadow: inset 0 0 34px rgba(255, 255, 255, 0.08);
}

.lab-blog-section.is-route-focus .blog-card {
    transform-style: preserve-3d;
}

/* --- LABORATORIO: contenido institucional extendido --- */
.lab-story-section--company .lab-body {
    margin-top: 18px;
}

.lab-company-section,
.lab-feature-section,
.lab-process-section,
.lab-usage-section,
.lab-cta-section {
    --section-accent: var(--accent-green);
    padding-top: 92px;
    padding-bottom: 92px;
}

.lab-company-section {
    --section-accent: var(--accent-cyan);
}

.lab-feature-section {
    --section-accent: var(--accent-green);
}

.lab-process-section {
    --section-accent: var(--accent-amber);
}

.lab-usage-section {
    --section-accent: var(--accent-cyan);
}

.lab-cta-section {
    --section-accent: var(--accent-green);
    padding-top: 70px;
}

.lab-section-head {
    max-width: 760px;
    margin-bottom: 42px;
    position: relative;
    z-index: 2;
}

.lab-section-head .lab-section-title {
    margin-bottom: 22px;
}

.lab-company-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
    gap: 22px;
    align-items: stretch;
}

.lab-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.lab-value-card,
.lab-feature-card,
.lab-process-card,
.lab-usage-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 251, 0.82)),
        rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(10, 25, 47, 0.07);
    box-shadow: 0 20px 58px rgba(10, 25, 47, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.86);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.lab-value-card:hover,
.lab-feature-card:hover,
.lab-process-card:hover,
.lab-usage-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--section-accent) 34%, transparent);
    box-shadow: 0 32px 82px rgba(10, 25, 47, 0.105);
}

.lab-value-card {
    min-height: 250px;
    padding: 28px;
    border-radius: 22px 4px 22px 4px;
}

.lab-value-card span,
.lab-feature-num,
.lab-process-card span,
.lab-usage-card span {
    display: block;
    margin-bottom: 26px;
    color: var(--section-accent);
    font-family: var(--font-heading);
    font-size: 0.78rem;
}

.lab-value-card h3,
.lab-feature-card h3,
.lab-process-card h3,
.lab-usage-card h3 {
    margin-bottom: 15px;
    color: var(--primary-blue);
    font-family: var(--font-heading);
    font-size: 1rem;
    line-height: 1.42;
    text-transform: uppercase;
}

.lab-value-card p,
.lab-feature-card p,
.lab-process-card p,
.lab-usage-card p {
    color: rgba(10, 25, 47, 0.63);
    font-size: 0.92rem;
    line-height: 1.72;
}

.lab-team-panel {
    position: relative;
    min-height: 360px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid rgba(10, 25, 47, 0.075);
    border-left: 3px solid var(--section-accent);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(245, 253, 251, 0.72)),
        var(--lab-bg);
    background-size: cover;
    background-position: center;
    box-shadow: 0 30px 82px rgba(10, 25, 47, 0.09);
    isolation: isolate;
}

.lab-team-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.76)),
        radial-gradient(circle at 82% 20%, rgba(0, 214, 135, 0.14), transparent 28%);
}

.lab-team-overlay {
    position: absolute;
    inset: 16px;
    z-index: -1;
    border: 1px solid rgba(0, 214, 135, 0.08);
    background-image:
        linear-gradient(rgba(10, 25, 47, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 25, 47, 0.025) 1px, transparent 1px);
    background-size: 34px 34px;
}

.lab-team-panel .lab-role-list {
    margin-top: 28px;
}

.lab-mission-list {
    display: grid;
    gap: 12px;
    margin-top: 26px;
    padding: 0;
    list-style: none;
}

.lab-mission-list li {
    position: relative;
    padding-left: 24px;
    color: rgba(10, 25, 47, 0.68);
    font-size: 0.95rem;
    line-height: 1.72;
}

.lab-mission-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.78em;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--section-accent);
    box-shadow: 0 0 12px color-mix(in srgb, var(--section-accent) 52%, transparent);
}

.lab-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.lab-feature-card {
    min-height: 300px;
    padding: 30px;
    border-radius: 4px 24px 4px 24px;
}

.lab-feature-card::after {
    content: '';
    position: absolute;
    right: -48px;
    top: -48px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--section-accent) 12%, transparent);
}

.lab-process-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.lab-process-timeline::before {
    content: '';
    position: absolute;
    left: 4%;
    right: 4%;
    top: 42px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 181, 75, 0.42), rgba(25, 183, 198, 0.26), transparent);
}

.lab-process-card {
    min-height: 310px;
    padding: 30px;
    border-radius: 24px 24px 4px 4px;
}

.lab-process-card span {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 34px;
    border-radius: 999px;
    background: rgba(232, 181, 75, 0.14);
    box-shadow: inset 0 0 0 1px rgba(232, 181, 75, 0.24);
}

.lab-usage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.lab-usage-card {
    min-height: 210px;
    padding: 26px;
    border-radius: 18px;
}

.lab-usage-card span {
    margin-bottom: 20px;
}

.lab-cta-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
    gap: 44px;
    align-items: center;
    padding: 44px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(10, 25, 47, 0.075);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(244, 253, 249, 0.84)),
        radial-gradient(circle at 88% 16%, rgba(0, 214, 135, 0.14), transparent 32%);
    box-shadow: 0 34px 90px rgba(10, 25, 47, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.lab-cta-panel::after {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(0, 214, 135, 0.1);
    pointer-events: none;
}

.lab-capture-form {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 22px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(10, 25, 47, 0.06);
    box-shadow: 0 24px 68px rgba(10, 25, 47, 0.075);
}

.lab-capture-form .simple-submit {
    width: 100%;
}

.lab-check-field {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    color: rgba(10, 25, 47, 0.58);
    font-size: 0.78rem;
    line-height: 1.55;
}

.lab-check-field input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--accent-green);
}

/* --- LABORATORIO: microinteracciones y scroll UX --- */
.lab-interactive-card {
    --lab-rx: 0deg;
    --lab-ry: 0deg;
    --lab-glow-x: 50%;
    --lab-glow-y: 35%;
    transform-style: preserve-3d;
    will-change: transform;
}

.lab-interactive-card > :not(.lab-card-glow) {
    position: relative;
    z-index: 1;
}

.lab-card-glow {
    position: absolute;
    inset: -1px;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at var(--lab-glow-x) var(--lab-glow-y),
            color-mix(in srgb, var(--section-accent) 18%, transparent),
            transparent 36%);
    transition: opacity 0.28s ease;
}

.lab-interactive-card.is-interacting,
.lab-interactive-card:focus-visible {
    transform: perspective(980px) translateY(-8px) rotateX(var(--lab-rx)) rotateY(var(--lab-ry));
    border-color: color-mix(in srgb, var(--section-accent) 38%, transparent);
    box-shadow:
        0 36px 92px rgba(10, 25, 47, 0.13),
        0 0 0 1px color-mix(in srgb, var(--section-accent) 12%, transparent) inset;
    outline: none;
}

.lab-interactive-card.is-interacting .lab-card-glow,
.lab-interactive-card:focus-visible .lab-card-glow {
    opacity: 1;
}

.lab-feature-card.is-active,
.lab-process-card.is-active,
.lab-usage-card.is-active {
    border-color: color-mix(in srgb, var(--section-accent) 44%, transparent);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 253, 249, 0.9)),
        radial-gradient(circle at 88% 14%, color-mix(in srgb, var(--section-accent) 14%, transparent), transparent 34%);
    box-shadow:
        0 32px 86px rgba(10, 25, 47, 0.11),
        0 0 0 1px color-mix(in srgb, var(--section-accent) 10%, transparent) inset;
}

.lab-feature-card.is-active .lab-feature-num,
.lab-usage-card.is-active span {
    color: var(--primary-blue);
}

.lab-feature-card.is-active .lab-feature-num::after,
.lab-usage-card.is-active span::after {
    content: '';
    display: block;
    width: 44px;
    height: 2px;
    margin-top: 12px;
    background: linear-gradient(90deg, var(--section-accent), transparent);
}

.lab-process-timeline::after {
    content: '';
    position: absolute;
    left: 4%;
    top: 42px;
    width: var(--lab-progress, 0%);
    max-width: 92%;
    height: 2px;
    z-index: 1;
    background: linear-gradient(90deg, var(--accent-amber), var(--accent-green));
    box-shadow: 0 0 18px rgba(0, 214, 135, 0.22);
    pointer-events: none;
}

.lab-process-card {
    z-index: 2;
}

.lab-process-card.is-active span {
    color: var(--primary-blue);
    background: color-mix(in srgb, var(--section-accent) 34%, white);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--section-accent) 34%, transparent) inset,
        0 12px 28px color-mix(in srgb, var(--section-accent) 18%, transparent);
}

.lab-process-card.is-active h3 {
    color: color-mix(in srgb, var(--primary-blue) 88%, var(--section-accent));
}

.lab-team-panel.is-interacting .lab-team-overlay {
    background-size: 30px 30px;
    border-color: color-mix(in srgb, var(--section-accent) 22%, transparent);
}

.lab-cta-panel.is-interacting .lab-section-title {
    text-shadow: 0 18px 42px rgba(10, 25, 47, 0.12);
}

@media (max-width: 980px) {
    .ring-section {
        min-height: auto;
    }

    .ring-left::before,
    .ring-left::after {
        opacity: 0.16;
    }

    .ring-left-sticky::before {
        top: 16%;
        left: 8%;
        width: 84%;
        height: 70%;
    }

    .ring-section .method-step,
    .ring-section .method-step:nth-child(1),
    .ring-section .method-step:nth-child(2),
    .ring-section .method-step:nth-child(3) {
        margin-left: 0;
        margin-right: 0;
    }

    .lab-company-grid,
    .lab-cta-panel {
        grid-template-columns: 1fr;
    }

    .lab-values-grid,
    .lab-usage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lab-feature-grid,
    .lab-process-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lab-process-timeline::before,
    .lab-process-timeline::after {
        display: none;
    }
}

@media (max-width: 640px) {
    .ring-left-sticky {
        min-height: 720px;
        padding: 120px 7vw 84px;
    }

    .ring-left-sticky::before {
        top: 18%;
        left: 5%;
        width: 90%;
        height: 62%;
    }

    .philosophy-title {
        font-size: 2rem;
    }

    .philosophy-main-text,
    .ring-section .philosophy-manifesto {
        max-width: 100%;
    }

    .methodology-steps::before {
        display: none;
    }

    .lab-company-section,
    .lab-feature-section,
    .lab-process-section,
    .lab-usage-section,
    .lab-cta-section {
        padding-top: 62px;
        padding-bottom: 62px;
    }

    .lab-values-grid,
    .lab-feature-grid,
    .lab-process-timeline,
    .lab-usage-grid {
        grid-template-columns: 1fr;
    }

    .lab-feature-card,
    .lab-process-card {
        min-height: auto;
    }

    .lab-cta-panel {
        padding: 28px;
        border-radius: 22px;
    }

    .lab-capture-form {
        padding: 22px;
    }
}

/* ============================================================
   FASE 6C — HERO MOBILE-FIRST RESPONSIVE
   Solo afecta a la primera pantalla (hero) del landing.
   El responsive del resto de secciones queda pendiente
   (ver OPTIMIZACIONES.md → "Pendiente: responsive resto secciones").
   ============================================================ */

@media (max-width: 768px) {
    /* Hero wrapper: ajustar al header de 60px en mobile + safe-area iOS */
    .hero-wrapper {
        padding: 90px 5% 50px 5%;
        min-height: 100vh;
        min-height: 100svh;
    }

    /* Watermark gigante: oculto en mobile (apretado y consume GPU) */
    .hero-watermark {
        display: none;
    }

    /* Stack vertical limpio, alineado a la izquierda para mejor lectura */
    .hero-content-split {
        gap: 36px;
        text-align: left;
    }

    .hero-text-side {
        text-align: left;
    }

    .hero-eyebrow {
        font-size: 11px;
        letter-spacing: 3px;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: clamp(2.4rem, 9vw, 3rem) !important;
        line-height: 1.05;
        margin-bottom: 24px;
        letter-spacing: -0.02em;
    }

    .hero-subtitle {
        font-size: 0.98rem;
        line-height: 1.6;
        padding-left: 16px;
        margin: 0;
        max-width: 100%;
    }

    /* Form card: ancho completo y prominente */
    .hero-form-side {
        justify-content: stretch;
    }

    .simple-signup-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 28px 22px;
        border-radius: 18px;
        box-shadow: 0 18px 50px rgba(10, 25, 47, 0.06);
    }

    .form-invite {
        font-size: 0.78rem;
        line-height: 1.65;
        max-width: 100%;
        margin-bottom: 22px;
    }

    .simple-signup-form {
        gap: 18px;
    }

    .line-field {
        padding-bottom: 10px;
    }

    .line-field span {
        font-size: 11px;
        letter-spacing: 1.2px;
    }

    /* Input: 16px previene auto-zoom de iOS al hacer focus */
    .line-field input {
        font-size: 16px;
        padding: 6px 0;
        letter-spacing: 0.04em;
    }

    /* Botón submit: ancho completo + alto >=48px (touch target accesible) */
    .simple-submit {
        width: 100%;
        padding: 16px 24px;
        font-size: 13px;
        margin-top: 4px;
    }

    /* Cursor magnético no aplica en touch */
    .custom-cursor {
        display: none;
    }
}

/* Mobile pequeño (<400px) */
@media (max-width: 400px) {
    .hero-wrapper {
        padding: 80px 4% 40px 4%;
    }

    .hero-title {
        font-size: clamp(2rem, 8.5vw, 2.4rem) !important;
    }

    .hero-eyebrow {
        font-size: 10px;
        letter-spacing: 2px;
        margin-bottom: 16px;
    }

    .simple-signup-card {
        padding: 24px 18px;
    }
}

/* ============================================================
   FASE 5.12 — RESPONSIVE MOBILE PERFECTO (estilo WinnerOdds)
   ============================================================ */

/* Botón Log in: SOLO ICONO en mobile, texto en desktop */
.vip-icon {
    display: none;
    align-items: center;
    justify-content: center;
}
.vip-text {
    display: inline-block;
}
@media (max-width: 768px) {
    .vip-text {
        display: none;
    }
    .vip-icon {
        display: inline-flex;
    }
    /* Botón Log in compacto cuadrado en mobile */
    .glass-header .btn-primary {
        padding: 10px 12px !important;
        min-width: 42px !important;
        border-radius: 50% !important;
        aspect-ratio: 1 / 1;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
}

/* Hero mobile: contenido CENTRADO verticalmente, ticker pegado al piso */
@media (max-width: 768px) {
    .hero-wrapper {
        position: relative;
        /* dvh: dynamic viewport height — se ajusta al viewport REAL del browser */
        min-height: calc(100dvh - var(--header-height) - 58px) !important;
        max-height: calc(100dvh - var(--header-height) - 58px);
        min-height: calc(100vh - var(--header-height) - 58px);
        padding: 28px 5% 100px 5% !important;
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start;
        overflow: hidden;
        background:
            radial-gradient(ellipse at 50% 100%, rgba(0, 214, 135, 0.10) 0%, transparent 65%),
            linear-gradient(180deg, #f5fbf8 0%, #ffffff 40%, #eaf6f0 100%);
    }

    /* IMAGEN: fondo absoluto que ocupa la mitad inferior del hero */
    .hero-bg-img {
        display: block !important;
        position: absolute !important;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100% !important;
        max-width: 100% !important;
        height: 70% !important;
        max-height: 70% !important;
        margin: 0 !important;
        object-fit: cover !important;
        object-position: center top !important;
        z-index: 0;
        filter: contrast(1.05) saturate(1.08);
        opacity: 1;
        /* Mask: top fade-in suave para que se mezcle con el form encima */
        -webkit-mask-image: linear-gradient(
            180deg,
            transparent 0%,
            rgba(0,0,0,0.3) 12%,
            black 35%,
            black 100%
        );
        mask-image: linear-gradient(
            180deg,
            transparent 0%,
            rgba(0,0,0,0.3) 12%,
            black 35%,
            black 100%
        );
        pointer-events: none;
    }

    .hero-bg-overlay {
        display: none !important;
    }

    /* CONTENIDO: encima de la imagen, sin orden flex (block normal) */
    .hero-content-split {
        position: relative;
        z-index: 2;
    }
    .hero-content-split .hero-text-side {
        max-width: 100%;
    }

    /* Form también encima */
    .hero-simple-form {
        position: relative;
        z-index: 3;
        max-width: 100%;
        gap: 10px;
        margin-top: 4px;
    }
    .hero-simple-input {
        font-size: 16px;
        padding: 14px 20px;
        background: rgba(255, 255, 255, 0.97);
    }
    .hero-simple-submit {
        padding: 16px 22px;
        font-size: 12.5px;
    }

    .hero-eyebrow {
        margin-bottom: 10px !important;
    }
    .hero-title {
        font-size: clamp(1.85rem, 7vw, 2.5rem) !important;
        line-height: 1.0 !important;
        margin-bottom: 14px !important;
    }
    .hero-subtitle {
        max-width: 100% !important;
        font-size: 0.95rem !important;
        margin-top: 22px !important;
        line-height: 1.45 !important;
        padding-left: 16px !important;
    }
    .hero-form-prompt {
        margin: 14px 0 8px 0 !important;
        font-size: 10px !important;
        position: relative;
        z-index: 3;
    }
}

/* Mobile pequeño <=400px: aún más compacto */
@media (max-width: 400px) {
    .hero-wrapper {
        padding: 10px 4% 0 4% !important;
    }
    .hero-title {
        font-size: clamp(1.7rem, 7vw, 2.1rem) !important;
        margin-bottom: 12px !important;
    }
    .hero-subtitle {
        font-size: 0.92rem !important;
        margin-top: 10px !important;
    }
    .hero-form-prompt {
        margin: 12px 0 6px 0 !important;
    }
    .hero-bg-img {
        height: 65% !important;
        max-height: 65% !important;
    }
}

/* Mobile pequeño <=400px: imagen aún más compacta + ajustes finos */
@media (max-width: 400px) {
    .hero-bg-img {
        margin-top: 24px;
    }
    .glass-header .btn-primary {
        padding: 9px 11px !important;
        min-width: 38px !important;
    }
    .vip-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================================================
   FASE 6H — HEADER MOBILE estilo WinnerOdds
   Layout: [hamburguesa] [LOGO grande centrado] [Log in]
   ============================================================ */
@media (max-width: 992px) {
    /* Truco: header-right desaparece como contenedor pero sus hijos siguen
       siendo miembros del flex del header-container. Eso permite reordenar
       nav-toggle y header-actions con `order` sin tocar el HTML. */
    .header-right {
        display: contents !important;
    }

    .glass-header .header-container {
        position: relative;
        align-items: center;
    }

    /* Hamburguesa: izquierda */
    .nav-toggle {
        order: 1 !important;
        flex-shrink: 0;
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        background: transparent;
        border: 0;
        cursor: pointer;
        padding: 0;
    }
    .nav-toggle .bar {
        width: 100%;
        height: 2px;
        background-color: var(--text-main);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Logo: centro, GRANDE (estilo WinnerOdds) */
    .brand-logo {
        order: 2 !important;
        flex: 1 1 auto;
        text-align: center;
        margin: 0;
    }
    .brand-logo img {
        /* Fase 5.7: logo MÁS grande, centrado en mobile, sin agrandar header */
        height: 68px !important;
        filter: none !important;
    }

    /* Botón Log in: derecha, visible y compacto */
    .header-actions {
        order: 3 !important;
        flex-shrink: 0;
        display: flex !important;
    }
    .glass-header .btn-primary {
        font-size: 11px;
        padding: 9px 16px;
        letter-spacing: 1px;
        min-width: auto;
    }

    /* Header mantiene altura razonable; el logo "respira" sin overflow visible */
    .glass-header .header-container {
        height: 80px;
    }
    :root {
        --header-height: 80px;
    }

    /* Hero pegado al header en mobile (no más espacio vacío arriba) */
    .hero-wrapper {
        padding-top: 28px !important;
    }
}

/* Mobile pequeño: ajustar tamaños */
@media (max-width: 480px) {
    .brand-logo img {
        height: 56px !important;
    }
    .glass-header .btn-primary {
        font-size: 10px;
        padding: 8px 12px;
    }
    .hero-wrapper {
        padding-top: 22px !important;
    }
}

/* ============================================================
   FASE 6G — RING SECTION RESPONSIVE FIX (mobile)
   El ring-section venía con display:flex 2cols + sticky que rompía
   completamente en mobile (textos cortados a la derecha, badges fuera
   de la card). Forzar stack vertical limpio.
   ============================================================ */
@media (max-width: 992px) {
    .ring-section {
        display: flex !important;
        flex-direction: column !important;
        min-height: auto !important;
    }

    .ring-left,
    .ring-right {
        flex: 1 1 100% !important;
        width: 100% !important;
        border-right: none !important;
        padding: 0 !important;
    }

    .ring-left-sticky {
        position: relative !important;
        top: 0 !important;
        height: auto !important;
        padding: 60px 6vw 30px 6vw !important;
        text-align: left;
    }

    .progress-vertical {
        display: none;
    }

    .methodology-steps {
        padding: 20px 6vw 60px 6vw !important;
    }

    .method-step {
        margin-bottom: 50px;
        padding: 32px 24px;
    }

    .step-num-badge {
        right: 20px;
        top: -16px;
        font-size: 0.72rem;
        padding: 6px 14px;
    }

    .step-title {
        font-size: 1.05rem;
        line-height: 1.3;
        margin-bottom: 14px;
    }

    .step-desc {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .philosophy-title {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }

    .philosophy-main-text,
    .philosophy-manifesto {
        font-size: 0.98rem;
        line-height: 1.65;
    }
}

/* ============================================================
   SECOND VIEW REBUILD — DETECTAMOS VALOR ANTES QUE EL MERCADO
   (Creative Director Fase 7: 8.7 → 9.8 polish premium)
   ============================================================ */
.second-view {
    min-height: 100vh;
    padding: 90px 6% 90px 6%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 56px;
    position: relative;
    z-index: 1;
    /* Fondo premium: profundidad con radial gradients verde tenue */
    background:
        radial-gradient(circle at 20% 30%, rgba(90, 255, 180, 0.07) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(90, 255, 180, 0.05) 0%, transparent 30%),
        linear-gradient(180deg, #f8faf9 0%, #ffffff 100%);
}

/* TRUST BAR — cápsula premium */
.trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 30px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 18px;
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 12px 40px rgba(10, 25, 47, 0.035);
}
.trust-item {
    font-family: var(--font-heading);
    font-size: 10.5px;
    letter-spacing: 1.8px;
    color: rgba(10, 25, 47, 0.66);
    text-transform: uppercase;
    padding: 0 22px;
    flex-shrink: 0;
}
.trust-divider {
    width: 1px;
    height: 16px;
    background: rgba(10, 25, 47, 0.10);
    flex-shrink: 0;
}

/* SCANNING DIVIDER — línea con glow verde animado */
.scanning-divider {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 560px;
    margin: 8px auto 36px auto;
    padding: 0 16px;
}
.scanning-line {
    flex: 1;
    height: 1px;
    position: relative;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(26, 201, 125, 0.35) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: scanningPulse 2.6s linear infinite;
    overflow: visible;
}
.scanning-line::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 60px;
    height: 5px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(82, 255, 180, 0.7) 50%,
        transparent 100%
    );
    filter: blur(4px);
    animation: scanningGlow 2.6s linear infinite;
}
.scanning-text {
    font-family: var(--font-heading);
    font-size: 10px;
    letter-spacing: 3.5px;
    color: #1AC97D;
    text-transform: uppercase;
    flex-shrink: 0;
    text-shadow: 0 0 12px rgba(82, 255, 180, 0.35);
}
@keyframes scanningPulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@keyframes scanningGlow {
    0% { left: -10%; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* HOW IT WORKS dentro de second-view */
.second-view .how-it-works {
    padding: 0;
    flex-shrink: 0;
    display: block;
}
.second-view .how-header {
    margin-bottom: 36px;
    text-align: center;
}
.second-view .how-header .section-title {
    font-size: clamp(1.7rem, 2.8vw, 2.4rem);
    margin-bottom: 22px;
    letter-spacing: -0.012em;
    line-height: 1.18;
}
.second-view .how-header .how-intro {
    font-size: clamp(0.98rem, 1.15vw, 1.12rem);
    color: rgba(10, 25, 47, 0.62);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
}

/* HOW STEPS GRID */
.second-view .how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    max-width: var(--container-max);
    margin: 0 auto;
}

/* CARDS PREMIUM — glass refinado */
.second-view .how-step {
    position: relative;
    overflow: hidden;
    padding: 36px 30px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(110, 255, 180, 0.16);
    border-radius: 20px;
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.04);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.4s ease;
}
.second-view .how-step:hover {
    transform: translateY(-6px);
    border-color: rgba(110, 255, 180, 0.28);
    box-shadow: 0 20px 45px rgba(80, 255, 180, 0.10);
}

/* PATRÓN ABSTRACTO — reemplaza el watermark gigante */
.step-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 220px;
    color: #1AC97D;
    opacity: 0.18;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.second-view .how-step:hover .step-pattern {
    opacity: 0.32;
    transform: translate(-4px, 4px);
}

/* Step content encima del patrón */
.second-view .step-icon,
.second-view .step-num,
.second-view .step-title,
.second-view .step-desc {
    position: relative;
    z-index: 1;
}

/* ICONOS — círculos glass con mint brillante */
.second-view .step-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    background:
        radial-gradient(circle at 30% 30%, rgba(82, 255, 180, 0.22), rgba(26, 201, 125, 0.08));
    border: 1px solid rgba(82, 255, 180, 0.28);
    border-radius: 50%;
    color: #15B673;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -2px 6px rgba(26, 201, 125, 0.10),
        0 4px 14px rgba(82, 255, 180, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.second-view .step-icon svg {
    width: 26px;
    height: 26px;
}
.second-view .how-step:hover .step-icon {
    transform: scale(1.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -2px 8px rgba(26, 201, 125, 0.14),
        0 8px 22px rgba(82, 255, 180, 0.32);
}
.second-view .step-num {
    font-family: var(--font-heading);
    font-size: 11px;
    color: rgba(26, 201, 125, 0.9);
    margin-bottom: 10px;
    letter-spacing: 3px;
    opacity: 0.95;
}
.second-view .step-title {
    font-family: var(--font-heading);
    font-size: 1.08rem;
    color: var(--primary-blue);
    letter-spacing: 1.8px;
    margin-bottom: 14px;
    text-transform: uppercase;
}
.second-view .step-desc {
    font-size: 0.94rem;
    line-height: 1.65;
    color: rgba(10, 25, 47, 0.66);
}

/* KPIs TERMINAL PREMIUM — números bold con glow verde */
.proof-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 56px auto 0 auto;
    max-width: 980px;
    padding: 28px 32px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(110, 255, 180, 0.14);
    border-radius: 18px;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 12px 40px rgba(10, 25, 47, 0.04);
}
.proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 32px;
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
}
.proof-num {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    font-weight: 700;
    color: #15B673;
    line-height: 1;
    letter-spacing: -0.015em;
    font-variant-numeric: tabular-nums;
    text-shadow:
        0 0 18px rgba(82, 255, 180, 0.32),
        0 0 6px rgba(26, 201, 125, 0.18);
}
.proof-label {
    font-family: var(--font-heading);
    font-size: 10px;
    letter-spacing: 2.4px;
    color: rgba(10, 25, 47, 0.5);
    text-transform: uppercase;
    text-align: center;
}
.proof-divider {
    width: 1px;
    height: 44px;
    background: linear-gradient(180deg, transparent, rgba(10, 25, 47, 0.14), transparent);
    flex-shrink: 0;
}

/* MICROCREDIBILIDAD — debajo de KPIs */
.proof-microcredit {
    margin: 18px auto 0 auto;
    max-width: 720px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 11.5px;
    letter-spacing: 0.4px;
    color: rgba(10, 25, 47, 0.42);
    line-height: 1.6;
}
.proof-microcredit .dot-sep {
    color: rgba(26, 201, 125, 0.5);
    margin: 0 6px;
}

/* RESPONSIVE — Mobile */
@media (max-width: 980px) {
    .second-view .how-steps {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .step-pattern {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .second-view {
        min-height: auto;
        padding: 56px 5%;
        gap: 36px;
        justify-content: flex-start;
    }
    .trust-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 22px;
        gap: 6px;
        border-radius: 16px;
    }
    .trust-item {
        padding: 6px 0;
        text-align: center;
        font-size: 10.5px;
    }
    .trust-divider {
        width: 50%;
        height: 1px;
        align-self: center;
    }
    .scanning-divider {
        margin: 4px auto 22px auto;
    }
    .scanning-text {
        font-size: 9px;
        letter-spacing: 2.5px;
    }
    .second-view .how-header {
        margin-bottom: 24px;
    }
    .second-view .how-step {
        padding: 28px 24px;
    }
    .step-pattern {
        width: 160px;
        height: 160px;
        opacity: 0.14;
    }
    .second-view .step-icon {
        width: 46px;
        height: 46px;
        margin-bottom: 18px;
    }
    .second-view .step-icon svg {
        width: 22px;
        height: 22px;
    }
    .proof-mini {
        flex-direction: column;
        gap: 18px;
        padding: 22px 22px;
        margin-top: 36px;
    }
    .proof-divider {
        width: 50%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(10, 25, 47, 0.12), transparent);
    }
    .proof-item {
        padding: 8px 0;
    }
    .proof-microcredit {
        font-size: 10.5px;
        padding: 0 8%;
    }
}

/* ============================================================
   FASE 6F — HERO QUOTE (cita central limpia, sin caja)
   ============================================================ */
.hero-quote-wrap {
    max-width: 780px;
    margin: 80px auto 40px auto;
    padding: 0 5%;
    text-align: center;
    position: relative;
    z-index: 5;
}

.hero-quote {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
}

/* Línea verde corta sobre la cita como decoración minimalista */
.hero-quote::before {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent-green);
    margin: 0 auto 24px auto;
}

.hero-quote-text {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    line-height: 1.65;
    color: var(--text-main);
    font-style: italic;
    font-weight: 300;
    margin: 0;
    letter-spacing: 0.01em;
}

@media (max-width: 768px) {
    .hero-quote-wrap {
        margin: 50px 5% 30px 5%;
        padding: 0;
    }
    .hero-quote-text {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Hero eyebrow oculto (Fase 6F: el usuario quiere quitar el [ ML · ANÁLISIS · DETECCIÓN ]) */
.hero-eyebrow {
    display: none !important;
}

/* ============================================================
   FASE 1 REDISEÑO — Color y vida en el hero
   ============================================================ */

/* Fase 5.5: Palabra clave del headline en verde sofisticado (fintech, no gamer) */
.hero-title .word.accent {
    background: linear-gradient(135deg, #1AC97D 0%, #0EA66B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    position: relative;
}

/* Highlight verde sutil sobre palabras clave del subtitle */
.hero-subtitle mark {
    background: linear-gradient(180deg, transparent 55%, rgba(0, 214, 135, 0.28) 55%);
    color: var(--text-main);
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 500;
}

/* Microanimación del botón submit — pulse sutil al hover */
.simple-submit {
    position: relative;
    overflow: hidden;
}
.simple-submit::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.45), transparent 60%);
    transform: translateX(-110%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.simple-submit:hover::after {
    transform: translateX(110%);
}

/* Hover con glow verde en las cards de "Cómo funciona" */
.how-step:hover {
    box-shadow:
        0 24px 60px rgba(10, 25, 47, 0.08),
        0 0 0 1px rgba(0, 214, 135, 0.18),
        0 0 30px rgba(0, 214, 135, 0.12);
}

/* ============================================================
   FASE 3 REDISEÑO — Ticker animado + Stat callout + Iconos en pasos
   ============================================================ */

/* TICKER ANIMADO horizontal entre el hero y la cita (Fase 5.13: más aire vertical) */
.ticker-strip {
    overflow: hidden;
    background: var(--primary-blue);
    padding: 22px 0;
    margin: 0;
    position: relative;
    z-index: 5;
    border-top: 1px solid rgba(0, 214, 135, 0.25);
    border-bottom: 1px solid rgba(0, 214, 135, 0.25);
}
.ticker-strip::before,
.ticker-strip::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.ticker-strip::before {
    left: 0;
    background: linear-gradient(to right, var(--primary-blue), transparent);
}
.ticker-strip::after {
    right: 0;
    background: linear-gradient(to left, var(--primary-blue), transparent);
}

.ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
    animation: tickerScroll 40s linear infinite;
    will-change: transform;
}
.ticker-item {
    /* Fase 5.6: ticker unificado todo UPPERCASE consistente */
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: 3px;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 400;
}
.ticker-dot {
    color: var(--accent-green);
    font-size: 10px;
}
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* STAT CALLOUT (entre cita central y los pasos) */
.stat-callout {
    max-width: 800px;
    margin: 60px auto 40px auto;
    padding: 48px 40px;
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--bg-secondary);
    border-radius: var(--radius-premium);
    border: 1px solid rgba(0, 214, 135, 0.15);
    box-shadow:
        0 30px 80px rgba(0, 214, 135, 0.10),
        0 12px 30px rgba(10, 25, 47, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 2;
}
.stat-callout::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-green), rgba(0, 214, 135, 0.3));
}
.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 8vw, 7rem);
    line-height: 1;
    color: var(--accent-green);
    font-weight: 400;
    letter-spacing: -0.04em;
    flex-shrink: 0;
}
.stat-percent {
    font-size: 0.5em;
    vertical-align: top;
    margin-left: 2px;
}
.stat-text {
    flex: 1;
}
.stat-label {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: 3px;
    color: var(--primary-blue);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.stat-desc {
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ICONOS en los 3 pasos de "Cómo funciona" */
.step-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 214, 135, 0.10);
    border-radius: 16px;
    color: var(--accent-green);
    margin-bottom: 24px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
}
.step-icon svg {
    width: 32px;
    height: 32px;
}
.how-step:hover .step-icon {
    transform: scale(1.08) rotate(-3deg);
    background: rgba(0, 214, 135, 0.18);
}
/* El step-num original ahora va más pequeño porque el icono toma protagonismo */
.how-step .step-num {
    font-size: 36px;
    margin-bottom: 16px;
    opacity: 0.4;
}

/* Responsive del ticker, stat y iconos en mobile */
@media (max-width: 768px) {
    .ticker-strip {
        padding: 14px 0;
    }
    .ticker-item {
        font-size: 11px;
        letter-spacing: 2px;
    }
    .ticker-track {
        gap: 20px;
        animation-duration: 30s;
    }

    .stat-callout {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
        gap: 16px;
        margin: 30px 5%;
    }
    .stat-callout::before {
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
    }

    .step-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 18px;
    }
    .step-icon svg {
        width: 26px;
        height: 26px;
    }
}

/* Hero con imagen de fondo: ajustes mobile (la imagen no cabe bien horizontalmente) */
@media (max-width: 768px) {
    .hero-wrapper {
        background-color: #f7faf9;
        background-image:
            radial-gradient(ellipse at 80% 20%, rgba(0, 214, 135, 0.10) 0%, transparent 55%),
            radial-gradient(ellipse at 15% 85%, rgba(25, 183, 198, 0.08) 0%, transparent 50%),
            linear-gradient(135deg, #f7faf9 0%, #ffffff 50%, #f0faf5 100%);
        background-size: 100% 100%, 100% 100%, 100% 100%;
        background-repeat: no-repeat;
        background-position: center;
    }
}

/* ============================================================
   FASE 4 REDISEÑO — Polish premium
   ============================================================ */

/* Stat number tabular: previene "saltos" durante el counter animation */
.stat-number .counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    min-width: 1.2em;
    text-align: right;
}

/* Botón submit: feedback al click (scale-down sutil) */
.simple-submit:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 0.1s;
}

/* Botón VIP del header: feedback similar */
.glass-header .btn-primary:active {
    transform: scale(0.97);
}

/* Reveals más sutiles: menos movement, más duración */
.reveal-up {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Cards "Cómo funciona" con micro tilt al hover */
.how-step {
    transition:
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.how-step:hover {
    transform: translateY(-6px);
}

/* Form-card flotante: sombra dinámica al hover */
.simple-signup-card {
    transition: box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.simple-signup-card:hover {
    box-shadow:
        0 32px 90px rgba(10, 25, 47, 0.12),
        0 0 0 1px rgba(0, 214, 135, 0.10);
}

/* Stat-callout con sutil tilt en hover */
.stat-callout {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}
.stat-callout:hover {
    transform: translateY(-3px);
    box-shadow:
        0 40px 100px rgba(0, 214, 135, 0.16),
        0 18px 50px rgba(10, 25, 47, 0.07);
}

/* ============================================================
   FASE 6D-1 — STRIP DE CREDIBILIDAD + CÓMO FUNCIONA
   ============================================================ */

/* --- STRIP DE CREDIBILIDAD (Fase 6F: limpio, sin caja gris) --- */
.credibility-strip {
    max-width: 1000px;
    margin: 0 auto 40px auto;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
    z-index: 5;
    border-top: 1px solid rgba(10, 25, 47, 0.08);
    border-bottom: 1px solid rgba(10, 25, 47, 0.08);
}

.cred-item {
    flex: 1;
    text-align: center;
}

.cred-headline {
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: 1.6px;
    color: var(--primary-blue);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.cred-sub {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    letter-spacing: 0.3px;
}

.cred-divider {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, transparent, rgba(10, 25, 47, 0.15), transparent);
    flex-shrink: 0;
}

/* --- CÓMO FUNCIONA --- */
.how-it-works {
    padding: 100px 5% 80px 5%;
    position: relative;
    z-index: 2;
}

.how-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px auto;
}

.how-header .algo-eyebrow {
    margin-bottom: 16px;
    display: block;
}

.how-header .section-title {
    margin-bottom: 20px;
}

.how-intro {
    font-size: clamp(1rem, 1.15vw, 1.15rem);
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.how-step {
    background: var(--bg-secondary);
    border: var(--depth-border);
    border-radius: var(--radius-premium);
    padding: 44px 36px;
    box-shadow: var(--depth-shadow-soft);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.5s ease;
    position: relative;
    overflow: hidden;
}

.how-step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.how-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--depth-shadow-hover);
    border-color: rgba(0, 214, 135, 0.18);
}

.how-step:hover::before {
    opacity: 1;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 400;
    color: var(--accent-green);
    line-height: 1;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--primary-blue);
    letter-spacing: 1.5px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.step-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* --- RESPONSIVE STRIP + CÓMO FUNCIONA --- */
@media (max-width: 980px) {
    .how-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .credibility-strip {
        flex-direction: column;
        padding: 24px 22px;
        gap: 18px;
        border-radius: 16px;
        margin: -10px 5% 0;
    }

    .cred-item {
        text-align: left;
        width: 100%;
    }

    .cred-divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(10, 25, 47, 0.12), transparent);
    }

    .cred-headline {
        font-size: 12px;
    }

    .cred-sub {
        font-size: 11px;
    }

    .how-it-works {
        padding: 70px 5% 50px 5%;
    }

    .how-header {
        margin-bottom: 40px;
    }

    .how-step {
        padding: 32px 26px;
    }

    .step-num {
        font-size: 44px;
        margin-bottom: 20px;
    }
}

/* ============================================================
   FASE 6D-2 — EFECTOS REDUCIDOS + CTAs REPETIDOS
   ============================================================ */

/* --- CURSOR MAGNÉTICO: solo en desktop XL (>=1280px) --- */
/* En pantallas medianas/touch oculto: estorba sobre cards blancas y tocar */
.custom-cursor {
    display: none;
}

@media (min-width: 1280px) and (hover: hover) and (pointer: fine) {
    .custom-cursor {
        display: block;
    }
}

/* --- CTA MID-PAGE BANNER (después de App Showcase, antes de FAQ) --- */
.cta-mid-banner {
    max-width: var(--container-max);
    margin: 60px auto;
    padding: 56px 48px;
    background: linear-gradient(135deg, var(--bg-secondary), rgba(0, 214, 135, 0.04));
    border: 1px solid rgba(0, 214, 135, 0.15);
    border-radius: var(--radius-premium);
    box-shadow: var(--depth-shadow-soft);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-mid-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
}

.cta-mid-eyebrow {
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--accent-green);
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
}

.cta-mid-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.6vw, 2.2rem);
    color: var(--primary-blue);
    line-height: 1.2;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.cta-mid-sub {
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.cta-mid-form {
    display: flex;
    gap: 12px;
    max-width: 540px;
    margin: 0 auto;
    align-items: stretch;
}

.cta-mid-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid rgba(10, 25, 47, 0.15);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-main);
    transition: border-color 0.3s ease;
}

.cta-mid-input::placeholder {
    color: rgba(10, 25, 47, 0.4);
}

.cta-mid-input:focus {
    outline: none;
    border-color: var(--accent-green);
}

.cta-mid-submit {
    padding: 14px 28px;
    background: var(--accent-green);
    color: var(--primary-blue);
    border: 0;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.cta-mid-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 214, 135, 0.25);
}

@media (max-width: 768px) {
    .cta-mid-banner {
        padding: 36px 24px;
        margin: 40px 5%;
    }

    .cta-mid-form {
        flex-direction: column;
        gap: 12px;
    }

    .cta-mid-submit {
        width: 100%;
        padding: 16px 24px;
    }

    .cta-mid-input {
        font-size: 16px; /* iOS no zoom */
    }
}

/* --- NEWSLETTER FOOTER (Fase 6F: fondo limpio, no gris translúcido) --- */
.footer-newsletter {
    max-width: var(--container-max);
    margin: 0 auto 40px auto;
    padding: 32px 40px;
    background: var(--bg-secondary);
    border: 1px solid rgba(10, 25, 47, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.footer-newsletter-text {
    flex: 1;
    min-width: 0;
}

.footer-newsletter-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-newsletter-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-newsletter-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 420px;
}

.footer-newsletter-form input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid rgba(10, 25, 47, 0.15);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    background: white;
    color: var(--text-main);
}

.footer-newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-green);
}

.footer-newsletter-form button {
    padding: 12px 22px;
    background: var(--accent-green);
    color: var(--primary-blue);
    border: 0;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.3s ease;
}

.footer-newsletter-form button:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-newsletter {
        flex-direction: column;
        align-items: stretch;
        padding: 28px 22px;
        margin: 0 5% 30px 5%;
        gap: 20px;
    }

    .footer-newsletter-form {
        flex-direction: column;
        max-width: 100%;
    }

    .footer-newsletter-form button {
        width: 100%;
        padding: 14px 22px;
    }

    .footer-newsletter-form input {
        font-size: 16px; /* iOS no zoom */
    }
}
