/* ==================== VARIABLES MAXIMALISTAS ==================== */
:root {
    --azul-deep-tumaco: #021a36; 
    --azul-oceano-medio: #063162;
    --azul-superficie-teal: #1f7a8c; 
    --naranja-atardecer: #FF5E00; 
    --oro-sol: #FFD700; 
    --blanco-espuma: #fafafa;
    
    --fuente-titulos: 'Montserrat', sans-serif;
    --fuente-textos: 'Lora', serif;
    
    --patron-grid: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><g fill="%239C9C99" fill-opacity="0.05"><path d="M0 0h40v40H0V0zm20 20h20v20H20V20zM0 20h20v20H0V20zM20 0h20v20H20V0z"/></g></svg>');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--azul-deep-tumaco);
    color: var(--blanco-espuma);
    font-family: var(--fuente-textos);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--fuente-titulos);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* ==================== NAVEGACIÓN IMPACTANTE ==================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.5rem 1rem 1.25rem;
    background: rgba(2, 26, 54, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--naranja-atardecer);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo-container h2 {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--blanco-espuma);
    text-shadow: none;
}

.menu-toggle { display: none; }
#nav-backdrop { display: none; }
.navbar nav { margin-left: auto; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--blanco-espuma);
    font-family: var(--fuente-titulos);
    font-weight: 800;
    transition: all 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--naranja-atardecer);
    transform: scale(1.1);
}

.btn-login {
    background-color: var(--naranja-atardecer);
    /* Padding y font-size se adaptan al ancho de la ventana */
    padding: clamp(0.45rem, 0.9vw, 0.8rem) clamp(0.75rem, 1.4vw, 1.5rem);
    font-size: clamp(0.68rem, 1.05vw, 0.88rem);
    border-radius: 5px;
    white-space: nowrap; /* Evita que el texto se parta en 2 líneas */
    font-weight: 700;
    letter-spacing: 1px;
    transition: box-shadow 0.2s, transform 0.15s;
}
.btn-login:hover {
    box-shadow: 3px 3px 0 var(--oro-sol);
    background-color: var(--naranja-atardecer);
    color: var(--blanco-espuma) !important;
    transform: translateY(-1px);
}
/* --- Contenedor del Logo Clickeable --- */
.logo-link {
    display: flex;          /* Obliga a los elementos a estar lado a lado */
    align-items: center;    /* Los centra verticalmente */
    gap: 1rem;              /* Espacio entre el logo y el texto */
    text-decoration: none;  /* Quita la línea subrayada típica de los enlaces */
}

/* --- Texto del Logo --- */
.logo-link h2 {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blanco-espuma);
    text-shadow: none;
    margin: 0;
    line-height: 1.2;
}

.logo-link p {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--teal, #38bdf8);
    margin: 0;
}

/* --- Efectos al pasar el mouse --- */
.logo-link:hover h2 {
    color: var(--blanco-espuma);
}
.logo-link:hover .logo-img {
    transform: scale(1.05);
}

/* ==================== HERO SECTION (MAREAS MAXIMALISTAS) ==================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-top: 80px;
}

/* --- Iluminación --- */
/* --- Iluminación y Marea Viva de Fondo --- */
/* --- Iluminación y Marea Viva de Fondo --- */
.sky-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg, 
        #010c1a, 
        var(--azul-deep-tumaco), 
        var(--azul-oceano-medio), 
        #010c1a
    );
    background-size: 400% 400%;
    z-index: 1;
    animation: mareaViva 15s ease infinite; /* Motor de fluidez activado */
}

/* El motor clave para el fondo líquido */
@keyframes mareaViva {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


.sun-reflection {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, rgba(255,215,0,0) 70%);
    z-index: 2;
    animation: sunFlare 4s infinite alternate ease-in-out;
}

/* --- Sistema de Océano --- */
.ocean-system {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    z-index: 3;
}

/* --- Sistema de Océano --- */
.wave {
    position: absolute;
    bottom: -5px; 
    left: 0; /* CORRECCIÓN: Obligamos a la ola a empezar desde el borde izquierdo absoluto */
    width: 200%; /* Bucle matemático exacto: 2 pantallas de ancho */
    height: 100%;
    background-repeat: repeat-x;
    background-position: bottom;
    background-size: 50% auto; /* Cada bloque de ola muestra la forma completa */
    will-change: transform;
    transform-origin: center bottom;
}

/* Texturas SVG Optimizadas y SIN COSTURAS (Seamless) */
.wave-deep {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 200" xmlns="http://www.w3.org/2000/svg"><path fill="%23021a36" d="M 0,90 C 180,130, 360,50, 540,90 C 720,130, 900,50, 1080,85 C 1260,120, 1380,65, 1440,90 L 1440,200 L 0,200 Z"></path></svg>');
    z-index: 1;
    animation: waveMove 25s infinite linear;
    bottom: 0;
}

.wave-mid {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 200" xmlns="http://www.w3.org/2000/svg"><path fill="%23063162" fill-opacity="0.8" d="M 0,110 C 200,70, 360,140, 540,105 C 720,70, 900,140, 1080,110 C 1260,80, 1380,135, 1440,110 L 1440,200 L 0,200 Z"></path></svg>');
    z-index: 2;
    animation: waveMove 20s infinite linear reverse;
    bottom: 0;
}

.wave-surface {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 200" xmlns="http://www.w3.org/2000/svg"><path fill="%231f7a8c" fill-opacity="0.9" d="M 0,80 C 160,110, 320,50, 480,80 C 640,110, 800,50, 960,78 C 1120,106, 1300,55, 1440,80 L 1440,200 L 0,200 Z"></path></svg>');
    z-index: 3;
    animation: waveMove 15s infinite linear;
    bottom: 0;
}

/* --- Contenido Impactante --- */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
    padding: 0 5%;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 6rem);
    color: var(--blanco-espuma);
    line-height: 1;
    margin-bottom: 1.5rem;
    text-shadow: 6px 6px 0 var(--azul-deep-tumaco);
}

.hero-content .highlight {
    color: var(--naranja-atardecer);
    position: relative;
    -webkit-text-stroke: 1px var(--oro-sol);
}

.hero-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    font-family: var(--fuente-titulos);
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.btn-primary {
    background-color: var(--naranja-atardecer);
    color: var(--blanco-espuma);
    box-shadow: 6px 6px 0 var(--oro-sol);
}

.btn-primary:hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0 var(--oro-sol);
}

.btn-secondary {
    background-color: var(--blanco-espuma);
    color: var(--azul-deep-tumaco);
    box-shadow: 6px 6px 0 var(--azul-oceano-medio);
}

.btn-secondary:hover {
    background-color: var(--azul-oceano-medio);
    color: var(--blanco-espuma);
    box-shadow: 6px 6px 0 var(--blanco-espuma);
}

/* ==================== ANIMACIONES ==================== */
@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes sunFlare {
    0% { opacity: 0.4; transform: translateX(-50%) scale(1); }
    100% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

/* ==================== SECCIÓN SOBRE PRI ==================== */
.about-section {
    position: relative;
    padding: 8rem 5%;
    display: flex;
    justify-content: center;
    background-color: var(--azul-deep-tumaco);
}

.engineering-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--patron-grid);
    opacity: 0.5;
}

.maximalist-container {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr; 
    gap: 4rem;
}

.subtitle {
    color: var(--oro-sol);
    font-family: var(--fuente-titulos);
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 1rem;
}

.mission-block h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--blanco-espuma);
}

.mission-block p {
    font-size: 1.2rem;
    color: #e0e0e0;
}

.bold { font-weight: 700; color: var(--naranja-atardecer); }

.founder-block {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-left: 8px solid var(--naranja-atardecer);
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.founder-text h3 {
    font-size: 2.2rem;
    color: var(--oro-sol);
    margin-bottom: 1rem;
}

.founder-text p {
    font-size: 1.1rem;
    color: #EEE;
}

/* ==================== DISEÑO RESPONSIVO MAXIMALISTA (MOBILE) ==================== */
@media (max-width: 992px) {
    .page-login { height: auto; overflow: visible; }
    
    .login-split {
        grid-template-columns: 1fr !important; 
        height: auto;
    }
    
    .massive-text { 
        margin-left: 0; 
        transform: translateX(0); /* CORRECCIÓN: Reseteamos el empuje horizontal en móviles */
        font-size: 4rem; 
        margin-top: 4rem; 
    }
    
    .login-form-area { padding: 4rem 1rem; }
    
    .glass-form {
        transform: translateX(0); /* Al alinearse verticalmente, vuelve al centro */
        margin-top: -3rem; 
        box-shadow: 8px 8px 0 var(--oro-sol);
    }
}

/* Bloque 768px — menú hamburguesa: ahora manejado por el bloque maximalista más abajo */
@media (max-width: 768px) {
    /* Deja espacio para el bloque maximalista global */
}
/* ==================== ESTILOS DE IMÁGENES MAXIMALISTAS ==================== */

/* --- Logo Animado --- */
.logo-img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo-img:hover {
    transform: scale(1.05) rotate(-2deg); /* Se mueve al pasar el mouse */
}

/* --- Foto del Fundador (Capas y Profundidad) --- */
.founder-block {
    /* Ajustamos el grid para que la foto y el texto estén lado a lado en PC */
    grid-template-columns: auto 1fr;
    align-items: center;
}

.founder-image-wrapper {
    position: relative;
    z-index: 5;
}

.founder-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 4px solid var(--oro-sol);
    /* Sombra doble brutalista */
    box-shadow: 12px 12px 0 var(--naranja-atardecer), 
                24px 24px 0 rgba(0, 0, 0, 0.4);
    transform: rotate(3deg); /* Ligeramente torcida para romper la cuadrícula */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Animación elástica */
}

.founder-img:hover {
    transform: rotate(0deg) scale(1.05); /* Se endereza al pasar el mouse */
    box-shadow: 6px 6px 0 var(--naranja-atardecer), 
                12px 12px 0 rgba(0, 0, 0, 0.4);
}

/* --- Ajuste para Celulares (Mobile-First) --- */
@media (max-width: 768px) {
    .founder-block {
        grid-template-columns: 1fr; /* Apila la foto arriba del texto en móviles */
        text-align: center;
    }
    
    .founder-img {
        margin-bottom: 1rem;
        transform: rotate(0deg); /* Recta en celulares para ahorrar espacio */
    }
}
/* ========================================================== */
/* ==================== PÁGINA PRE-TEST ==================== */
/* ========================================================== */

.page-pre-test {
    background-color: var(--azul-deep-tumaco);
}

/* --- Cabecera del Módulo --- */
.module-header {
    position: relative;
    padding: 120px 5% 40px;
    text-align: center;
    border-bottom: 2px solid var(--naranja-atardecer);
}

.module-title {
    position: relative;
    z-index: 10;
}

.module-title h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    text-shadow: 4px 4px 0 var(--azul-deep-tumaco);
}

/* --- Panel de Gamificación (HUD) --- */
.gamification-hud {
    background-color: var(--azul-oceano-medio);
    padding: 2rem 5%;
    border-bottom: 4px solid var(--azul-superficie-teal);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hud-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap; /* Para que se adapte a móviles */
}

.stat-box {
    background: rgba(2, 26, 54, 0.8);
    padding: 1rem 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--blanco-espuma);
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.timer-box { border-left-color: #ff3366; } /* Rojo/Rosa para urgencia */
.score-box { border-left-color: var(--oro-sol); } /* Dorado para los puntos */

.stat-label {
    display: block;
    font-family: var(--fuente-titulos);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #ccc;
    letter-spacing: 1px;
}

.stat-value {
    display: block;
    font-family: var(--fuente-titulos);
    font-size: 2rem;
    font-weight: 900;
    color: var(--blanco-espuma);
}

.timer { color: #ff3366; text-shadow: 0 0 10px rgba(255,51,102,0.5); }
.score { color: var(--oro-sol); text-shadow: 0 0 10px rgba(255,215,0,0.5); }

/* --- Barra de Progreso --- */
.progress-container {
    max-width: 1000px;
    margin: 1.5rem auto 0.5rem;
    height: 10px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--naranja-atardecer), var(--oro-sol));
    box-shadow: 0 0 10px var(--naranja-atardecer);
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

/* --- Área de Preguntas --- */
.quiz-section {
    padding: 4rem 5%;
    display: flex;
    justify-content: center;
}

.quiz-container {
    max-width: 800px; /* Ancho de lectura contenido (Regla de oro) */
    width: 100%;
}

.question-card {
    background-color: var(--blanco-espuma);
    color: var(--azul-deep-tumaco);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 8px 8px 0 var(--naranja-atardecer);
    margin-bottom: 2rem;
}

.question-category {
    font-family: var(--fuente-titulos);
    color: var(--azul-superficie-teal);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.question-text {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.4;
}

/* --- Botones de Opciones --- */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-btn {
    background-color: transparent;
    border: 2px solid var(--azul-oceano-medio);
    padding: 1rem;
    border-radius: 8px;
    font-family: var(--fuente-textos);
    font-size: 1.1rem;
    color: var(--azul-deep-tumaco);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.option-letter {
    background-color: var(--azul-oceano-medio);
    color: var(--blanco-espuma);
    font-family: var(--fuente-titulos);
    font-weight: 900;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
}

.option-btn:hover {
    background-color: var(--azul-deep-tumaco);
    color: var(--blanco-espuma);
    border-color: var(--azul-deep-tumaco);
    transform: translateX(10px); /* Efecto de movimiento lateral */
}

.quiz-actions {
    text-align: right;
}

/* --- Diseño Móvil para PRE-TEST --- */
@media (max-width: 768px) {
    .question-card {
        padding: 1.5rem;
    }
    
    .stat-box {
        min-width: 100%; /* Las estadísticas se apilan en el celular */
        margin-bottom: 0.5rem;
    }
}
/* ========================================================== */
/* ==================== PÁGINA DOCENTES ===================== */
/* ========================================================== */

.page-docentes {
    background-color: var(--azul-deep-tumaco);
}

.mentors-section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Cuadrícula Automática --- */
.mentors-grid {
    display: grid;
    /* Esto hace que las tarjetas se adapten solas. En móvil 1, en PC 3 o 4 */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 5rem;
}

/* --- Tarjeta de Mentor Maximalista --- */
.mentor-card {
    background-color: rgba(6, 49, 98, 0.4); /* Azul océano con transparencia */
    border: 2px solid var(--azul-superficie-teal);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mentor-card:hover {
    transform: translateY(-10px);
    box-shadow: 10px 10px 0 var(--oro-sol);
    background-color: rgba(6, 49, 98, 0.8);
}

.mentor-photo {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-bottom: 4px solid var(--naranja-atardecer);
}

.mentor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%) contrast(120%); /* Filtro dramático/editorial */
    transition: filter 0.3s ease;
}

.mentor-card:hover .mentor-photo img {
    filter: grayscale(0%) contrast(100%); /* A color al pasar el mouse */
}

.mentor-info {
    padding: 2rem 1.5rem;
    text-align: left;
}

.mentor-career {
    color: var(--oro-sol);
    font-family: var(--fuente-titulos);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
}

.mentor-info h3 {
    font-size: 1.8rem;
    color: var(--blanco-espuma);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.mentor-info p {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.btn-material {
    background-color: transparent;
    color: var(--blanco-espuma);
    border: 2px solid var(--naranja-atardecer);
    padding: 0.8rem 1.5rem;
    font-family: var(--fuente-titulos);
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-material:hover {
    background-color: var(--naranja-atardecer);
    color: var(--azul-deep-tumaco);
}

/* --- Panel de Subida de Archivos (Visual por ahora) --- */
.upload-panel-hint {
    background-image: var(--patron-grid);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 4rem 2rem;
    text-align: center;
    border: 2px dashed var(--oro-sol);
    border-radius: 10px;
}

.upload-panel-hint h3 {
    font-size: 2.5rem;
    color: var(--oro-sol);
    margin-bottom: 1rem;
}

.upload-panel-hint p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}
/* ========================================================== */
/* ==================== PÁGINA DASHBOARD ==================== */
/* ========================================================== */

.page-dashboard {
    background-color: var(--azul-deep-tumaco);
    display: flex;
    min-height: 100vh;
}

/* --- Menú Lateral (Sidebar) --- */
.sidebar {
    width: 250px;
    background-color: rgba(2, 26, 54, 0.95);
    border-right: 2px solid var(--naranja-atardecer);
    padding: 2rem 1rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo img {
    width: 40px;
}

.sidebar-logo h2 {
    font-size: 1.2rem;
    color: var(--blanco-espuma);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 1rem;
}

.sidebar-menu a {
    text-decoration: none;
    color: #ccc;
    font-family: var(--fuente-titulos);
    font-size: 0.9rem;
    font-weight: 700;
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background-color: var(--azul-oceano-medio);
    color: var(--naranja-atardecer);
    transform: translateX(5px);
}

/* --- Contenido Principal --- */
.dashboard-content {
    flex: 1;
    margin-left: 250px; /* Deja espacio para el sidebar fijo */
    padding: 3rem 5%;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

.dashboard-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--blanco-espuma);
}

/* --- Tarjetas KPI (Indicadores Clave) --- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.kpi-card {
    background-color: rgba(6, 49, 98, 0.4);
    border: 1px solid var(--azul-superficie-teal);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 4px 4px 0 var(--azul-oceano-medio);
    transition: transform 0.3s ease;
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 4px 8px 0 var(--oro-sol);
}

.kpi-card h3 {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}

.kpi-number {
    font-family: var(--fuente-titulos);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--oro-sol);
    display: block;
    margin-bottom: 0.5rem;
}

.kpi-trend {
    font-size: 0.85rem;
    font-weight: 700;
}

.kpi-trend.positive { color: #00ffaa; }
.kpi-trend.neutral { color: #aaaaaa; }

/* --- Sección de Gráficas --- */
.charts-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.chart-container {
    background-color: rgba(6, 49, 98, 0.4);
    border: 1px solid var(--azul-superficie-teal);
    padding: 2rem;
    border-radius: 10px;
}

.chart-container h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--naranja-atardecer);
}

/* Lista de Temas a Fortalecer */
.weakness-list {
    list-style: none;
}

.weakness-list li {
    font-size: 1rem;
    margin-bottom: 1rem;
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot.red { background-color: #ff3366; box-shadow: 0 0 8px #ff3366; }
.dot.orange { background-color: #FF5E00; }
.dot.yellow { background-color: #FFD700; }

/* --- Diseño Móvil (Mobile-First) --- */
@media (max-width: 992px) {
    .charts-section {
        grid-template-columns: 1fr; /* Pone las gráficas una debajo de otra en tablets */
    }
}

/* ========================================================================== */
/*    RESTRUCTURACIÓN MAXIMALISTA GLOBAL PARA MÓVILES (max-width: 768px)       */
/* ========================================================================== */
@media (max-width: 768px) {
    
    /* 1. Botón hamburguesa — visible y con label MENÚ */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: auto;
        min-width: 42px;
        height: auto;
        cursor: pointer;
        z-index: 3000 !important;
        background: rgba(255,94,0,0.12);
        border: 1.5px solid rgba(255,94,0,0.5);
        border-radius: 4px;
        padding: 4px 7px 2px;
        transition: background 0.2s ease;
    }
    .menu-toggle:hover, .menu-toggle.is-active {
        background: rgba(255,94,0,0.22);
        border-color: var(--naranja-atardecer, #FF5E00);
    }
    .menu-toggle::after {
        content: 'MENÚ';
        font-family: 'Montserrat', sans-serif;
        font-size: 0.45rem;
        font-weight: 900;
        letter-spacing: 1.5px;
        color: var(--naranja-atardecer, #FF5E00);
        margin-top: 1px;
    }
    .menu-toggle.is-active::after { content: 'CERRAR'; }
    .menu-toggle .bar {
        width: 22px;
        height: 2.5px;
        background-color: var(--naranja-atardecer, #FF5E00);
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }
    /* --- Animación brutalista para convertir la hamburguesa en una X al activarse --- */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--oro-sol, #FFD700); /* Cambia a dorado al abrirse */
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--oro-sol, #FFD700);
    }

    /* 2. Cajón lateral derecho (Estado Base en celular) */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        left: unset !important;
        width: min(280px, 85vw) !important;
        height: 100vh;
        background: rgba(2, 20, 48, 0.88) !important;
        backdrop-filter: blur(28px) saturate(160%);
        -webkit-backdrop-filter: blur(28px) saturate(160%);
        border-left: 1.5px solid rgba(255, 94, 0, 0.25);
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 0.85rem;
        padding: 3.5rem 1.5rem 1.5rem;
        transform: translateX(100%) !important;
        visibility: hidden;
        transition: transform 0.38s cubic-bezier(0.77, 0, 0.175, 1), visibility 0s linear 0.38s;
        z-index: 2000 !important;
        box-sizing: border-box;
        box-shadow: -8px 0 40px rgba(0,0,0,0.55), inset -1px 0 0 rgba(255,255,255,0.04);
    }

    /* 3. Clase de Activación */
    .nav-links.active {
        transform: translateX(0) !important;
        visibility: visible;
        transition: transform 0.38s cubic-bezier(0.77, 0, 0.175, 1), visibility 0s linear 0s;
    }

    /* Fondo oscuro al abrir el cajón */
    #nav-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.55);
        z-index: 1999;
    }
    #nav-backdrop.active { display: block; }

    /* 4. Tipografía del cajón */
    .nav-links li {
        width: 100%;
        text-align: left;
        list-style: none;
    }

    .nav-links a {
        display: inline-block;
        font-size: 0.85rem !important;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: var(--blanco-espuma, #ffffff);
        transition: color 0.2s ease, transform 0.2s ease;
        width: auto;
        padding: 0.2rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--naranja-atardecer, #ff5722) !important;
        transform: translateX(6px);
    }

    /* 5. Botón Acceso Total */
    .nav-links a.btn-login {
        color: var(--blanco-espuma, #ffffff) !important;
        background-color: var(--naranja-atardecer, #ff5722) !important;
        padding: 7px 16px !important;
        border-radius: 4px;
        font-size: 0.78rem !important;
        letter-spacing: 1px;
        width: 100%;
        text-align: center;
        margin-top: 0.4rem;
        border-bottom: none;
        box-shadow: 3px 3px 0 rgba(0,0,0,0.4);
    }
    .nav-links a.btn-login:hover {
        transform: translate(-2px,-2px) !important;
        box-shadow: 6px 6px 0 rgba(0,0,0,0.5) !important;
    }
}

/* ========================================================== */
/* ==================== PÁGINA ACCESO TOTAL ================= */
/* ========================================================== */

.page-login {
    background-color: var(--azul-deep-tumaco);
    overflow: hidden; /* Evita rebotes extraños en PC */
    height: 100vh;
    width: 100vw;
}

.back-btn {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: var(--blanco-espuma);
    text-decoration: none;
    font-family: var(--fuente-titulos);
    font-weight: 900;
    z-index: 100;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.back-btn:hover { color: var(--naranja-atardecer); }

/* --- Split Screen Maximalista --- */
.login-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr; 
    height: 100vh;
    width: 100vw; 
    position: relative;
}

/* --- Lado Visual (Marea Líquida y Tipografía Masiva) --- */
.login-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; 
    padding: 5% 5% 5% 8%; 
    overflow: hidden;
    background: linear-gradient(45deg, var(--azul-deep-tumaco), var(--azul-oceano-medio));
}

/* Textura líquida rotatoria */
.liquid-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(31, 122, 140, 0.4) 0%, transparent 60%);
    animation: liquidRotate 20s linear infinite;
    z-index: 1;
}

/* Textos gigantes rompiendo la caja con elegancia (VERSIÓN PC) */
.massive-text {
    position: relative;
    z-index: 2;
    font-family: var(--fuente-titulos);
    font-size: clamp(4.5rem, 10vw, 10rem); 
    line-height: 0.85; 
    color: transparent; 
    -webkit-text-stroke: 2px var(--blanco-espuma); 
    text-shadow: 12px 12px 0px rgba(0,0,0,0.4); 
    margin-left: 0; 
    transform: translateX(6vw); 
    transition: all 0.5s ease;
}

/* Envolvemos la distorsión para que SOLO ocurra en PC (mouse) y no se rompa en teléfonos */
@media (hover: hover) and (pointer: fine) {
    .massive-text:hover {
        color: var(--naranja-atardecer);
        -webkit-text-stroke: 0px transparent;
        transform: translateX(6vw) scale(1.03) skewX(-5deg);
        text-shadow: 20px 20px 0px rgba(0,0,0,0.6); 
    }
}

/* Efecto de texto hueco delineado */
.outline-text {
    color: transparent;
    -webkit-text-stroke: 3px var(--naranja-atardecer);
}

/* --- Lado del Formulario (Glassmorphism Superpuesto) --- */
.login-form-area {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--azul-oceano-medio);
    position: relative;
    width: 100%; 
}

.glass-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 3rem; 
    border-radius: 15px;
    width: 100%;
    max-width: 450px;
    box-shadow: -15px 15px 0 var(--oro-sol); 
    transform: translateX(-40px); 
    z-index: 10;
}

/* ========================================================================== */
/* NUEVO: RE-ESTILIZACIÓN DE ENTRADAS, LABELS Y CONTROLES DEL FORMULARIO      */
/* ========================================================================== */

/* Forzar separación vertical de bloques funcionales */
.glass-form form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Contenedor estructural de cada campo (Correo, Contraseña) */
.glass-form .form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 1.8rem;
    text-align: left;
}

/* Títulos de los inputs en mayúsculas brutales */
.glass-form label {
    display: block !important;
    font-family: var(--fuente-titulos);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--blanco-espuma);
    letter-spacing: 1.5px;
    margin-bottom: 0.6rem;
}

/* Campos de texto oscuros e integrados al diseño de la app */
.glass-form input {
    width: 100% !important;
    display: block;
    padding: 1rem 1.2rem;
    background-color: rgba(2, 26, 54, 0.6) !important; /* Fondo marino profundo semi-transparente */
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 6px;
    color: var(--blanco-espuma) !important;
    font-family: var(--fuente-textos);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Foco interactivo ultra-destacado */
.glass-form input:focus {
    outline: none !important;
    border-color: var(--naranja-atardecer) !important;
    background-color: rgba(2, 26, 54, 0.85) !important;
    box-shadow: 0 0 15px rgba(255, 94, 0, 0.3);
}

/* Ajustes finos para el botón "ENTRAR AL SISTEMA" dentro de esta tarjeta */
.glass-form .btn-primary {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
    cursor: pointer;
    border: none;
}

/* Enlaces de ayuda inferiores ("¿No tienes cuenta?...") */
.glass-form .form-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #ccc;
    font-family: var(--fuente-textos);
}

.glass-form .form-footer a {
    color: var(--naranja-atardecer);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.glass-form .form-footer a:hover {
    color: var(--oro-sol);
    text-decoration: underline;
}
/* ========================================================================== */
/* CORRECCIÓN: TÍTULO MASIVO AUTO-ORGANIZADO Y CONTROLADO                     */
/* ========================================================================== */
.massive-text {
    position: relative;
    z-index: 2;
    font-family: var(--fuente-titulos);
    font-size: clamp(3.5rem, 8vw, 7.5rem); /* Ajustado para que no devore la pantalla */
    line-height: 0.95; /* Evita que las letras colapsen verticalmente */
    color: transparent; 
    -webkit-text-stroke: 2px var(--blanco-espuma); 
    text-shadow: 8px 8px 0px rgba(0,0,0,0.5); 
    
    display: flex;
    flex-direction: column; /* Fuerza a cada palabra a tomar su propia línea */
    align-items: flex-start;
    text-align: left;
    
    max-width: 80%; /* Evita que el texto invada el espacio de la tarjeta */
    transform: translateX(2vw); /* Desplazamiento elegante sin colisiones */
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Envoltura para controlar efectos por línea */
.massive-text span {
    display: block;
    width: 100%;
}

/* Animación elástica al pasar el mouse en PC */
@media (hover: hover) and (pointer: fine) {
    .massive-text:hover {
        color: var(--blanco-espuma);
        -webkit-text-stroke: 0px transparent;
        transform: translateX(3vw) skewX(-3deg);
        text-shadow: 12px 12px 0px var(--naranja-atardecer); 
    }
}

/* ========================================================================== */
/* CORRECCIÓN: TARJETA GLASSMISM Y ELEMENTOS INTERNOS                         */
/* ========================================================================== */
.glass-form {
    background: rgba(6, 49, 98, 0.4); /* Fondo azul integrado de style_5.css */
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 3.5rem 2.5rem; 
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    
    /* Sombra brutalista amarilla corregida */
    box-shadow: -12px 12px 0px var(--oro-sol); 
    z-index: 10;
    transition: all 0.3s ease;
}

.form-subtitle {
    font-family: var(--fuente-textos);
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

/* Separación estricta del botón de envío */
.glass-form .btn-primary {
    width: 100%;
    padding: 1.1rem;
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
    margin-bottom: 0px; /* Reseteo de margen inferior */
}

/* ========================================================================== */
/* CORRECCIÓN: FOOTER DEL FORMULARIO (¿No tienes cuenta?)                    */
/* ========================================================================== */
.glass-form .form-footer {
    display: block !important;
    text-align: center;
    margin-top: 2rem; /* Espaciado vital para que no esté pegado al botón */
    font-size: 0.95rem;
    color: var(--blanco-espuma) !important; /* Fuerza el color blanco-espuma */
    font-family: var(--fuente-textos);
    letter-spacing: 0.5px;
}

.glass-form .form-footer a {
    color: var(--naranja-atardecer) !important; /* Fuerza tu color de acento */
    text-decoration: none;
    font-weight: 800;
    font-family: var(--fuente-titulos);
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-left: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.glass-form .form-footer a:hover {
    color: var(--oro-sol) !important;
    border-bottom-color: var(--oro-sol);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* ========================================================================== */
/* CONFIGURACIÓN DE MAREAS LÍQUIDAS (ALTA PERFORMANCE)                         */
/* ========================================================================== */
.login-visual {
    position: relative;
    overflow: hidden;
    background-color: #010a15; /* --azul-abismal */
    display: flex;
    align-items: center;
    justify-content: center;
}

.liquid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: blur(40px); /* Mezcla los bloques de color de forma líquida */
    opacity: 0.8;
}

/* Capas de color abstractas en movimiento */
.marea-layer {
    position: absolute;
    border-radius: 43% 57% 70% 30% / 45% 45% 55% 55%;
    will-change: transform; /* Fuerza aceleración por tarjeta de video */
}

.layer-1 {
    width: 150%;
    height: 150%;
    top: -20%;
    left: -25%;
    background: radial-gradient(circle, #063162 0%, transparent 70%);
    animation: mareaRotar 25s infinite linear;
}

.layer-2 {
    width: 120%;
    height: 120%;
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.25) 0%, transparent 60%);
    animation: mareaFluir 18s infinite ease-in-out alternate;
}

.layer-3 {
    width: 90%;
    height: 90%;
    top: 10%;
    left: 10%;
    background: radial-gradient(circle, rgba(255, 94, 0, 0.15) 0%, transparent 50%);
    animation: mareaRotar 35s infinite linear reverse;
}

/* ========================================================================== */
/* ANIMACIONES DE OLEAJE DIGITAL                                              */
/* ========================================================================== */
@keyframes mareaRotar {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); }
    100% { transform: translate3d(0, 0, 0) rotate(360deg); }
}

@keyframes mareaFluir {
    0% { transform: translate3d(-5%, -5%, 0) scale(1); border-radius: 43% 57% 70% 30% / 45% 45% 55% 55%; }
    50% { transform: translate3d(5%, 2%, 0) scale(1.1); border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%; }
    100% { transform: translate3d(-2%, -5%, 0) scale(0.9); border-radius: 43% 57% 70% 30% / 45% 45% 55% 55%; }
}
/* ==================== MEJORAS AL MENÚ Y ENLACES (MAXIMALISMO) ==================== */
/* EFECTO DE MAREA SUTIL (NO AFECTA LA TIPOGRAFÍA) */
.nav-resaltado {
    position: relative;
    color: var(--oro-sol) !important; /* Un color ligeramente distinto, opcional */
    font-weight: bold;
}

.nav-resaltado::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--naranja-atardecer);
    transition: width 0.4s cubic-bezier(0.86, 0, 0.07, 1);
    box-shadow: 0 0 8px var(--naranja-atardecer);
}

.nav-resaltado:hover::after {
    width: 100%;
}
/* ==================== CONTROL MAXIMALISTA EN MÓVILES (CRUCIAL) ==================== */
@media (max-width: 768px) {
    /* Forzamos el flujo vertical en contenedores grandes para evitar saturación */
    .maximalist-container,
    .login-split,
    .charts-section,
    .mentors-grid {
        display: grid !important;
        grid-template-columns: 1fr !important; /* REGLA DE ORO: 1 columna en móvil */
        gap: 2rem !important;
    }

    /* Ajuste de tipografía masiva en celulares para que no se corte */
    .massive-text {
        font-size: clamp(3rem, 12vw, 5rem) !important;
        transform: none !important;
        text-align: center;
        margin: 0 auto;
        padding-top: 2rem;
    }
    
    /* Hardware acceleration en mareas para evitar lag en celulares */
    .marea-layer, .wave {
        will-change: transform, opacity;
        -webkit-transform: translateZ(0); /* Acelera el renderizado por GPU */
    }
}
/* ==================== HERO & MARCADOR DE PUNTOS ==================== */
.hero-puntos {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--fondo-abisal, #010a15);
    overflow: hidden;
    padding: 2rem;
}

/* Efecto de Texto Líquido para los Puntos */
.liquid-points {
    font-size: clamp(4rem, 15vw, 10rem); /* Adaptabilidad estricta */
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--oro-sol, #FFD700);
    background: linear-gradient(45deg, var(--naranja-atardecer, #FF5E00), var(--oro-sol, #FFD700), var(--marea-electrica, #00f2fe));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: mareaGradiente 6s ease infinite;
    margin: 0;
    line-height: 1;
}

.pts-label {
    font-size: clamp(1.5rem, 4vw, 3rem);
    -webkit-text-stroke: 0;
    color: var(--blanco-espuma, #ffffff);
}

/* Animación de la Marea dentro del texto */
@keyframes mareaGradiente {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==================== CATÁLOGO MAXIMALISTA ==================== */
.maximalist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.recompensa-card {
    background: #0a111a;
    padding: 2rem;
    border: 3px solid var(--naranja-atardecer, #FF5E00);
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Rompiendo la cuadrícula intencionalmente */
.overlap-card {
    margin-top: 4rem; /* Empuja la tarjeta hacia abajo para un layout asimétrico */
    z-index: 2;
}

.recompensa-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 15px 15px 0px var(--marea-electrica, #00f2fe);
}

.card-etiqueta {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--oro-sol, #FFD700);
    color: #000;
    font-weight: 900;
    padding: 0.5rem 1rem;
    transform: rotate(-5deg);
    font-size: 1.2rem;
    box-shadow: 4px 4px 0px #000;
}

.costo-puntos {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--marea-electrica, #00f2fe);
    margin: 1rem 0;
}

.btn-canjear {
    width: 100%;
    padding: 1rem;
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-canjear:hover {
    background: var(--naranja-atardecer, #FF5E00);
    border-color: var(--naranja-atardecer, #FF5E00);
    letter-spacing: 2px;
}

/* ==================== CONTROL EN MÓVILES ==================== */
@media (max-width: 768px) {
    .maximalist-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        padding: 2rem 1rem;
    }
    
    /* En móviles quitamos el overlap asimétrico para no romper el scroll */
    .overlap-card {
        margin-top: 0;
    }
}
/* ==================== BÓVEDA INDUSTRIAL (MAXIMALISMO CRUDO) ==================== */
/* ==================== BÓVEDA INDUSTRIAL (AJUSTE DE PROFUNDIDAD) ==================== */
.boveda-section {
    position: relative;
    background-color: #080808;
    /* Arriba: 6rem | Derecha: 2rem | Abajo: 14rem (Empuja la línea azul) | Izquierda: 2rem */
    padding: 10rem 2rem 20rem 2rem; 
    overflow: hidden;
    border-top: 10px solid var(--naranja-atardecer, #FF5E00);
}

/* Marea de Metal Fundido de Fondo */
.marea-magma-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 100%, rgba(255, 94, 0, 0.15) 0%, transparent 60%);
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
    animation: respiracionMagma 8s ease-in-out infinite alternate;
    will-change: opacity, transform; /* Hardware acceleration */
}

@keyframes respiracionMagma {
    0% { transform: scale(1) translateY(20px); opacity: 0.5; }
    100% { transform: scale(1.1) translateY(-20px); opacity: 1; }
}

/* Grid y Contenedores Pesados */
.boveda-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.crate-card {
    background: #111;
    border: 4px solid #333;
    position: relative;
    transition: all 0.2s ease-out;
    /* Sombra brutalista dura, sin difuminar */
    box-shadow: 12px 12px 0px #000;
}

.crate-card:hover {
    transform: translate(-5px, -5px);
    border-color: var(--naranja-atardecer, #FF5E00);
    box-shadow: 17px 17px 0px var(--naranja-atardecer, #FF5E00);
}

/* Rompiendo la cuadrícula */
.overlap-crate {
    margin-top: 5rem;
}

/* Sellos Industriales Desbordados */
.sello-industrial {
    position: absolute;
    top: -25px;
    right: -15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    padding: 0.5rem 1.5rem;
    color: #000;
    transform: rotate(10deg);
    border: 3px solid #000;
    z-index: 20;
    letter-spacing: 2px;
}

.stamp-unal { background: var(--marea-electrica, #00f2fe); }
.stamp-mercado { background: var(--oro-sol, #FFD700); }
.stamp-javeriana { background: #fff; }

/* Contenido Interno y Botones */
.crate-inner {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.crate-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #fff;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0;
}

.crate-data {
    border-top: 2px dashed #444;
    border-bottom: 2px dashed #444;
    padding: 1rem 0;
}

.label {
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 3px;
    display: block;
}

.costo-vault {
    font-size: 3rem;
    font-weight: 900;
    color: var(--oro-sol, #FFD700);
    margin: 0;
    text-shadow: 2px 2px 0px #000;
}

/* Botones de Extracción */
.btn-vault {
    background: #222;
    color: #fff;
    border: 2px solid #555;
    padding: 1rem;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-vault:hover {
    background: var(--oro-sol, #FFD700);
    color: #000;
    border-color: #000;
}

.btn-warning:hover {
    background: var(--naranja-atardecer, #FF5E00);
    color: #fff;
}

/* ==================== CONTROL ESTRICTO EN MÓVILES ==================== */
@media (max-width: 768px) {
    .boveda-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
    
    .overlap-crate {
        margin-top: 0; /* Restauramos el flujo natural para no quebrar el scroll en celular */
    }

    .sello-industrial {
        font-size: 1.2rem;
        right: -5px;
    }
}

/* ==================== FOOTER BRUTALISTA ==================== */
/* ==================== FOOTER BRUTALISTA (COMPRESIÓN DE ESPACIO) ==================== */
.footer-masivo {
    position: relative;
    background-color: var(--fondo-abisal, #010a15);
    border-top: 8px solid var(--marea-electrica, #00f2fe);
    
    /* El orden es: Arriba | Derecha | Abajo | Izquierda */
    /* Reducimos el valor superior de 6rem a 2.5rem para generar tensión inmediata */
    padding: 1rem 2rem 1rem 2rem; 
    
    overflow: hidden;
    color: var(--blanco-espuma, #fff);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* ==================== AJUSTE DE TEXTO FOOTER ==================== */
/* 1. Reducción del Título Principal */
.massive-footer-text {
    /* Reducimos el tamaño: mínimo 2rem, fluido 3.5vw, máximo 3.5rem */
    font-size: clamp(2rem, 3.5vw, 3.5rem); 
    line-height: 0.95;
    margin: 0;
    font-weight: 900;
    letter-spacing: -1px; 
}

/* Reducción del grosor del trazo (outline) para que coincida con el nuevo tamaño */
.massive-footer-text .outline-text {
    color: transparent;
    -webkit-text-stroke: 1px var(--naranja-atardecer, #FF5E00);
}

/* 2. Reducción de los Títulos de las Columnas */
.footer-col h3 {
    color: var(--oro-sol, #FFD700);
    font-size: 1.2rem; /* Reducido de 1.5rem */
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
}

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

/* 3. Ajuste Fino en Enlaces y Textos de Información */
.links-col a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem; /* Reducido de 1.1rem */
    display: block;
    margin-bottom: 0.8rem;
    transition: transform 0.3s, color 0.3s;
}

.links-col a:hover {
    color: var(--marea-electrica, #00f2fe);
    transform: translateX(10px); /* Interacción fluida de movimiento */
}

.info-col p {
    color: #aaa;
    font-size: 0.95rem; /* Reducido de 1.1rem */
    line-height: 1.5;
}

.info-col .copyright {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #555;
    border-top: 1px solid #333;
    padding-top: 1rem;
}

/* Marea de Cierre (Keyframes re-utilizables) */
.footer-marea {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 150px;
    background: radial-gradient(ellipse at bottom, rgba(0, 242, 254, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
/* ==================== ALINEACIÓN DE LOGO Y MARCA ==================== */
.footer-brand-wrapper {
    display: flex;
    align-items: center; /* Centra el logo y el texto verticalmente */
    gap: 1.5rem; /* Espacio de respiro entre el logo y la tipografía */
}

.footer-logo {
    width: clamp(70px, 8vw, 100px); /* Tamaño dinámico: respeta la escala de la pantalla */
    height: auto;
    object-fit: contain;
    /* Sombra brutalista dura para el logo */
    filter: drop-shadow(4px 4px 0px var(--naranja-atardecer, #FF5E00)); 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-logo:hover {
    transform: scale(1.1) rotate(-5deg); /* Interacción maximalista al pasar el cursor */
}

/* Ajuste fino para la agrupación del texto */
.footer-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-brand-text .massive-footer-text {
    margin: 0;
    line-height: 0.85; /* Mantiene "PROGRAMA" y "-PRI" como un bloque denso */
}
/* ==================== CONTROL EN MÓVILES ==================== */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem;
        text-align: center;
    }
    
    .massive-footer-text {
        text-align: center;
    }

    .footer-col h3 {
        display: inline-block;
    }

    .links-col a:hover {
        transform: translateY(-5px); /* Ajuste de interacción para scroll vertical */
    }
    .boveda-section {
        /* Reducimos el espacio inferior en móviles para mantener el dinamismo sin cortar el scroll */
        padding: 4rem 1rem 8rem 1rem !important; 
    }
.footer-brand-wrapper {
        flex-direction: column; /* Apila el logo arriba del texto en celulares */
        text-align: center;
        gap: 1rem;
    }
    
    .footer-logo {
        filter: drop-shadow(3px 3px 0px var(--naranja-atardecer, #FF5E00));
    }

}
/* ==================== FOOTER BRUTALISTA DEFINITIVO ==================== */
.footer-masivo {
    position: relative;
    background-color: #010a15; /* Fondo oscuro abisal */
    border-top: 8px solid var(--marea-electrica, #00f2fe);
    padding: 3rem 2rem 2rem 2rem; /* Compactado para evitar vacíos innecesarios */
    overflow: hidden;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; /* Mejor balance de anchos */
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Envoltura de Marca: Fuerza el Logo y Texto en una Sola Línea */
.footer-brand-wrapper {
    display: flex;
    flex-direction: row; /* Asegura que se queden en la misma línea */
    align-items: center;
    gap: 1.2rem;
    white-space: nowrap; /* Evita que el texto salte de línea en pantallas intermedias */
}

.footer-logo {
    width: clamp(50px, 6vw, 75px); /* Logo dócil pero presente */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(3px 3px 0px var(--naranja-atardecer, #FF5E00));
}

/* Ajuste Fino de la Tipografía en una Sola Línea */
.massive-footer-text {
    font-size: clamp(1.8rem, 3.5vw, 3rem); /* Tamaño domado y equilibrado */
    font-weight: 900;
    letter-spacing: -1px;
    margin: 0;
    line-height: 1;
}

.massive-footer-text .outline-text {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--naranja-atardecer, #FF5E00);
    margin-left: 2px;
}

/* Estilos de los Títulos de las Columnas */
.footer-col h3 {
    color: var(--oro-sol, #FFD700);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 2px solid #222;
    padding-bottom: 0.5rem;
}

/* Enlaces Tácticos */
.links-col ul {
    list-style: none;
    padding: 0; margin: 0;
}

.links-col a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.8rem;
    transition: transform 0.2s, color 0.2s;
}

.links-col a:hover {
    color: var(--marea-electrica, #00f2fe);
    transform: translateX(5px);
}

/* Datos de Contacto Estructurados */
.contacto-datos {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: #ccc;
}

.contacto-datos p {
    margin: 0;
}

.link-inline {
    color: var(--marea-electrica, #00f2fe);
    text-decoration: none;
}

.link-inline:hover {
    text-decoration: underline;
}

.info-col .copyright {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #555;
    border-top: 1px solid #222;
    padding-top: 0.8rem;
}

/* Marea de Fondo */
.footer-marea {
    position: absolute;
    bottom: -50px; left: 0;
    width: 100%; height: 150px;
    background: radial-gradient(ellipse at bottom, rgba(0, 242, 254, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}


/* ==================== SIMULADOR PRE-TEST (CUARTO DE GUERRA) ==================== */
/* ==================== SIMULADOR PRE-TEST (CUARTO DE GUERRA EVOLUCIONADO) ==================== */
.simulador-container {
    max-width: 1400px;
    margin: 0 auto;
    /* Cambiamos el cálculo para darle un espacio seguro arriba y abajo */
    min-height: calc(100vh - 120px); 
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Alinea al inicio para evitar que el navegador mutile el top */
    align-items: center;
    /* Un padding superior generoso (6rem) para que tu barra de navegación no tape NADA */
    padding: 6rem 2rem 4rem 2rem; 
    box-sizing: border-box;
}

/* --- Ajuste del contenedor de bienvenida --- */
.briefing-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* El truco maestro: 'margin: auto' en flexbox centra verticalmente si hay espacio, 
       pero si el contenido es más alto que la pantalla, activa el scroll normal sin cortar nada arriba */
    margin: auto 0; 
}

.briefing-card {
    background: #0d141e;
    border: 4px solid var(--oro-sol, #FFD700);
    padding: 3rem;
    box-shadow: 12px 12px 0px #000;
    max-width: 650px;
    width: 100%;
    text-align: center;
}

.briefing-header h2 {
    font-family: var(--fuente-titulos, 'Montserrat', sans-serif);
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.2rem;
}

.briefing-header .subtitle {
    color: var(--naranja-atardecer, #FF5E00);
    font-family: var(--fuente-titulos, 'Montserrat', sans-serif);
    font-size: 0.9rem;
    letter-spacing: 3px;
    font-weight: bold;
    margin-bottom: 2rem;
}

.briefing-body {
    text-align: left;
    font-family: var(--fuente-textos, 'Lora', serif);
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.briefing-rules {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: #060d15;
    padding: 1.5rem;
    border-left: 4px solid var(--marea-electrica, #00f2fe);
}

.start-btn {
    background: var(--naranja-atardecer, #FF5E00);
    color: #fff;
    border: none;
    padding: 1.2rem 2.5rem;
    font-family: var(--fuente-titulos, 'Montserrat', sans-serif);
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 6px 6px 0px #000;
    transition: all 0.2s ease;
    width: 100%;
}

.start-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px var(--marea-electrica, #00f2fe);
    background: #ff7315;
}

/* --- Nuevo Layout de Juego (Oculto 100% al inicio) --- */
.game-layout {
    display: none !important; /* Fuerza la desaparición total antes de comenzar */
    width: 100%;
    grid-template-columns: 1fr 350px; /* Pregunta ancha, panel lateral fijo */
    gap: 2.5rem;
    align-items: start;
}

/* Panel Izquierdo: Preguntas */
.question-panel {
    background: #0d141e;
    border: 3px solid #333;
    padding: 3rem;
    box-shadow: 12px 12px 0px #000;
}

.question-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px dashed #444;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    font-family: var(--fuente-titulos, 'Montserrat', sans-serif);
}

.question-number { font-weight: 900; color: var(--marea-electrica, #00f2fe); font-size: 1.2rem; }
.dim-text { color: #555; }
.question-category { color: #888; letter-spacing: 2px; font-size: 0.9rem; }

.question-text {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    line-height: 1.4;
    margin-bottom: 3rem;
    color: #fff;
}

.answers-grid { display: grid; gap: 1.2rem; }

.answer-btn {
    background: #111;
    color: #fff;
    border: 2px solid #444;
    padding: 1.3rem;
    font-size: 1.1rem;
    font-family: var(--fuente-textos, 'Lora', serif);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.answer-letter {
    background: #333;
    color: #aaa;
    font-weight: 900;
    padding: 0.4rem 0.8rem;
    font-family: var(--fuente-titulos, 'Montserrat', sans-serif);
}

.answer-btn:hover:not(:disabled) {
    border-color: var(--marea-electrica, #00f2fe);
    background: #1a2533;
    transform: translateX(10px);
    box-shadow: -6px 6px 0px var(--marea-electrica, #00f2fe);
}

.answer-btn:hover:not(:disabled) .answer-letter { background: var(--marea-electrica, #00f2fe); color: #000; }
.answer-btn.correct { background: #00ff66; color: #000; border-color: #00ff66; transform: scale(1.01); }
.answer-btn.correct .answer-letter { background: #000; color: #00ff66; }
.answer-btn.incorrect { background: #ff003c; color: #fff; border-color: #ff003c; opacity: 0.8; }
.answer-btn.incorrect .answer-letter { background: #000; color: #ff003c; }

/* Columna Derecha: Panel de Control */
.control-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Modificación del Timer en el Lateral */
.tactical-timer-wrapper {
    background: #080808;
    border: 4px solid var(--naranja-atardecer, #FF5E00);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 8px 8px 0px #000;
    width: 100%;
}

.timer-label, .db-label {
    color: #777;
    font-size: 0.8rem;
    letter-spacing: 3px;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.timer-display {
    font-family: var(--fuente-titulos, 'Montserrat', sans-serif);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--oro-sol, #FFD700);
    line-height: 1;
}

.timer-bar { width: 100%; height: 6px; background: #222; margin-top: 1rem; overflow: hidden; }
.timer-progress { height: 100%; width: 100%; background: var(--oro-sol, #FFD700); transition: width 1s linear; }
.timer-danger { color: #ff003c !important; animation: palpitacionMortal 0.8s infinite alternate; }
.timer-progress.danger { background: #ff003c; }

/* Tarjeta del Acumulador de Base de Datos */
.score-db-panel {
    background: #09101a;
    border: 3px solid #223344;
    padding: 1.5rem;
    box-shadow: 8px 8px 0px #000;
}

.db-stat-box {
    background: #111;
    border-left: 5px solid var(--marea-electrica, #00f2fe);
    padding: 1rem;
    margin: 1rem 0;
}

.stat-title {
    display: block;
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 1px;
}

.stat-value {
    font-family: var(--fuente-titulos, 'Montserrat', sans-serif);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--marea-electrica, #00f2fe);
}

.db-status-light {
    font-size: 0.8rem;
    color: #44bb66;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
}

.ping-indicator {
    width: 8px; height: 8px;
    background-color: #00ff66;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #00ff66;
}

/* --- Control de Pantallas Pequeñas --- */
@media (max-width: 950px) {
    /* --- Ajuste del área de juego para que no se pegue al techo --- */
.game-layout {
    display: none !important;
    width: 100%;
    grid-template-columns: 1fr 350px;
    gap: 2.5rem;
    align-items: start;
    /* Le da un empujón inicial si el contenido aparece de golpe */
    margin: auto 0; 
}
}
/* --- Estilos para la Multimedia Dinámica de las Preguntas --- */
.question-media-wrapper {
    width: 100%;
    margin-bottom: 2rem;
    border: 2px solid #223344;
    background: #060d15;
    display: none; /* Se activa con JS solo si la pregunta tiene media */
    overflow: hidden;
}

/* Ajuste Brutalista de Imágenes */
.media-img-elemento {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
    display: block;
}

/* Contenedor Responsivo para Videos Embebidos de YouTube */
.video-responsive-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
    height: 0;
    overflow: hidden;
}

.video-responsive-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* --- Botón Brutalista "Siguiente Pregunta" --- */
.next-question-btn {
    display: none; /* JS lo muestra solo al terminar la acción */
    background: var(--marea-electrica, #00f2fe);
    color: #000;
    border: none;
    padding: 1.2rem 2rem;
    font-family: var(--fuente-titulos, 'Montserrat', sans-serif);
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 6px 6px 0px #000;
    transition: all 0.2s ease;
    margin-top: 2.5rem;
    width: 100%;
    text-align: center;
}

.next-question-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px var(--naranja-atardecer, #FF5E00);
    background: #00d6e0;
}

.next-question-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000;
}

/* ==================== ESTILOS PARA LAS NUEVAS SECCIONES HOME ==================== */

.home-section {
    padding: 6rem 2rem;
    width: 100%;
}

.container-pri {
    max-width: 1300px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    font-family: var(--fuente-titulos);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--marea-electrica, #00f2fe);
    background: #0b1522;
    padding: 0.4rem 1rem;
    border-left: 3px solid var(--naranja-atardecer);
    margin-bottom: 1.5rem;
}

.section-tag.center {
    display: table;
    margin: 0 auto 1.5rem auto;
}

.massive-title-section {
    font-family: var(--fuente-titulos);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2.5rem;
    letter-spacing: -1px;
}

.highlight-orange { color: var(--naranja-atardecer, #FF5E00); }
.highlight-blue { color: var(--marea-electrica, #00f2fe); }

.text-p {
    font-family: var(--fuente-textos);
    font-size: 1.2rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

/* --- Layout Split de la Presentación --- */
.split-layout-brutal {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
}

.deco-box-industrial {
    background: #09121c;
    border: 4px solid #fff;
    height: 350px;
    box-shadow: 16px 16px 0px var(--naranja-atardecer);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.deco-box-industrial::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    background-image: var(--patron-grid);
    opacity: 0.3;
}

.inner-matrix {
    font-family: var(--fuente-titulos);
    font-weight: 900;
    color: #475569;
    font-size: 1.2rem;
    text-align: center;
    border: 2px dashed #334155;
    padding: 2rem;
    z-index: 1;
}

/* Botones de acción Brutalistas */
.btn-brutal-action {
    display: inline-block;
    background: #fff;
    color: #000;
    border: 3px solid #000;
    padding: 1.2rem 2.5rem;
    font-family: var(--fuente-titulos);
    font-weight: 900;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 8px 8px 0px var(--naranja-atardecer);
    transition: all 0.2s ease;
}

.btn-brutal-action:hover {
    transform: translate(-3px, -3px);
    box-shadow: 11px 11px 0px var(--marea-electrica);
    background: #fafafa;
}

.btn-brutal-action.gold-variant {
    background: #000;
    color: #fff;
    border: 3px solid var(--oro-sol);
    box-shadow: 8px 8px 0px var(--oro-sol);
}
.btn-brutal-action.gold-variant:hover {
    background: #0d1622;
    box-shadow: 11px 11px 0px var(--naranja-atardecer);
}

/* --- Línea de Tiempo Táctica --- */
.archive-bg {
    background: #050d18;
    border-top: 4px solid #111;
    border-bottom: 4px solid #111;
}

.timeline-brutal {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    margin-top: 4rem;
}

.timeline-brutal::before {
    content: '';
    position: absolute;
    left: 45px; top: 0;
    width: 4px; height: 100%;
    background: #223344;
}

.timeline-item {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    position: relative;
}

.timeline-badge {
    background: #000;
    color: var(--oro-sol);
    border: 2px solid var(--oro-sol);
    font-family: var(--fuente-titulos);
    font-size: 0.75rem;
    font-weight: 900;
    padding: 0.5rem;
    width: 90px;
    text-align: center;
    z-index: 2;
    box-shadow: 4px 4px 0px #000;
}

.timeline-item.future-phase .timeline-badge {
    border-color: #555;
    color: #888;
}

.timeline-card {
    background: #0a1420;
    border: 2px solid #223344;
    padding: 2rem;
    width: 100%;
    box-shadow: 8px 8px 0px #000;
}

.timeline-card h3 {
    font-family: var(--fuente-titulos);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.8rem;
}

.timeline-card p {
    font-family: var(--fuente-textos);
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --- Rejilla Operacional Pre-ICFES --- */
.preicfes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.operation-card {
    background: #09111a;
    border: 3px solid #1e293b;
    padding: 3rem;
    box-shadow: 12px 12px 0px #000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.operation-card h3 {
    font-family: var(--fuente-titulos);
    font-size: 1.6rem;
    color: #fff;
    margin: 1.5rem 0 1rem 0;
}

.operation-card p {
    font-family: var(--fuente-textos);
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.card-hours {
    font-family: var(--fuente-titulos);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--naranja-atardecer);
}

.card-footer-stat {
    font-family: var(--fuente-titulos);
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--oro-sol);
    border-top: 1px dashed #334155;
    padding-top: 1rem;
    margin-top: auto;
}

.highlight-card {
    border-color: var(--naranja-atardecer);
    background: #0d141e;
}

.highlight-card .card-hours {
    color: var(--marea-electrica);
}

/* ==================== MEDIAS QUERIES RESPONSIVAS ==================== */
@media (max-width: 1024px) {
    .split-layout-brutal {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .deco-box-industrial {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .preicfes-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .timeline-brutal::before {
        left: 25px;
    }
    .timeline-badge {
        width: 60px;
        font-size: 0.6rem;
    }
    .timeline-item {
        gap: 1.5rem;
    }
}
/* ==================== ATMÓSFERA NUBLADA TUMACO (EL MORRO) ==================== */

/* Fondo oscuro y nublado para el cielo */
.cloudy-theme {
    background: linear-gradient(to bottom, #2b3a4a 0%, #4a5d73 50%, #68798c 100%);
}


/* ==================== ANCLAJE Y LIMPIEZA DE LA PEÑA ==================== */
.tumaco-rock {
    position: absolute !important;
    bottom: 8vh !important;
    right: 0 !important;
    width: clamp(280px, 40vw, 600px) !important;
    z-index: 6 !important;

    /* Sombra oscura hacia la izquierda, CERO blanco, CERO beige */
    filter: drop-shadow(-10px 5px 20px rgba(0, 0, 0, 0.8)) !important;
    opacity: 1 !important;

}
/* Gaviota Independiente */
.seagull {
    position: absolute;
    top: 20%;
    left: 25%;
    width: 150px;
    height: 150px;
    /* REEMPLAZA ESTO CON LA IMAGEN DE TU GAVIOTA SIN FONDO */
    background: url('gaviota.png') no-repeat center center;
    background-size: contain;
    z-index: 3;
    /* Animación continua flotante además del movimiento del mouse */
    animation: volarGaviota 6s ease-in-out infinite;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.5));
}

/* Niebla / Bruma superpuesta */
.fog-overlay {
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 120%;
    height: 100%;
    background: linear-gradient(to top, rgba(200, 210, 220, 0.4) 0%, transparent 40%);
    z-index: 4;
    pointer-events: none; /* Para que no estorbe los clics */
    animation: brumaMovimiento 20s linear infinite alternate;
}

/* Oscurecer/Desaturar las olas para el clima nublado */
.cloudy-theme .wave {
    filter: grayscale(0.4) brightness(0.8) contrast(1.1);
}

/* ==================== ANIMACIONES CLAVE ==================== */

@keyframes volarGaviota {
    0% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    50% { transform: translateY(-20px) translateX(15px) rotate(2deg); }
    100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
}

@keyframes brumaMovimiento {
    0% { transform: translateX(-2%); }
    100% { transform: translateX(2%); }
}

/* ==================== ATMÓSFERA TUMACO (CÓDIGO PURO) ==================== */

/* Cielo Tormentoso / Nublado */
.cloudy-theme {
    background: linear-gradient(180deg, #1e293b 0%, #334155 40%, #64748b 100%);
}

/* Oscurecer las olas para que encajen con el clima */
.cloudy-theme .wave {
    filter: grayscale(0.6) brightness(0.7) contrast(1.2);
}

/* --- LA ROCA (EL MORRO) --- */


.svg-morro {
    width: 100%;
    height: 100%;
    display: block;
}

/* --- LA GAVIOTA --- */
.seagull-wrapper {
    position: absolute;
    top: 20%;
    left: 20%;
    width: 80px;
    height: 80px;
    z-index: 4;
    pointer-events: none;
    /* Movimiento de vuelo independiente (arriba y abajo + traslación) */
    animation: vueloGaviota 8s ease-in-out infinite;
}

.svg-seagull {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(2px 5px 5px rgba(0,0,0,0.4));
}

/* Motores de las alas */
#wing-left {
    transform-origin: 50% 50%;
    animation: aleteoIzquierdo 0.6s ease-in-out infinite alternate;
}

#wing-right {
    transform-origin: 50% 50%;
    animation: aleteoDerecho 0.6s ease-in-out infinite alternate;
}

/* --- LA BRUMA / NIEBLA --- */
.fog-overlay {
    position: absolute;
    bottom: 0;
    width: 200%; /* El doble de ancho para poder moverla */
    height: 100%;
    pointer-events: none;
}

.fog-back {
    z-index: 2;
    background: radial-gradient(ellipse at bottom, rgba(203, 213, 225, 0.3) 0%, transparent 60%);
    animation: nieblaDer 25s linear infinite alternate;
}

.fog-front {
    z-index: 5;
    background: linear-gradient(to top, rgba(148, 163, 184, 0.4) 0%, transparent 35%);
    animation: nieblaIzq 30s linear infinite alternate;
}


/* ==================== KEYFRAMES ANIMACIONES ==================== */

/* Aleteo de la gaviota (Las alas suben y bajan rotando) */
@keyframes aleteoIzquierdo {
    0% { transform: rotate(15deg) translateY(-5px); }
    100% { transform: rotate(-35deg) translateY(15px); }
}

@keyframes aleteoDerecho {
    0% { transform: rotate(-15deg) translateY(-5px); }
    100% { transform: rotate(35deg) translateY(15px); }
}

/* Vuelo global de la gaviota (Independiente del Mouse) */
@keyframes vueloGaviota {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(40px, -30px) rotate(5deg) scale(0.9); }
    66% { transform: translate(-20px, 15px) rotate(-3deg) scale(1.1); }
    100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

/* Movimiento de la niebla */
@keyframes nieblaDer {
    0% { transform: translateX(-10%); }
    100% { transform: translateX(0%); }
}

@keyframes nieblaIzq {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-10%); }
}

/* ==================== REDISEÑO ATMOSFÉRICO DE TUMACO ==================== */

/* Definiendo los colores del gradiente natural del cielo en el root si no los tenías */
.cloudy-theme {
    position: relative;
    overflow: hidden;
}

/* Cielo Natural: Combinación de degradado realista de costa nublada */
.natural-sky {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    background: linear-gradient(to bottom, #1d2633 0%, #313f52 45%, #4a5a6d 75%, #647588 100%);
}

/* LA PEÑA DEL MORRO MEJORADA */

.svg-morro {
    width: 100%;
    height: 100%;
    display: block;
}

/* Tratamiento cromático de las olas bajo cielo nublado */
.cloudy-theme .wave {
    filter: grayscale(0.55) brightness(0.68) contrast(1.25);
}

/* Modificación sutil en la bruma frontal para aumentar la neblina marina */
.fog-front {
    z-index: 4;
    background: linear-gradient(to top, rgba(160, 175, 192, 0.35) 0%, transparent 40%);
}
/* ==================== BLINDAJE DE CAPAS DE SEGURIDAD ==================== */

/* Forzar que el sistema de capas ocupe todo el fondo sin desbordar */
.ocean-system {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* El contenedor del cielo debe estar al fondo de todo */
.natural-sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Asegurar que el contenido del Hero (Texto y Botones) quede por ENCIMA del sistema de olas y sea interactivo */
.hero-content {
    position: relative;
    z-index: 20 !important;
    pointer-events: auto; /* Garantiza que los botones sigan funcionando al clic */
}
/* ==========================================================================
   SISTEMA ULTRA-REALISTA ATMÓSFERA TUMACO (FIJACIÓN DE ERRORES DE CAPAS)
   ========================================================================== */

.cloudy-theme {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* El cielo se mantiene estrictamente al fondo */
.natural-sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* LA PEÑA DEL MORRO — forma piramidal realista, anclada a la derecha */
.tumaco-rock {
    position: absolute;
    right: -2%;
    bottom: 14%;
    width: 38%;
    max-width: 420px;
    min-width: 240px;
    z-index: 2;
    pointer-events: none;
    transition: transform 0.1s ease-out;
}


.svg-morro {
    width: 100%;
    height: 100%;
    display: block;
}

/* TRATAMIENTO CROMÁTICO Y REALISTA DE LAS OLAS (Nublado / Tormentoso) */
.cloudy-theme .wave {
    filter: grayscale(0.5) brightness(0.65) contrast(1.3);
    transition: transform 0.1s ease-out; /* Suaviza el desplazamiento Parallax */
}

/* GAVIOTA ATÉRMICA ANIMADA */
.seagull-wrapper {
    position: absolute;
    top: 18%;
    left: 22%;
    width: 90px;
    height: 90px;
    z-index: 5;
    pointer-events: none;
    animation: vueloGaviotaReal 10s ease-in-out infinite;
    transition: transform 0.1s ease-out;
}

.svg-seagull {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(3px 6px 6px rgba(0,0,0,0.45));
}

#wing-left {
    transform-origin: 50% 50%;
    animation: aleteoIzquierdoReal 0.5s ease-in-out infinite alternate;
}

#wing-right {
    transform-origin: 50% 50%;
    animation: aleteoDerechoReal 0.5s ease-in-out infinite alternate;
}

/* CAPAS DE NIEBLA ATMOSFÉRICA */
.fog-overlay {
    position: absolute;
    bottom: 0;
    width: 150%;
    height: 100%;
    pointer-events: none;
}

.fog-back {
    z-index: 1;
    background: radial-gradient(ellipse at bottom, rgba(195, 210, 225, 0.25) 0%, transparent 65%);
    animation: movimientoNieblaDer 30s linear infinite alternate;
}

.fog-front {
    z-index: 6;
    background: linear-gradient(to top, rgba(150, 168, 185, 0.35) 0%, transparent 35%);
    animation: movimientoNieblaIzq 35s linear infinite alternate;
}

/* GARANTÍA DE INTERACCIÓN DE TEXTOS Y BOTONES */
.hero-content {
    position: relative;
    z-index: 30 !important; /* Por encima de cualquier ola o peña */
    pointer-events: auto !important;
}

/* ==================== MOTORES CINEMÁTICOS DE ANIMACIÓN ==================== */

@keyframes aleteoIzquierdoReal {
    0% { transform: rotate(20deg) translateY(-3px); }
    100% { transform: rotate(-30deg) translateY(12px); }
}

@keyframes aleteoDerechoReal {
    0% { transform: rotate(-20deg) translateY(-3px); }
    100% { transform: rotate(30deg) translateY(12px); }
}

@keyframes vueloGaviotaReal {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(60px, -40px) rotate(4deg); }
    66% { transform: translate(-30px, 20px) rotate(-3deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes movimientoNieblaDer {
    0% { transform: translateX(-5%); }
    100% { transform: translateX(5%); }
}

@keyframes movimientoNieblaIzq {
    0% { transform: translateX(5%); }
    100% { transform: translateX(-5%); }
}
/* ==================== ARQUITECTURA DE CAPAS Y MOVIMIENTO REALISTA ==================== */
/* ==================== ARQUITECTURA DE CAPAS Y MOVIMIENTO REALISTA ==================== */

/* EL MORRO COMPLETAMENTE FIJO Y ANCLADO */


/* ORDENAMIENTO DE LAS OLAS ORIGINALES (Z-INDEX) */
.wave-deep { z-index: 1; }
.fog-back { z-index: 1; }
.wave-mid { z-index: 3; } /* Ola que ya cubre la base de la Peña */
.wave-surface { z-index: 4; }
.fog-front { z-index: 5; }
.wave-surf { z-index: 6; }
.wave-foam { z-index: 7; }

/* Filtro plomizo del Pacífico para que no sean azules de piscina */
.cloudy-theme .wave {
    filter: grayscale(0.4) brightness(0.68) contrast(1.25);
    will-change: translate; /* Optimiza el rendimiento del mouse */
}

/* La gaviota flota en su capa superior */
.seagull-wrapper {
    position: absolute;
    top: 20%;
    left: 25%;
    width: 90px;
    height: 90px;
    z-index: 10;
    pointer-events: none;
    animation: vueloGaviotaReal 12s ease-in-out infinite;
}
/* ==================== ARQUITECTURA DE CAPAS Y MOVIMIENTO REALISTA ==================== */

/* ==================== AJUSTE TÁCTICO CROMÁTICO Y UBICACIÓN OLAS (GUÍA IMAGEN) ==================== */

/* EL MORRO FIEL: Ajuste de posición y profundidades */


.svg-morro {
    width: 100%;
    height: 100%;
    display: block;
}

/* ORDENAMIENTO DE LAS CAPAS DE OLAS (Z-INDEX) TERCIO INFERIOR */
.wave-deep { z-index: 1; }
.fog-back { z-index: 1; }
.wave-mid { z-index: 3; } /* Ola que ya cubre la base de la Peña */
.wave-surface { z-index: 4; }
.fog-front { z-index: 5; }
.wave-surf { z-index: 6; }
.wave-foam { z-index: 7; }

/* TRATAMIENTO CROMÁTICO REALISTA NATIVO PARA LA TEMÁTICA PACÍFICO CLOUDY */
.cloudy-theme .wave {
    filter: grayscale(0.55) brightness(0.68) contrast(1.25);
}

/* La gaviota flota tranquila en su capa superior */
.seagull-wrapper {
    position: absolute;
    top: 20%;
    left: 25%;
    width: 90px;
    height: 90px;
    z-index: 10;
    pointer-events: none;
    animation: vueloGaviotaReal 12s ease-in-out infinite;
}

/* GARANTÍA DE INTERACCIÓN DE TEXTOS Y BOTONES */
.hero-content {
    position: relative;
    z-index: 30 !important; /* Por encima de cualquier ola o peña */
    pointer-events: auto !important;
}
/* ==================== SOL REALISTA ANIMADO ==================== */
.animated-sun {
    position: absolute;
    top: 18%;
    left: 8%;
    width: 110px;
    height: 110px;
    z-index: 4;
    pointer-events: none;
    animation: sunFloat 8s ease-in-out infinite;
}

.svg-sun {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.sun-corona {
    animation: coronaPulse 4s ease-in-out infinite alternate;
}

.sun-rays-long {
    animation: raysRotateSlow 20s linear infinite;
    transform-box: fill-box;
}

.sun-rays-short {
    animation: raysRotateSlow 14s linear infinite reverse;
    transform-box: fill-box;
}

@keyframes sunFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-6px) rotate(1deg); }
    66% { transform: translateY(4px) rotate(-1deg); }
}

@keyframes coronaPulse {
    0% { opacity: 0.5; r: 88; }
    100% { opacity: 0.85; r: 95; }
}

@keyframes raysRotateSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== LANCHA JS-ANIMADA ==================== */
.boat-wrapper {
    position: absolute;
    width: 110px;
    height: 55px;
    z-index: 8;
    pointer-events: none;
    will-change: transform, top, left;
}

.svg-boat {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(1px 3px 5px rgba(0,0,0,0.45));
}

/* ==================== GAVIOTAS MÚLTIPLES ==================== */
/* Mixin compartido */
.gull {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    will-change: transform;
}
.gull svg { width: 100%; height: 100%; display: block; }
.gull .wl { transform-origin: 50% 50%; animation: wl 0.55s ease-in-out infinite alternate; }
.gull .wr { transform-origin: 50% 50%; animation: wr 0.55s ease-in-out infinite alternate; }

/* Gaviota 1: principal, izquierda alta */
.g1 { top: 16%; left: 10%; width: 52px; height: 26px;
      animation: gflight1 13s ease-in-out infinite;
      filter: drop-shadow(1px 3px 5px rgba(0,0,0,0.3)); }
.g1 .wl,.g1 .wr { animation-duration: 0.48s; }

/* Gaviota 2: más pequeña, un poco más a la derecha */
.g2 { top: 22%; left: 28%; width: 36px; height: 18px;
      animation: gflight2 17s ease-in-out infinite;
      filter: drop-shadow(1px 2px 4px rgba(0,0,0,0.25)); }
.g2 .wl,.g2 .wr { animation-duration: 0.52s; animation-delay: 0.12s; }

/* Gaviota 3: pequeña lejana, fondo */
.g3 { top: 28%; left: 45%; width: 24px; height: 12px;
      animation: gflight3 22s ease-in-out infinite;
      opacity: 0.7;
      filter: drop-shadow(0px 1px 3px rgba(0,0,0,0.2)); }
.g3 .wl,.g3 .wr { animation-duration: 0.6s; animation-delay: 0.25s; }

/* Gaviota 4: tamaño medio, derecha alta */
.g4 { top: 12%; left: 62%; width: 40px; height: 20px;
      animation: gflight4 19s ease-in-out infinite;
      filter: drop-shadow(1px 2px 4px rgba(0,0,0,0.25)); }
.g4 .wl,.g4 .wr { animation-duration: 0.5s; animation-delay: 0.08s; }

/* Gaviota 5: muy pequeña, lejana, centro-derecha */
.g5 { top: 32%; left: 55%; width: 18px; height: 9px;
      animation: gflight5 25s ease-in-out infinite;
      opacity: 0.55; }
.g5 .wl,.g5 .wr { animation-duration: 0.65s; animation-delay: 0.3s; }

@keyframes wl {
    0%   { transform: rotate(18deg) translateY(-3px); }
    100% { transform: rotate(-28deg) translateY(10px); }
}
@keyframes wr {
    0%   { transform: rotate(-18deg) translateY(-3px); }
    100% { transform: rotate(28deg) translateY(10px); }
}
@keyframes gflight1 {
    0%   { transform: translate(0,0) rotate(0deg); }
    20%  { transform: translate(55px,-30px) rotate(3deg); }
    45%  { transform: translate(110px,-10px) rotate(-2deg); }
    70%  { transform: translate(50px,20px) rotate(-4deg); }
    100% { transform: translate(0,0) rotate(0deg); }
}
@keyframes gflight2 {
    0%   { transform: translate(0,0) rotate(0deg); }
    25%  { transform: translate(-40px,-20px) rotate(-3deg); }
    55%  { transform: translate(30px,15px) rotate(2deg); }
    80%  { transform: translate(-20px,-8px) rotate(-1deg); }
    100% { transform: translate(0,0) rotate(0deg); }
}
@keyframes gflight3 {
    0%   { transform: translate(0,0); }
    30%  { transform: translate(25px,-12px); }
    60%  { transform: translate(-20px,8px); }
    100% { transform: translate(0,0); }
}
@keyframes gflight4 {
    0%   { transform: translate(0,0) rotate(0deg); }
    35%  { transform: translate(-60px,-18px) rotate(-2deg); }
    65%  { transform: translate(20px,14px) rotate(3deg); }
    100% { transform: translate(0,0) rotate(0deg); }
}
@keyframes gflight5 {
    0%   { transform: translate(0,0); }
    40%  { transform: translate(18px,-8px); }
    70%  { transform: translate(-12px,5px); }
    100% { transform: translate(0,0); }
}

/* ==================== SISTEMA HERO — BLOQUE DEFINITIVO LIMPIO ==================== */
/* Este bloque reemplaza todos los overrides anteriores y es la fuente de verdad */

/* 1. HERO CONTAINER: centra el contenido, el océano es fondo absoluto */
.hero {
    position: relative !important;
    width: 100% !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;  /* contenido a la izquierda */
    overflow: hidden !important;
    padding-top: 80px !important;           /* espacio para el navbar fijo */
}

/* 2. OCEAN SYSTEM: capa de fondo absoluta, llena todo el hero */
.ocean-system,
.cloudy-theme {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    pointer-events: none !important;
    overflow: visible !important;
}

/* 3. CIELO */
.natural-sky {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
}

/* 4. PEÑA DEL MORRO: anclada a la derecha */
.tumaco-rock {
    position: absolute !important;
    right: -1% !important;
    bottom: 8% !important;
    width: clamp(260px, 38vw, 520px) !important;
    height: auto !important;
    z-index: 6 !important;
    filter: drop-shadow(-8px 4px 18px rgba(0,0,0,0.7)) !important;
    pointer-events: none !important;
    transition: translate 0.1s ease-out !important;
}
.svg-morro { width: 100% !important; height: 100% !important; display: block !important; }

/* 5. SOL */
.animated-sun {
    position: absolute !important;
    top: 22% !important;
    left: 7% !important;
    width: 100px !important;
    height: 100px !important;
    z-index: 3 !important;
    pointer-events: none !important;
}

/* 6. OLAS: posición absoluta al fondo del ocean-system con alturas razonables */
.wave {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 200% !important;
    background-repeat: repeat-x !important;
    background-position: center bottom !important;
    background-size: 50% auto !important;
    will-change: transform !important;
    pointer-events: none !important;
}

/* Capas de profundidad: de la más lejana a la más cercana */
.wave-deep    { height: 32vh !important; z-index: 1 !important; animation: waveMove 26s linear infinite !important; }
.wave-mid     { height: 28vh !important; z-index: 2 !important; animation: waveMove 20s linear infinite reverse !important; }
.wave-surface { height: 24vh !important; z-index: 3 !important; animation: waveMove 15s linear infinite !important; }
.wave-surf    { height: 20vh !important; z-index: 4 !important; animation: waveMove 11s linear infinite reverse !important; }
.wave-foam    { height: 16vh !important; z-index: 5 !important; animation: waveMove 8s linear infinite !important; }

/* ── MAR HIPERREALISTA DEL PACÍFICO ─────────────────────────────────────────
   5 capas de olas con colores reales (azul profundo → verde-azul → espuma)
   + capa de destello/shimmer de luz sobre el agua.
   Eliminamos el filtro gris que aplana los colores.
   ─────────────────────────────────────────────────────────────────────────── */

/* Quitamos el filtro gris: ya los colores SVG reflejan el Pacífico nublado */
.cloudy-theme .wave {
    filter: brightness(0.82) contrast(1.08) !important;
}

/* WAVE-DEEP: fondo oscuro casi negro — aguas muy profundas */
.wave-deep {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 200" xmlns="http://www.w3.org/2000/svg"><path fill="%23050d1a" d="M0,122 C240,100 420,145 660,120 C900,95 1080,142 1280,118 C1380,106 1425,114 1440,120 L1440,200 L0,200 Z"/></svg>') !important;
}

/* WAVE-MID: azul marino profundo */
.wave-mid {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 200" xmlns="http://www.w3.org/2000/svg"><path fill="%230b2440" d="M0,112 C180,88 320,136 520,108 C720,80 880,134 1060,106 C1240,78 1370,120 1440,108 L1440,200 L0,200 Z"/></svg>') !important;
}

/* WAVE-SURFACE: teal-azul oscuro — la superficie visible del océano */
.wave-surface {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 200" xmlns="http://www.w3.org/2000/svg"><path fill="%23103e5e" fill-opacity="0.95" d="M0,96 C130,118 260,68 420,92 C580,116 700,60 860,86 C1020,112 1140,56 1300,82 C1395,98 1430,78 1440,90 L1440,200 L0,200 Z"/></svg>') !important;
    height: 26vh !important;
}

/* WAVE-SURF: teal más claro — agua superficial con algo de luz */
.wave-surf {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 200" xmlns="http://www.w3.org/2000/svg"><path fill="%23185c78" fill-opacity="0.88" d="M0,82 C115,104 225,54 375,78 C525,102 625,46 780,70 C935,94 1040,40 1200,66 C1320,84 1390,60 1440,74 L1440,200 L0,200 Z"/></svg>') !important;
    height: 20vh !important;
    z-index: 4 !important;
    animation: waveMove 11s linear infinite reverse !important;
}

/* WAVE-FOAM: la orilla más clara con cresta de espuma blanca */
.wave-foam {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 200" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="fg" x1="0" y1="0" x2="0" y2="1"><stop offset="0%25" stop-color="%23a8ccd8" stop-opacity="0.9"/><stop offset="60%25" stop-color="%232d7a96" stop-opacity="0.75"/><stop offset="100%25" stop-color="%23144e6e" stop-opacity="0.95"/></linearGradient></defs><path fill="url(%23fg)" d="M0,68 C88,86 178,44 305,66 C432,88 515,36 642,58 C769,80 856,30 988,54 C1120,78 1234,44 1352,64 C1413,74 1436,60 1440,66 L1440,200 L0,200 Z"/><path fill="white" fill-opacity="0.28" d="M0,66 C50,60 100,70 155,64 C210,58 260,68 320,62 C380,56 430,66 490,60 C560,53 620,65 680,59 C745,52 810,64 875,58 C945,51 1010,64 1080,58 C1150,51 1215,63 1280,57 C1340,52 1400,62 1440,58 L1440,68 C1400,64 1340,74 1280,68 C1215,62 1150,72 1080,66 C1010,60 945,72 875,66 C810,60 745,72 680,66 C620,60 560,72 490,66 C430,60 380,70 320,64 C260,58 210,68 155,62 C100,56 50,68 0,64 Z"/></svg>') !important;
    height: 16vh !important;
    z-index: 5 !important;
    animation: waveMove 8s linear infinite !important;
}

/* Espuma blanca sutil en el borde superior */
.wave-foam::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.55) 0%, transparent 100%);
    z-index: 1;
    border-radius: 50% 50% 0 0;
}

/* SHIMMER: destello de luz solar sobre el agua */
.wave-shimmer {
    position: absolute !important;
    bottom: 18vh !important;
    left: -10% !important;
    width: 120% !important;
    height: 5vh !important;
    background: linear-gradient(105deg,
        transparent 0%,
        rgba(160,210,235,0.0) 25%,
        rgba(200,235,255,0.18) 45%,
        rgba(255,255,255,0.28) 50%,
        rgba(200,235,255,0.18) 55%,
        rgba(160,210,235,0.0) 75%,
        transparent 100%
    ) !important;
    z-index: 9 !important;
    pointer-events: none !important;
    animation: shimmerSlide 5s ease-in-out infinite !important;
    transform-origin: center !important;
}
@keyframes shimmerSlide {
    0%   { transform: translateX(-15%) skewX(-8deg); opacity: 0.3; }
    45%  { opacity: 0.95; }
    50%  { transform: translateX(15%) skewX(-8deg); opacity: 0.95; }
    100% { transform: translateX(-15%) skewX(-8deg); opacity: 0.3; }
}

/* 7. NIEBLA */
.fog-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: -5% !important;
    width: 110% !important;
    pointer-events: none !important;
}
.fog-back {
    height: 40vh !important;
    z-index: 1 !important;
    background: radial-gradient(ellipse at bottom, rgba(195,210,225,0.22) 0%, transparent 62%) !important;
    animation: movimientoNieblaDer 30s linear infinite alternate !important;
}
.fog-front {
    height: 30vh !important;
    z-index: 7 !important;
    background: linear-gradient(to top, rgba(140,160,178,0.28) 0%, transparent 40%) !important;
    animation: movimientoNieblaIzq 36s linear infinite alternate !important;
}

/* 8. LANCHA: position absolute dentro del ocean-system, controlada por JS */
.boat-wrapper {
    position: absolute !important;
    width: 110px !important;
    height: 55px !important;
    z-index: 8;                /* sin !important → el JS puede sobreescribir */
    pointer-events: none !important;
    will-change: transform, top, left !important;
}
.svg-boat {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    filter: drop-shadow(1px 3px 6px rgba(0,0,0,0.5)) !important;
}

/* 9. GAVIOTAS */
.gull {
    position: absolute !important;
    pointer-events: none !important;
    z-index: 9 !important;
}

/* 10. HERO CONTENT: texto y botones al frente, lado izquierdo */
.hero-content {
    position: relative !important;
    z-index: 30 !important;
    text-align: left !important;
    pointer-events: auto !important;
    max-width: 680px !important;
    padding: 0 5% !important;
    margin-bottom: 18vh !important;  /* empuja hacia arriba para quedar sobre el mar */
}

/* 11. TÍTULO HERO: tipografía limpia y ordenada */
.hero-title {
    font-family: var(--fuente-titulos) !important;
    font-weight: 900 !important;
    font-size: clamp(2.6rem, 6vw, 5.2rem) !important;
    line-height: 1.05 !important;
    text-transform: uppercase !important;
    letter-spacing: -1px !important;
    color: #fff !important;
    text-shadow: 4px 4px 0 rgba(2,26,54,0.8) !important;
    margin-bottom: 1.2rem !important;
}

.hero-title-accent {
    color: var(--naranja-atardecer) !important;
    -webkit-text-stroke: 0 !important;
}

/* 12. SUBTÍTULO */
.hero-subtitle {
    font-family: var(--fuente-textos) !important;
    font-size: clamp(1rem, 2vw, 1.3rem) !important;
    font-weight: 700 !important;
    color: rgba(255,255,255,0.85) !important;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7) !important;
    margin-bottom: 2rem !important;
}

/* 13. BOTONES del hero (usan .btn además de .btn-primary/.btn-secondary) */
.hero-buttons {
    display: flex !important;
    gap: 1.2rem !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
}

.hero-buttons .btn {
    text-decoration: none !important;
    padding: 1rem 2.2rem !important;
    font-family: var(--fuente-titulos) !important;
    font-weight: 900 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 4px !important;
    transition: all 0.25s ease !important;
    display: inline-block !important;
}

.hero-buttons .btn-primary {
    background-color: var(--naranja-atardecer) !important;
    color: #fff !important;
    box-shadow: 5px 5px 0 var(--oro-sol) !important;
}
.hero-buttons .btn-primary:hover {
    transform: translate(-3px,-3px) !important;
    box-shadow: 8px 8px 0 var(--oro-sol) !important;
}

.hero-buttons .btn-secondary {
    background-color: rgba(255,255,255,0.95) !important;
    color: var(--azul-deep-tumaco) !important;
    box-shadow: 5px 5px 0 var(--azul-oceano-medio) !important;
}
.hero-buttons .btn-secondary:hover {
    background-color: var(--azul-oceano-medio) !important;
    color: #fff !important;
    box-shadow: 5px 5px 0 #fff !important;
}

/* 14. ANIMACIONES FALTANTES */
@keyframes waveMove {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes movimientoNieblaDer {
    0%   { transform: translateX(-5%); }
    100% { transform: translateX(5%); }
}
@keyframes movimientoNieblaIzq {
    0%   { transform: translateX(5%); }
    100% { transform: translateX(-5%); }
}

/* 15. IMÁGENES DE OLA FALTANTES */
.wave-surf {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 200" xmlns="http://www.w3.org/2000/svg"><path fill="%23063162" fill-opacity="0.85" d="M 0,60 C 120,90,240,30,360,60 C 480,90,600,30,720,58 C 840,86,960,28,1080,55 C 1200,82,1320,35,1440,60 L 1440,200 L 0,200 Z"></path></svg>') !important;
}
.wave-foam {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 200" xmlns="http://www.w3.org/2000/svg"><path fill="%23ffffff" fill-opacity="0.18" d="M 0,140 C 90,120,180,155,270,140 C 360,125,450,155,540,142 C 630,129,720,158,810,144 C 900,130,990,160,1080,146 C 1170,132,1310,155,1440,142 L 1440,200 L 0,200 Z"></path></svg>') !important;
}

/* 16. RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .hero-content {
        text-align: center !important;
        padding: 0 6% !important;
        margin-bottom: 22vh !important;
        max-width: 100% !important;
    }
    .hero-buttons {
        justify-content: center !important;
    }
    .tumaco-rock {
        width: clamp(180px, 50vw, 280px) !important;
        right: -3% !important;
        bottom: 5% !important;
    }
    .animated-sun {
        width: 70px !important;
        height: 70px !important;
        top: 12% !important;
        left: 4% !important;
    }
}
/* FIN DEL ARCHIVO */
/* =====================================================================
   MEJORAS DEFINITIVAS — VERSIÓN ACTUALIZADA
   1. Peña más fiel a la foto real (sin huecos, sin zonas incoherentes)
   2. Texto centrado y armónico — tipografía unificada Montserrat/Lora
   3. Olas realistas, completas, animación suave
   4. Canvas de peces animados (salen/entran por lados contrarios)
   5. Lancha que navega sobre las olas coherentemente
   ===================================================================== */

/* ── TIPOGRAFÍA GLOBAL UNIFICADA ──────────────────────────────────────
   Todas las etiquetas estructurales usan las mismas variables de :root.
   No se usa Arial, Helvetica ni system-ui en ninguna parte visible.
   Montserrat 900 → títulos / display
   Lora 400-700   → párrafos / cuerpo
   ──────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--fuente-titulos) !important;
    font-weight: 900 !important;
}
p, li, a, label, span, td, th, input, button, textarea {
    font-family: var(--fuente-textos);
}
/* Elementos de interfaz (nav, botones) → Montserrat */
.nav-links a,
.btn, .btn-primary, .btn-secondary,
.btn-login, .btn-brutal-action,
.btn-vault, .btn-canjear, .btn-material,
.answer-btn, .start-btn, .next-question-btn,
.stat-label, .subtitle, .section-tag,
.timeline-badge, .card-hours, .card-footer-stat,
.mentor-career, .question-category {
    font-family: var(--fuente-titulos) !important;
}

/* ── HERO CENTRADO Y ARMÓNICO ─────────────────────────────────────────
   El bloque de texto queda centrado horizontalmente dentro del hero.
   En desktop se empuja levemente a la izquierda para dejar espacio
   a la peña; en mobile es centrado puro.
   ──────────────────────────────────────────────────────────────────── */
.hero {
    justify-content: flex-start !important;
}
.hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;  /* alineación interna */
    max-width: 600px !important;
    padding: 0 6% !important;
    margin-bottom: 22vh !important;
    text-align: left !important;
}
@media (max-width: 900px) {
    .hero { justify-content: center !important; }
    .hero-content {
        align-items: center !important;
        text-align: center !important;
        max-width: 100% !important;
        padding: 0 8% !important;
    }
    .hero-buttons { justify-content: center !important; }
}

/* ── OLAS REALISTAS ───────────────────────────────────────────────────
   5 capas con distintas alturas, velocidades y tonos para simular
   perspectiva oceánica real. Sin cortes ni vacíos visibles.
   ──────────────────────────────────────────────────────────────────── */

/* Reescribimos las imágenes SVG inline de las olas con curvas más suaves y
   colores más realistas para el Pacífico nublado de Tumaco */

.wave-deep {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 260" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="d1" x1="0" y1="0" x2="0" y2="1"><stop offset="0%25" stop-color="%23021428"/><stop offset="100%25" stop-color="%23010d1e"/></linearGradient></defs><path fill="url(%23d1)" d="M0,145 C120,115,240,170,360,145 C480,120,600,175,720,148 C840,121,960,178,1080,152 C1200,126,1320,172,1440,148 L1440,260 L0,260 Z"/><path fill="rgba(255,255,255,0.04)" d="M0,185 C100,175,200,192,300,183 C400,174,500,190,600,184 C700,178,800,194,900,186 C1000,178,1100,193,1200,186 C1300,179,1380,191,1440,186 L1440,260 L0,260 Z"/></svg>') !important;
    height: 35vh !important;
}

.wave-mid {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 260" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="m1" x1="0" y1="0" x2="0" y2="1"><stop offset="0%25" stop-color="%23042050"/><stop offset="100%25" stop-color="%23021428"/></linearGradient></defs><path fill="url(%23m1)" fill-opacity="0.9" d="M0,125 C180,92,320,158,480,130 C640,102,800,165,960,135 C1120,105,1280,162,1440,132 L1440,260 L0,260 Z"/><path fill="rgba(255,255,255,0.05)" d="M0,170 C140,160,280,178,420,168 C560,158,700,176,840,168 C980,160,1120,178,1260,170 C1340,166,1400,172,1440,168 L1440,260 L0,260 Z"/></svg>') !important;
    height: 30vh !important;
}

.wave-surface {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 260" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="s1" x1="0" y1="0" x2="0" y2="1"><stop offset="0%25" stop-color="%231a6678"/><stop offset="60%25" stop-color="%230f4a60"/><stop offset="100%25" stop-color="%23042050"/></linearGradient></defs><path fill="url(%23s1)" fill-opacity="0.95" d="M0,105 C120,75,240,130,360,105 C480,80,600,132,720,108 C840,84,960,136,1080,112 C1200,88,1320,135,1440,110 L1440,260 L0,260 Z"/><path fill="rgba(255,255,255,0.07)" d="M0,148 C100,138,200,156,300,147 C400,138,500,156,600,148 C700,140,800,158,900,149 C1000,140,1100,157,1200,149 C1300,141,1380,154,1440,149 L1440,260 L0,260 Z"/></svg>') !important;
    height: 26vh !important;
}

.wave-surf {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 260" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="su1" x1="0" y1="0" x2="0" y2="1"><stop offset="0%25" stop-color="%23236a80"/><stop offset="100%25" stop-color="%231a6678"/></linearGradient></defs><path fill="url(%23su1)" fill-opacity="0.88" d="M0,82 C90,58,180,105,270,82 C360,59,450,106,540,84 C630,62,720,108,810,86 C900,64,990,110,1080,88 C1170,66,1300,106,1440,84 L1440,260 L0,260 Z"/><path fill="rgba(255,255,255,0.10)" d="M0,116 C80,108,160,122,240,116 C320,110,400,124,480,117 C560,110,640,124,720,117 C800,110,880,124,960,117 C1040,110,1160,124,1280,117 C1360,112,1410,120,1440,117 L1440,260 L0,260 Z"/></svg>') !important;
    height: 22vh !important;
}

.wave-foam {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 200" xmlns="http://www.w3.org/2000/svg"><path fill="rgba(255,255,255,0.22)" d="M0,148 C60,138,120,156,180,148 C240,140,300,158,360,150 C420,142,480,158,540,150 C600,142,660,158,720,150 C780,142,840,158,900,150 C960,142,1020,158,1080,150 C1140,142,1200,156,1260,149 C1320,142,1390,154,1440,148 L1440,200 L0,200 Z"/><path fill="rgba(255,255,255,0.12)" d="M0,162 C80,155,160,168,240,162 C320,156,400,169,480,163 C560,157,640,170,720,163 C800,156,880,170,960,163 C1040,156,1160,169,1280,163 C1360,158,1410,166,1440,162 L1440,200 L0,200 Z"/><path fill="rgba(255,255,255,0.06)" d="M0,174 C100,169,200,178,300,174 C400,170,500,179,600,174 C700,169,800,179,900,174 C1000,169,1100,178,1200,174 C1300,170,1380,177,1440,174 L1440,200 L0,200 Z"/></svg>') !important;
    height: 16vh !important;
}

/* ── CANVAS DE PECES ──────────────────────────────────────────────── */
.fish-canvas {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 55% !important;   /* cubre sólo la zona del mar */
    z-index: 9 !important;    /* encima de las olas pero bajo la lancha */
    pointer-events: none !important;
}

/* ── PEÑA: ningún espacio incoherente, encaja con las olas ────────── */
.tumaco-rock {
    position: absolute !important;
    right: 0% !important;
    bottom: 10% !important;
    width: clamp(240px, 36vw, 500px) !important;
    height: auto !important;
    z-index: 6 !important;
    filter: drop-shadow(-10px 6px 22px rgba(0,0,0,0.85)) !important;
    pointer-events: none !important;
}

/* ── LANCHA: z-index controlado por JS (sin !important aquí) ──────── */
.boat-wrapper {
    z-index: 8;
}

/* ── MOBILE ADJUSTMENTS ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .tumaco-rock {
        width: clamp(160px, 48vw, 260px) !important;
        right: -2% !important;
        bottom: 6% !important;
    }
    .fish-canvas { height: 50% !important; }
}
/* FIN MEJORAS */

/* =====================================================================
   CORRECCIÓN DEFINITIVA — texto centrado + lancha sobre el agua
   Este bloque va AL FINAL y usa !important para ganar toda cascada
   ===================================================================== */

/* ── 1. HERO CONTAINER: centra el contenido, el océano es fondo absoluto
   ─────────────────────────────────────────────────────────────────────
   📌 PARA CAMBIAR EL COLOR DEL ESPACIO DETRÁS DE LA PEÑA:
      Modifica `background` aquí abajo.
      Actualmente es un degradado azul-marino profundo del Pacífico.
      Puedes usar un color sólido: background: #021428 !important;
      O cambiar los colores del gradiente a gusto.
   ─────────────────────────────────────────────────────────────────────  */
.hero {
    position: relative !important;
    width: 100% !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    padding-top: 80px !important;
    /* COLOR DE FONDO DEL HERO (visible en las esquinas y detrás de la peña) */
    background: linear-gradient(160deg, #0a1628 0%, #0d2040 40%, #142850 70%, #1a3a60 100%) !important;
}

/* ── 2. HERO CONTENT: bloque de texto + botones centrado
   ─────────────────────────────────────────────────────────────────────
   📌 PARA MOVER EL TEXTO MÁS ABAJO O ARRIBA:
      Cambia `margin-top`. Valor positivo = baja el texto.
      Ejemplo: margin-top: 8vh  → lo baja más
               margin-top: 0    → posición neutral (centro)
               margin-top: -5vh → lo sube
   📌 PARA SEPARARLO DEL FONDO DE LAS OLAS:
      Cambia `margin-bottom`. Valor mayor = más espacio abajo.
   ─────────────────────────────────────────────────────────────────────  */
.hero-content {
    position: relative !important;
    z-index: 30 !important;
    pointer-events: auto !important;

    width: 100% !important;
    max-width: 1200px !important;
    padding: 0 5% !important;
    margin: 0 !important;
    margin-top: 6vh !important;        /* ← BAJAR TEXTO: aumenta este valor para bajarlo más */
    margin-bottom: 22vh !important;    /* ← SEPARACIÓN DE LAS OLAS: reduce si quieres que quede más abajo */

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

/* ── 3. TÍTULO HERO ─────────────────────────────────────────────────── */
.hero-title {
    font-family: var(--fuente-titulos) !important;
    font-weight: 900 !important;
    /* Tamaño fluido: cómodo en mobile, impactante en desktop */
    font-size: clamp(2.8rem, 7vw, 5.5rem) !important;
    line-height: 1.05 !important;
    text-transform: uppercase !important;
    letter-spacing: -1px !important;
    color: #fff !important;
    text-shadow: 4px 4px 0 rgba(2,26,54,0.9) !important;
    margin: 0 0 1.2rem 0 !important;
    text-align: center !important;
}

/* ── ACENTO DEL TÍTULO ("RENACIENDO")
   ─────────────────────────────────────────────────────────────────────
   📌 PARA CAMBIAR EL COLOR DE "RENACIENDO": modifica `color`
   📌 SI LAS LETRAS SE VEN DELGADAS: el problema era que faltaba
      declarar font-weight:900 aquí. Montserrat necesita este peso
      cargado explícitamente en el <link> de Google Fonts del <head>.
   ─────────────────────────────────────────────────────────────────────  */
.hero-title-accent {
    color: var(--naranja-atardecer) !important;
    font-weight: 900 !important;          /* ← fuerza letras gruesas/negras */
    font-family: var(--fuente-titulos) !important;
    -webkit-text-stroke: 0 !important;
    display: inline !important;
}

/* ── 4. SUBTÍTULO ───────────────────────────────────────────────────── */
.hero-subtitle {
    font-family: var(--fuente-textos) !important;
    font-size: clamp(1rem, 2vw, 1.25rem) !important;
    font-weight: 600 !important;
    color: rgba(255,255,255,0.88) !important;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8) !important;
    margin: 0 0 2rem 0 !important;
    text-align: center !important;
}

/* ── 5. BOTONES: centrados y en fila ────────────────────────────────── */
.hero-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: 1.2rem !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;  /* CENTRADO */
}

/* Estilo de botones del hero (por si .btn no estaba definido) */
.hero-buttons .btn {
    text-decoration: none !important;
    padding: 1rem 2.4rem !important;
    font-family: var(--fuente-titulos) !important;
    font-weight: 900 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    border-radius: 4px !important;
    transition: all 0.25s ease !important;
    display: inline-block !important;
    cursor: pointer !important;
}
.hero-buttons .btn-primary {
    background-color: var(--naranja-atardecer) !important;
    color: #fff !important;
    box-shadow: 5px 5px 0 var(--oro-sol) !important;
    border: none !important;
}
.hero-buttons .btn-primary:hover {
    transform: translate(-3px,-3px) !important;
    box-shadow: 8px 8px 0 var(--oro-sol) !important;
}
.hero-buttons .btn-secondary {
    background-color: rgba(255,255,255,0.95) !important;
    color: var(--azul-deep-tumaco) !important;
    box-shadow: 5px 5px 0 var(--azul-oceano-medio) !important;
    border: none !important;
}
.hero-buttons .btn-secondary:hover {
    background-color: var(--azul-oceano-medio) !important;
    color: #fff !important;
    box-shadow: 5px 5px 0 #fff !important;
}

/* ── 6. LANCHA: posicionada con bottom para pegarse al agua ──────────
   El JS ya calcula bottom correctamente, sólo necesitamos que
   position:absolute esté habilitado y top:auto no interfiera
   ──────────────────────────────────────────────────────────────────── */
.boat-wrapper {
    position: absolute !important;
    width: 115px !important;
    height: 58px !important;
    z-index: 8;                        /* sin !important → el JS puede cambiarlo */
    pointer-events: none !important;
    will-change: transform, bottom, left !important;
    /* bottom y left son seteados por JS */
    transform-origin: center bottom !important; /* rota respecto a la quilla */
}
.svg-boat {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    filter: drop-shadow(0px 4px 8px rgba(0,0,0,0.6)) !important;
}

/* ── 7. PEÑA DEL MORRO: anclada a esquina inferior-derecha
   ─────────────────────────────────────────────────────────────────────
   📌 PARA MOVER LA PEÑA:
      - Cambia `right` para moverla horizontalmente (0% = pegada al borde derecho)
      - Cambia `bottom` para moverla verticalmente (0% = toca el suelo)
   📌 PARA CAMBIAR EL TAMAÑO:
      - Cambia los valores de `width`: clamp(MIN, FLUIDO_VW, MAX)
      - Actualmente: min 200px, fluido 30vw, max 420px (reducida ~15%)
   ─────────────────────────────────────────────────────────────────────  */
.tumaco-rock {
    position: absolute !important;
    right: 0% !important;
    bottom: 16vh !important;   /* base de la peña cerca de la línea de olas */
    width: clamp(200px, 30vw, 420px) !important;
    height: auto !important;
    z-index: 6 !important;
    filter: drop-shadow(-12px 0px 25px rgba(0,0,0,0.9)) !important;
    pointer-events: none !important;
    transform-origin: bottom right !important;
}

/* ── 8. MOBILE ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 7% !important;
        margin-bottom: 25vh !important;
    }
    .hero-title {
        font-size: clamp(2.2rem, 9vw, 3.5rem) !important;
    }
    .hero-buttons {
        gap: 0.9rem !important;
    }
    .hero-buttons .btn {
        padding: 0.85rem 1.8rem !important;
        font-size: 0.9rem !important;
    }
    .tumaco-rock {
        width: clamp(150px, 46vw, 250px) !important;
    }
    .boat-wrapper {
        width: 85px !important;
        height: 43px !important;
    }
}
/* FIN CORRECCIÓN */

/* ==========================================================================
   ESTILOS ESPECÍFICOS PARA LA PÁGINA "SOBRE PRI" (FILOSOFÍA DEL PACÍFICO)
   ========================================================================== */

/* --- Fondos y Texturas (Paper-cut feel) --- */
.texturized-bg {
    background: linear-gradient(135deg, var(--azul-deep-tumaco) 0%, #1e1b4b 100%);
    position: relative;
}

.texturized-bg-dark {
    background-color: var(--azul-deep-tumaco);
    position: relative;
}

/* ══════════════════════════════════════════════════════════
   SISTEMA DE BOTONES UNIFICADO — Coherencia en todo el sitio
   Paleta: naranja (#FF5E00) primario · azul navy secundario
   ══════════════════════════════════════════════════════════ */

/* Base compartida para todos los botones principales */
.btn-primary,
.btn-unirse,
.btn-ver-solo,
a.btn-primary {
    font-family: var(--fuente-titulos, 'Montserrat', sans-serif);
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background-color: var(--naranja-atardecer, #FF5E00);
    color: #fff !important;
    border: none;
    padding: 0.85rem 1.75rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 4px 4px 0 rgba(6, 49, 98, 0.5);
    position: relative;
}
.btn-primary:hover,
.btn-unirse:hover,
a.btn-primary:hover {
    background-color: #e05200;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(6, 49, 98, 0.6);
}

/* Botón secundario (outline) */
.btn-secondary,
.btn-link-sec,
a.btn-secondary {
    font-family: var(--fuente-titulos, 'Montserrat', sans-serif);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background-color: transparent;
    color: var(--naranja-atardecer, #FF5E00) !important;
    border: 2px solid var(--naranja-atardecer, #FF5E00);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-secondary:hover,
.btn-link-sec:hover,
a.btn-secondary:hover {
    background-color: var(--naranja-atardecer, #FF5E00);
    color: #fff !important;
}

/* CTA blanco (secciones oscuras) */
.btn-cta-white {
    font-family: var(--fuente-titulos, 'Montserrat', sans-serif);
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background-color: #fff;
    color: var(--azul-deep-tumaco, #063162) !important;
    border: none;
    padding: 0.9rem 2rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 4px 4px 0 rgba(255, 94, 0, 0.5);
}
.btn-cta-white:hover {
    background-color: #f0f4ff;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(255, 94, 0, 0.6);
}

/* WhatsApp — verde propio, sin cambio */
.btn-whatsapp {
    font-family: var(--fuente-titulos, 'Montserrat', sans-serif);
    font-weight: 900;
    font-size: 0.82rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background-color: #25D366;
    color: #fff !important;
    border: none;
    padding: 0.85rem 1.75rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease, transform 0.15s ease;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25);
}
.btn-whatsapp:hover {
    background-color: #1da851;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
}

/* Efecto de ruido granulado (Generado por CSS puro para no usar imágenes) */
.noise-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- Hero Section "Sobre PRI" --- */
.hero-ppri {
    height: 100vh; /* ¡Aquí está la magia! 100% del alto de la pantalla */
    padding-top: 80px; /* Empuja el contenido hacia abajo para que el menú no lo tape */
    margin-top: 0; /* Quitamos el margen para que el azul llegue hasta el techo */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* --- Elementos Vectoriales Flotantes (Paper-Cut) --- */
.paper-cut-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Sol estilizado */
.sun-cutout {
    position: absolute;
    top: 10%;
    left: 15%;
    width: 120px;
    height: 120px;
    background-color: var(--oro-sol);
    border-radius: 50%;
    box-shadow: inset -5px -5px 15px rgba(255, 94, 0, 0.4), /* Sombra interna para dar volumen al papel */
                10px 10px 20px rgba(0,0,0,0.5); /* Sombra externa fuerte del recorte */
}

/* Grúas Portuarias */
.cranes-cutout {
    position: absolute;
    top: 30%;
    left: 8%;
    width: 100px;
    opacity: 0.6;
    filter: drop-shadow(5px 5px 10px rgba(0,0,0,0.8));
}

/* Cluster de 3 Palmeras (Derecha) */
.palms-cutout {
    position: absolute;
    bottom: 5%;
    right: 5%;
    width: 250px;
    height: 250px;
    filter: drop-shadow(-10px 10px 15px rgba(0,0,0,0.7));
}

.palm-1 { position: absolute; bottom: 0; right: 0; width: 150px; }
.palm-2 { position: absolute; bottom: -20px; right: 80px; width: 100px; transform: scaleX(-1); }
.palm-3 { position: absolute; bottom: 30px; right: 120px; width: 120px; transform: rotate(-15deg); }

/* Barco pequeño */
.ship-cutout {
    position: absolute;
    bottom: 25%;
    left: 10%;
    width: 150px;
    filter: drop-shadow(8px 8px 12px rgba(0,0,0,0.6));
    animation: floatShip 6s ease-in-out infinite alternate;
}

/* Boyas flotantes en el mar */
.buoy-cutout {
    position: absolute;
    filter: drop-shadow(5px 5px 8px rgba(0,0,0,0.6));
}
.buoy-cutout.b1 { bottom: 15%; left: 35%; width: 50px; animation: floatBuoy 4s ease-in-out infinite alternate; }
.buoy-cutout.b2 { bottom: 10%; left: 45%; width: 35px; animation: floatBuoy 3.5s ease-in-out infinite alternate-reverse; }

@keyframes floatShip { 0% { transform: translateY(0) rotate(0deg); } 100% { transform: translateY(-10px) rotate(2deg); } }
@keyframes floatBuoy { 0% { transform: translateY(0); } 100% { transform: translateY(-8px); } }

/* --- Tipografía del Héroe --- */
.ppri-text-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

.title-cutout {
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--blanco-espuma);
    line-height: 1.1;
    text-shadow: 4px 4px 0px rgba(0,0,0,0.5); /* Efecto de texto superpuesto grueso */
}

.title-cutout .highlight-orange {
    color: var(--naranja-atardecer);
}

.subtitle-cutout {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-top: 1.5rem;
    color: #e2e8f0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Curva base que simula el oleaje donde se apoyan las tarjetas */
.cutout-sea-base {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 10vh;
    background-color: var(--azul-deep-tumaco);
    border-top-left-radius: 50% 100%;
    border-top-right-radius: 50% 100%;
    box-shadow: 0 -10px 20px rgba(0,0,0,0.5);
    z-index: 5;
}

/* --- SECCIÓN DE TARJETAS HORIZONTALES --- */
.info-cards-section {
    padding: 5rem 5%;
    text-align: center;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Diseño de tarjeta tipo papel cortado */
.paper-card {
    flex: 1;
    min-width: 280px;
    background-color: var(--blanco-espuma);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    text-align: left;
    color: var(--azul-deep-tumaco);
    
    /* Sombra dura para mantener el estilo ilustrado no-fotorrealista */
    box-shadow: 8px 8px 0px rgba(0,0,0,0.8);
    border: 2px solid #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.paper-card:hover {
    transform: translateY(-5px) translate(-5px);
    box-shadow: 12px 12px 0px rgba(255, 94, 0, 1);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    color: var(--naranja-atardecer);
}

.paper-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.paper-card p {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

/* --- Botones CTA Inferiores --- */
.cta-container {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary-cutout, .btn-secondary-cutout {
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    font-family: var(--fuente-titulos);
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary-cutout {
    background-color: var(--naranja-atardecer);
    color: var(--blanco-espuma);
    box-shadow: 6px 6px 0px rgba(0,0,0,0.9);
}

.btn-primary-cutout:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px var(--oro-sol);
}

.btn-secondary-cutout {
    background-color: var(--blanco-espuma);
    color: var(--azul-deep-tumaco);
    border-color: var(--azul-deep-tumaco);
    box-shadow: 6px 6px 0px rgba(0,0,0,0.9);
}

.btn-secondary-cutout:hover {
    background-color: var(--azul-oceano-medio);
    color: var(--blanco-espuma);
    border-color: var(--blanco-espuma);
    box-shadow: 9px 9px 0px var(--naranja-atardecer);
}
/* ==========================================================================
   NUEVOS AJUSTES CURADOS PARA SOBRE PRI (HISTORIA, FASES Y MICRO-COMMERCE)
   ========================================================================== */

.content-width {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 6rem 0;
}

@media (max-width: 900px) {
    .grid-2col { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0; }
}

.badge-tag {
    display: inline-block;
    background-color: var(--azul-superficie-teal);
    color: var(--blanco-espuma);
    padding: 0.4rem 1rem;
    font-family: var(--fuente-titulos);
    font-weight: 900;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #000;
    box-shadow: 2px 2px 0px #000;
}

.trayectoria-section {
    background-color: var(--blanco-espuma);
    color: var(--azul-deep-tumaco);
}

.trayectoria-section h2 {
    font-family: var(--fuente-titulos);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.trayectoria-section p {
    font-family: var(--fuente-textos);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.metric-box-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.metric-card {
    flex: 1;
    background: #f0f4f8;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--azul-deep-tumaco);
    box-shadow: 4px 4px 0px var(--azul-deep-tumaco);
}

.metric-card h4 {
    font-family: var(--fuente-titulos);
    font-size: 2.5rem;
    color: var(--naranja-atardecer);
}

.metric-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Caja de Misión */
.paper-graphic-box .organic-shape {
    background-color: var(--azul-oceano-medio);
    color: var(--blanco-espuma);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 12px 12px 0px rgba(0,0,0,0.8);
    border: 3px solid #000;
}

.organic-shape h3 {
    font-family: var(--fuente-titulos);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--oro-sol);
}

/* Sección de Fases Académicas */
.fases-section {
    background: linear-gradient(to bottom, var(--azul-deep-tumaco), #0a0f24);
    padding: 6rem 0;
}

.section-center-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.section-center-title h2 {
    font-family: var(--fuente-titulos);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--blanco-espuma);
    margin-bottom: 1rem;
}

.lead-text {
    font-family: var(--fuente-textos);
    font-size: 1.2rem;
    color: #cbd5e1;
}

.fases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.fase-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.fase-card:hover {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: var(--naranja-atardecer);
    transform: translateY(-5px);
}

.fase-num {
    font-family: var(--fuente-titulos);
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--oro-sol);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.fase-card h3 {
    font-family: var(--fuente-titulos);
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--blanco-espuma);
}

.fase-grado {
    font-family: var(--fuente-textos);
    font-style: italic;
    color: var(--azul-superficie-teal);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.fase-desc {
    font-family: var(--fuente-textos);
    font-size: 0.98rem;
    line-height: 1.5;
    color: #94a3b8;
}

/* Sección Sostenibilidad y Micro-Tienda */
.sostenibilidad-section {
    background-color: #f8fafc;
    color: var(--azul-deep-tumaco);
    border-top: 4px solid #000;
}

.product-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.mini-prod-card {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid #000;
    box-shadow: 6px 6px 0px #000;
    text-align: center;
}

.mini-prod-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.8rem;
    border: 1px solid #ddd;
}

.mini-prod-card h5 {
    font-family: var(--fuente-titulos);
    font-size: 1rem;
    color: var(--azul-deep-tumaco);
}

.finanzas-impacto {
    margin: 2rem 0;
}

.finanza-row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.porcentaje-callout {
    font-family: var(--fuente-titulos);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--naranja-atardecer);
    background: rgba(255, 94, 0, 0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 6px;
    min-width: 80px;
    text-align: center;
}

/* Botón de WhatsApp */
.btn-whatsapp {
    display: inline-block;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 1.1rem 2rem;
    font-family: var(--fuente-titulos);
    font-weight: 900;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid #000;
    box-shadow: 5px 5px 0px #000;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-whatsapp:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0px #128C7E;
}

.btn-link-sec {
    display: inline-block;
    margin-top: 1rem;
    color: var(--azul-oceano-medio);
    font-family: var(--fuente-titulos);
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
}
.btn-link-sec:hover {
    text-decoration: underline;
}

.actions-group-vertical {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
/* ==========================================================================
   EFECTO DE SALTO DINÁMICO CON COLOR PERSONALIZABLE (NUEVO)
   ========================================================================== */
.efecto-salto {
    /* Prepara el elemento para que el movimiento sea suave */
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    
    /* DEFINE EL COLOR PREDETERMINADO (Sombra Naranja por defecto) 
       Este valor se usa si no pones ninguno diferente en el HTML. */
    --color-salto-sombra: var(--naranja-atardecer); 
}

.efecto-salto:hover {
    /* Mueve el cuadro 5px a la izquierda y 5px hacia arriba */
    transform: translate(-5px, -5px) !important;
    
    /* Crea la sombra dura usando la variable personalizable */
    box-shadow: 8px 8px 0px var(--color-salto-sombra) !important; 
}
/* ==========================================================================
   MEJORAS INTERACTIVAS GLOBALES (CURSOR PERSONALIZADO & DELFINES)
   ========================================================================== */
.cursor-dot {
    width: 8px; height: 8px;
    background: var(--naranja-atardecer);
    border-radius: 50%;
    position: fixed; pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}
.cursor-ring {
    width: 32px; height: 32px;
    border: 2px solid rgba(255,94,0,0.5);
    border-radius: 50%;
    position: fixed; pointer-events: none; z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease-out;
}
.dolphin-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 1; 
}

/* Expande el cursor al pasar por botones y enlaces */
a:hover ~ .cursor-ring,
button:hover ~ .cursor-ring,
.menu-toggle:hover ~ .cursor-ring,
.fase-card:hover ~ .cursor-ring {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(255, 94, 0, 0.1);
}
/* ==========================================================================
   BARRA DE PROGRESO DE LECTURA (SCROLL)
   ========================================================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background-color: var(--naranja-atardecer);
    z-index: 10000;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(255, 94, 0, 0.5);
}

/* ==========================================================================
   SUBRAYADO DINÁMICO EN EL MENÚ DE NAVEGACIÓN
   ========================================================================== */
.nav-links a {
    position: relative;
    text-decoration: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 3px;
    background-color: var(--naranja-atardecer);
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* El subrayado aparece al pasar el mouse O si la pestaña está activa */
.nav-links a:hover::after, 
.nav-links a.active::after {
    width: 100%;
}
/* ==========================================================================
   MEJORAS DE BOTONES COMPATIBLES CON TU ESTILO EXISTENTE
   ========================================================================== */
.btn-primary, .btn-secondary, .btn-tech-primary, .btn-tech-secondary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--fuente-titulos);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    padding: 1rem 2.2rem;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

/* Efecto de iluminación interactiva al pasar el cursor por los botones */
.btn-primary:hover, .btn-tech-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 94, 0, 0.4);
    filter: brightness(1.1);
}

.btn-secondary:hover, .btn-tech-secondary:hover {
    border-color: var(--naranja-atardecer);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* ==========================================================================
   ESTILOS DE LA SECCIÓN DE NIVELES (GLASSMORPHISM PRESERVED)
   ========================================================================== */
.fases-glass-section {
    position: relative;
    padding: 6rem 5%;
    background-color: #030d1a; /* En armonía con tu --azul-deep-tumaco */
    overflow: hidden;
}

.section-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: var(--patron-grid);
    opacity: 0.4;
    pointer-events: none;
}

.fases-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.fases-header {
    text-align: center;
    margin-bottom: 4.5rem;
}

.tech-tag {
    font-family: var(--fuente-titulos);
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--naranja-atardecer);
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.titulo-fases {
    font-family: var(--fuente-titulos);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--blanco-espuma);
    margin-bottom: 1rem;
}

.sub-fases {
    font-family: var(--fuente-textos);
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Grid y Tarjetas Efecto Cristal */
.fases-glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.nivel-glass-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-glow-border {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, transparent, transparent) padding-box,
                linear-gradient(135deg, rgba(255,255,255,0.08), transparent) border-box;
    pointer-events: none;
    transition: all 0.4s ease;
}

.card-index {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: var(--fuente-titulos);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.nivel-badge-fase {
    font-family: var(--fuente-titulos);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--azul-superficie-teal);
    display: inline-block;
    margin-bottom: 1rem;
}

.nivel-glass-card h3 {
    font-family: var(--fuente-titulos);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--blanco-espuma);
    margin-bottom: 0.3rem;
}

.nivel-grade {
    font-family: var(--fuente-titulos);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--oro-sol);
    margin-bottom: 1.2rem;
}

.nivel-desc {
    font-family: var(--fuente-textos);
    font-size: 1rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

/* Barras de progreso internas */
.progress-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--naranja-atardecer);
    transition: all 0.5s ease;
}

.progress-lbl {
    font-family: var(--fuente-titulos);
    font-size: 0.65rem;
    color: #64748b;
}

/* Efectos Hover combinados con tu estética */
.nivel-glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 94, 0, 0.2);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.nivel-glass-card:hover .card-glow-border {
    background: linear-gradient(135deg, transparent, transparent) padding-box,
                linear-gradient(135deg, var(--naranja-atardecer), transparent) border-box;
}

.nivel-glass-card:hover .card-index {
    color: rgba(255, 94, 0, 0.05);
}

/* ==========================================================================
   FOOTER ULTRA-COMPACTO CON LÍNEA DE CONTRASTE AZUL INDUSTRIAL
   ========================================================================== */
.footer-industrial {
    background-color: #010c17; /* Tu base oscura fiel */
    
    /* LA LÍNEA DE CONTRASATE: Borde superior azul brillante con grosor de acento */
    border-top: 3px solid #1f7a8c; /* O puedes usar var(--azul-superficie-teal) */
    
    padding: 1rem 5%; /* Mantiene la baja altura ultra-compacta */
    position: relative;
    width: 100%;
    z-index: 100;
    box-shadow: 0 -10px 30px rgba(31, 122, 140, 0.1); /* Sutil destello azul hacia arriba */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between; /* Alinea los elementos lado a lado */
    gap: 1.5rem;
}

/* Identidad Visual a la izquierda */
.footer-brand-panel {
    display: flex;
    align-items: center;
}

.massive-footer-text {
    font-family: var(--fuente-titulos);
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--blanco-espuma);
    margin: 0;
}

.outline-text-footer {
    color: transparent;
    -webkit-text-stroke: 1px var(--blanco-espuma);
}

/* Enlaces horizontales en el centro */
.footer-links-panel h3 {
    display: none; /* Elimina títulos repetitivos */
}

.footer-nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.footer-nav-list a {
    font-family: var(--fuente-titulos);
    font-size: 0.8rem;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.footer-nav-list a:hover {
    color: var(--naranja-atardecer); /* Tu acento naranja al pasar el cursor */
}

/* Coordenadas a la derecha */
.footer-info-panel h3 {
    display: none;
}

.contacto-datos-premium {
    display: flex;
    gap: 1.5rem;
    font-family: var(--fuente-titulos);
    font-size: 0.8rem;
    color: #cbd5e1;
}

.contacto-datos-premium p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.contacto-datos-premium p span {
    color: #1f7a8c; /* Los íconos combinan con la línea superior */
}

.contacto-datos-premium a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contacto-datos-premium a:hover {
    color: var(--naranja-atardecer);
}

/* Barra inferior de Copyright */
.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.copyright {
    font-family: var(--fuente-titulos);
    font-size: 0.7rem;
    color: #475569;
}

/* Responsivo para móviles */
@media (max-width: 992px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    .footer-nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .contacto-datos-premium {
        flex-direction: column;
        gap: 0.3rem;
    }
}

@media (max-width: 768px) {
    /* ── Footer móvil: layout exacto de la imagen de referencia ── */
    .footer-industrial {
        padding: 2rem 1.5rem 1.5rem;
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.2rem;
    }
    /* PROGRAMA-PRI grande y dominante */
    .footer-industrial .massive-footer-text {
        font-size: clamp(1.8rem, 8vw, 2.6rem) !important;
        letter-spacing: -0.5px;
        -webkit-text-stroke: 0 !important;
        color: var(--blanco-espuma, #f0f4f8);
    }
    /* Nav links: una fila centrada con separadores visuales */
    .footer-nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem 1.4rem;
    }
    .footer-nav-list a {
        font-size: 0.88rem;
        letter-spacing: 0.3px;
        color: #94a3b8;
    }
    /* Datos de contacto: apilados verticalmente, centrados */
    .contacto-datos-premium {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
        font-size: 0.95rem;
    }
    .contacto-datos-premium p {
        font-size: 0.95rem;
        justify-content: center;
        gap: 0.5rem;
    }
    .contacto-datos-premium p span {
        font-size: 1.1rem;
    }
    .contacto-datos-premium a {
        font-size: 0.95rem;
        word-break: normal;
    }
    /* Barra de copyright */
    .footer-bottom-bar {
        margin-top: 0.8rem;
        padding-top: 0.8rem;
        border-top: 1px solid rgba(255,255,255,0.07);
    }
    .copyright {
        font-size: 0.75rem;
        text-align: center;
        line-height: 1.6;
        color: #475569;
    }
}
/* ==========================================================================
   COMPONENTES DE SIMULACIÓN DE BASE DE DATOS LOCAL
   ========================================================================== */
.db-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(31, 122, 140, 0.12); /* Tu azul-superficie-teal */
    border: 1px solid rgba(31, 122, 140, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1.2rem;
    backdrop-filter: blur(4px);
}

.status-text {
    font-family: var(--fuente-titulos);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

/* Punto parpadeante vivo */
.status-pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #00ffcc; /* Verde reactivo industrial */
    border-radius: 50%;
    box-shadow: 0 0 8px #00ffcc;
    animation: statusPulse 2s infinite ease-in-out;
}

@keyframes statusPulse {
    0% { transform: scale(0.9); opacity: 0.4; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px #00ffcc; }
    100% { transform: scale(0.9); opacity: 0.4; }
}
/* ==========================================================================
   SISTEMA DE NOTIFICACIONES FLOTANTES TÁCTICAS (TOASTS)
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99999; /* Por encima de todo */
    pointer-events: none;
}

.pri-toast {
    background: rgba(1, 12, 23, 0.85); /* Base ultra-oscura */
    backdrop-filter: blur(8px);
    border-left: 4px solid var(--naranja-atardecer); /* Color de acento */
    color: var(--blanco-espuma);
    font-family: var(--fuente-titulos);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(31, 122, 140, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: auto;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

/* Variación para alertas de éxito */
.pri-toast.success {
    border-left-color: #00ffcc; /* Verde neón */
}

/* Variación para errores */
.pri-toast.error {
    border-left-color: #ff3333; /* Rojo */
}

/* Clase activa que inyectará JavaScript */
.pri-toast.show {
    transform: translateY(0);
    opacity: 1;
}
/* ==========================================================================
   MEJORAS DE INTERACTIVIDAD AVANZADA PARA EL DASHBOARD
   ========================================================================== */
.page-dashboard {
    position: relative;
    overflow-x: hidden;
}

/* 1. Fondo de marea geométrica sutil para el fondo del panel */
.page-dashboard::before {
    content: '';
    position: fixed;
    top: -10%; left: -10%;
    width: 140%; height: 140%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(31, 122, 140, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 94, 0, 0.03) 0%, transparent 50%),
        var(--patron-grid); /* Mantiene tu patrón de cuadrícula actual */
    z-index: -1;
    pointer-events: none;
}

/* 2. Tarjetas de métricas interactivas de Élite */
.dashboard-content .card, 
.dashboard-content .metric-card { /* Ajusta según la clase exacta de tus tarjetas */
    background: rgba(6, 49, 98, 0.25) !important; /* Tu azul-oceano-medio con opacidad */
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Efecto hover interactivo estilo Index */
.dashboard-content .card:hover,
.dashboard-content .metric-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(31, 122, 140, 0.4); /* Brillo azul superficie */
    box-shadow: 0 15px 35px rgba(1, 12, 23, 0.4), 
                0 0 20px rgba(31, 122, 140, 0.1);
}

/* Línea de acento oculta que se ilumina al pasar el mouse */
.dashboard-content .card::after,
.dashboard-content .metric-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--azul-superficie-teal), var(--naranja-atardecer));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.dashboard-content .card:hover::after,
.dashboard-content .metric-card:hover::after {
    transform: scaleX(1);
}

/* 3. Animación de pulso para badges de estado dentro del panel */
.panel-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 94, 0, 0.1);
    border: 1px solid rgba(255, 94, 0, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--naranja-atardecer);
    font-weight: 700;
}
/* ==========================================================================
   MEJORAS DE INTERACTIVIDAD PARA LAS TARJETAS DEL DASHBOARD
   ========================================================================== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Efectos elásticos neón que añadimos antes */
.kpi-card {
    background: rgba(6, 49, 98, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.kpi-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(31, 122, 140, 0.4);
    box-shadow: 0 15px 35px rgba(1, 12, 23, 0.4), 0 0 20px rgba(31, 122, 140, 0.1);
}

.kpi-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--azul-superficie-teal), var(--naranja-atardecer));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.kpi-card:hover::after {
    transform: scaleX(1);
}
/* ==========================================================================
   BOTÓN DE CIERRE DE SESIÓN INDUSTRIAL PREMIUM
   ========================================================================== */
.btn-logout-industrial {
    background: rgba(255, 94, 0, 0.1); /* Tu naranja-atardecer sutil */
    border: 1px solid rgba(255, 94, 0, 0.3);
    color: #cbd5e1;
    font-family: var(--fuente-titulos);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease-in-out;
}

.btn-logout-industrial span {
    color: var(--naranja-atardecer);
    transition: transform 0.25s ease;
}

.btn-logout-industrial:hover {
    background: #FF5E00; /* Naranja sólido al hacer hover */
    color: #ffffff;
    border-color: #FF5E00;
    box-shadow: 0 0 12px rgba(255, 94, 0, 0.4);
}

.btn-logout-industrial:hover span {
    color: #ffffff;
    transform: translateX(3px); /* Pequeño empuje dinámico hacia afuera */
}
/* Enfoque premium para el selector de roles */
#reg-role:focus {
    border-color: var(--azul-superficie-teal) !important;
    box-shadow: 0 0 12px rgba(31, 122, 140, 0.3) !important;
}
/* ==========================================================================
   ADAPTACIÓN MÓVIL ÉLITE (Añadir al final de style.css)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Desactivar efectos JS de escritorio para máximo rendimiento (60fps) */
    .cursor-dot, .cursor-ring { display: none !important; }
    body { background-attachment: scroll !important; } /* Evita lag en iOS */

    /* 2. Touch Targets (Estándar UX de Apple/Google: Mínimo 48px) */
    button, .btn-primary, .btn-secondary, input, select, .menu-toggle {
        min-height: 48px !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
    }

    /* 3. Tipografía Adaptativa */
    h1 { font-size: 2rem !important; line-height: 1.2 !important; }
    h2 { font-size: 1.6rem !important; }
    p { font-size: 1rem !important; line-height: 1.6 !important; }

    /* 4. Contenedores y Grillas (Stack Vertical) */
    .mentors-section, .fase-card-container, .productos-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        padding: 1.5rem !important;
    }

    /* 5. Tarjetas y Modales */
    .glass-panel, .toast, .modal-content {
        width: 95% !important;
        margin: 5% auto !important;
        padding: 1.5rem !important;
    }

    /* 6. Fix Navbar Móvil — sólo flex-direction; el drawer usa sus propias reglas (top:0, right:0, transform) */
    .nav-links {
        flex-direction: column;
    }
}

/* =====================================================
   MOBILE RESPONSIVE — ppri.html (Task #30)
   ===================================================== */
@media (max-width: 768px) {
    .hero-ppri {
        height: auto !important;
        min-height: 100svh;
        padding-top: 90px !important;
        padding-bottom: 4rem;
    }
    .ppri-text-content { padding: 0 1.2rem; }
    .title-cutout { font-size: clamp(1.9rem, 7vw, 3rem) !important; }
    .subtitle-cutout { font-size: 1rem !important; margin-top: 1rem; }

    /* Ocultar decoraciones que desbordan en móvil */
    .sun-cutout { width: 60px !important; height: 60px !important; top: 8%; left: 8%; }
    .cranes-cutout { width: 60px !important; left: 2%; }
    .ship-cutout { width: 80px !important; left: 5%; bottom: 30%; }
    .palms-cutout { width: 130px !important; }
    .palm-1 { width: 90px !important; }
    .palm-2 { width: 60px !important; right: 55px !important; }
    .palm-3 { width: 70px !important; right: 70px !important; }

    .trayectoria-section .content-width,
    .fases-section .content-width,
    .sostenibilidad-section .content-width { width: 95%; }

    .trayectoria-section,
    .fases-section,
    .sostenibilidad-section { padding: 3rem 0; }

    .metric-box-group { flex-direction: column; gap: 1rem; }
    .metric-card h4 { font-size: 2rem; }

    .fases-grid { grid-template-columns: 1fr !important; gap: 1rem; }
    .fase-card { padding: 1.5rem 1.2rem; }

    .product-mini-grid { grid-template-columns: 1fr !important; }

    .finanza-row { flex-direction: column; gap: 0.5rem; }
    .porcentaje-callout { font-size: 1.4rem; min-width: auto; }

    .actions-group-vertical { flex-direction: column; gap: 0.8rem; }
    .btn-whatsapp, .btn-link-sec { width: 100% !important; text-align: center; font-size: 0.95rem; }

    .section-center-title { padding: 0 1rem; }
    .section-center-title h2 { font-size: 1.6rem !important; }
}

/* =====================================================
   METODOLOGÍA DE SESIÓN + PILOTO — ppri.html (Task #33)
   ===================================================== */

/* ── Sección Metodología ─────────────────────────────── */
.metodologia-section {
    background: #f0f4f8;
    color: var(--azul-deep-tumaco);
    padding: 6rem 0;
    border-top: 4px solid #000;
}
.metodologia-section .section-center-title h2 { color: var(--azul-deep-tumaco); }
.metodologia-section .lead-text { color: #4a5568; }

.sesion-flow {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 4rem 0 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.sesion-step {
    flex: 1;
    min-width: 140px;
    max-width: 180px;
    background: white;
    border: 2px solid #000;
    box-shadow: 5px 5px 0 #000;
    padding: 1.5rem 1.2rem;
    text-align: center;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sesion-step:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 var(--naranja-atardecer);
}
.sesion-step.highlight-step {
    background: var(--azul-deep-tumaco);
    color: var(--blanco-espuma);
    border-color: var(--naranja-atardecer);
    box-shadow: 5px 5px 0 var(--naranja-atardecer);
}
.sesion-step.highlight-step h4 { color: var(--oro-sol); }
.sesion-step.highlight-step p { color: rgba(255,255,255,0.85); }

.step-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.step-num {
    font-family: var(--fuente-titulos);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--naranja-atardecer);
    margin-bottom: 0.5rem;
}
.sesion-step h4 {
    font-family: var(--fuente-titulos);
    font-size: 0.9rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: var(--azul-deep-tumaco);
}
.sesion-step p {
    font-size: 0.78rem;
    line-height: 1.5;
    color: #4a5568;
    margin: 0;
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--naranja-atardecer);
    font-weight: 900;
    padding: 0 0.4rem;
    align-self: center;
}

.metodologia-freire {
    background: var(--azul-deep-tumaco);
    border: 3px solid #000;
    box-shadow: 8px 8px 0 var(--naranja-atardecer);
    padding: 2.5rem 3rem;
    max-width: 800px;
    margin: 0 auto;
}
.freire-icon { font-size: 2rem; display: block; margin-bottom: 1rem; }
.freire-quote blockquote {
    font-family: var(--fuente-textos);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--blanco-espuma);
    line-height: 1.7;
    margin: 0 0 1rem;
    border: none;
    padding: 0;
}
.freire-quote cite {
    font-size: 0.85rem;
    color: var(--azul-superficie-teal);
    font-family: var(--fuente-textos);
}

/* ── Sección Piloto ─────────────────────────────────── */
.piloto-section {
    background: linear-gradient(to bottom, #041628, #021a36);
    padding: 6rem 0;
    border-top: 4px solid var(--naranja-atardecer);
}

.piloto-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}
.p-stat {
    text-align: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 1rem;
    border-radius: 8px;
}
.p-stat-num {
    font-family: var(--fuente-titulos);
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--naranja-atardecer);
    line-height: 1;
}
.p-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    margin-top: 0.5rem;
    line-height: 1.3;
}

.piloto-galeria { margin-top: 2rem; }
.galeria-label {
    font-family: var(--fuente-titulos);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1rem;
    text-align: center;
}
.galeria-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(auto-fill, 210px);
    grid-auto-rows: 210px;
    gap: 0.75rem;
}
.foto-piloto {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: zoom-in;
    height: 210px;
}
.foto-piloto.foto-grande {
    grid-column: span 2;
    grid-row: span 2;
    height: auto; /* spans calculated by grid */
    min-height: 432px;
    border-radius: 14px;
}
.foto-piloto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    transition: transform 0.5s ease;
}
.foto-piloto:hover img { transform: scale(1.05); }
.foto-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2,26,54,0.9) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.foto-piloto:hover .foto-overlay { opacity: 1; }
.foto-overlay span {
    font-family: var(--fuente-titulos);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--blanco-espuma);
    letter-spacing: 0.5px;
}

/* Estado placeholder cuando no hay foto */
.foto-placeholder img { display: none !important; }
.placeholder-content { display: none; }
.foto-placeholder .placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 0.5rem;
    padding: 1rem;
}
.ph-icon { font-size: 2rem; opacity: 0.4; }
.ph-text {
    font-family: var(--fuente-titulos);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.3);
    text-align: center;
    line-height: 1.4;
}

/* ── Mobile responsive ───────────────────────────────── */
@media (max-width: 768px) {
    .sesion-flow { gap: 0.5rem; }
    .step-arrow { display: none; }
    .sesion-step { min-width: 140px; flex: 1 1 140px; }
    .galeria-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 160px;
    }
    .foto-piloto.foto-grande { grid-column: span 2; min-height: 0; height: 220px; }
    .foto-piloto { height: 160px; }
    .piloto-stats { grid-template-columns: 1fr 1fr; }
    .metodologia-section { padding: 3rem 0; }
    .piloto-section { padding: 3rem 0; }
    .metodologia-freire { padding: 2rem 1.5rem; }
    .sesion-flow { justify-content: flex-start; }
}

/* =====================================================
   MOBILE FIXES GLOBALES — Todas las páginas
   ===================================================== */

/* ── 1. NAVBAR: reducir altura en móvil ─────────────── */
@media (max-width: 768px) {
    .navbar {
        padding: 0.55rem 0 0.55rem 0.75rem !important;
        justify-content: flex-start !important;
    }
    /* Subtítulo: visible muy pequeño en móvil */
    .logo-container p {
        display: block !important;
        font-size: 0.3rem !important;
        letter-spacing: 0.7px !important;
        margin: 0 !important;
        line-height: 1 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 110px;
        color: var(--teal, #38bdf8) !important;
    }
    .logo-img {
        width: 26px;
        height: 26px;
    }
    .logo-container h2 {
        font-size: 0.62rem !important;
        letter-spacing: 0.5px !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: unset !important;
        max-width: none !important;
    }
    .logo-container {
        flex-shrink: 0;
        min-width: 0;
        overflow: visible;
    }
    /* Nav: ancho 0 en flujo flex; overflow:visible para que el drawer fixed se vea */
    .navbar nav {
        width: 0 !important;
        flex-shrink: 0 !important;
        overflow: visible !important;
        margin-left: 0 !important;
    }
    /* Pill empuja el grupo pill+menú al extremo derecho */
    #mobile-user-pill {
        margin-left: auto !important;
        flex-shrink: 0;
    }
    /* Botón menú: pequeño, pegado al borde */
    .menu-toggle {
        margin-left: 0.35rem !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
        min-width: 34px !important;
        min-height: unset !important;
        height: auto !important;
        padding: 3px 5px 2px !important;
        gap: 3px !important;
        border-radius: 3px !important;
    }
    .menu-toggle .bar {
        width: 16px !important;
        height: 2px !important;
    }
    .menu-toggle::after {
        font-size: 0.36rem !important;
        letter-spacing: 1px !important;
        margin-top: 0 !important;
    }
}

/* ── Logo text nuclear fix (ID specificity beats everything) ── */
@media (max-width: 768px) {
    #mainNav .logo-container,
    #mainNav .logo-container .logo-link,
    #mainNav .logo-container .logo-link > div {
        overflow: visible !important;
        max-width: none !important;
        flex-shrink: 0 !important;
    }
    #mainNav .logo-container .logo-link > div {
        width: auto !important;
    }
    #mainNav .logo-container h2 {
        font-size: 0.62rem !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: unset !important;
        max-width: none !important;
        width: auto !important;
    }
}

/* ── 2. HERO INDEX: ajuste mobile ───────────────────── */
@media (max-width: 768px) {
    .hero-section {
        margin-top: 0;
        padding-top: 72px;
        height: auto;
        min-height: 100svh;
    }
    .hero-content {
        padding: 1.5rem 1.2rem;
        text-align: center;
    }
    .hero-content h1 {
        font-size: clamp(1.8rem, 8vw, 3rem) !important;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    .hero-buttons a {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

/* ── 3. FOOTER: quitar espacio azul inferior ────────── */
html, body {
    /* Evita que el fondo azul del body se vea después del footer */
    overflow-x: hidden;
}
@media (max-width: 768px) {
    body {
        /* Impide scroll-bounce que muestra fondo azul */
        overscroll-behavior-y: none;
    }
    .footer-masivo,
    .footer-industrial {
        margin-bottom: 0 !important;
        padding-bottom: 1.5rem !important;
    }
    /* Eliminar espacio extra debajo del wrapper de contenido */
    main, .main-content, [class*="section"]:last-of-type {
        margin-bottom: 0 !important;
    }
}

/* ── 4. SOBRE PRI (ppri.html): hero y fotos ─────────── */
@media (max-width: 768px) {
    .hero-ppri {
        padding-top: 80px !important;
        min-height: 100svh;
    }
    /* Fotos galería en 1 columna en móviles muy pequeños */
    @media (max-width: 480px) {
        .galeria-grid {
            grid-template-columns: 1fr !important;
            grid-auto-rows: 200px !important;
        }
        .foto-piloto.foto-grande {
            grid-column: span 1 !important;
            height: 200px !important;
        }
        .foto-piloto { height: 200px !important; }
    }
    /* Fotos con espaciado justo */
    .galeria-grid {
        gap: 0.4rem;
    }
    .piloto-galeria {
        padding: 0 0.75rem;
    }
}

/* ── 5. PÁGINA DOCENTES: texto visible, padding ─────── */
@media (max-width: 768px) {
    .page-docentes .mentors-section {
        padding-top: 90px;
    }
    .mentors-section > h2 {
        font-size: clamp(1.4rem, 6vw, 2rem) !important;
        margin-bottom: 1rem;
    }
    .mentors-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── 6. PRE-TEST form: evitar overflow lateral ──────── */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr !important;
    }
    .field input, .field select {
        font-size: 1rem; /* Evita zoom automático en iOS */
        max-width: 100%;
    }
}

/* ── 7. CARDS y secciones generales ─────────────────── */
@media (max-width: 768px) {
    /* Evitar que tarjetas con sombra grandes se salgan */
    .prod-card,
    .mentor-card,
    .fase-card,
    .section-box {
        max-width: 100%;
        box-sizing: border-box;
    }
    /* Grid de productos en 1 columna en móviles pequeños */
    @media (max-width: 480px) {
        .grid-productos {
            grid-template-columns: 1fr !important;
        }
        .prod-card-libretas {
            grid-column: span 1 !important;
        }
    }
}

/* ── 8. PRE-TEST quiz: columna única en móvil ────────── */
@media (max-width: 768px) {
    /* Si JS activa el juego (display:grid), forzar 1 columna */
    .game-layout[style*="grid"],
    .game-layout[style*="flex"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .question-panel {
        padding: 1.2rem !important;
        box-shadow: 4px 4px 0 #000 !important;
    }
    .question-text {
        font-size: 1rem !important;
        margin-bottom: 1.25rem !important;
    }
    .answer-btn {
        font-size: 0.85rem !important;
        padding: 0.8rem !important;
    }
    .control-sidebar {
        order: -1; /* Muestra el panel de control arriba */
    }
    .answers-grid {
        gap: 0.75rem !important;
    }
}

/* ── 9. FOOTER: texto compacto en móvil ─────────────── */
@media (max-width: 768px) {
    .footer-col h3 {
        font-size: 0.8rem !important;
        letter-spacing: 1px !important;
        margin-bottom: 0.75rem !important;
    }
    .links-col a,
    .info-col p {
        font-size: 0.72rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.4 !important;
    }
    .massive-footer-text {
        font-size: clamp(1.4rem, 7vw, 2rem) !important;
    }
    .footer-masivo {
        padding: 2rem 1rem 1.5rem !important;
    }
    .footer-grid {
        gap: 1.5rem !important;
    }
    .info-col .copyright {
        font-size: 0.65rem !important;
    }
}

/* ── 10. MORRO móvil: posición adaptada ─────────────── */
@media (max-width: 768px) {
    .tumaco-rock {
        bottom: 12vh !important;
        width: clamp(200px, 55vw, 320px) !important;
    }
}
