/* =========================================
   1. BASE & RESET
   ========================================= */
:root {
    --primary-bg: #040308; /* Casi negro perfecto para neón */
    --card-bg: rgba(14, 16, 27, 0.5);
    --cyan-400: #00ffff; /* Neón puro */
    --cyan-500: #00cccc;
    --magenta-500: #f000ff; /* Magenta eléctrico */
    --green-400: #00ff73; /* Verde matrix brillante */
    --indigo-500: #8a2be2; /* Morado eléctrico */
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --glass-border: rgba(0, 255, 255, 0.15); /* Bordes que brillan */
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    background-color: var(--primary-bg);
}

body {
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    background-color: transparent;
}

/* =========================================
   2. CONTAINERS & BACKGROUND
   ========================================= */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Tech Grid background */
.tech-grid {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(0, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: -1;
    pointer-events: none;
}

/* CRT Screen Effect Overlay */
.crt-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.04), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.04));
    background-size: 100% 3px, 3px 100%;
    z-index: 999;
    pointer-events: none;
    opacity: 0.18;
}

.app-container {
    width: 100%;
    padding: 0; /* Removido para permitir centrado vertical exacto en el Hero (100vh) */
    position: relative;
    z-index: 10;
}

/* Ambient Orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
    animation: orbFloat 15s infinite ease-in-out;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--indigo-500);
    top: -50px;
    left: -100px;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: var(--cyan-400);
    bottom: -50px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--purple-500);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    min-height: 100vh; /* Ocupa toda la pantalla por completo antes de hacer scroll */
    position: relative; /* Para la barra de stats absoluta */
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 4px; /* Sharper */
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--cyan-400);
}

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

.dot.pulse {
    background-color: #ef4444;
    box-shadow: 0 0 0 rgba(239, 68, 68, 0.4);
    animation: pulseRed 2s infinite;
}

.dot.cyan {
    background-color: var(--cyan-400);
}

@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0px rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0px rgba(239, 68, 68, 0); }
}

/* Title & Subtitle */
/* Glitch Effect */
.hero-title {
    font-size: 4.5rem; /* Incrementado de 3.5rem */
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease backwards;
    animation-delay: 0.2s;
    text-transform: uppercase;
}

.glitch {
    position: relative;
    color: white;
    mix-blend-mode: lighten;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    overflow: hidden;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--green-400);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse; /* Subido a 3s para control */
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--cyan-400);
    clip: rect(100px, 450px, 120px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse; /* Subido a 3s para control */
}

.cyan-glitch {
    background: linear-gradient(135deg, var(--cyan-400), var(--green-400));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes glitch-anim {
    /* Burst 1: 0% - 25% */
    0% { clip: rect(75px, 9999px, 83px, 0); transform: skew(0.7deg); }
    10% { clip: rect(31px, 9999px, 87px, 0); transform: skew(0.2deg); }
    20% { clip: rect(50px, 9999px, 73px, 0); transform: skew(-0.5deg); }
    25% { clip: rect(10px, 9999px, 20px, 0); transform: skew(1deg); }
    
    /* Silence: 26% - 50% */
    26% { clip: rect(0, 0, 0, 0); }
    50% { clip: rect(0, 0, 0, 0); }

    /* Burst 2: 51% - 75% */
    51% { clip: rect(98px, 9999px, 102px, 0); transform: skew(0.3deg); }
    60% { clip: rect(15px, 9999px, 25px, 0); transform: skew(0.7deg); }
    70% { clip: rect(44px, 9999px, 58px, 0); transform: skew(0.2deg); }
    75% { clip: rect(81px, 9999px, 92px, 0); transform: skew(-0.8deg); }

    /* Silence: 76% - 100% */
    76% { clip: rect(0, 0, 0, 0); }
    100% { clip: rect(0, 0, 0, 0); }
}

@keyframes glitch-anim-2 {
    /* Burst 1: 0% - 25% */
    0% { clip: rect(25px, 9999px, 33px, 0); transform: skew(-0.1deg); }
    10% { clip: rect(61px, 9999px, 40px, 0); transform: skew(0.5deg); }
    20% { clip: rect(35px, 9999px, 45px, 0); transform: skew(-0.3deg); }
    25% { clip: rect(10px, 9999px, 20px, 0); transform: skew(0.1deg); }
    
    /* Silence: 26% - 50% */
    26% { clip: rect(0, 0, 0, 0); }
    50% { clip: rect(0, 0, 0, 0); }

    /* Burst 2: 51% - 75% */
    51% { clip: rect(81px, 9999px, 90px, 0); transform: skew(-0.8deg); }
    60% { clip: rect(45px, 9999px, 55px, 0); transform: skew(0.4deg); }
    70% { clip: rect(12px, 9999px, 32px, 0); transform: skew(-0.5deg); }
    75% { clip: rect(31px, 9999px, 42px, 0); transform: skew(0.2deg); }

    /* Silence: 76% - 100% */
    76% { clip: rect(0, 0, 0, 0); }
    100% { clip: rect(0, 0, 0, 0); }
}

.hero-subtitle {
    font-size: 1.45rem; /* Más grande en general */
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 3.5rem;
    animation: fadeInUp 0.8s ease backwards;
    animation-delay: 0.4s;
    max-width: 900px; /* Aumentado pero con algo de balance, removeremos por completo en desktop media query */
}

/* Countdown and Video */
.countdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    font-family: 'Fira Code', monospace;
}

.countdown-label {
    font-size: 0.8rem;
    color: var(--cyan-400);
    letter-spacing: 0.1rem;
    opacity: 0.8;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem 2rem;
    border-radius: 8px;
    border: 1px dashed rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.05);
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-block span {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.time-block small {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.time-separator {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.2;
}

/* --- Urgency States for Countdown --- */
.countdown-timer.state-red {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.8), rgba(153, 27, 27, 0.8)) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.4) !important;
}

.countdown-timer.state-yellow {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.8), rgba(161, 98, 7, 0.8)) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 0 30px rgba(234, 179, 8, 0.3) !important;
}

.countdown-timer.state-green {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.8), rgba(21, 128, 61, 0.8)) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 30px rgba(22, 163, 74, 0.4) !important;
}

.countdown-timer.state-indigo {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.8), rgba(55, 48, 163, 0.8)) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.4) !important;
}

/* Animations for priority states */
.countdown-timer.pulse-effect {
    animation: countdownPulse 2s infinite ease-in-out;
}

@keyframes countdownPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* Specific text colors for yellow state */
.countdown-timer.state-yellow .time-block span,
.countdown-timer.state-yellow .time-separator {
    color: #000000 !important;
    text-shadow: none !important;
}

.countdown-timer.state-yellow .time-block small {
    color: rgba(0, 0, 0, 0.7) !important;
}

.countdown-label.active-label {
    opacity: 1 !important;
    font-weight: 800 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.15rem !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2) !important;
}

.countdown-label.state-color-red { color: #f87171 !important; }
.countdown-label.state-color-yellow { color: #facc15 !important; }
.countdown-label.state-color-green { color: #4ade80 !important; }
.countdown-label.state-color-indigo { color: #818cf8 !important; }

/* --- Floating Admin Menu --- */
.floating-admin-trigger {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(6, 182, 212, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 20px rgba(6, 182, 212, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: all 0.3s ease;
}

.floating-admin-trigger:hover {
    transform: scale(1.1) rotate(45deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 25px rgba(6, 182, 212, 0.3);
}

.floating-admin-menu {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem;
    width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-admin-menu.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.floating-admin-menu h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    font-family: 'Fira Code', monospace;
    text-align: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.floating-admin-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.floating-admin-menu li button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.floating-admin-menu li button:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateX(3px);
}

.floating-admin-menu li button.active {
    background: var(--bg-active, rgba(0, 0, 0, 0.5)) !important;
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 700;
}

.floating-admin-menu li button.active-faltan-2-dias { --bg-active: #dc2626; }
.floating-admin-menu li button.active-manana { --bg-active: #eab308; color: black !important; }
.floating-admin-menu li button.active-hoy { --bg-active: #16a34a; }
.floating-admin-menu li button.active-faltan-2-horas { --bg-active: #dc2626; }
.floating-admin-menu li button.active-falta-1-hora { --bg-active: #4f46e5; }
.floating-admin-menu li button.active-faltan-30-minutos { --bg-active: #eab308; color: black !important; }
.floating-admin-menu li button.active-estamos-en-vivo { --bg-active: #16a34a; }

.floating-admin-menu hr {
    border: none;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.video-container {
    width: 100%;
    max-width: 800px;
    margin: 3rem 0;
    position: relative;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.15);
}

.video-wrapper {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 2px;
}

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

/* Button Actions */
.hero-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease backwards;
    animation-delay: 0.6s;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px; /* Más técnico */
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    font-family: 'Fira Code', monospace; /* Monospace button labels */
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-400) 0%, #059669 100%);
    color: #03040b; /* Contraste negro sobre verde neón */
    border: none;
    box-shadow: 0 0 20px rgba(0, 255, 115, 0.4);
    animation: pulseGlow 1.5s infinite alternate;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    font-size: 1.25rem; /* Mayor tamaño de letra */
    padding: 1.25rem 2.5rem; /* Mayor Padding */
}

.btn-primary:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 0 35px rgba(0, 255, 115, 0.8), 0 0 15px var(--cyan-400);
    background: linear-gradient(135deg, #0ce66d 0%, var(--green-400) 100%);
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 15px rgba(0, 255, 115, 0.3), 0 0 5px rgba(0, 255, 255, 0.2);
    }
    100% {
        box-shadow: 0 0 35px rgba(0, 255, 115, 0.7), 0 0 15px rgba(0, 255, 255, 0.4);
    }
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.5);
    color: #f1f5f9;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--cyan-400);
}

/* Stats Bar */
.stats-bar {
    display: flex;
    gap: 4rem;
    padding: 1.5rem 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    animation: fadeInUp 0.8s ease backwards;
    animation-delay: 0.8s;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--cyan-400);
}

.stat-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Fira Code', monospace;
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- 3.1 Option to Hide Media & Center Content --- */
.hero.no-media {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 2rem 1rem !important; /* Respeta el padding base */
}

.hero.no-media .hero-content {
    flex: none !important;
    max-width: 900px !important;
    align-items: center !important;
    text-align: center !important;
}

.hero.no-media .hero-actions {
    justify-content: center !important;
    margin-bottom: 2rem !important; /* Reducido para balancear el centrado vertical */
}

.hero.no-media .stats-bar {
    position: static !important;
    margin: 1.5rem auto 0 auto !important;
    align-self: center !important;
    justify-content: center !important;
    transform: none !important;
    width: max-content !important;
    max-width: 100% !important;
}

.hero.no-media .hero-media {
    display: none !important;
}


/* =========================================
   4. SYLLABUS SECTION
   ========================================= */
.syllabus {
    padding: 6rem 0;
    text-align: center;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(to right, #fff, var(--cyan-400));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tabs Navigation */
.tabs-container {
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.4rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
}

.tab-btn {
    display: flex;
    flex-direction: column;
    padding: 0.6rem 1.75rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    font-family: 'Fira Code', monospace;
}

.tab-btn .day-num {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    color: var(--cyan-400);
}

.tab-btn .day-title {
    font-size: 1rem;
    font-weight: 700;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--indigo-600), var(--cyan-500));
    color: white;
}

/* Syllabus Grid */
.grid-container {
    position: relative;
    min-height: 400px;
}

.grid-content {
    display: none;
    gap: 1.5rem;
    text-align: left;
}

.grid-content.active {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeIn 0.4s ease;
}

.grid-content .card {
    flex: 1 1 320px;
    max-width: 380px;
}

/* Card Style - Tech Box */
.card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 4px; /* Cantos rectos (Técnico) */
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--cyan-400);
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.2);
}

/* Corner highlights */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 6px; height: 6px;
    border-top: 2px solid var(--cyan-400);
    border-left: 2px solid var(--cyan-400);
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 6px; height: 6px;
    border-bottom: 2px solid var(--cyan-400);
    border-right: 2px solid var(--cyan-400);
}

.card-tech-header {
    display: flex;
    justify-content: space-between;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.tech-id {
    color: var(--indigo-500);
}

.tech-prompt {
    color: var(--cyan-400);
    opacity: 0.8;
}

.card-body-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.card-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.card-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex-grow: 1;
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--cyan-400);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    transition: all 0.2s ease;
    font-family: 'Fira Code', monospace; /* Monospace button */
    text-transform: lowercase;
}

.btn-text:hover {
    gap: 0.75rem;
    color: var(--indigo-500);
    letter-spacing: 0.05rem;
}

/* =========================================
   5. MODAL SYSTEM
   ========================================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

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

.modal-content {
    background: #0b0f19;
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.close-btn:hover {
    color: white;
}

.modal-body {
    display: flex;
    flex-direction: column;
}

.modal-image-container {
    width: 100%;
    height: 250px;
    background: #111827;
    overflow: hidden;
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-text {
    padding: 2rem;
}

.modal-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.modal-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.modal-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--indigo-500);
}

.modal-text ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.modal-text ul li {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e2e8f0;
}

.modal-text ul li i {
    color: var(--cyan-400);
}

/* =========================================
   6. STICKY ACTION & FOOTER
   ========================================= */
.sticky-cta {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    display: none; /* Hidden by default en todos lados */
}

@media (max-width: 768px) {
    .sticky-cta.visible {
        display: block;
        width: calc(100% - 3rem);
    }
    
    .btn-sticky {
        width: 100%;
        justify-content: center;
        box-shadow: 0 4px 25px rgba(0, 255, 115, 0.4);
    }
}

footer {
    text-align: center;
    padding: 4rem 1rem 2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* =========================================
   7. RESPONSIVENESS & ANIMATIONS
   ========================================= */
@media (max-width: 900px) {
    .hero-title {
        font-size: 3.5rem; /* Aumentado */
    }
    .stats-bar {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-top: 4rem;
    }
    .hero-title {
        font-size: 2.75rem; /* Aumentado */
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn-primary, .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .stats-bar {
        width: 100%;
    }
    .tabs-container {
        flex-direction: column;
        width: 100%;
    }
    .tab-btn {
        width: 100%;
    }
}

@media (min-width: 1024px) {
    .hero {
        flex-direction: row;
        align-items: stretch; /* Estirar para que justify-content: center funcione */
        justify-content: center;
        gap: 4rem;
        text-align: left;
        min-height: 100vh;
        padding: 0 4rem;
    }

    .hero-content {
        flex: 1.2;
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centrado vertical en la columna */
        align-items: flex-start;
        text-align: left;
        z-index: 2;
    }

    .countdown-container {
        align-items: flex-start;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .hero-media {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centrado vertical en la columna */
        align-items: center;
        gap: 1.5rem;
        z-index: 2;
    }

    .video-container {
        width: 100%;
        margin: 0;
    }

    /* Ajustar barra de stats dentro de hero-content */
    .stats-bar {
        position: static;
        transform: none;
        width: max-content;
        max-width: 100%;
        margin-top: 3.5rem;
        align-self: center; /* Centrar dentro de la columna izquierda */
        justify-content: center;
        gap: 3.5rem; /* Subido */
        backdrop-filter: blur(20px);
        background: rgba(0, 0, 0, 0.4);
        border: 1px solid var(--glass-border);
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.15);
        padding: 1.5rem 3rem; /* Subido */
        border-radius: 12px;
        margin-left: auto;
        margin-right: auto;
    }

    .stat-item {
        background: transparent;
        padding: 0;
        border: none;
    }

    .stats-bar h4 {
        font-size: 1.4rem !important; /* Más grande en desktop */
        margin-bottom: 0.2rem;
    }

    .stats-bar p {
        font-size: 1rem !important;
        opacity: 0.9;
    }

    .stats-bar i {
        font-size: 1.8rem !important; /* Ícono más grande */
        color: var(--cyan-400);
    }
}

@media (min-width: 1200px) {
    .hero-title {
        font-size: 5rem; /* Reducido de 6rem */
    }
    .hero-subtitle {
        font-size: 1.65rem;
        max-width: none; /* Elimina cualquier limitación de ancho de línea */
    }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =========================================
   12. FLOATING HUD COUNTDOWN (KEY R)
   ========================================= */
.floating-countdown-hud {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgba(4, 3, 8, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(-20px) scale(0.95);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 30px rgba(0, 255, 255, 0.15);
    min-width: 300px;
    min-height: 150px;
    cursor: default;
    overflow: hidden;
    resize: both; /* Permite redimensionar desde la esquina */
}

.floating-countdown-hud.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Drag Handle */
.hud-drag-handle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    cursor: move;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.3rem;
    text-transform: uppercase;
}

.floating-countdown-hud .countdown-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--cyan-400);
    letter-spacing: 0.2rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    width: 100%;
    text-align: center;
    outline: none;
    transition: background 0.2s;
    padding: 2px;
}

.floating-countdown-hud .countdown-label:hover,
.floating-countdown-hud .countdown-label:focus {
    background: rgba(0, 255, 255, 0.1);
    border-radius: 4px;
}

.floating-countdown-hud .countdown-timer {
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 1rem;
    padding: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-countdown-hud .time-block {
    gap: 0.2rem;
}

.floating-countdown-hud .time-block span {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    line-height: 1;
    outline: none;
    padding: 0 5px;
    transition: all 0.2s;
}

.floating-countdown-hud .time-block span[contenteditable="true"]:hover,
.floating-countdown-hud .time-block span[contenteditable="true"]:focus {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--cyan-400);
}

.floating-countdown-hud .time-block small {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--cyan-400);
    opacity: 0.8;
}

.floating-countdown-hud .time-separator {
    font-size: 2rem;
    opacity: 0.4;
    color: white;
    margin-top: -0.5rem;
}

/* Resize Handle Style */
.floating-countdown-hud::-webkit-resizer {
    background-color: transparent;
    background-image: linear-gradient(135deg, transparent 50%, var(--cyan-400) 50%);
    background-size: 15px 15px;
    background-repeat: no-repeat;
    background-position: bottom right;
}


/* =========================================
   12. FLOATING HUD COUNTDOWN (KEY R)
   ========================================= */
.floating-countdown-hud {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgba(4, 3, 8, 0.7);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 0;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(-20px) scale(0.95);
    box-shadow: 0 15px 50px rgba(0,0,0,0.8), 
                inset 0 0 40px rgba(0, 255, 255, 0.05);
    min-width: 300px;
    min-height: 200px;
    cursor: default;
    overflow: hidden;
    resize: both;
}

.floating-countdown-hud.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Header Content (Top) */
.floating-countdown-hud .countdown-label {
    font-family: 'Outfit', sans-serif;
    color: var(--cyan-400);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    width: 100%;
    text-align: center;
    outline: none;
    padding: 15px 15px 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-weight: 600;
}

/* Timer Body (Center) */
.floating-countdown-hud .countdown-timer {
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 0;
    padding: 10px;
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-countdown-hud .time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.floating-countdown-hud .time-block span {
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    line-height: 0.9;
    outline: none;
    padding: 0 10px;
}

.floating-countdown-hud .time-block small {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--cyan-400);
    opacity: 0.8;
}

.floating-countdown-hud .time-separator {
    opacity: 0.3;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0.9;
}

/* Footer Drag Handle (Bottom) */
.hud-drag-handle {
    width: 100%;
    height: 35px;
    background: rgba(255, 255, 255, 0.08); 
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    cursor: move;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.4rem;
    text-transform: uppercase;
    flex-shrink: 0;
    transition: all 0.3s;
}

.hud-drag-handle:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--cyan-400);
}

/* Controls (Hover overlay at bottom) */
.hud-controls {
    position: absolute;
    bottom: 35px; /* Justo encima de la barra de drag */
    left: 0;
    width: 100%;
    padding: 10px 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(10px);
    pointer-events: none;
    z-index: 10;
}

.floating-countdown-hud:hover .hud-controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hud-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hud-btn:hover {
    opacity: 1;
    color: var(--cyan-400);
    transform: scale(1.1);
}

.hud-btn svg { width: 22px; height: 22px; fill: currentColor; }

@media (max-width: 768px) {
    .floating-countdown-hud {
        min-width: 240px;
        min-height: 180px;
    }
}
