/* ===== RESeteo BÁSICO Y MEJORES PRÁCTICAS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== VARIABLES GLOBALES (PALETA DE COLORES Y FUENTES) ===== */
:root {
    --color-background: #0a0e1a; /* Un azul muy oscuro, casi negro */
    --color-text-primary: #f0f0f0; /* Un blanco suave */
    
    /* === TUS NUEVOS COLORES DE MARCA === */
    --color-accent: #0e999c;         /* Teal - Principal 🎨 */
    --color-accent-secondary: #ef5327; /* Naranja - Para alertas o llamadas a la acción */
    --color-accent-tertiary: #b08ec1;  /* Lavanda - Para elementos sutiles */

    --font-primary: 'Inter', sans-serif;
}


/* ===== ESTILOS BASE DEL CUERPO ===== */
html {
    scroll-behavior: smooth; /* Para un scroll suave entre secciones si lo usamos */
    
}

body {
    background-color: var(--color-background);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    overscroll-behavior-y: none; /* Evita el "rebote" al llegar al final del scroll */
}

/* ===== ESTILO PARA EL CONTENEDOR PRINCIPAL ===== */
#deck-container {
    width: 100%;
    display: flow-root; 
}

/* ===== ESTILO COMÚN PARA TODAS LAS ESCENAS ===== */
.scene {
    height: 100vh; /* ¡La clave! Cada escena ocupa el 100% de la altura de la ventana */
    width: 100%;
    
    
    /* Centramos el contenido de la escena vertical y horizontalmente */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Añadimos un poco de padding por si el contenido se acerca a los bordes */
    padding: 2rem;
    
    /* Para debug, un borde temporal. Lo quitaremos después. */
    border-bottom: 1px dashed #333; 
}

/* ===== ESTILOS DE TEXTO BÁSICOS ===== */
h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    opacity: 0.5; /* Hacemos los placeholders semitransparentes */
}

/* =================================== */
/* ===== ESCENA 1: THE HOOK STYLES ===== */
/* =================================== */

#scene-1-hook h1 {
    font-size: clamp(2rem, 5vw, 4rem); /* Fuente responsiva: min, ideal, max */
    font-weight: 700;
    text-align: center;
    max-width: 900px; /* Evita que las líneas sean demasiado largas en pantallas grandes */
    line-height: 1.3;
}

/* Estilo para cada línea de texto que vamos a animar */
#scene-1-hook .line {
    display: block; /* Cada span se comporta como un bloque para ocupar su propia línea */
    opacity: 0; /* Inicialmente invisible */
    transform: translateY(40px); /* Inicialmente desplazado hacia abajo */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* Animación suave */
    transition-delay: 0.2s; /* Un pequeño retraso para que la animación no sea tan brusca */
}

/* Esta clase la añadiremos con JavaScript para activar la animación */
#scene-1-hook .line.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Estilo para las palabras que queremos destacar */
#scene-1-hook .highlight {
    color: var(--color-accent);
    font-weight: 900;
}

/* ======================================= */
/* ===== ESCENA 2: THE PROBLEM STYLES ===== */
/* ======================================= */

#scene-2-problem .problem-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
}

#scene-2-problem .stat-line {
    display: flex;
    align-items: baseline; /* Alinea el número y el texto en su base */
    justify-content: center;
    margin-bottom: 2rem;
    width: 100%;
}

#scene-2-problem .number {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    color: var(--color-accent);
    margin-right: 1.5rem;
    flex-shrink: 0; /* Evita que el número se encoja */
}

#scene-2-problem .text {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 400;
    text-align: left;
}

#scene-2-problem .fail-rate {
    color: var(--color-accent-secondary); /* Usamos el color naranja para la tasa de fallo */
}

#scene-2-problem .summary-line {
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 2rem;
    line-height: 1.4;
}

#scene-2-problem .summary-line strong {
    font-weight: 700;
    color: var(--color-text-primary);
    display: block; /* Para que ocupe una nueva línea */
    margin-top: 0.5rem;
}

/* --- Animación para la Escena 2 --- */

/* Estilo inicial de los elementos a animar */
#scene-2-problem .anim-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* La clase .active se añade al CONTENEDOR de la escena con JS */
/* Cuando el contenedor está activo, aplicamos la animación a los hijos (.anim-item) */
#scene-2-problem.active .anim-item {
    opacity: 1;
    transform: translateY(0);
}

/* Staggering (retraso escalonado) para la animación de cada item */
#scene-2-problem.active .anim-item:nth-child(1) { transition-delay: 0.2s; }
#scene-2-problem.active .anim-item:nth-child(2) { transition-delay: 0.4s; }
#scene-2-problem.active .anim-item:nth-child(3) { transition-delay: 0.6s; }
#scene-2-problem.active .anim-item:nth-child(4) { transition-delay: 0.9s; }

/* =========================================== */
/* ===== ESCENA 3: THE EVOLUTION STYLES ===== */
/* =========================================== */

#scene-3-evolution .evolution-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    padding: 0 2rem;
}

#scene-3-evolution h2 {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 1; /* Sobrescribimos la opacidad del placeholder */
}

.timeline {
    position: relative;
    width: 100%;
    padding: 2rem 0;
}

/* La línea vertical central de la timeline */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: var(--color-accent);
    opacity: 0.3;
    transform: translateX(-1px);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
}

/* Posiciona los items pares a la derecha */
.timeline-item:nth-child(even) {
    left: 50%;
}

/* Posiciona los items impares a la izquierda */
.timeline-item:nth-child(odd) {
    text-align: right;
    clear: both;
    float: left;
}

/* Círculo en la línea central para cada item */
.timeline-item::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--color-background);
    border: 3px solid var(--color-accent);
}

.timeline-item:nth-child(even)::after {
    left: -8px; /* Mitad del ancho del círculo para centrarlo */
}

.timeline-item:nth-child(odd)::after {
    right: -8px;
}


.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 1.1rem;
}
/* === AÑADE ESTE BLOQUE DE CÓDIGO AQUÍ === */
.timeline::after {
    content: "";
    display: table;
    clear: both;
}
/* ======================================== */

.next-frontier {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-top: 2rem;
    font-weight: 400;
}

.next-frontier strong {
    font-weight: 900;
    color: var(--color-accent);
}

/* --- Animación para la Escena 3 --- */
#scene-3-evolution .anim-item {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#scene-3-evolution.active .anim-item {
    opacity: 1;
}

/* Animación para los items de la izquierda */
#scene-3-evolution .timeline-item:nth-child(odd) { transform: translateX(-40px); }
#scene-3-evolution.active .timeline-item:nth-child(odd) { transform: translateX(0); }

/* Animación para los items de la derecha */
#scene-3-evolution .timeline-item:nth-child(even) { transform: translateX(40px); }
#scene-3-evolution.active .timeline-item:nth-child(even) { transform: translateX(0); }

/* Animación para título y frase final */
#scene-3-evolution h2, #scene-3-evolution .next-frontier { transform: translateY(40px); }
#scene-3-evolution.active h2, #scene-3-evolution.active .next-frontier { transform: translateY(0); }

/* Staggering (retraso escalonado) */
#scene-3-evolution.active .anim-item:nth-child(1) { transition-delay: 0.2s; } /* Título */
#scene-3-evolution.active .timeline .anim-item:nth-child(1) { transition-delay: 0.4s; }
#scene-3-evolution.active .timeline .anim-item:nth-child(2) { transition-delay: 0.6s; }
#scene-3-evolution.active .timeline .anim-item:nth-child(3) { transition-delay: 0.8s; }
#scene-3-evolution.active .next-frontier { transition-delay: 1s; }


/* ========================================= */
/* ===== ESCENA 4: THE ANALOGY STYLES ===== */
/* ========================================= */

#scene-4-analogy .analogy-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
}

#scene-4-analogy .intro-text {
    text-align: center;
    margin-bottom: 4rem;
}

#scene-4-analogy .intro-text h2 {
    opacity: 1; /* Sobrescribimos la opacidad del placeholder */
    margin-bottom: 1rem;
}

#scene-4-analogy .intro-text p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.problems-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    gap: 2rem;
}

.problem-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    width: 45%;
    text-align: center;
}

.problem-card h3 {
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.problem-card p {
    font-size: 1.1rem;
    line-height: 1.5;
}

.problem-card strong {
    font-weight: 700;
}

.icon-container {
    height: 100px;
    width: 100%;
    margin-bottom: 2rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* --- Icono SVG del Iceberg --- */
#icon-iceberg {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%230e999c' fill-opacity='0.2' d='M10 90 H90 L50 70z'/%3E%3Cpath fill='%230e999c' d='M25 70 L75 70 L50 40z'/%3E%3Cline x1='0' y1='70' x2='100' y2='70' stroke='%23f0f0f0' stroke-width='1' stroke-dasharray='4'/%3E%3C/svg%3E");
}

/* --- Icono SVG de la Barrera --- */
#icon-barrier {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3CradialGradient id='g' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='0%25' stop-color='%23ef5327'/%3E%3Cstop offset='100%25' stop-color='transparent'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M10 20 Q50 10, 90 20' fill='none' stroke='%23f0f0f0' stroke-width='2'/%3E%3Cpath d='M10 80 Q50 90, 90 80' fill='none' stroke='%23f0f0f0' stroke-width='2'/%3E%3Ccircle cx='50' cy='50' r='5' fill='%230e999c'/%3E%3Ccircle cx='50' cy='20' r='10' fill='url(%23g)'/%3E%3C/svg%3E");
}

/* --- Animación para la Escena 4 --- */
#scene-4-analogy .anim-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#scene-4-analogy.active .anim-item {
    opacity: 1;
    transform: translateY(0);
}

#scene-4-analogy.active .anim-item:nth-child(1) { transition-delay: 0.2s; } /* intro-text */
#scene-4-analogy.active .problems-container .anim-item:nth-child(1) { transition-delay: 0.5s; } /* card 1 */
#scene-4-analogy.active .problems-container .anim-item:nth-child(2) { transition-delay: 0.7s; } /* card 2 */

/* ========================================== */
/* ===== ESCENA 5: THE SOLUTION STYLES ===== */
/* ========================================== */

#scene-5-solution .solution-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    text-align: center;
}

#scene-5-solution h2 {
    opacity: 1; /* Sobrescribimos la opacidad del placeholder */
    margin-bottom: 4rem;
}

.solutions-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    gap: 2rem;
    margin-bottom: 4rem;
}

.solution-card {
    background-color: rgba(14, 153, 156, 0.1); /* Fondo sutil con el color de acento */
    border: 1px solid var(--color-accent);
    border-radius: 10px;
    padding: 2rem;
    width: 45%;
    text-align: center;
    box-shadow: 0 0 20px rgba(14, 153, 156, 0.2); /* Un brillo sutil */
}

.solution-card h3 {
    font-size: 1.8rem;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.solution-card p {
    font-size: 1.1rem;
    line-height: 1.5;
}

.solution-card strong, .solution-card em {
    font-weight: 700;
    color: var(--color-accent);
}

.conclusion-text {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
}

.conclusion-text strong {
    display: block;
    margin-top: 0.5rem;
    color: var(--color-accent);
    font-weight: 700;
}

/* --- Icono SVG del Iceberg Completo --- */
#icon-iceberg-full {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%230e999c' d='M10 90 H90 L50 70z'/%3E%3Cpath fill='%230e999c' d='M25 70 L75 70 L50 40z'/%3E%3Cline x1='0' y1='70' x2='100' y2='70' stroke='%23f0f0f0' stroke-width='1' stroke-dasharray='4'/%3E%3C/svg%3E");
}

/* --- Icono SVG de la Entrega con Llave --- */
#icon-key-delivery {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M10 50 H 40' stroke='%23f0f0f0' stroke-width='2' fill='none'/%3E%3Cpath d='M60 50 H 90' stroke='%230e999c' stroke-width='2' fill='none'/%3E%3Ccircle cx='50' cy='50' r='10' fill='none' stroke='%230e999c' stroke-width='2'/%3E%3Cpath d='M50 40 V 30 H 55 V 25 H 45 V 30 H 50' fill='none' stroke='%230e999c' stroke-width='2'/%3E%3Ccircle cx='30' cy='50' r='5' fill='%230e999c'/%3E%3Ccircle cx='70' cy='50' r='5' fill='%230e999c'/%3E%3C/svg%3E");
}

/* --- Animación para la Escena 5 --- */
#scene-5-solution .anim-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#scene-5-solution.active .anim-item {
    opacity: 1;
    transform: translateY(0);
}

#scene-5-solution.active .anim-item:nth-child(1) { transition-delay: 0.2s; } /* Título */
#scene-5-solution.active .solutions-container .anim-item:nth-child(1) { transition-delay: 0.5s; } /* card 1 */
#scene-5-solution.active .solutions-container .anim-item:nth-child(2) { transition-delay: 0.7s; } /* card 2 */
#scene-5-solution.active .conclusion-text { transition-delay: 1s; } /* Frase final */



/* ... (reemplaza el bloque anterior de la Escena 6 con este) ... */

/* ============================================== */
/* ===== ESCENA 6: THE UNFAIR ADVANTAGE STYLES (CORREGIDO) ===== */
/* ============================================== */

#scene-6-advantage .advantage-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    text-align: center;
}

#scene-6-advantage h2 {
    opacity: 1;
    margin-bottom: 4rem;
}

.advantages-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
}

.advantage-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    width: calc(33.33% - 1.5rem);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.advantage-card h3 {
    font-size: 1.6rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    text-align: center;
}

.advantage-card ul {
    list-style: none;
    padding: 0;
}

.advantage-card ul li {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

/* --- ESTILO CORREGIDO PARA EL TEXTO DESTACADO --- */
.advantage-card ul li strong {
    color: var(--color-accent); /* Ahora usa el color de la marca */
    font-weight: 700;
}

.advantage-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25em;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230e999c' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.advantage-card .icon-container {
    height: 80px;
    width: 80px;
    margin: 0 auto 1.5rem auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* --- ÍCONOS SVG CORREGIDOS Y ÚNICOS --- */
#icon-tech { /* Icono para Tecnología y Patentes (Escudo/Protección) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230e999c' d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z'/%3E%3C/svg%3E");
}
#icon-validation { /* Icono para Validación (Sello de Aprobación) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230e999c' d='M23 12l-2.44-2.79.34-3.69-3.61-.82-1.89-3.18L12 3 8.6 1.52 6.71 4.7 3.1 5.52l.34 3.69L1 12l2.44 2.79-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.48 1.89-3.18 3.61-.82-.34-3.69L23 12zm-12.91 4.72l-3.17-3.17 1.41-1.41 1.76 1.76 3.54-3.54 1.41 1.41l-5 5z'/%3E%3C/svg%3E");
}
#icon-business { /* Icono para Modelo de Negocio (Gráfico Ascendente) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230e999c' d='M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 15.51l1.5 2.98z'/%3E%3C/svg%3E");
}

/* --- Animación para la Escena 6 --- */
#scene-6-advantage .anim-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

#scene-6-advantage.active .anim-item {
    opacity: 1;
    transform: translateY(0);
}

#scene-6-advantage.active .anim-item:nth-child(1) { transition-delay: 0.2s; } /* Título */
#scene-6-advantage.active .advantages-container .anim-item:nth-child(1) { transition-delay: 0.5s; } /* card 1 */
#scene-6-advantage.active .advantages-container .anim-item:nth-child(2) { transition-delay: 0.7s; } /* card 2 */
#scene-6-advantage.active .advantages-container .anim-item:nth-child(3) { transition-delay: 0.9s; } /* card 3 */

/* ================================================= */
/* ===== ESCENA 7: THE MARKET OPPORTUNITY STYLES (DISEÑO DE TARJETAS) ===== */
/* ================================================= */

#scene-7-market .market-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    text-align: center;
}

#scene-7-market h2 {
    opacity: 1;
    margin-bottom: 4rem;
}

.market-cards-container {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Asegura que las tarjetas tengan la misma altura */
    gap: 2rem;
    width: 100%;
}

.market-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2.5rem 2rem;
    width: 33%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.market-card .market-label {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.market-card .market-value {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.market-card .market-desc {
    font-size: 1rem;
    line-height: 1.4;
}

/* --- Colores distintivos para cada tarjeta --- */
.market-card.tam { border-color: var(--color-accent-tertiary); }
.market-card.sam { border-color: var(--color-accent); }
.market-card.som {
    border-color: var(--color-accent-secondary);
    box-shadow: 0 0 25px rgba(239, 83, 39, 0.3); /* Destacamos nuestro objetivo */
}

.market-card.som .market-value {
    color: var(--color-accent-secondary);
}

/* --- Adaptabilidad a Móviles (Responsiveness) --- */
@media (max-width: 800px) {
    .market-cards-container {
        flex-direction: column; /* Apila las tarjetas verticalmente */
    }
    .market-card {
        width: 100%; /* Cada tarjeta ocupa todo el ancho */
    }
}

/* --- Animación para la Escena 7 --- */
#scene-7-market .anim-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
#scene-7-market.active .anim-item {
    opacity: 1;
    transform: translateY(0);
}

/* Staggering (retraso escalonado) */
#scene-7-market.active h2 { transition-delay: 0.2s; }
#scene-7-market.active .market-card.tam { transition-delay: 0.4s; }
#scene-7-market.active .market-card.sam { transition-delay: 0.6s; }
#scene-7-market.active .market-card.som { transition-delay: 0.8s; }

/* ==================================== */
/* ===== ESCENA 8: THE TEAM STYLES (CORREGIDO) ===== */
/* ==================================== */

#scene-8-team .team-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    text-align: center;
}

#scene-8-team h2 {
    opacity: 1;
    margin-bottom: 1rem; /* Ajuste para separar del subtítulo */
}

#scene-8-team .subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 4rem; /* Espacio debajo del subtítulo */
    opacity: 0.8;
}

.team-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

.team-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2.5rem 2rem;
    width: 33%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, border-color 0.3s ease-out; /* Añadimos border-color a la transición */
}

/* --- Interactividad Hover (CORREGIDO) --- */
.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--color-accent); /* Borde se ilumina al pasar el mouse */
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-size: cover; /* Para que la imagen cubra el círculo */
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 1.5rem;
    border: 3px solid var(--color-accent); /* Borde inicial */
    box-shadow: 0 0 15px rgba(14, 153, 156, 0.3); /* Un brillo inicial sutil */
}

/* --- Fotos de perfil específicas (CORREGIDO) --- */
/* Asegúrate de que las imágenes 'Juli.jpg', 'Martin.jpg', 'Guido.jpg' estén en la carpeta 'assets/images/' */
.julieta-photo { background-image: url('../assets/images/Juli.jpg'); }
.martin-photo { background-image: url('../assets/images/Martin.jpg'); }
.guido-photo { background-image: url('../assets/images/Guido.jpg'); }


.team-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.team-card h4 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.team-card p {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
    flex-grow: 1; /* Permite que el párrafo ocupe el espacio restante */
}

/* --- Estilos del icono de LinkedIn --- */
.linkedin-icon {
    margin-top: 1.5rem;
    color: var(--color-accent); /* Color del icono */
    width: 30px;
    height: 30px;
    display: block; /* Para centrarlo */
    transition: transform 0.2s ease-out;
}

.linkedin-icon:hover {
    transform: scale(1.1); /* Efecto al pasar el mouse */
    color: var(--color-text-primary); /* Cambia de color al interactuar */
}

/* --- Adaptabilidad a Móviles --- */
@media (max-width: 800px) {
    .team-container {
        flex-direction: column;
    }
    .team-card {
        width: 100%;
    }
}

/* --- Animación para la Escena 8 --- */
#scene-8-team .anim-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
#scene-8-team.active .anim-item {
    opacity: 1;
    transform: translateY(0);
}

/* Staggering (retraso escalonado) */
#scene-8-team.active h2 { transition-delay: 0.2s; }
#scene-8-team.active .subtitle { transition-delay: 0.4s; }
#scene-8-team.active .team-card:nth-of-type(1) { transition-delay: 0.6s; }
#scene-8-team.active .team-card:nth-of-type(2) { transition-delay: 0.8s; }
#scene-8-team.active .team-card:nth-of-type(3) { transition-delay: 1.0s; }

/* ========================================= */
/* ===== ESCENA 9: THE ASK & ROADMAP STYLES ===== */
/* ========================================= */

#scene-9-ask .ask-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    gap: 4rem;
}

.ask-details {
    width: 40%;
}

.ask-details h2 {
    opacity: 1;
    font-size: 2.5rem;
    text-align: left;
}

.ask-amount {
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 900;
    color: var(--color-accent);
    line-height: 1;
}

.ask-round {
    font-size: 1.5rem;
    opacity: 0.8;
    margin-bottom: 2.5rem;
}

.ask-details h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ask-details ul {
    list-style: none;
    padding: 0;
}

.ask-details ul li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.ask-details ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.roadmap-container {
    width: 60%;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 4rem;
}

.roadmap-container h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.roadmap {
    position: relative;
}

/* La línea vertical de la roadmap */
.roadmap::before {
    content: '';
    position: absolute;
    left: -4rem; /* Alineado con el borde del contenedor padre */
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: var(--color-accent);
    transform: translateX(-1px);
}

.roadmap-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2.5rem;
}

.roadmap-point {
    position: absolute;
    left: -4rem;
    top: 8px;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--color-background);
    border: 4px solid var(--color-accent);
}

.roadmap-item.current .roadmap-point {
    background-color: var(--color-accent-secondary); /* Destacamos el punto actual */
    border-color: var(--color-accent-secondary);
}

.roadmap-text h5 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.roadmap-text p {
    opacity: 0.9;
}
.roadmap-item.milestone p strong {
    color: var(--color-accent);
}

/* --- Adaptabilidad a Móviles --- */
@media (max-width: 900px) {
    #scene-9-ask .ask-content {
        flex-direction: column;
        text-align: center;
    }
    .ask-details, .roadmap-container {
        width: 100%;
        max-width: 500px;
    }
    .ask-details { text-align: center; }
    .roadmap-container { border-left: none; padding-left: 0; margin-top: 4rem; }
    .roadmap::before, .roadmap-point { display: none; } /* Ocultamos la línea en móvil por simplicidad */
}

/* --- Animación para la Escena 9 --- */
#scene-9-ask .anim-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
#scene-9-ask.active .anim-item {
    opacity: 1;
    transform: translateY(0);
}

#scene-9-ask.active .ask-details { transition-delay: 0.3s; }
#scene-9-ask.active .roadmap-container { transition-delay: 0.5s; }

/* ======================================= */
/* ===== ESCENA 10: THE VISION STYLES ===== */
/* ======================================= */

#scene-10-vision .vision-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
    padding: 0 2rem;
    text-align: center;
}

#scene-10-vision h2 {
    opacity: 1;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 2rem;
}

#scene-10-vision p {
    font-size: 1.25rem;
    max-width: 700px;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-accent-secondary); /* Naranja para el CTA final */
    color: var(--color-text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    transition: transform 0.3s ease-out, background-color 0.3s ease-out;
    box-shadow: 0 5px 20px rgba(239, 83, 39, 0.3);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #ff6a40; /* Un naranja un poco más brillante al pasar el mouse */
}


/* --- Animación para la Escena 10 --- */
#scene-10-vision .anim-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
#scene-10-vision.active .anim-item {
    opacity: 1;
    transform: translateY(0);
}

/* Staggering (retraso escalonado) */
#scene-10-vision.active h2 { transition-delay: 0.3s; }
#scene-10-vision.active p { transition-delay: 0.5s; }
#scene-10-vision.active .cta-button { transition-delay: 0.8s; }

/* ================================================= */
/* ===== RESPONSIVE DESIGN PARA MÓVILES ===== */
/* ================================================= */

@media (max-width: 800px) {

    /* --- 1. AJUSTES GLOBALES --- */
    /* Reducimos el padding general de las escenas para dar más espacio */
    .scene {
        height: auto; /* ¡LA CLAVE! La altura ahora es automática */
        min-height: 100vh; /* Asegura que como mínimo ocupe la pantalla entera */
        padding: 5rem 1rem; /* Damos más espacio vertical entre escenas */
    }

    /* Reducimos el tamaño de las fuentes principales */
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.8rem !important; }
    h3 { font-size: 1.4rem !important; }


    /* --- 2. ESCENA 2: EL PROBLEMA --- */
    /* Apilamos el número encima del texto */
    #scene-2-problem .stat-line {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 2.5rem;
    }
    #scene-2-problem .number {
        margin-right: 0;
        margin-bottom: 0.5rem;
        font-size: 4rem;
    }
    #scene-2-problem .text {
        text-align: center;
        font-size: 1.1rem;
    }


    /* --- 3. ESCENA 3: LA EVOLUCIÓN (TIMELINE) --- */
    /* Convertimos la timeline de dos lados a uno solo */
    .timeline::before {
        left: 8px; /* Movemos la línea a la izquierda */
    }
    .timeline-item {
        width: 100%;
        padding-left: 3rem;
        padding-right: 0;
        text-align: left !important;
    }
    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        left: 0;
        float: none;
    }
    .timeline-item::after {
        left: 8px; /* Movemos los puntos a la línea de la izquierda */
    }


    /* --- 4 & 5. ANALOGÍA Y SOLUCIÓN --- */
    /* Apilamos las tarjetas de dos columnas */
    .problems-container,
    .solutions-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    .problem-card,
    .solution-card {
        width: 100%;
    }


    /* --- 6. UNFAIR ADVANTAGE --- */
    /* Apilamos las tres tarjetas de ventajas */
    .advantages-container {
        flex-direction: column;
    }
    .advantage-card {
        width: 100%;
    }


    /* --- 7. MARKET OPPORTUNITY --- */
    /* (Ya estaba hecho, pero lo incluimos aquí para tener todo junto) */
    .market-cards-container {
        flex-direction: column;
    }
    .market-card {
        width: 100%;
    }


    /* --- 8. THE TEAM --- */
    /* (Ya estaba hecho, pero lo incluimos aquí) */
    .team-container {
        flex-direction: column;
    }
    .team-card {
        width: 100%;
    }


    /* --- 9. THE ASK & ROADMAP --- */
    /* Apilamos la petición y la línea de tiempo */
    #scene-9-ask .ask-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .ask-details, .roadmap-container {
        width: 100%;
        max-width: 500px;
        padding-left: 0;
    }
    .ask-details ul {
        text-align: left;
    }
    .roadmap-container {
        border-left: none;
        margin-top: 2rem;
    }
    .roadmap::before, .roadmap-point {
        display: none; /* Ocultamos la línea gráfica en móvil por simplicidad */
    }
    .roadmap-item {
        padding-left: 0;
        margin-bottom: 1.5rem;
    }
}