/* ==========================================================
   1. ESTILOS BASE Y TIPOGRAFÍA ORIGINAL
   ========================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    background-color: #050505;
}


body {
    background-color: #050505;
    color: #f4f4f4;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.3;
    position: relative;
}


/* Fondo de cuadraditos de exploración con scroll (Paralaje y Auroras) */
#fondo-cuadrados-scroll {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.parallax-wrapper {
    position: absolute;
    width: 1px;
    height: 1px;
    will-change: transform;
}

.cuadradito-petit {
    position: absolute;
    border-radius: 4px; /* Bordes levemente suavizados para el look digital */
    mix-blend-mode: screen;
    opacity: 0.12; /* Opacidad baja pero visible para cuadrados más chicos */
    will-change: transform, opacity;
    transform-origin: center center;
}

@keyframes floatGlow {
    0% {
        transform: rotate(0deg) scale(0.92);
        opacity: 0.08;
    }
    50% {
        opacity: 0.16;
    }
    100% {
        transform: rotate(45deg) scale(1.08);
        opacity: 0.08;
    }
}


body.loading {
    overflow: hidden;
}


/* ==========================================================
   PRECARGADOR CONCEPTUAL (Estilo de Exploración)
   ========================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #030303;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 90%;
    max-width: 320px;
}

.preloader-animation {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Nodo central cian pulsante con resplandor, idéntico a Paso 0 de Exploración */
.loader-central-node {
    width: 55px;
    height: 55px;
    border: 1.5px solid #00aaff;
    background-color: rgba(0, 170, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.6);
    animation: loader-pulse 2s infinite ease-in-out;
}

/* Nodos satélite que representan cuadritos flotantes de color */
.loader-node {
    position: absolute;
    width: 10px;
    height: 10px;
}

.loader-node-1 {
    background-color: #00aaff; /* Cian */
    box-shadow: 0 0 8px #00aaff;
    animation: loader-orbit-1 6s infinite linear;
}

.loader-node-2 {
    background-color: #ff007f; /* Magenta */
    box-shadow: 0 0 8px #ff007f;
    animation: loader-orbit-2 6s infinite linear;
}

.loader-node-3 {
    background-color: #e6ff00; /* Amarillo */
    box-shadow: 0 0 8px #e6ff00;
    animation: loader-orbit-3 6s infinite linear;
}

/* Animaciones de órbita y pulsación */
@keyframes loader-pulse {
    0%, 100% {
        transform: scale(0.95);
        box-shadow: 0 0 10px rgba(0, 170, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 22px rgba(0, 170, 255, 0.8);
    }
}

@keyframes loader-orbit-1 {
    0% { transform: rotate(0deg) translate(65px) rotate(0deg); }
    100% { transform: rotate(360deg) translate(65px) rotate(-360deg); }
}

@keyframes loader-orbit-2 {
    0% { transform: rotate(120deg) translate(65px) rotate(-120deg); }
    100% { transform: rotate(480deg) translate(65px) rotate(-480deg); }
}

@keyframes loader-orbit-3 {
    0% { transform: rotate(240deg) translate(65px) rotate(-240deg); }
    100% { transform: rotate(600deg) translate(65px) rotate(-600deg); }
}

.preloader-text {
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    text-align: center;
    animation: preloaderTextPulse 1.5s infinite ease-in-out;
}

@keyframes preloaderTextPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}


:root {
    --cyan: #00aaff;
    --magenta: #ff007f;
    --yellow: #e6ff00;
    --bg-ec: #061a24;
    --bg-tan: #210510;
}


.cyan { color: var(--cyan); }
.magenta-text { color: var(--magenta); }
.yellow-text { color: var(--yellow); }


/* ==========================================================
   2. NAVEGACIÓN FIJA Y LIMPIA
   ========================================================== */
.franja-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    padding: 0 8vw;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
}


.franja-nav.is-visible {
    opacity: 1;
    transform: translateY(0);
}


.nav-list {
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}


.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
}


.nav-link:hover { color: #ffffff; }
.nav-link.active-nav { color: var(--cyan); }

/* --- RESPONSIVIDAD DE LA CABECERA EN MÓVIL --- */
@media (max-width: 768px) {
    .franja-nav {
        height: 70px;
        justify-content: center !important;
        padding: 0 !important;
        top: 0;
        right: 0;
        transform: translateY(0) !important;
    }
    .nav-list {
        gap: 20px;
        flex-direction: row;
    }
    .nav-link {
        font-size: 0.75rem;
        padding: 6px 0;
    }
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15vh 8vw;
    position: relative;
    z-index: 2;
}


.hero-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
}


.mega-title {
    display: flex;
    flex-direction: column;
    font-size: clamp(6rem, 12vw, 14rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -2px;
    text-transform: uppercase;
}


.title-row {
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(40px);
    animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}


.row-1 { animation-delay: 0.1s; }
.row-2 { animation-delay: 0.3s; }


.text-con { color: #ffffff; padding-right: 15px; }
.text-ec { color: var(--cyan); background-color: var(--bg-ec); padding: 0 20px; }
.text-tan { color: var(--magenta); background-color: var(--bg-tan); padding: 0 20px; margin-right: 15px; }
.text-do { color: #ffffff; display: flex; align-items: baseline; }
.text-dot { color: var(--yellow); }


.hero-description-clean {
    opacity: 0;
    transform: translateY(40px);
    animation: slideUpFade 1s 0.5s forwards;
}

.hero-description-clean p {
    color: #ffffff !important;
    font-size: clamp(1rem, 1.2vw, 1.25rem) !important;
    line-height: 1.6 !important;
    margin-top: 0 !important;
    font-weight: normal !important;
}


.hero-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 450px;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(40px);
    animation: slideUpFade 1s 0.7s forwards;
}

.contenedor-3d-hero {
    width: 420px;
    height: 420px;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#caja-hero-3d {
    width: 100%;
    height: 100%;
    outline: none;
}


.white-line {
    border: none;
    border-top: 2px solid #ffffff;
    width: 100%;
    margin-bottom: 20px;
}


.hero-right p {
    color: #aaaaaa;
    font-size: 1.1rem;
    line-height: 1.6;
}


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


/* ==========================================================
   4. MARQUESINA RECTA Y SUAVE
   ========================================================== */
.marquee-container {
    width: 100%;
    padding: 2.5vh 0;
    background-color: var(--magenta);
    color: #050505;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    border-top: 1px solid #111;
    border-bottom: 1px solid #111;
    position: relative;
    z-index: 10;
    margin: 5vh 0 10vh 0;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    font-family: 'Geist Mono', monospace;
}


.marquee-container:hover { opacity: 0.9; }


.marquee-content {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    animation: marqueeScroll 25s linear infinite;
}


@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ==========================================================
   5. SECCIONES DE TEXTO (FORMATO LIMPIO)
   ========================================================== */
.section {
    padding: 12vh 8vw;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}


.section-header { margin-bottom: 4vh; }


.section-number {
    font-family: monospace;
    font-size: 1.2rem;
    color: #666;
    display: block;
    margin-bottom: 1vh;
    letter-spacing: 1px;
}


.section-title {
    font-size: clamp(2.5rem, 6vw, 6rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -1px;
    text-transform: uppercase;
    margin-bottom: 4vh;
    max-width: 90%;
}


.section-text {
    font-size: clamp(1.1rem, 2vw, 1.8rem);
    line-height: 1.5;
    color: #bbbbbb;
    max-width: 900px;
    font-weight: normal;
    margin-bottom: 3vh;
}


/* ==========================================================
   6. WIREFRAMES & ESQUEMA SVG (FIGMA)
   ========================================================== */
.wireframe-box {
    border: 1px solid #333;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}


.schema-box {
    width: 100%;
    max-width: 700px;
    height: 500px;
    margin-top: 4vh;
    padding: 0;
    border: 1px solid #222;
    background-color: #09090b;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    overflow: hidden;
    border-radius: 4px;
}


/* CONCEPTOS CLAVE */
.concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 5vh;
}


.concept-item {
    border-top: 2px solid var(--cyan);
    padding-top: 20px;
}


.concept-item h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}


.concept-item p {
    color: #888;
    font-size: 1.1rem;
    line-height: 1.4;
}


.btn-massive {
    display: inline-block;
    background-color: transparent;
    color: var(--yellow);
    border: 2px solid var(--yellow);
    padding: 20px 50px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 2px;
    margin-top: 5vh;
    transition: all 0.3s ease;
}


.btn-massive:hover {
    background-color: var(--yellow);
    color: #000;
}


/* ==========================================================
   7. ANIMACIONES DE REVELACIÓN (SCROLL)
   ========================================================== */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s ease-out;
}


.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================
   8. FONDO DE PIEZAS (FLOTAN SOLAS)
   ========================================================== */
.bg-pieces-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    filter: blur(8px);
}


.bg-piece {
    position: absolute;
    opacity: 0.35;
    animation: floatAutonomous infinite alternate ease-in-out;
    will-change: transform;
}


@keyframes floatAutonomous {
    0% { transform: translate(0px, 0px) rotate(0deg); }
    100% { transform: translate(40px, -60px) rotate(15deg); }
}


::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #050505; border-left: 1px solid rgba(255,255,255,0.05); }
::-webkit-scrollbar-thumb { background-color: var(--magenta); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background-color: var(--cyan); }


/* ==========================================================
   9. CONFIGURACIÓN EN DOS COLUMNAS (TEXTO E INTERACCIÓN 3D)
   ========================================================== */
/* Asegura que el contenedor de las dos columnas controle los tamaños */
.bloque-dos-columnas {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: flex-start; /* Cambiado a flex-start para habilitar el comportamiento sticky */
    justify-content: space-between;
    gap: 40px; /* Espaciado controlado entre las dos secciones */
}

/* COLUMNA TEXTO: La mantenemos compacta para que NO se estire ni se separe del título */
.columna-texto {
    flex: 0 0 40%; /* Ocupa exactamente el 40% del ancho, ni más ni menos */
    max-width: 450px; /* Evita que el texto se desparrame en pantallas gigantes */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

/* COLUMNA RENDER: Le damos más espacio y lo hacemos sticky en pantallas de escritorio */
.columna-render {
    flex: 0 0 55%; /* Se lleva el 55% restante del espacio */
    width: 100%;
    position: sticky;
    top: 100px;
    align-self: start;
    will-change: transform;
}

/* El contenedor interno 3D adaptado para máxima fluidez */
.contenedor-3d {
    width: 100%;
    height: clamp(450px, 60vh, 750px); /* Crece de forma profesional según la pantalla */
    display: flex;
    justify-content: center;
    align-items: center;
}

#caja-interactive-3d {
    width: 100%;
    height: 100%;
    outline: none;
}

/* ==========================================================
   10. MAQUETACIÓN ALINEADA A LA IZQUIERDA (ZONA MECÁNICA)
   ========================================================== */
.seccion-mecanica-vertical {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}


.text-mecanica-ancho {
    font-size: clamp(1rem, 1.4vw, 1.25rem) !important;
    color: #aaaaaa;
    max-width: 850px;
    margin-bottom: 6vh;
    text-align: left;
}


.diagramas-comparativa {
    display: flex !important;
    flex-direction: row !important;
    gap: 4vw;                      
    width: 100%;
    max-width: 1100px;
    justify-content: space-between;
    align-items: flex-start;        
}


.columna-diagrama {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;            
    text-align: center;            
}


.subtitulo-diagrama-comp {
    font-size: 0.95rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cyan);
    margin-bottom: 2.5vh;
}


.diagramas-comparativa .schema-box {
    width: 100%;
    max-width: 460px;              
    height: 350px;                  
    margin-bottom: 2.5vh;          
}


.pie-diagrama {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.5;
    max-width: 420px;              
    margin: 0 auto;                
}


/* ==========================================================
   11. CONTROL DE DIAGRAMAS VECTORIALES EN BUCLE CONTINUO
   ========================================================== */
.path-bucle-cyan-A, .path-bucle-magenta-A {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: loopDibujoCaminos 7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}


@keyframes loopDibujoCaminos {
    0% { stroke-dashoffset: 800; opacity: 0; }
    5% { opacity: 1; }
    40%, 80% { stroke-dashoffset: 0; opacity: 1; }
    90%, 100% { stroke-dashoffset: -800; opacity: 0; }
}


.path-bucle-cyan-baseB, .path-bucle-magenta-baseB {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: loopBasesB 7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes loopBasesB {
    0% { stroke-dashoffset: 800; opacity: 0; }
    5% { opacity: 1; }
    30%, 80% { stroke-dashoffset: 0; opacity: 1; }
    90%, 100% { stroke-dashoffset: -800; opacity: 0; }
}


.path-bucle-cyan-extB, .path-bucle-magenta-extB {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: loopExtensionesB 7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes loopExtensionesB {
    0%, 30% { stroke-dashoffset: 400; opacity: 0; }
    35% { opacity: 1; }
    55%, 80% { stroke-dashoffset: 0; opacity: 1; }
    90%, 100% { stroke-dashoffset: -400; opacity: 0; }
}


/* ==========================================================
   12. GALERÍA: CINTA EN BUCLE PERPETUO
   ========================================================== */
/* --- SLIDER DE ALTA GAMA CON MÁSCARA DE RECORTE --- */
.galeria-slider-container {
    width: 100%;
    margin-top: 80px;
    padding: 0 10px;
}

.galeria-header-interface {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 24px;
}

.galeria-tag {
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.4);
}

.galeria-controls {
    display: flex;
    gap: 12px;
}

.btn-flecha {
    width: 44px;
    height: 44px;
    background: rgba(0, 170, 255, 0.08);
    border: 1px solid rgba(0, 170, 255, 0.3);
    color: #00aaff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-flecha:hover {
    background: #00aaff;
    color: #ffffff;
    border-color: #00aaff;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.4);
}

.galeria-viewport {
    width: 100%;
    overflow: hidden;
    perspective: 1500px;
    padding: 20px 0;
    margin: -20px 0;
}

.galeria-track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    transform-style: preserve-3d;
}

.item-slider {
    flex: 0 0 calc((100% - (24px * 2)) / 3); 
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    padding: 14px;
    transition: background 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    transform-style: preserve-3d;
}

.item-slider:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(0, 170, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* CONTENEDOR ESTRICTO: Fuerza a que el espacio sea perfectamente simétrico */
.marco-foto {
    width: 100%;
    aspect-ratio: 4 / 3; /* Relación de aspecto idéntica para las 5 imágenes */
    overflow: hidden;    /* Corta cualquier desborde de la foto original */
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background-color: #0d0d11; /* Fondo neutro mientras cargan los recursos */
}

/* COMPORTAMIENTO DE LA IMAGEN: Llena el contenedor sin deformarse */
.marco-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Centra y recorta de forma prolija según el contenedor */
    transition: filter 0.5s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.item-slider:hover .marco-foto img {
    filter: brightness(1.1) contrast(1.05);
    transform: scale(1.05); /* Suave micro-zoom elegante en el hover del card */
}

.caption-galeria {
    font-family: 'Geist Mono', monospace;
    font-size: 10px !important;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 4px 0 4px;
}

.item-slider:hover .caption-galeria {
    color: var(--cyan);
}

@media (max-width: 1024px) {
    .item-slider { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (max-width: 600px) {
    .item-slider { flex: 0 0 100%; }
}


/* ==========================================================================
   DIAGRAMA CONCEPTUAL INTERCALADO EN ZIG-ZAG
   ========================================================================== */
/* ==========================================================================
   DIAGRAMA HORIZONTAL UNIFORME Y PERFECTAMENTE CENTRADO
   ========================================================================== */

.seccion-diagrama-horizontal-maestra {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra el encabezado y el contenido */
    justify-content: center;
    padding: 100px 4%;
}

/* Caja elástica que centra el mapa respecto al ancho total del monitor */
.eje-centrado-absoluto {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

/* Contenedor con tus 1000px de diseño originales fijos */
.contenedor-flujo-lineal-horizontal {
    width: 1000px;
    max-width: 1000px;
    height: 400px;
    position: relative;
    border: none !important;
    background: none !important;
}

.svg-flujo-continuo {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Estilo unificado para las cajas de texto intercaladas */
.hito-sistema {
    position: absolute;
    width: 200px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hito-sistema h3 {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 6px;
}

.numero-hito {
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 2px;
}

#contenedor-camino-cuadrados {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Los pequeños cuadrados que irán brotando sobre tus círculos fijos */
.cuadrado-guia-camino {
    position: absolute;
    width: 6px;
    height: 6px;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.cuadrado-guia-camino.activo {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 10px currentColor;
}

/* ==========================================================
   12. SISTEMA DE TRAYECTORIA DINÁMICA (LADO DERECHO)
   ========================================================== */

/* Contenedor perimetral absoluto en el ala derecha */
#riel-trayectoria-derecho {
    position: fixed;
    top: 0;
    right: 4%;
    width: 40px;
    height: 100vh;
    z-index: 5;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.micro-cuadrado-bucle {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #00aaff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: scale(0) rotate(45deg);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.micro-cuadrado-bucle.cristalizado {
    opacity: 0.75;
    transform: scale(1) rotate(0deg);
}

.section-title {
    transition: color 0.1s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.1s ease;
}

.section-title.iluminacion-flash {
    color: #ffffff !important;
    text-shadow: 0 0 25px rgba(0, 170, 255, 0.85), 0 0 50px rgba(255, 0, 127, 0.5);
}

/* ==========================================================
   13. UNIFICACIÓN DE TAMAÑOS DE TEXTO
   ========================================================== */
p, 
.section-text, 
.hero-description-clean p, 
.hero-right p, 
.hito-sistema p {
    font-size: 16px !important;
    line-height: 1.75 !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

.hero-description-clean p,
.hero-right p,
.columna-texto .section-text,
.hito-sistema p {
    margin-top: 0 !important;
    margin-bottom: 24px !important;
}

.columna-texto .section-text:last-child,
.hero-description-clean p:last-child,
.hito-sistema p:last-child {
    margin-bottom: 0 !important;
}

.pie-diagrama {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
}

/* ==========================================================
   14. REDISEÑO DE COMPONENTES INSPIRADOS EN ARCTURIS & RESPONSIVIDAD
   ========================================================== */

.preheading {
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 15px;
    display: inline-block;
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 14px 32px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 2px;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-outline:hover {
    color: #000000;
    border-color: #ffffff;
}

.btn-outline:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

#que-es .btn-outline {
    color: var(--magenta);
    border-color: rgba(255, 0, 127, 0.4);
}
#que-es .btn-outline::before {
    background-color: var(--magenta);
}
#que-es .btn-outline:hover {
    color: #ffffff;
    border-color: var(--magenta);
}

.btn-massive-outline {
    padding: 20px 48px;
    font-size: 1.05rem;
    color: var(--yellow) !important;
    border-color: rgba(230, 255, 0, 0.4) !important;
}
.btn-massive-outline::before {
    background-color: var(--yellow);
}
.btn-massive-outline:hover {
    color: #000000 !important;
    border-color: var(--yellow) !important;
}

.scroll-down-btn {
    width: 50px;
    height: 50px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-top: 30px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-down-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(5px);
}

.concepts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}


.concept-item {
    border-top: 2px solid var(--accent-color, var(--cyan));
    background: #050505;
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-radius: 0 0 4px 4px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}


.concept-item:hover {
    background: #0d0d11;
    border-left-color: rgba(255, 255, 255, 0.08);
    border-right-color: rgba(255, 255, 255, 0.08);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}


.concept-index {
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    color: var(--accent-color, var(--cyan));
    letter-spacing: 1px;
}


.concept-item h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.concept-item p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 0 !important;
}


/* --- CONSULTAS DE MEDIOS PARA RESPONSIVIDAD COMPLETA --- */


@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 5vh;
        padding: 15vh 6vw 10vh 6vw;
        min-height: auto;
    }
    
    .hero-right {
        max-width: 100%;
        margin-bottom: 0;
        width: 100%;
        align-items: center;
    }
    
    .contenedor-3d-hero {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }
    
    .seccion-diagrama-horizontal-maestra {
        padding: 80px 4%;
    }
    
    .eje-centrado-absoluto {
        display: block;
        width: 100%;
        margin-top: 30px;
    }
    
    .contenedor-flujo-lineal-horizontal {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: flex;
        flex-direction: column;
        gap: 35px;
        position: relative;
        padding-left: 25px;
        border-left: 1px dashed rgba(255, 255, 255, 0.15) !important;
    }
    
    .svg-flujo-continuo {
        display: none !important;
    }
    
    .hito-sistema {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        margin-bottom: 0 !important;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }
    
    .hito-sistema::before {
        content: '';
        position: absolute;
        left: -29px;
        top: 6px;
        width: 8px;
        height: 8px;
        background-color: var(--cyan);
        box-shadow: 0 0 8px var(--cyan);
        transform: rotate(45deg);
        z-index: 10;
    }
    
    .hito-sistema:nth-child(even)::before {
        background-color: var(--magenta);
        box-shadow: 0 0 8px var(--magenta);
    }
    
    .hito-sistema:nth-child(3)::before {
        background-color: var(--yellow);
        box-shadow: 0 0 8px var(--yellow);
    }
    
    .cuadrado-guia-camino {
        display: none !important;
    }
    
    .concepts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #riel-trayectoria-derecho {
        display: none;
    }
}

@media (max-width: 900px) {
    .bloque-dos-columnas {
        flex-direction: column;
        gap: 40px;
    }
    
    .columna-texto {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .columna-render {
        flex: 0 0 100%;
        width: 100%;
    }
    
    .contenedor-3d {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .franja-nav {
        height: 70px;
        justify-content: center !important;
        padding: 0 !important;
    }
    
    .nav-list {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 0.75rem;
    }
    
    .fundamento-bloques {
        grid-template-columns: 1fr;
    }
    
    .diagramas-comparativa {
        flex-direction: column !important;
        gap: 40px;
        align-items: center;
    }
    
    .columna-diagrama {
        width: 100%;
        max-width: 480px;
    }
    
    .concepts-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   16. COMPONENTES DEL JUEGO & VISOR INTERACTIVO (SHOWROOM)
   ========================================================== */
.columna-render {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

.showroom-wrapper {
    width: 100%;
    background-color: rgba(5, 5, 5, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 2px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    backdrop-filter: blur(10px);
}

.showroom-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
}

.showroom-tab {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.showroom-tab.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.showroom-tab:hover:not(.active) {
    color: rgba(255, 255, 255, 0.8);
}

.showroom-visor {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    min-height: 260px;
    align-items: center;
}

.visor-display-box {
    width: 100%;
    height: 260px;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px dashed rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

.visor-render-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.visor-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.visor-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.visor-meta {
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--cyan);
}

.visor-description {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #aaaaaa;
    margin: 0;
}

.visor-actions {
    margin-top: 8px;
}

.btn-visor-action {
    font-size: 10px;
    padding: 8px 16px;
    letter-spacing: 1px;
}

.showroom-thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 380px;
    margin: 0 auto;
    padding-bottom: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 16px;
}

.showroom-thumb {
    flex: 0 0 54px;
    height: 54px;
    background-color: rgba(5, 5, 5, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.5;
}

.showroom-thumb:hover {
    opacity: 0.8;
    border-color: rgba(255, 255, 255, 0.15);
}

.showroom-thumb.active {
    opacity: 1;
    border-color: var(--magenta);
    background-color: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.15);
}

/* --- 3D CARD COMPONENT --- */
.card-3d-wrapper {
    width: 150px;
    height: 215px;
    perspective: 1000px;
    cursor: pointer;
    transform-style: preserve-3d;
}

.card-3d-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

.card-3d-inner.flipped {
    transform: rotateY(180deg);
}

.card-3d-front, .card-3d-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
}

.card-3d-front {
    background-color: #000000;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.card-3d-tag {
    font-family: 'Geist Mono', monospace;
    font-size: 8px;
    color: #e6ff00;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    border-bottom: 1px solid rgba(230, 255, 0, 0.15);
    padding-bottom: 4px;
}

.card-3d-shape {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
}

.card-3d-info {
    text-align: left;
}

.card-3d-title {
    font-size: 10px;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 2px;
    letter-spacing: 1px;
}

.card-3d-text {
    font-size: 6.8px;
    line-height: 1.25;
    color: #888888;
    margin: 0;
}

.card-3d-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 4px;
}

.card-3d-icon-mini {
    width: 16px;
    height: 16px;
}

.card-3d-back {
    background-color: #000000;
    border: none;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.card-back-pattern {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-back-logo {
    font-family: 'Geist Mono', monospace;
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 6px;
    text-transform: uppercase;
    background: linear-gradient(180deg, var(--cyan), var(--magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
}

/* --- TOKENS (COMODINES) --- */
.token-3d-container {
    width: 120px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.token-3d {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(20, 20, 25, 0.8), rgba(5, 5, 8, 1));
    border: 3px solid var(--token-color, var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.6),
        inset 0 0 15px var(--token-color, var(--cyan)),
        0 0 15px rgba(var(--token-color-rgb, 0, 170, 255), 0.3);
    position: relative;
}

.token-3d::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.token-icon {
    width: 44px;
    height: 44px;
    color: #ffffff;
    filter: drop-shadow(0 0 4px var(--token-color, var(--cyan)));
}

.contenedor-video video {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ==========================================================
   17. CURSOR DE SISTEMA NORMAL
   ========================================================== */
/* El cursor del sistema normal ha sido restaurado */

/* ==========================================================
   18. ESTILOS DE LA EXPOSICIÓN DEL SISTEMA
   ========================================================== */

/* --- Traducción Conceptual (Del juego al sistema) --- */
.traduccion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 50px auto 0 auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 720px;
    text-align: center;
}

.traduccion-texto-intro {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.traduccion-tabla {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
}

/* Helper class to center section headers and content */
.section-centered {
    align-items: center !important;
    text-align: center !important;
}

.section-centered .section-header {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
}

.traduccion-fila {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.traduccion-fila:not(.header-fila):hover {
    background-color: rgba(255, 255, 255, 0.02);
    color: #ffffff;
}

.header-fila {
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

.traduccion-texto-intro p {
    text-align: center !important;
}

.trad-col {
    flex: 1;
}

.traduccion-fila .trad-col:first-child {
    text-align: right;
    padding-right: 30px;
}

.traduccion-fila .trad-col:last-child {
    text-align: left;
    padding-left: 30px;
}

.trad-col.spacer-col {
    flex: 0 0 60px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trad-indicator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    display: inline-block;
    transition: transform 0.3s ease;
}

.traduccion-fila:nth-child(3) .trad-indicator { background-color: var(--magenta); box-shadow: 0 0 8px var(--magenta); }
.traduccion-fila:nth-child(4) .trad-indicator { background-color: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.traduccion-fila:nth-child(5) .trad-indicator { background-color: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.traduccion-fila:nth-child(6) .trad-indicator { background-color: var(--magenta); box-shadow: 0 0 8px var(--magenta); }
.traduccion-fila:nth-child(7) .trad-indicator { background-color: var(--yellow); box-shadow: 0 0 8px var(--yellow); }

.traduccion-fila:hover .trad-indicator {
    transform: scale(2);
}

.traduccion-esquema {
    flex: 1;
    max-width: 400px;
    height: 320px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    background-color: rgba(5, 5, 5, 0.5);
    border-radius: 2px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svg-esquema-trad {
    overflow: visible;
}

.anim-dot-trad {
    animation: tradDotFlow 5s linear infinite;
}

@keyframes tradDotFlow {
    0% { cx: 50px; }
    100% { cx: 350px; }
}

/* --- Mecánica (Flujo Vertical) --- */
.mecanica-vertical-container {
    position: relative;
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-left: 20px;
}

.mecanica-linea-conexion {
    position: absolute;
    left: 40px;
    top: 20px;
    bottom: 20px;
    width: 1px;
    border-left: 1px dashed rgba(255, 255, 255, 0.12);
    z-index: 1;
}

.mecanica-etapa {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    background-color: rgba(5, 5, 5, 0.7);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.mecanica-etapa:hover {
    border-color: rgba(0, 170, 255, 0.3);
    background-color: rgba(0, 170, 255, 0.02);
    transform: translateX(8px);
    box-shadow: 0 5px 25px rgba(0, 170, 255, 0.04);
}

.mecanica-etapa:nth-child(odd):hover {
    border-color: rgba(255, 0, 127, 0.3);
    background-color: rgba(255, 0, 127, 0.02);
    box-shadow: 0 5px 25px rgba(255, 0, 127, 0.04);
}

.mecanica-etapa:nth-child(3n):hover {
    border-color: rgba(230, 255, 0, 0.3);
    background-color: rgba(230, 255, 0, 0.02);
    box-shadow: 0 5px 25px rgba(230, 255, 0, 0.04);
}

.etapa-circulo {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: #050505;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Geist Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mecanica-etapa:hover .etapa-circulo {
    color: #ffffff;
    border-color: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

.mecanica-etapa:nth-child(odd):hover .etapa-circulo {
    border-color: var(--magenta);
    box-shadow: 0 0 8px var(--magenta);
}

.mecanica-etapa:nth-child(3n):hover .etapa-circulo {
    border-color: var(--yellow);
    box-shadow: 0 0 8px var(--yellow);
}

.etapa-contenido {
    flex: 1;
}

.etapa-contenido h3 {
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.etapa-contenido p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
    margin: 0;
}

.etapa-grafico {
    flex: 0 0 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.35;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.mecanica-etapa:hover .etapa-grafico {
    opacity: 1;
    transform: scale(1.1);
}

/* Micro-animaciones SVG */
.anim-pulsar {
    animation: microPulse 1.8s ease-in-out infinite alternate;
}
@keyframes microPulse {
    0% { r: 3px; opacity: 0.4; }
    100% { r: 5px; opacity: 1; filter: drop-shadow(0 0 3px var(--cyan)); }
}

.anim-rotar {
    animation: microRotate 8s linear infinite;
}
@keyframes microRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.anim-dibujo-linea {
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
    animation: microDraw 3s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}
@keyframes microDraw {
    0% { stroke-dashoffset: 80; }
    100% { stroke-dashoffset: 0; }
}

.anim-escalar {
    animation: microScale 2.5s ease-in-out infinite alternate;
}
@keyframes microScale {
    0% { transform: scale(0.9); }
    100% { transform: scale(1.1); }
}

/* --- Cómo evoluciona el sistema --- */
.evolucion-wrapper {
    display: flex;
    gap: 4vw;
    margin-top: 50px;
    align-items: stretch;
}

.evolucion-sidebar {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.evolucion-step {
    border-left: 2px solid rgba(255, 255, 255, 0.04);
    padding-left: 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.2;
    transform: scale(0.98);
    transform-origin: left center;
}

.evolucion-step.active {
    opacity: 1;
    border-left-color: var(--magenta);
    transform: scale(1);
}

.evolucion-step-num {
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--magenta);
    display: block;
    margin-bottom: 6px;
}

.evolucion-step h3 {
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.evolucion-step p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
    margin: 0;
}

.evolucion-controles {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}

#evolucion-contador {
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.3);
}

.evolucion-visor-container {
    flex: 1;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    background-color: #050505;
}

/* --- Fundamentos (Rediseño de Re-diagramación Editorial) --- */
.fundamento-content {
    max-width: 1200px;
    margin: 50px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.fundamento-intro {
    max-width: 820px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fundamento-conceptos-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}

.concepto-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.concepto-card:hover {
    border-color: rgba(230, 255, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.02);
}

.concepto-title {
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--yellow) !important;
    text-transform: uppercase;
    margin: 0 0 12px 0 !important;
}

.concepto-text {
    font-size: 13px !important;
    line-height: 1.65 !important;
    color: rgba(255, 255, 255, 0.55) !important;
    margin: 0 !important;
    font-weight: 300;
}

/* --- Responsive Adaptability --- */
@media (max-width: 1024px) {
    .fundamento-conceptos-row {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .traduccion-wrapper {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }
    .traduccion-texto-intro, .traduccion-tabla {
        width: 100%;
        max-width: 100%;
    }
}

/* Custom cursor enabled */

/* --- PREMIUM LIGHTBOX PHOTO VIEWER --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 10002;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-close:hover {
    color: #ffffff;
    background: rgba(255, 0, 127, 0.2);
    border-color: var(--magenta);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.4);
    transform: rotate(90deg);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10001;
}

#lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.active #lightbox-img {
    transform: scale(1);
}

.lightbox-caption {
    margin-top: 20px;
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    line-height: 1.6;
    padding: 10px 20px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.lightbox-caption span {
    color: var(--magenta);
    font-weight: 500;
}

.lightbox-caption strong {
    color: var(--cyan);
    font-size: 13px;
    display: inline-block;
    margin-top: 4px;
}

/* --- ANIMATED 3D FLOATING PIECES IN HERO --- */
.contenedor-3d-hero {
    width: 420px;
    height: 420px;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1200px;
    transform-style: preserve-3d;
}

/* Canvas de cuadritos y conexiones (Estilo Exploración) */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: block;
}

.floating-pieces-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3; /* Render in front of the box */
    transform-style: preserve-3d;
}

.floating-piece {
    position: absolute;
    width: 65px;
    height: 65px;
    top: 50%;
    left: 50%;
    margin-top: -32.5px;
    margin-left: -32.5px;
    transform-style: preserve-3d;
}

/* Layering SVGs to create 3D extrusion thickness */
.floating-piece-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    fill: none;
    transform-style: preserve-3d;
}

/* Z-Offsets for extruded layers */
.floating-piece-layer:nth-child(1) { transform: translateZ(-3px); opacity: 0.15; }
.floating-piece-layer:nth-child(2) { transform: translateZ(-1.5px); opacity: 0.4; }
.floating-piece-layer:nth-child(3) { transform: translateZ(0px); opacity: 1.0; }
.floating-piece-layer:nth-child(4) { transform: translateZ(1.5px); opacity: 0.4; }
.floating-piece-layer:nth-child(5) { transform: translateZ(3px); opacity: 0.15; }

/* Individual pieces animations (Synchronized 12s loop) */
.piece-t-3d {
    animation: floatAnimT 12s infinite ease-in-out;
}

.piece-l-g-3d {
    animation: floatAnimLG 12s infinite ease-in-out;
}

.piece-recta-c-3d {
    animation: floatAnimRC 12s infinite ease-in-out;
}

.piece-l-c-3d {
    animation: floatAnimLC 12s infinite ease-in-out;
}

/* 3D Keyframe Animations: Gather at center, disperse outward, return to center */
@keyframes floatAnimT {
    0% {
        transform: translate3d(-20px, -20px, 0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    20% {
        transform: translate3d(-20px, -20px, 0px) rotateX(10deg) rotateY(10deg) rotateZ(5deg);
    }
    50% {
        transform: translate3d(-170px, -170px, 80px) rotateX(180deg) rotateY(90deg) rotateZ(45deg);
    }
    75% {
        transform: translate3d(-180px, -160px, 90px) rotateX(270deg) rotateY(180deg) rotateZ(90deg);
    }
    100% {
        transform: translate3d(-20px, -20px, 0px) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

@keyframes floatAnimLG {
    0% {
        transform: translate3d(20px, 20px, 0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    20% {
        transform: translate3d(20px, 20px, 0px) rotateX(-5deg) rotateY(-10deg) rotateZ(-5deg);
    }
    50% {
        transform: translate3d(170px, 170px, 100px) rotateX(-180deg) rotateY(-90deg) rotateZ(-135deg);
    }
    75% {
        transform: translate3d(180px, 180px, 110px) rotateX(-270deg) rotateY(-180deg) rotateZ(-225deg);
    }
    100% {
        transform: translate3d(20px, 20px, 0px) rotateX(-360deg) rotateY(-360deg) rotateZ(-360deg);
    }
}

@keyframes floatAnimRC {
    0% {
        transform: translate3d(30px, -25px, 0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    20% {
        transform: translate3d(30px, -25px, 0px) rotateX(5deg) rotateY(10deg) rotateZ(-10deg);
    }
    50% {
        transform: translate3d(170px, -170px, 60px) rotateX(-90deg) rotateY(180deg) rotateZ(-45deg);
    }
    75% {
        transform: translate3d(180px, -160px, 70px) rotateX(-180deg) rotateY(270deg) rotateZ(-90deg);
    }
    100% {
        transform: translate3d(30px, -25px, 0px) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

@keyframes floatAnimLC {
    0% {
        transform: translate3d(-25px, 30px, 0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    20% {
        transform: translate3d(-25px, 30px, 0px) rotateX(10deg) rotateY(5deg) rotateZ(10deg);
    }
    50% {
        transform: translate3d(-170px, 170px, 40px) rotateX(90deg) rotateY(-180deg) rotateZ(135deg);
    }
    75% {
        transform: translate3d(-180px, 180px, 50px) rotateX(180deg) rotateY(-270deg) rotateZ(225deg);
    }
    100% {
        transform: translate3d(-25px, 30px, 0px) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

/* Hide floating pieces on tablet and mobile to optimize space and rendering performance */
@media (max-width: 1024px) {
    .floating-pieces-container {
        display: none !important;
    }
}

/* --- Interacciones de Filas de Comparativa en Más Allá del Tablero --- */
.traduccion-fila:not(.header-fila) {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border-left: 2px solid transparent;
}

.traduccion-fila:not(.header-fila):hover {
    background-color: rgba(255, 255, 255, 0.02);
    padding-left: 14px;
    color: #ffffff;
}

/* Luces neon en hover de filas secuenciales (Cian, Magenta, Amarillo) */
.traduccion-fila:not(.header-fila):nth-child(2):hover {
    border-left-color: var(--cyan);
}
.traduccion-fila:not(.header-fila):nth-child(2):hover .trad-indicator {
    background-color: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
    transform: scale(1.6);
}

.traduccion-fila:not(.header-fila):nth-child(3):hover {
    border-left-color: var(--magenta);
}
.traduccion-fila:not(.header-fila):nth-child(3):hover .trad-indicator {
    background-color: var(--magenta);
    box-shadow: 0 0 12px var(--magenta);
    transform: scale(1.6);
}

.traduccion-fila:not(.header-fila):nth-child(4):hover {
    border-left-color: var(--yellow);
}
.traduccion-fila:not(.header-fila):nth-child(4):hover .trad-indicator {
    background-color: var(--yellow);
    box-shadow: 0 0 12px var(--yellow);
    transform: scale(1.6);
}

.traduccion-fila:not(.header-fila):nth-child(5):hover {
    border-left-color: var(--cyan);
}
.traduccion-fila:not(.header-fila):nth-child(5):hover .trad-indicator {
    background-color: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
    transform: scale(1.6);
}

.traduccion-fila:not(.header-fila):nth-child(6):hover {
    border-left-color: var(--magenta);
}
.traduccion-fila:not(.header-fila):nth-child(6):hover .trad-indicator {
    background-color: var(--magenta);
    box-shadow: 0 0 12px var(--magenta);
    transform: scale(1.6);
}

.trad-indicator {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================
   19. FOOTER EDITORIAL Y CRÉDITOS (UX PORTFOLIO STYLE)
   ========================================================== */
.footer-editorial {
    width: 100%;
    padding: 95px 8vw; /* Franja de footer más ancha y espaciosa para dar más aire */
    background-color: #0B0F19; /* Near Black */
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Fina y elegante línea gris oscuro divisor */
    position: relative;
    z-index: 2;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Alineados perfectamente al centro vertical */
    gap: 40px;
    width: 100%;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0px; /* Separación manejada por line-height */
    text-align: left;
}

.footer-line-1 {
    font-size: 16px !important; /* Aumentado para mayor visibilidad */
    font-weight: 600 !important; /* SemiBold / Medium */
    color: #FFFFFF !important; /* Blanco Puro */
    margin: 0 !important;
    line-height: 1.5 !important; /* Interlineado holgado */
}

.footer-line-2 {
    font-size: 14px !important; /* Aumentado */
    font-weight: 400 !important; /* Regular */
    color: #D1D5DB !important; /* Gris claro */
    margin: 0 !important;
    line-height: 1.5 !important;
}

.footer-line-3 {
    font-size: 14px !important; /* Aumentado */
    font-weight: 400 !important; /* Regular */
    color: #D1D5DB !important; /* Mismo gris que línea 2 para consistencia de datos */
    margin: 0 !important;
    line-height: 1.5 !important;
}

.footer-line-4 {
    font-size: 13px !important; /* Nombre completo de la escuela un punto menor */
    font-weight: 400 !important; /* Regular */
    color: #9CA3AF !important; /* Gris medio legible */
    margin: 0 !important;
    line-height: 1.5 !important;
}

.footer-right {
    display: flex;
    align-items: center;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 24px; /* Separación de logos aumentada */
}

.logo-color-pucv {
    height: 65px; /* Logos aún más grandes para gran presencia */
    width: auto;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.logo-color-ead {
    height: 38px; /* Logo ead aumentado de forma proporcional */
    width: auto;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.footer-logo-divider {
    width: 1px;
    height: 35px; /* Divisor vertical proporcional */
    background-color: #374151; /* Gris oscuro #374151 */
}

.logo-color-pucv:hover, .logo-color-ead:hover {
    opacity: 1;
    transform: scale(1.03);
}

/* Responsividad para móviles y tabletas */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    
    .footer-left {
        text-align: center;
        align-items: center;
    }
    
    .footer-logo-container {
        justify-content: center;
    }
}

/* ==========================================================
   20. CUSTOM SCROLLBAR & 3D INTERACTION PROMPT
   ========================================================== */

/* Custom Scrollbar - Estilo del Sistema (Deja leer bien sin romper la navegación) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #000000;
    border-left: 1px solid rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    border: 2px solid #000000;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
}

/* --- GESTURE PROMPT FOR 3D MODEL --- */
.interactive-gesture-prompt {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    z-index: 5;
    pointer-events: none; /* Deja pasar clicks al model-viewer */
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.6s ease;
    border-radius: 4px;
}

.interactive-gesture-prompt.fade-out {
    opacity: 0;
    backdrop-filter: blur(0px);
}

.gesture-hand-svg {
    width: 55px;
    height: 55px;
    margin-bottom: 12px;
}

.gesture-text {
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    color: #ffffff;
    opacity: 0.85;
}

@keyframes handDrag {
    0% { transform: translateX(-10px) rotate(-8deg); }
    50% { transform: translateX(10px) rotate(8deg); }
    100% { transform: translateX(-10px) rotate(-8deg); }
}

.hand-icon-drag {
    animation: handDrag 2s ease-in-out infinite;
    transform-origin: 50% 80%;
}

/* Forzar fondos sólidos en las secciones de apilamiento para evitar transparencias y textos encimados */
#del-juego-al-sistema, #cierre {
    background-color: #050505 !important;
}