/* --- Estilos Generales --- */

@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&family=Pixelify+Sans:wght@400..700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
    --primary-color: #2A3EF4; /* Azul primario */
    --primary-hover-color: #0056b3; /* Azul más oscuro */
    --text-color-dark: #333;
    --text-color-light: #666;
    --background-color: #fff;
    --color-dark-purple: #3B3B5B;
    --color-dark-blue: #346fa7;
    --color-darkest-blue: #1C1C31;

    --color-danger: #110e0e;
    --color-dark: #3B3B5B;
    --color-light-gray: #f8f9fa;
    --color-border: #e9ecef;

    --color-action: #2A3EF4;
    --color-action-hover: #0056b3;

    --background-dark: #3B3B5B;
    --background-darker: #1C1C31;
    --background-light: #FFFFFF;

}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Exo 2', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color-dark);
    display: flex;
    flex-direction: column;
}

html[lang="ja"] body {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
}

/* --- Barra de Navegación Principal --- */

.language-switcher {
    position: relative; /* Contenedor para el menú desplegable */
}

#lang-toggle-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8d8dce; /* Color del icono, igual que los enlaces del nav */
    transition: color 0.3s ease;
}

#lang-toggle-btn:hover {
    color: #3b3b3b; /* Color hover, igual que los enlaces */
}

#lang-toggle-btn svg {
    stroke: currentColor; /* El SVG hereda el color del botón */
}

/* El Menú Desplegable */
.language-menu {
    position: absolute;
    top: calc(100% + 10px); /* Debajo del botón, con un pequeño espacio */
    right: 0;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    min-width: 150px;
    z-index: 1001; /* Encima del header */

    /* Oculto por defecto */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* Estado visible del menú */
.language-menu.lang-menu-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap; /* Evita que el texto se rompa */
    transition: background-color 0.2s ease;
}

.language-menu a:hover {
    background-color: #f0f0f0;
}

/* Ajuste para el contenedor de controles en el header */
.header-controls {
    display: flex;
    align-items: center;
    gap: 20px; /* Espacio entre el globo y el CTA */
}

/* --- Responsivo para el Selector de Idioma --- */
@media (max-width: 768px) {
    /* Opcional: Centrar el menú en móvil */
    .language-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }
    .language-menu.lang-menu-open {
        transform: translateX(-50%) translateY(0);
    }
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    box-shadow: none;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.main-header.scrolled {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1700px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    position: relative; /* AÑADIDO: Necesario para el centrado absoluto del menú */
}

.main-header .logo img {
    height: 55px;
    width: auto;
    display: block;
}

.cta-button-nav {
    padding: 8px 20px;
    background-color: var(--primary-color); /* Default solid background */
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    border: 2px solid var(--primary-color); /* Consistent border */

    /* 1. Initial State: INVISIBLE & Slightly Moved Up */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px); /* Start slightly above */

    /* 2. Smooth Transition for Appearance */
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, 
                background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 3. Scrolled State: VISIBLE & In Position */
.main-header.scrolled .cta-button-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Move to final position */
    background-color: var(--primary-color); /* Ensure solid color */
    border-color: var(--primary-color); /* Ensure solid border */
    color: #fff; /* Ensure white text */
}

.cta-button-nav:hover {
    transform: translateY(-2px); /* Keep existing hover lift */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    /* Optional: Slightly darker background on hover if desired */
    /* background-color: var(--primary-hover-color); */
    /* border-color: var(--primary-hover-color); */
}

@media (max-width: 768px) {

    /* --- Header Responsivo --- */

    /* 1. Hacemos el contenedor del header más compacto */
    .header-container {
        padding: 10px 20px; /* Reduce el padding vertical y horizontal */
    }

    /* 2. Reducimos el tamaño del logo */
    .main-header .logo img {
        height: 40px; /* Un tamaño más adecuado para móviles */
    }

    /* 3. Hacemos el botón de CTA más pequeño */
    .cta-button-nav {
        padding: 6px 16px;
        font-size: 0.9rem;
    }

    /* 4. MUY IMPORTANTE: Ajustamos el padding de la primera sección */
    /* para que coincida con la nueva altura del header */
    #section1 {
        padding-top: 60px; /* Nueva altura: 40px (logo) + 10px*2 (padding) = 60px */
    }

}


/* Sections */
#section1 {
    display: flex;
    height: 90vh;
    overflow: hidden;
    position: relative;
    z-index: 1;

    /* --- AJUSTES AÑADIDOS --- */
    padding-top: 150px; /* Empuja el contenido hacia abajo */
    box-sizing: border-box;
}

#section3 {
    display: flex;
    min-height: 40vh;
}

#section4 {
    display: flex;
    min-height: 100vh;
}

#section5 {
    display: flex;
    min-height: 50vh;
    justify-content: center;
    align-items: center;
    background-color: #1C1C31;
    text-align: center;
}

/* --- Hero Sectio --- */
/* 2. Estilos para la Capa de Fondo y los Blobs */
.gradient-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Capa de fondo, por debajo del contenido */
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: moveBlob 30s infinite alternate;
}

.blob1 {
    width: 500px;
    height: 500px;
    background-color: #AEC6FF;
    /* background-color: #5785f1; */
    top: -20%;
    left: -10%;
    animation-duration: 35s;
}

.blob2 {
    width: 400px;
    height: 400px;
    background-color: #C7CEEA; /* Lavanda Pálido */
    bottom: -15%;
    right: -5%;
    animation-duration: 25s;
    animation-delay: -10s;
}

.blob3 {
    width: 300px;
    height: 300px;
    background-color: #B5EAD7; /* Menta Ligero */
    top: 20%;
    right: 25%;
    animation-duration: 40s;
    animation-delay: -5s;
}

/* 3. Ajustes para que tu Contenido se ponga ENCIMA */
.hero-content, .video-container {
    position: relative; /* Opcional pero recomendado */
    z-index: 2; /* MUY IMPORTANTE: Pone el texto y el video sobre la capa del fondo */
}

/* 4. Ajustes de color para el texto del Hero */
.hero-content h1, .hero-content .subtitle {
    color: #FFFFFF; /* Cambiamos el texto a blanco para que sea legible */
}

.gradient-text {
    /* background: linear-gradient(to right, #8A2BE2, var(--color-primary)); */
    background: linear-gradient(to right, #8A2BE2, #2A3EF4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.gradient-text-light {
    background: linear-gradient(to right, #ae60ee, #5ea7ec);
    /* background: linear-gradient(to right, #2A3EF4, #5ea7ec); */
    /* background-color: #2A3EF4; */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}


/* 5. La Animación (La misma que antes) */
@keyframes moveBlob {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(80px, -120px) scale(1.1);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* --- Estructura de la Hero Section --- */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 90vh;

    /* background-color: #F5F5F4; */
    /* background: linear-gradient(to bottom, #fcfcff, #F5F5F4); */
    /* background: linear-gradient(to bottom, #fcfcff, #fef9ff); */
    background: linear-gradient(to bottom, #fcfcff, #f6f6ff);

    padding: 60px 20px;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* --- Contenido de Texto y CTA --- */
.hero-content {
    max-width: 900px;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color-dark);
}

.hero-content .subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-color-light);
    margin-bottom: 2rem;
}

.cta-button {
    /* --- Layout y Alineación --- */
    display: inline-flex; /* Usamos Flexbox para alinear texto y flecha */
    align-items: center;  /* Centra verticalmente la flecha con el texto */
    gap: 10px;            /* Espacio entre el texto y la flecha */
    
    /* --- Apariencia Base (Sólido con Toques Glass) --- */
    padding: 15px 30px;
    background-color: #2A3EF4; /* Tu azul primario SÓLIDO */
    color: #FFFFFF;           /* Texto blanco */
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;     /* Tu borde redondeado */
    
    /* Toques sutiles de Glassmorphism */
    border: 1px solid rgba(255, 255, 255, 0.15); /* Borde claro muy sutil */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), /* Sombra oscura suave */
                inset 0 1px 1px rgba(255, 255, 255, 0.1); /* Ligero brillo interior */

    /* Transición suave para todos los efectos */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    background-color: #0056b3; /* Tu color hover */
    transform: translateY(-0.5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), /* Sombra hover más intensa */
                inset 0 1px 1px rgba(255, 255, 255, 0.2); /* Brillo interior hover */
}

/* --- Estilos para la Flecha SVG --- */
.cta-button svg {
    width: 1.2em;  /* Tamaño relativo al texto */
    height: 1.2em;
    stroke: #FFFFFF; /* ASEGURA que la flecha sea blanca */
    stroke-width: 2; /* Grosor de la línea de la flecha */
    transition: transform 0.2s ease;
}

.cta-button:hover svg {
    transform: translateX(3px); /* Mueve la flecha a la derecha al hacer hover */
}

/* --- Mockup con Video --- */
.mockup-container {
    position: relative; /* Contenedor para el video absoluto */
    max-width: 1100px;
    width: 100%;
    cursor: pointer; /* Indica que es clickeable */
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.video-container {
    max-width: 1100px;
    width: 100%;
    cursor: pointer;
    /* Mantenemos la sombra que ya tenías */
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1)); 
}

.mockup-frame {
    width: 100%;
    height: auto;
    display: block;
}

.demo-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px; 
    object-fit: cover;
}

/* --- Section 2 --- */
/* --- Sección Problema/Solución (Rediseñada con 3 Tarjetas de Colores) --- */
#section2 {
    background: linear-gradient(to bottom, #1d1d45, #1C1C31);
    padding: 100px 20px;
    color: #FFFFFF;
}

.problem-solution-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Encabezado */
#section2 .section-header {
    text-align: center;
    margin-bottom: 60px;
}
#section2 .section-header h2 { font-size: 2.8rem; margin-bottom: 1rem; }
#section2 .section-header p { font-size: 1.2rem; color: #B0B0D0; max-width: 700px; margin: 0 auto; }

/* Grid de Tarjetas (Ahora 3 Columnas) */
.solution-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* CORREGIDO: 3 columnas */
    gap: 20px;
}

.solution-card {
    border-radius: 16px;
    padding: 30px; /* Increased padding */
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    border: 1px solid transparent;
    min-height: 250px; /* Standard height, allows space for large H3 */
    display: flex; /* Use flexbox to position content */
    flex-direction: column;
    justify-content: flex-end; /* Push content to the bottom */
}

/* --- COLORES DISTINTOS PARA CADA TARJETA --- */
/* Tarjeta 1: Azul/Verde (Game-Ready) */
.solution-card:nth-child(1) {
    background-color: #2E4C4D; /* Verde azulado oscuro */
    border-color: #3B6F70;
}
.solution-card:nth-child(1).active {
    background-color: #3B6F70; /* Más claro al activar */
    border-color: #76D7C4;
}

/* Tarjeta 2: Naranja/Ámbar (Aceleración) */
.solution-card:nth-child(2) {
    background-color: #6D4C1D; /* Ámbar oscuro */
    border-color: #9A6E28;
}
.solution-card:nth-child(2).active {
    background-color: #9A6E28; /* Más claro al activar */
    border-color: #FFCA28;
}

/* Tarjeta 3: Púrpura/Magenta (Visión) */
.solution-card:nth-child(3) {
    background-color: #512E5F; /* Púrpura oscuro */
    border-color: #75428A;
}
.solution-card:nth-child(3).active {
    background-color: #75428A; /* Más claro al activar */
    border-color: #D8BEE8;
}


/* Contenido Interno (Se mantiene mayormente igual) */
.card-header {
    display: flex;
    align-items: baseline; /* Align icon and text baseline */
    gap: 10px;
    /* Removed margin-bottom */
}

.card-icon {
    font-size: 1.5rem;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.card-header h3 {
    margin: 0;
    font-size: 2.5rem; /* <<< SIGNIFICANTLY LARGER H3 */
    font-weight: 700;
    color: #FFFFFF; /* White text for dark cards */
    line-height: 1.2; /* Adjust line height for larger text */
    /* Removed transition - color changes instantly with background */
}

.card-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in 0.1s, margin-top 0.4s ease-in-out;
}
.card-details h4 { font-size: 1rem; color: #FFFFFF; margin-top: 0; margin-bottom: 10px; }
.card-details p {
    font-size: 1rem; /* Slightly larger paragraph */
    color: #E0E0E0;
    line-height: 1.6;
    margin: 0;
}
.highlight-number { font-size: 3rem; font-weight: 700; color: #FFFFFF; /* Blanco para destacar en colores */ display: block; margin: 10px 0; }

/* Estado Activo de la Tarjeta */
.solution-card.active .card-details {
    max-height: 400px;
    opacity: 1;
    margin-top: 20px;
}
/* (Opcional) Sombra sutil al activar */
.solution-card.active {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}


/* --- Responsivo para Móvil --- */
@media (max-width: 992px) {
    .solution-cards-grid {
        grid-template-columns: 1fr; /* Apila las 3 tarjetas */
        gap: 15px;
    }
    #section2 .section-header h2 { font-size: 2.2rem; }
}

/* --- Sección de Pasos Interactivos con Estilo "Liquid Glass" --- */

#steps-section {
    /* background: linear-gradient(to top, #ece6f7, #F2F3F4); */
    background: linear-gradient(to top, #ece6f7, #ffffff);
    padding: 100px 20px;
}

.steps-container {
    max-width: 1400px;
    margin: 0 auto;
}

.steps-section {
    width: 100%;
}

.steps-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 40px;
    color: #110e0e; /* Texto oscuro para el fondo claro */
}

.interactive-steps-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

/* --- Visor de Videos (sin cambios) --- */
.video-viewer {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.step-video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transition: opacity 0.5s ease-in-out;
}
.step-video.active {
    opacity: 1;
}

/* --- Lista de Pasos Interactivos --- */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- ESTILO "LIQUID GLASS" PARA LAS TARJETAS --- */
.step-card-interactive {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 16px; /* Bordes redondeados son clave */
    cursor: pointer;
    
    /* 1. Fondo semi-transparente y desenfoque */
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Soporte para Safari */
    
    /* 2. Borde sutil que define el cristal */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 4px solid transparent;

    /* 3. Sombra para dar profundidad */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);

    transition: all 0.3s ease;
}

/* Estado Hover: se ilumina sutilmente */
.step-card-interactive:hover {
    background-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-5px);
}

/* Estado Activo: borde y fondo más pronunciados */
.step-card-interactive.active {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #2A3EF4;
    border-left: 4px solid #2A3EF4;
    transform: translateY(-5px);
}

/* --- Ajuste de colores de texto para el fondo claro --- */
.step-content-interactive h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    color: #110e0e; /* Texto principal oscuro */
}

.step-content-interactive p {
    margin: 0;
    color: #495057; /* Texto secundario en gris */
    line-height: 1.5;
}

/* El número mantiene su estilo */
.step-number {
    flex-shrink: 0; width: 50px; height: 50px; display: flex;
    align-items: center; justify-content: center; border-radius: 50%;
    background: linear-gradient(135deg, #2A3EF4, #8A2BE2);
    font-size: 1.8rem; font-weight: 700; color: #FFFFFF;
}

/* --- Diseño Responsivo para Móvil (sin cambios) --- */
@media (max-width: 992px) {
    .interactive-steps-grid {
        grid-template-columns: 1fr;
    }
}


/* --- Estilos para la Gráfica (Sin cambios funcionales) --- */
.timeline-comparison-container { width: 100%; }
.timeline-row { display: grid; grid-template-columns: 120px 1fr; align-items: start; gap: 15px; margin-bottom: 80px; }
.timeline-label { font-weight: 600; color: #B0B0D0; font-size: 0.9rem; text-align: right; padding-top: 42px; }
.timeline-wrapper { position: relative; padding-top: 50px; }
/* .timeline-bar { display: flex; width: 100%; height: 45px; background-color: #2a2a2e; border-radius: 8px; overflow: hidden; } */
.timeline-bar { display: flex; width: 100%; height: 45px; background-color: #F2F3F4; border-radius: 8px; overflow: hidden; }
.timeline-segment { height: 100%; width: 0; transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.timeline-markers { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.timeline-marker { position: absolute; top: calc(50px + 22.5px); text-align: center; color: #B0B0D0; font-size: 0.8rem; opacity: 0; transition: opacity 0.5s ease 0.5s, transform 0.3s ease; white-space: nowrap; }
.marker-label { font-weight: 600; color: #FFFFFF; display: block; margin-bottom: 4px; }
.timeline-marker.visible { opacity: 1; }
.timeline-marker:nth-child(odd) { transform: translate(-50%, -190%); }
.timeline-marker:nth-child(even) { transform: translate(-50%, 90%); }
.timeline-marker::before { content: ''; position: absolute; left: 50%; transform: translateX(-50%); width: 1px; background-color: #6A6A8A; }
.timeline-marker:nth-child(odd)::before { top: 100%; height: 40px; }
.timeline-marker:nth-child(even)::before { bottom: 100%; height: 40px; }

/* --- Aqui termina section 2 --- */
/* --- Pasos de la Solución --- */
.solution-steps {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}
.solution-steps li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.solution-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    margin-right: 15px;
}

/* --- Estructura Principal de la Sección 3 --- */
#section3 {
    padding: 80px 20px;
    background-color: #fff; /* Se asume un fondo, puedes cambiarlo */
}

#section3 .container {
    max-width: 1100px;
    margin: 0 auto;
}

#section3 .section-header {
    text-align: center;
    margin-bottom: 60px;
}

#section3 .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #212529;
}

#section3 .section-header p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 650px;
    margin: 0 auto;
}

/* --- Sección de Video Teaser --- */
#video-section {
    padding: 100px 20px;
    background-color: #FFFEFC;
}

/* Usamos el mismo .section-header que ya tienes */
#video-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}
#video-section .section-header h2 {
    font-size: 4rem;
    color: #212529;
}

.video-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden; 
}

.video-wrapper iframe {
    width: 100%;
    height: auto; 
    aspect-ratio: 16 / 9; 
    display: block;
    border: none;
}

/* --- Sección de Características (Rediseñada con Comparativa) --- */

#features-section {
    padding: 100px 20px;
    /* background-color: #f0f2f5; */
    /* background-color: #fff; */
    background: linear-gradient(to top, #FFFFFF, #f9f9ff);
}

#features-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Encabezado */
#features-section .section-header { text-align: center; margin-bottom: 60px; }
#features-section .section-header h2 { font-size: 4rem; color: #212529; }
#features-section .section-header p { font-size: 1.2rem; max-width: 650px; margin: 0 auto; color: #495057; }

/* --- Bento Grid Layout --- */
.bento-grid-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(250px, auto); /* Taller rows */
    gap: 20px;
}

/* Tarjeta base */
.bento-card {
    border-radius: 16px;
    padding: 25px; /* Reduced padding slightly */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Alinea contenido abajo */
}
.bento-card .card-content {
    position: relative;
    z-index: 2;
    /* Allow content to take full height if needed */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Default alignment */
}
.bento-card h3 { margin: 0 0 8px 0; }
.bento-card p { font-size: 0.9rem; line-height: 1.6; margin: 0; }

/* --- Estilos Específicos de Tarjeta --- */

/* Card 1: Production Ready (Tall) */
.tall-card {
    grid-row: span 2;
    background-color: #262626;
    color: #FFFFFF;
}
.tall-card .card-bg-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; object-position: center 30%; opacity: 0.4; z-index: 1; }
.tall-card .card-content { /* Ensure content stays at bottom */
    position: absolute; bottom: 25px; left: 25px; right: 25px; text-align: center;
}
.tall-card h3, .tall-card p { color: #FFFFFF; }
.tall-card h3 { font-size: 1.8rem; }
.tall-card p { font-size: 1rem; }

/* Card 2: Speed/Cost */
.card-speed {
    background: linear-gradient(to bottom, #FFFFFF, #E4E5F2);
    border: 1px solid #e9ecef;
    justify-content: center; /* Center content vertically */
    align-items: center;
    text-align: center;
}
.card-speed .card-content { justify-content: center; align-items: center; } /* Center alignment */
.speed-highlight {
    font-size: 5rem;
    font-weight: 800;
    color: #2A3EF4;
    line-height: 1;
    display: block;
    margin-bottom: 25px;
}
.card-subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    color: #495057;
    line-height: 1.5;
}

/* Card 3: Control/Workflow */
.card-control {
    /* background-color: #ffffff; */
    background: linear-gradient(to bottom, #1C1C31, #000965);
    border: 1px solid #e9ecef;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.card-control .control-title {
    color: #fff;
}

.card-control .card-subtitle {
    color: #fff;
}

.card-control .card-content { justify-content: center; align-items: center; }
.control-title {
    font-size: 2.8rem; /* <<< Larger Title */
    font-weight: 700;
    color: #212529;
    margin: 0;
    line-height: 1.1;
    margin-bottom: 25px;
}
/* Reuses .card-subtitle style */

/* Card 4: IP Protection (Wide) */
.wide-card {
    grid-column: span 2;
    background-color: #E8EAF6; /* Fondo de fallback */
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex; /* Hacemos la tarjeta flex para alinear su contenido */
    flex-direction: column; /* Para que el contenido se apile verticalmente */
    justify-content: flex-end; /* ¡Esto es lo clave! Empuja el contenido al final (bottom) */
    position: relative; /* Necesario para posicionar el blob */

    /* Degradado con Blob (ejemplo de fondo con una forma abstracta) */
    /* background: linear-gradient(135deg, #eff1ff 0%, #ebeef9 100%); */
    background-color: #fff;
}

/* El blob o forma orgánica */
.wide-card::before {
    content: '';
    position: absolute;
    top: -50px; /* Ajusta la posición del blob */
    left: -50px; /* Ajusta la posición del blob */
    width: 200px; /* Tamaño del blob */
    height: 200px; /* Tamaño del blob */
    background: radial-gradient(circle, #d5dbff 0%, rgba(179,191,255,0) 70%); /* Degradado radial para el blob */
    border-radius: 40% 60% 70% 30% / 40% 40% 60% 60%; /* Forma orgánica (blob) */
    opacity: 0.4; /* Transparencia */
    filter: blur(40px); /* Desenfoque para suavizar */
    z-index: 0; /* Asegura que esté detrás del contenido */
    animation: blob-move 10s infinite alternate; /* Animación opcional */
}

/* Puedes agregar más blobs si quieres */
.wide-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #c8d1ff 0%, rgba(165,180,255,0) 70%);
    border-radius: 30% 70% 50% 50% / 30% 30% 70% 70%;
    opacity: 0.3;
    filter: blur(35px);
    z-index: 0;
    animation: blob-move-alt 12s infinite alternate; /* Animación opcional */
}


/* El contenedor interno es el que organiza el layout (ahora dentro de un flex column) */
.wide-card .banner-content {
    display: flex;
    flex-direction: row; /* Asegura layout horizontal */
    justify-content: space-between; /* Empuja texto a la izq, SVG a la der */
    align-items: flex-end; /* ¡Esto es lo clave! Alinea el texto y el SVG al final de su contenedor */
    width: 100%;
    gap: 30px;
    position: relative; /* Para que el contenido esté por encima del blob */
    z-index: 1; /* Asegura que el contenido esté por encima de los blobs */
}


/* Animaciones de blobs (Opcional, para que se muevan suavemente) */
@keyframes blob-move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(20px, 20px) scale(1.1); }
}
@keyframes blob-move-alt {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-15px, -15px) scale(1.05); }
}

/* El contenedor interno es el que organiza el layout */
.wide-card .banner-content {
    display: flex;
    flex-direction: row; /* Asegura layout horizontal */
    justify-content: space-between; /* Empuja texto a la izq, SVG a la der */
    align-items: center; /* Centra verticalmente */
    width: 100%;
    gap: 30px;
}

/* El bloque de texto */
.wide-card .banner-text {
    flex-grow: 1; /* Permite que el texto ocupe el espacio disponible */
    text-align: left;
}

.wide-card h3, .wide-card p {
    color: #3B3B5B;
    margin: 0;
}
.wide-card h3 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}
.wide-card p {
    font-size: 1rem;
    opacity: 0.8;
}

/* El SVG */
.wide-card .banner-svg {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}
.wide-card .banner-svg svg { width: 100%; height: 100%; }
.wide-card .banner-svg path { fill: #2A3EF4; }
/* Si tu SVG final no tiene un círculo, elimina esta línea */
.wide-card .banner-svg circle { fill: #FFFFFF; }


/* --- Responsivo --- */
@media (max-width: 992px) {
    .bento-grid-features {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: minmax(220px, auto);
    }
    .tall-card { grid-column: span 2; grid-row: span 1; min-height: 300px; }
    .card-speed, .card-control { grid-column: span 1; grid-row: span 1; }
    .wide-card { grid-column: span 2; }
     /* Order for tablet */
     .tall-card { grid-row: 1 / 2; grid-column: 1 / 3; }
     .card-speed { grid-row: 2 / 3; grid-column: 1 / 2; }
     .card-control { grid-row: 2 / 3; grid-column: 2 / 3; }
     .wide-card { grid-row: 3 / 4; grid-column: 1 / 3; }

    /* Adjust text sizes for tablet */
    .speed-highlight { font-size: 4rem; }
    .control-title { font-size: 2.2rem; }
    .card-subtitle { margin-top: 15px; }
}

@media (max-width: 600px) {
    .bento-grid-features {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .tall-card, .card-speed, .card-control, .wide-card {
        grid-column: span 1;
        grid-row: span 1;
        min-height: auto;
    }
    .tall-card { min-height: 300px; }
    .wide-card {
        padding: 25px;
    }
    .wide-card .banner-content {
        flex-direction: column; /* Apila en móvil */
        text-align: center;
        align-items: center; /* Centra */
    }
     .wide-card .banner-text { text-align: center; }
     .wide-card .banner-svg { margin-top: 20px; }

    /* Adjust text sizes for mobile */
    .speed-highlight { font-size: 3.5rem; }
    .control-title { font-size: 2rem; }
    .card-subtitle { margin-top: 10px; }
}

/* --- Aseguramos que los estilos base no interfieran (Opcional pero seguro) --- */
.bento-card.wide-card {
    justify-content: initial; /* Resetea la justificación vertical del base */
}

/* --- Columna Derecha: Visual --- */
.mission-visual {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.mission-visual img {
    width: 100%;
    display: block;
}

.visual-quote {
    position: absolute;
    bottom: 25px;
    left: 25px;
    right: 25px;

    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* Soporte para Safari */
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);

    color: #E0E0E0;
    font-size: 1.1rem;
    font-weight: 500;
}

.visual-quote span {
    font-weight: 700;
    color: #FFFFFF;
}

/* --- Estructura de la Sección CTA --- */
.cta-section {
    position: relative;
    overflow: hidden;
    
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background-color: #1C1C31;
    color: #fff;
    padding: 100px 20px;
    text-align: center;
    box-sizing: border-box;
}

/* Contenedor del contenido principal */
.cta-section .container {
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

/* Título mucho más grande y con más impacto */
.cta-section h2 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-section p {
    font-size: 1.2rem; /* Un poco más grande para mejor lectura */
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

/* --- Estilos para el Aviso del Formulario --- */
.form-notice {
    margin-top: 20px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.form-notice a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}

/* --- Oculta la insignia flotante de reCAPTCHA --- */
.grecaptcha-badge {
    visibility: hidden;
}

/* --- Estilos para el texto de aviso --- */
.recaptcha-notice {
    margin-top: 20px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.recaptcha-notice a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}

/* --- Mockup que se Asoma --- */
.cta-mockup-peek {
    position: absolute;
    bottom: -25%;
    left: 50%;
    transform: translateX(-50%);
    
    width: 130%;
    max-width: 900px;
    
    opacity: 0.15;
    z-index: 2;
    pointer-events: none;

    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}


/* --- Fondo de Blobs Animados para CTA --- */
#cta-section .gradient-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#cta-section .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: moveBlob 40s infinite alternate;
}

#cta-section .blob1 {
    width: 400px; height: 400px;
    background-color: var(--color-primary);
    top: 0%;
    left: 10%;
    animation-duration: 45s;
}

#cta-section .blob2 {
    width: 500px; height: 500px;
    background-color: #8A2BE2;
    bottom: 0%;
    right: 5%;
    animation-duration: 35s;
    animation-delay: -15s;
}

/* (Asegúrate de tener la animación @keyframes en tu CSS) */
@keyframes moveBlob {
    0% { transform: translate(0, 0); }
    50% { transform: translate(60px, -90px) scale(1.1); }
    100% { transform: translate(0, 0); }
}

/* --- CTA Section Responsive (Móvil) --- */

@media (max-width: 768px) {

    #cta-section {
        min-height: 70vh;
        padding: 80px 20px;
        align-items: center;
    }

    #cta-section .container {
        max-width: 90%;
    }

    /* Adjust text sizes for smaller screens */
    #cta-section h2 {
        font-size: 2.5rem; /* Smaller title */
    }

    #cta-section p {
        font-size: 1rem; /* Smaller paragraph */
    }

    /* Adjust the form for stacking (assuming .waitlist-form uses flex) */
    #cta-section .waitlist-form {
        flex-direction: column; /* Stack input and button vertically */
        align-items: center; /* Center items */
    }
    #cta-section .waitlist-form input[type="email"] {
        min-width: 100%; /* Make input take full width */
        margin-bottom: 15px; /* Add space below input */
    }
     #cta-section .waitlist-form button {
       width: 100%; /* Make button take full width */
       max-width: 320px; /* Optional: limit button width */
    }


    /* --- Mockup Adjustments for Mobile --- */
    .cta-mockup-peek {
        width: 80%;      /* Make it wider relative to the smaller screen */
        max-width: 600px; /* Reduce the maximum absolute size */
        bottom: -14%;     /* Adjust the vertical position to control the "peek" */
        opacity: 0.1;     /* Make it even more subtle on mobile */
    }

    /* Adjust blob sizes and positions if needed */
    #cta-section .blob1 {
        width: 300px;
        height: 300px;
        top: -10%;
        left: -15%;
    }
     #cta-section .blob2 {
        width: 350px;
        height: 350px;
        bottom: -10%;
        right: -10%;
    }
}

/* --- Formulario de Lista de Espera --- */
.waitlist-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.waitlist-form input[type="email"] {
    min-width: 320px;
    padding: 18px 20px;
    font-size: 1rem;
    border: 1px solid #555;
    background-color: #2a2d42;
    color: #fff;
    border-radius: 8px;
    outline: none; /* Quita el borde al hacer foco */
    transition: border-color 0.3s ease;
}

.waitlist-form input[type="email"]::placeholder {
    color: #888;
}

.waitlist-form input[type="email"]:focus {
    border-color: var(--color-action);
}

.waitlist-form button {
    padding: 18px 35px;
    font-size: 1rem;
    font-weight: 700;
    background-color: var(--color-action);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.waitlist-form button:hover {
    background-color: var(--color-action-hover);
    transform: translateY(-2px);
}

.form-footer {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);
}

/* --- FAQ Section (Diseño de Grid con Ancho Variable - Final y Sincronizado) --- */
#faq-section {
    position: relative;
    overflow: hidden;
    background-color: #FFFFFF;
    padding: 100px 20px;
}

/* --- Fondo de Blobs --- */
#faq-section .gradient-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
#faq-section .blob { position: absolute; border-radius: 50%; filter: blur(150px); opacity: 0.35; animation: moveBlob 40s infinite alternate; } /* Opacidad ligeramente aumentada */
#faq-section .blob1 { width: 400px; height: 400px; background-color: #AEC6FF; top: -10%; left: -5%; }
#faq-section .blob2 { width: 500px; height: 500px; background-color: #C7CEEA; bottom: -20%; right: 10%; animation-delay: -10s; }
#faq-section .blob3 { width: 300px; height: 300px; background-color: #B5EAD7; top: 20%; right: 40%; animation-delay: -5s; }

/* Contenedor Principal */
.faq-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}
.faq-container h2 {
    text-align: center;
    font-size: 4rem;
    margin-bottom: 60px;
    color: #212529;
}

/* El grid flexible */
.faq-grid-expanding {
    display: flex;
    gap: 20px;
    height: 400px;
}

.faq-card {
    flex: 1;
    border-radius: 16px;
    padding: 30px;
    cursor: pointer;
    background-color: #e9ecef; /* 1. TARJETA CLARA MÁS GRIS */
    
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    
    transition: flex 0.5s cubic-bezier(0.645, 0.045, 0.355, 1), background-color 0.4s ease;
}

/* 2. ANCHOS DE TARJETA CORREGIDOS */
.faq-grid-expanding.active-card .faq-card {
    flex: 1; /* Ligeramente más ancha */
}
.faq-grid-expanding.active-card .faq-card.active {
    flex: 2; /* Ligeramente más estrecha */
}

/* --- Estilos para la PREGUNTA (h3) --- */
.faq-card-question h3 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.3;
    color: #212529;
    transition: color 0.4s ease;
    transform-origin: left bottom;
    word-break: break-word;
}

/* --- Estilos para la RESPUESTA (p) --- */
.faq-card-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease 0.3s, opacity 0.3s ease 0.4s, margin-top 0.4s ease 0.3s;
}
.faq-card-answer p {
    color: #B0B0D0;
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
}

/* --- Estilos cuando una tarjeta está ACTIVA --- */
.faq-card.active {
    background-color: #182a55;
}

.faq-card.active .faq-card-question h3 {
    color: #FFFFFF;
    transform: scale(1.05);
}

.faq-card.active .faq-card-answer {
    max-height: 200px;
    opacity: 1;
    margin-top: 15px;
}

/* --- Responsivo --- */
@media (max-width: 992px) {
    .faq-grid-expanding {
        flex-direction: column;
        height: auto;
    }
    .faq-card {
        min-height: 120px;
        justify-content: center;
        transition: min-height 0.4s ease-in-out, background-color 0.4s ease;
    }
    .faq-grid-expanding.active-card .faq-card,
    .faq-grid-expanding.active-card .faq-card.active {
        flex: 1;
    }
    .faq-card.active {
        min-height: 350px;
        justify-content: flex-start;
    }
}

/* --- Footer --- */
footer {
    background-color: #1C1C31;
    color: white;
    padding: 60px 40px;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1400px; 
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* MODIFICADO: Las columnas ya no necesitan ancho ni margen */
.footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    width: 100%;
}

.footer-column {
    padding: 0;
}

.footer-column.text { text-align: left; }
.footer-column.contact, .footer-column.social { text-align: right; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column ul li { display: inline-block; margin-left: 15px; }
.footer-column ul li svg { width: 24px; height: 24px; fill: white; transition: fill 0.3s; }
.footer-column ul li a:hover svg { fill: #3498db; }

/* MODIFICADO: La barra inferior ahora es más simple */
.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.footer-bottom .copyright { text-align: left; }
.footer-bottom .logo-footer { justify-self: center; }
.footer-bottom .logo-footer img { width: 50px; }
.footer-bottom .privacy { text-align: right; }
.footer-bottom a { color: white; text-decoration: none; transition: color 0.3s; }
.footer-bottom a:hover { color: #3498db; }


/* NUEVO: Contenedor para los elementos extra de abajo */
.footer-extra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.language-select {
    background-color: transparent;
    color: white;
    border: 1px solid #6A6A8A;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}
.language-select:focus {
    outline: none;
}

/* 1. Estilos para el email de contacto */
.footer-column.contact a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-column.contact a:hover {
    color: #3498db; /* Mismo efecto hover que los demás enlaces */
}

/* 2. Restauración de estilos para la lista de redes sociales */
.footer-column.social ul {
    display: flex;
    flex-direction: column; /* Apila los íconos verticalmente */
    align-items: flex-end; /* Los alinea a la derecha */
    gap: 15px;             /* Espacio entre íconos */
}

.footer-column.social ul li {
    display: inline-flex; /* Asegura que el link y el svg se alineen bien */
    margin-left: 0; /* Resetea el margen que puse por error */
}

.footer-column.social ul li svg {
    width: 20px; /* Tamaño original que tenías */
    height: 20px;
    fill: white;
    transition: fill 0.3s ease;
}

/* 3. Aseguramos el efecto hover en el ícono */
.footer-column.social ul li a:hover svg {
    fill: #3498db;
}

/* --- Diseño Responsivo --- */
@media (max-width: 768px) {
    /* --- Section 1 --- */
    .hero-content h1 {
        font-size: 3rem;
        font-weight: 700;
    }

    .hero-content .subtitle {
        font-size: 1rem; /* 18px */
    }

    .hero-section {
        padding: 40px 20px;
    }
    /* --- Section 2 -- */
    #section2 {
        margin-top: -80px; /* Un solapamiento menor para pantallas pequeñas */
    }
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    .interactive-comparison {
        padding: 20px;
    }
    .tabs-container {
        flex-wrap: wrap;
    }
}