/* =========================================
   1. VARIABLES GLOBALES (Paleta Juarense Tech)
   ========================================= */
:root {
   /* Colores Base Institucionales */
   --primary: #194239;        
   --primary-light: #235347;  
   --dark: #111111;           
   --white: #ffffff;
   --text-color: #333333;
   
   /* Fondo principal de día (Tinte de Verde Juarense muy claro) */
   --bg-light: #e8edea;

   /* Colores de Acento Tecnológicos (Tech-Accents) */
   --neon: #00ff88;           
   --accent-gold: #d4af37;    
   --accent-blue: #007bff;    
   --accent-purple: #6f42c1;  

   /* Fondos y Bordes */
   --gray: #f4f7f6;           
   --border-light: rgba(25, 66, 57, 0.2); 

   /* Glow Shadows */
   --glow-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
   --gold-glow: 0 0 15px rgba(212, 175, 55, 0.5);
   --blue-glow: 0 0 15px rgba(0, 123, 255, 0.4);
   --purple-glow: 0 0 15px rgba(111, 66, 193, 0.4);
}

/* =========================================
   2. CONFIGURACIÓN BASE Y SCROLLBAR
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* { 
   margin: 0; padding: 0; 
   box-sizing: border-box; 
   font-family: 'Poppins', sans-serif; 
   max-width: 100%; 
}

body { 
   scroll-behavior: smooth; 
   color: var(--text-color); 
   background-color: var(--bg-light); 
   overflow-x: hidden; 
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--gray); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon); }

/* =========================================
   2. NAVEGACIÓN DUAL (PC Y MÓVIL DECORADO)
   ========================================= */

/* --- ESTILO PARA COMPUTADORAS (Escritorio) --- */
.main-header {
    background: rgba(25, 66, 57, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Logo adaptable */
.logo-small {
    height: 55px;
    width: auto;
    transition: all 0.3s ease;
}

.menu-toggle, .sidebar-lateral, .overlay-dark {
    display: none; 
}

.navbar {
    width: 100%;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.2);
}
.navbar ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 10px;
    padding: 10px;
}
.navbar li a {
    color: var(--white);
    text-decoration: none;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 25px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}
.navbar li a:hover, .navbar li a.activo {
    background: rgba(0, 255, 136, 0.15);
    color: var(--neon);
    border-color: var(--neon);
    box-shadow: var(--glow-shadow);
}

/* --- ESTILO PARA MÓVIL (Menú Lateral Decorado) --- */
@media screen and (max-width: 768px) {
    .navbar { display: none !important; } 

    .logo-small {
        height: 42px; /* Se adapta al tamaño del teléfono */
    }

    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        padding: 5px;
        z-index: 5001;
    }
    .menu-toggle .bar {
        height: 3px;
        width: 25px;
        background-color: var(--neon);
        margin: 3px 0;
        border-radius: 5px;
        transition: 0.4s;
    }

    /* Sidebar Decorado */
    .sidebar-lateral {
        display: flex;
        position: fixed;
        right: -100%; 
        top: 0;
        width: 280px; 
        height: 100vh;
        background: linear-gradient(135deg, rgba(11, 34, 24, 0.98), rgba(0, 0, 0, 0.98));
        backdrop-filter: blur(15px);
        z-index: 5000;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 2px solid var(--neon);
        flex-direction: column;
        padding-top: 20px;
    }

    .sidebar-lateral.active {
        right: 0;
    }

    /* Capa oscura para cerrar al tocar fuera */
    .overlay-dark {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(4px);
        z-index: 4500;
        display: none; /* Se activa con JS */
    }
    
    .overlay-dark.active {
        display: block;
    }

    .nav-links-sidebar {
        list-style: none;
        padding: 40px 20px;
    }
    .nav-links-sidebar li {
        margin-bottom: 25px;
        opacity: 0;
        transform: translateX(20px);
        transition: 0.4s;
    }
    .sidebar-lateral.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-links-sidebar a {
        color: white;
        text-decoration: none;
        font-size: 1.1rem;
        display: block;
        border-bottom: 1px solid rgba(0,255,136,0.1);
        padding-bottom: 10px;
    }
}
@media screen and (max-width: 768px) {
    .timeline-vertical::after { left: 20px !important; transform: none !important; }
    .timeline-item { width: 100% !important; padding: 10px 10px 10px 45px !important; }
    .timeline-item.izquierda, .timeline-item.derecha { left: 0 !important; }
    .timeline-icon { left: 20px !important; transform: translateX(-50%) !important; }
}

/* =========================================
   5. BANNER PRINCIPAL (HERO SECTION)
   ========================================= */
.hero-section {
   background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.85)), url('imagenes/inicio');
   background-size: cover; background-position: center; background-attachment: fixed; 
   background-repeat: no-repeat;
   padding: 100px 20px; text-align: center; border-radius: 0 0 20px 20px; margin-bottom: 40px;
}

.hero-container { max-width: 900px; margin: 0 auto; }
.texto-destacado { font-size: 2.5rem; font-weight: 700; color: var(--neon); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }
.subtexto-hero { font-size: 1.1rem; color: var(--white); font-weight: 300; }

/* =========================================
   6. ESTRUCTURA, GRID Y TÍTULOS
   ========================================= */
.container { width: 95%; max-width: 1200px; margin: 0 auto; padding: 20px 0; }
.section-padding { padding: 40px 0; }
.section-title { text-align: center; color: var(--accent-gold) !important; margin-bottom: 40px; font-size: 2.2rem; text-transform: uppercase; font-weight: bold; text-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.grid-layout, .grid-ejes, .grid-historia { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

/* =========================================
   7. TARJETAS (CARDS) GENERALES
   ========================================= */
.card-info, .eje-card-premium {
   background: var(--white); padding: 30px; border-radius: 15px;
   border-top: 5px solid var(--neon);
   border-bottom: 2px solid var(--border-light);
   border-left: 1px solid rgba(25, 66, 57, 0.05);
   border-right: 1px solid rgba(25, 66, 57, 0.05);
   box-shadow: 0 8px 20px rgba(0,0,0,0.04); 
   transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
   text-align: center; cursor: pointer; position: relative; overflow: hidden;
}

.card-info:hover, .eje-card-premium:hover { 
   transform: translateY(-12px); box-shadow: 0 15px 30px rgba(0, 255, 136, 0.2); 
   border-bottom-color: var(--neon); 
}

.eje-icon-anim, .profile-icon { font-size: 3.5rem; margin-bottom: 15px; transition: 0.3s; color: var(--primary); }
.card-info:hover .profile-icon, .eje-card-premium:hover .eje-icon-anim { transform: scale(1.15); color: var(--neon); }

.card-info h3, .eje-card-premium h3, .docente-card h3, .card-equipo-premium h3 { color: var(--primary) !important; margin-bottom: 12px; font-weight: 700; }
.card-info p, .eje-card-premium p, .docente-card p { color: #444444 !important; }

/* =========================================
   8. TARJETAS DE DOCENTES (CORRECCIÓN CONTRASTE Y MÓVIL)
   ========================================= */
.docente-card {
    background: var(--white); border-radius: 15px; padding: 40px 20px; text-align: center;
    border: 1px solid var(--border-light); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    position: relative; 
    /* ¡CORRECCIÓN! Se elimina overflow:hidden para que las etiquetas no desaparezcan al saltar */
    animation: flotarDocente 6s ease-in-out infinite alternate;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.docente-card:nth-child(2) { animation-delay: -2s; }
.docente-card:nth-child(3) { animation-delay: -4s; }

@keyframes flotarDocente { 0% { transform: translateY(0); } 100% { transform: translateY(-10px); } }

/* Hover PC: Pausa la flotación y acerca la tarjeta */
.docente-card:hover { 
    animation-play-state: paused; transform: translateY(-15px) scale(1.03); 
    box-shadow: 0 25px 50px rgba(25, 66, 57, 0.15); border-color: var(--primary-light); 
    z-index: 10; /* Hace que la tarjeta resalte sobre las demás */
}

/* Línea superior (Acento) con bordes curvos para que no se salga */
.docente-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--neon); transform: scaleX(0); transition: transform 0.5s ease; transform-origin: left; border-top-left-radius: 15px; border-top-right-radius: 15px; }
.docente-card:hover::before { transform: scaleX(1); }

.docente-card.gold::before { background: var(--accent-gold); }
.docente-card.blue::before { background: var(--accent-blue); }
.docente-card.purple::before { background: var(--accent-purple); }

/* Avatar - Borde ajustado para Modo Claro */
.avatar-tech { 
    width: 90px; height: 90px; background: var(--primary); border-radius: 50%; margin: 0 auto 20px; 
    display: flex; align-items: center; justify-content: center; font-size: 2.8rem; color: var(--white); 
    border: 4px solid rgba(25, 66, 57, 0.15); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); transition: all 0.5s ease; position: relative; overflow: hidden;
}

/* Escáner Holográfico */
.avatar-tech::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 20%;
    background: rgba(255,255,255,0.5); box-shadow: 0 0 15px rgba(255,255,255,0.9);
    transform: rotate(45deg); animation: scanHolo 3s ease-in-out infinite; opacity: 0;
}
@keyframes scanHolo { 0% { top: -50%; opacity: 0; } 50% { opacity: 1; } 100% { top: 150%; opacity: 0; } }

/* Efectos Hover Avatar: Cambian de color según el área */
.docente-card:hover .avatar-tech { transform: scale(1.15) rotateY(15deg); border-color: var(--neon); background: var(--primary-light); color: var(--neon);}
.docente-card.gold:hover .avatar-tech { border-color: var(--accent-gold); box-shadow: var(--gold-glow); background: var(--accent-gold); color: #111; }
.docente-card.blue:hover .avatar-tech { border-color: var(--accent-blue); box-shadow: var(--blue-glow); background: var(--accent-blue); color: #fff; }
.docente-card.purple:hover .avatar-tech { border-color: var(--accent-purple); box-shadow: var(--purple-glow); background: var(--accent-purple); color: #fff; }

/* ¡CORRECCIÓN!: Títulos siempre oscuros de día para que nunca desaparezcan */
.docente-card h3 { color: var(--primary) !important; margin-bottom: 12px; font-weight: 700; position: relative; z-index: 2;}
.docente-titulo { font-size: 0.95rem; font-style: italic; margin-bottom: 20px; color: var(--primary-light) !important; font-weight: 600; position: relative; z-index: 2;}

/* Etiquetas de Materias */
.materias-tags { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; position: relative; z-index: 2; }
.materias-tags span { 
    background: rgba(25, 66, 57, 0.05); color: var(--primary); padding: 6px 14px; border-radius: 20px; 
    font-size: 0.75rem; font-weight: bold; border: 1px solid rgba(25, 66, 57, 0.3); 
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.materias-tags span:nth-child(2n) { background: rgba(0, 123, 255, 0.05); color: var(--accent-blue); border-color: rgba(0, 123, 255, 0.3); }
.materias-tags span:nth-child(3n) { background: rgba(111, 66, 193, 0.05); color: var(--accent-purple); border-color: rgba(111, 66, 193, 0.3); }

/* Hover en PC: Saltan una por una */
.docente-card:hover .materias-tags span { transform: translateY(-5px) scale(1.1); box-shadow: 0 5px 15px rgba(0,0,0,0.1); background: var(--primary); color: var(--white); border-color: var(--primary); }
.docente-card:hover .materias-tags span:nth-child(1) { transition-delay: 0.1s; }
.docente-card:hover .materias-tags span:nth-child(2) { transition-delay: 0.2s; }
.docente-card:hover .materias-tags span:nth-child(3) { transition-delay: 0.3s; }

/* ¡CORRECCIÓN CRÍTICA DE CONTRASTE!: Letra negra en fondo dorado, y blanca en oscuros */
.docente-card.gold:hover .materias-tags span { background: var(--accent-gold); border-color: var(--accent-gold); color: #111111 !important; box-shadow: var(--gold-glow); }
.docente-card.blue:hover .materias-tags span { background: var(--accent-blue); border-color: var(--accent-blue); color: #ffffff !important; box-shadow: var(--blue-glow); }
.docente-card.purple:hover .materias-tags span { background: var(--accent-purple); border-color: var(--accent-purple); color: #ffffff !important; box-shadow: var(--purple-glow); }

/* ========================================================
   ANIMACIONES AUTOMÁTICAS EXCLUSIVAS PARA CELULARES
   ======================================================== */
@media screen and (max-width: 768px) {
    .docente-card::before { transform: scaleX(1); animation: mobilePulseLine 3s infinite alternate ease-in-out; }
    @keyframes mobilePulseLine { 0% { transform: scaleX(0.7); opacity: 0.6; } 100% { transform: scaleX(1); opacity: 1; } }

    .avatar-tech { animation: mobileRotateAvatar 4s infinite alternate ease-in-out; }
    @keyframes mobileRotateAvatar { 0% { transform: rotateY(0deg) scale(1); } 100% { transform: rotateY(15deg) scale(1.05); } }

    .materias-tags span { animation: mobilePopTags 5s infinite; }
    .materias-tags span:nth-child(1) { animation-delay: 0s; }
    .materias-tags span:nth-child(2) { animation-delay: 0.2s; }
    .materias-tags span:nth-child(3) { animation-delay: 0.4s; }

    @keyframes mobilePopTags {
        0%, 15%, 100% { transform: translateY(0) scale(1); }
        7% { transform: translateY(-5px) scale(1.1); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
    }
}

/* ========================================================
   MODO OSCURO PARA DOCENTES (Totalmente Blindado)
   ======================================================== */
body.dark-mode .docente-card { background: rgba(30, 35, 40, 0.5) !important; border-color: rgba(255,255,255,0.05) !important; box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important; }
body.dark-mode .docente-card:hover { background: rgba(40, 45, 50, 0.7) !important; box-shadow: 0 20px 40px rgba(0, 255, 136, 0.15) !important; }
body.dark-mode .docente-card.gold:hover { box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15) !important; }
body.dark-mode .docente-card.blue:hover { box-shadow: 0 20px 40px rgba(0, 123, 255, 0.15) !important; }
body.dark-mode .docente-card.purple:hover { box-shadow: 0 20px 40px rgba(111, 66, 193, 0.15) !important; }

body.dark-mode .docente-card h3 { color: var(--white) !important; }
body.dark-mode .docente-titulo { color: #a3b3bc !important; }
body.dark-mode .avatar-tech { border-color: rgba(255,255,255,0.05) !important; box-shadow: 0 10px 20px rgba(0,0,0,0.5) !important; background: transparent !important; color: var(--white) !important;}
body.dark-mode .avatar-tech::after { background: rgba(0, 255, 136, 0.4) !important; box-shadow: 0 0 15px var(--neon) !important; }

body.dark-mode .docente-card:hover .avatar-tech { border-color: var(--neon) !important; color: var(--neon) !important; }
body.dark-mode .docente-card.gold:hover .avatar-tech { border-color: var(--accent-gold) !important; color: var(--accent-gold) !important;}
body.dark-mode .docente-card.blue:hover .avatar-tech { border-color: var(--accent-blue) !important; color: var(--accent-blue) !important;}
body.dark-mode .docente-card.purple:hover .avatar-tech { border-color: var(--accent-purple) !important; color: var(--accent-purple) !important;}

body.dark-mode .materias-tags span { background: #111111 !important; color: var(--neon) !important; border-color: rgba(0,255,136,0.3) !important; }
body.dark-mode .materias-tags span:nth-child(2n) { color: var(--accent-blue) !important; border-color: rgba(0,123,255,0.3) !important; }
body.dark-mode .materias-tags span:nth-child(3n) { color: var(--accent-purple) !important; border-color: rgba(111,66,193,0.3) !important; }

body.dark-mode .docente-card:hover .materias-tags span { color: #111 !important; }
body.dark-mode .docente-card.gold:hover .materias-tags span { background: var(--accent-gold) !important; border-color: var(--accent-gold) !important; box-shadow: var(--gold-glow) !important; color: #111 !important;}
body.dark-mode .docente-card.blue:hover .materias-tags span { background: var(--accent-blue) !important; border-color: var(--accent-blue) !important; box-shadow: var(--blue-glow) !important; color: #fff !important;}
body.dark-mode .docente-card.purple:hover .materias-tags span { background: var(--accent-purple) !important; border-color: var(--accent-purple) !important; box-shadow: var(--purple-glow) !important; color: #fff !important;}

/* =========================================
   9. BOTONES, INTERACTIVIDAD Y FORMULARIOS
   ========================================= */
.btn-interactivo, .btn-plataforma { background: var(--primary); color: var(--white); padding: 12px 25px; border: 2px solid var(--primary); border-radius: 30px; font-size: 0.9rem; font-weight: bold; cursor: pointer; transition: 0.3s ease; display: inline-block; text-decoration: none; margin-top: 15px; }
.btn-interactivo:hover { background: var(--neon); color: var(--primary); border-color: var(--neon); box-shadow: var(--glow-shadow); }
.btn-plataforma { background: transparent; border-color: var(--neon); color: var(--neon); }
.btn-plataforma:hover { background: var(--neon); color: var(--primary); }

.form-contacto { display: flex; flex-direction: column; gap: 15px; margin-top: 15px; }
.form-contacto input, .form-contacto select, .form-contacto textarea { width: 100%; padding: 15px; border-radius: 10px; border: 1px solid var(--border-light); font-family: 'Poppins', sans-serif; font-size: 0.95rem; background: #fdfdfd; transition: all 0.3s ease; }
.form-contacto input:focus, .form-contacto select:focus, .form-contacto textarea:focus { border-color: var(--accent-blue); outline: none; box-shadow: var(--blue-glow); }
.btn-enviar { background: var(--primary); color: #ffffff; padding: 15px; border: none; border-radius: 10px; font-size: 1rem; font-weight: bold; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; margin-top: 10px; }
.btn-enviar:hover { background: var(--neon); color: var(--primary); transform: translateY(-3px); box-shadow: var(--glow-shadow); }

/* =========================================
   10. MODALES (Ventanas Emergentes)
   ========================================= */
.modal-dece-tech { display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(17, 17, 17, 0.85); backdrop-filter: blur(8px); }
.modal-contenido-tech { background: var(--white); margin: 10% auto; padding: 40px; border-radius: 20px; width: 90%; max-width: 550px; border-top: 8px solid var(--accent-gold); box-shadow: 0 10px 40px rgba(0,0,0,0.3); position: relative; animation: modalIn 0.4s ease-out; }
@keyframes modalIn { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cerrar-modal { position: absolute; top: 15px; right: 25px; font-size: 30px; font-weight: bold; cursor: pointer; color: var(--primary); transition: 0.2s; }
.cerrar-modal:hover { color: red; transform: scale(1.2); }
.modal-contenido-tech h2, .sub-neon { color: var(--primary) !important; font-weight: bold; }
.separador-neon { height: 4px; width: 80px; background: var(--accent-gold); margin: 15px 0; border-radius: 2px; }

/* =========================================
   11. MENÚ FLOTANTE LATERAL
   ========================================= */
.menu-flotante-lateral { position: fixed; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 1000; }
.item-flotante { display: flex; align-items: center; flex-direction: row-reverse; position: relative; }
.boton-circulo { width: 45px; height: 45px; background-color: var(--primary); color: var(--white); border-radius: 50px 0 0 50px; display: flex; justify-content: center; align-items: center; font-size: 20px; cursor: pointer; transition: all 0.4s ease; opacity: 0.3; transform: translateX(25px); }

.item-flotante:nth-child(1):hover .boton-circulo { background-color: var(--accent-blue); color: white; opacity: 1; transform: translateX(-15px); border-radius: 50%; box-shadow: var(--blue-glow); }
.item-flotante:nth-child(2):hover .boton-circulo { background-color: var(--neon); color: var(--primary); opacity: 1; transform: translateX(-15px); border-radius: 50%; box-shadow: var(--glow-shadow); }
.item-flotante:nth-child(3):hover .boton-circulo { background-color: var(--accent-gold); color: white; opacity: 1; transform: translateX(-15px); border-radius: 50%; box-shadow: var(--gold-glow); }
.item-flotante:nth-child(4):hover .boton-circulo { background-color: var(--accent-purple); color: white; opacity: 1; transform: translateX(-15px); border-radius: 50%; box-shadow: var(--purple-glow); }

.panel-info { background-color: rgba(255, 255, 255, 0.95); color: #333; padding: 12px 18px; border-radius: 8px; border-left: 4px solid var(--primary); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); width: max-content; max-width: 250px; position: absolute; right: 70px; opacity: 0; visibility: hidden; transform: translateX(20px) scale(0.9); transition: all 0.3s ease; border: 1px solid var(--border-light); }
.panel-info h4 { color: var(--primary); margin-top: 0; margin-bottom: 5px; font-size: 16px; font-weight: bold;}
.item-flotante:hover .panel-info { opacity: 1; visibility: visible; transform: translateX(0) scale(1); }

/* =========================================
   12. PIE DE PÁGINA (FOOTER)
   ========================================= */
.footer-main { background: var(--dark); color: #ccc; padding: 60px 20px 20px; margin-top: auto; border-top: 4px solid var(--accent-gold); }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-col h4 { color: var(--accent-gold) !important; border-bottom: 2px solid var(--neon); display: inline-block; margin-bottom: 20px; padding-bottom: 5px; text-transform: uppercase;}
.footer-col ul { list-style: none; }
.footer-col a { color: #ccc; text-decoration: none; transition: 0.3s; }
.footer-col a:hover { color: var(--neon); }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #333; font-size: 0.85rem; }

/* =========================================
   13. ANIMACIONES GENERALES
   ========================================= */
.reveal { opacity: 0; transform: translateY(40px); transition: 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
@keyframes pulsoVerde { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.5; } 100% { transform: scale(1); opacity: 1; } }

/* =========================================
   14. RESPONSIVE (MEDIA QUERIES PARA CELULARES)
   ========================================= */
@media screen and (max-width: 768px) {
    html, body { overflow-x: hidden !important; width: 100%; position: relative; }

    .header-text h1 { font-size: 1rem; }
    .header-text p { font-size: 0.7rem; }
    .hero-section { padding: 60px 15px; background-attachment: scroll; }
    .texto-destacado { font-size: 1.5rem; }
    .section-title { font-size: 1.6rem; margin-bottom: 25px;}
    
    .menu-toggle { display: flex; }
    .navbar ul { flex-direction: column; background-color: var(--primary); max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; padding: 0; gap: 0; }
    .navbar ul.active { max-height: 500px; padding: 10px 0; }
    .navbar li { width: 100%; text-align: center; border-top: 1px solid rgba(0, 255, 136, 0.1); }
    .navbar li a { padding: 15px; display: block; border-radius: 0; }
    .navbar .dropdown-content { position: static; transform: none; box-shadow: none; background: rgba(0,0,0,0.2); min-width: 100%; border-top: none; }
    
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .panel-cristal { padding: 25px 15px !important; width: 90% !important; max-width: 350px !important; margin: 0 auto; border: 1px solid rgba(255, 255, 255, 0.5) !important;}
    .texto-oro { font-size: 1.6rem !important; } 
    .iconos-tecnicos { font-size: 2.5rem !important; gap: 15px !important; margin: 10px 0 !important; }
    h2.entrada-3 { font-size: 1.2rem !important; }
    h3.entrada-4 { font-size: 1rem !important; }
    .btn-gradiente-animado { font-size: 1rem !important; padding: 12px 20px !important; width: 100% !important; white-space: normal; }

    .timeline-vertical::after { left: 20px !important; transform: none !important; }
    .timeline-item { width: 100% !important; padding: 10px 10px 10px 45px !important; margin-bottom: 20px; }
    .timeline-item.izquierda, .timeline-item.derecha { left: 0 !important; }
    .timeline-item::after, .timeline-item.izquierda::after, .timeline-item.derecha::after { left: 10px !important; right: auto !important; }
    .timeline-item.izquierda .glass-timeline, .timeline-item.derecha .glass-timeline { transform: translateX(20px); }
    .glass-timeline { padding: 15px !important; } 
    .anio-timeline { font-size: 1.3rem !important; }
    .glass-timeline h4 { font-size: 1.1rem !important; }
    .glass-timeline p { font-size: 0.9rem !important; }

    .boton-circulo { width: 40px; height: 40px; font-size: 18px; transform: translateX(10px); }
    .panel-info { max-width: 180px; right: 55px; font-size: 0.8rem; }
    .panel-info h4 { font-size: 14px; }
}

/* =========================================
   15. MODO OSCURO AUTOMÁTICO (NOCTURNO)
   ========================================= */
body.dark-mode { background-color: #0d1117 !important; color: #e6edf3 !important; }
body.dark-mode .main-header { background: rgba(13, 17, 23, 0.7) !important; border-bottom: 1px solid rgba(0, 255, 136, 0.15) !important; box-shadow: none !important; }
body.dark-mode .navbar ul { background: transparent !important; }

body.dark-mode .card-info, body.dark-mode .eje-card-premium, body.dark-mode .card-equipo-premium, body.dark-mode .tarjeta-infra, body.dark-mode .glass-timeline {
   background: rgba(30, 35, 40, 0.5) !important; border: 1px solid rgba(255, 255, 255, 0.05) !important; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}
body.dark-mode .card-info:hover, body.dark-mode .eje-card-premium:hover, body.dark-mode .tarjeta-infra:hover, body.dark-mode .glass-timeline:hover {
   background: rgba(40, 45, 50, 0.7) !important; border-color: rgba(0, 255, 136, 0.3) !important;
}

body.dark-mode .section-title { color: var(--accent-gold) !important; text-shadow: var(--gold-glow); }
body.dark-mode .card-info p, body.dark-mode .eje-card-premium p, body.dark-mode .card-equipo-premium p, body.dark-mode .tarjeta-infra p, body.dark-mode .glass-timeline p { color: #a3b3bc !important; }
body.dark-mode .card-info h3, body.dark-mode .eje-card-premium h3, body.dark-mode .card-equipo-premium h3, body.dark-mode .tarjeta-infra h3, body.dark-mode .glass-timeline h4 { color: #ffffff !important; }

body.dark-mode .hero-section {
   background: linear-gradient(rgba(0, 0, 0, 0.692), rgba(0, 0, 0, 0.582)), url('imagenes/inicio') !important;
   background-size: cover !important; background-position: center !important; background-attachment: fixed !important; background-repeat: no-repeat !important;
}

/* =========================================
   PANTALLA DE BIENVENIDA Y ANIMACIONES (VERSION ORIGINAL)
   ========================================= */
.pantalla-bienvenida { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: #0b2218; z-index: 10000; display: flex; justify-content: center; align-items: center; text-align: center; overflow: hidden; transition: opacity 0.8s ease, visibility 0.8s ease; }
.background-dinamico { position: absolute; width: 100%; height: 100%; top: 0; left: 0; pointer-events: none; }
.grid-overlay { position: absolute; width: 100%; height: 100%; background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 40px 40px; z-index: 1; }

.orbe { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.7; animation: moverOrbe 18s infinite alternate ease-in-out; }
.orbe-dorado { width: 450px; height: 450px; background-color: #d4af37; top: -100px; left: -100px; }
.orbe-azul { width: 550px; height: 550px; background-color: #00ff88; bottom: -150px; right: -100px; animation-delay: -7s; }
.orbe-rojo { width: 300px; height: 300px; background-color: #c0392b; top: 40%; left: 30%; filter: blur(100px); opacity: 0.4; animation: moverOrbeCentro 25s infinite alternate ease-in-out; }

@keyframes moverOrbe { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(35vw, 25vh) scale(1.4); } }
@keyframes moverOrbeCentro { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-20vw, -20vh) scale(1.2); } }

.panel-cristal { background: rgba(25, 66, 57, 0.2); backdrop-filter: blur(30px); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 24px; max-width: 90%; z-index: 10; padding: 50px 70px; }
.texto-oro { color: #ffd700; font-size: 3.2rem; font-family: 'Playfair Display', serif; font-style: italic; text-shadow: 0 4px 20px rgba(255, 215, 0, 0.5); }
.brillante { animation: resplandor 3s infinite alternate; }

.btn-gradiente-animado { background: linear-gradient(45deg, #194239, #008f51, #d4af37, #194239); background-size: 300% 300%; color: #ffffff; padding: 16px 40px; font-size: 1.2rem; font-weight: bold; border-radius: 50px; cursor: pointer; box-shadow: 0 10px 20px rgba(0,0,0,0.4); transition: transform 0.3s ease, box-shadow 0.3s ease; animation: moverGradiente 5s ease infinite; }
.btn-gradiente-animado:hover { transform: scale(1.08) translateY(-3px); box-shadow: 0 15px 30px rgba(0, 255, 136, 0.4); border-color: #00ff88; }
@keyframes moverGradiente { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.iconos-tecnicos { font-size: 4rem; margin: 20px 0; display: flex; justify-content: center; gap: 30px; }
.icono-flotante { display: inline-block; filter: drop-shadow(0 10px 10px rgba(0,0,0,0.5)); animation: flotarIcono 4s ease-in-out infinite; }
.delay-icono { animation-delay: 2s; } 
@keyframes resplandor { 0% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.4); } 100% { text-shadow: 0 0 35px rgba(255, 215, 0, 1), 0 0 15px white; } }
@keyframes flotarIcono { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-15px) rotate(5deg); } }
.levitacion { animation: flotarPanel 6s ease-in-out infinite; }
@keyframes flotarPanel { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.3d-entrada { animation: rotarEntrada 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes rotarEntrada { 0% { transform: perspective(1000px) rotateX(20deg) translateY(50px); opacity: 0; } 100% { transform: perspective(1000px) rotateX(0deg) translateY(0); opacity: 1; } }

.entrada-1, .entrada-2, .entrada-3, .entrada-4, .entrada-5 { opacity: 0; animation: subirFade 0.8s ease forwards; }
.entrada-1 { animation-delay: 0.4s; } .entrada-2 { animation-delay: 0.6s; } .entrada-3 { animation-delay: 0.8s; } .entrada-4 { animation-delay: 1.0s; } .entrada-5 { animation-delay: 1.2s; }
@keyframes subirFade { 0% { transform: translateY(20px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
.ocultar-pantalla { opacity: 0; visibility: hidden; transform: scale(1.1); }

/* =========================================
   16. LÍNEA DE TIEMPO VERTICAL (MODO CLARO)
   ========================================= */
.timeline-vertical { position: relative; max-width: 1000px; margin: 0 auto; padding: 20px 0; }
.timeline-item { padding: 10px 40px; position: relative; background: inherit; width: 50%; }
.timeline-item.izquierda { left: 0; } .timeline-item.derecha { left: 50%; }

.glass-timeline { padding: 25px; background: var(--white); border: 1px solid var(--border-light); border-radius: 15px; position: relative; box-shadow: 0 8px 20px rgba(0,0,0,0.04); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.glass-timeline:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 255, 136, 0.2); border-color: var(--neon); }

.anio-timeline { color: var(--neon); font-size: 2.2rem; margin-bottom: 5px; font-family: 'Playfair Display', serif; font-weight: bold; }
.glass-timeline h4 { color: var(--accent-gold); font-size: 1.3rem; margin-bottom: 10px; font-weight: bold; }
.glass-timeline p { color: #444444; font-size: 1rem; line-height: 1.6; }

.timeline-vertical::after { content: ''; position: absolute; width: 4px; background-color: var(--accent-gold); top: 0; left: 50%; transform: translateX(-50%); border-radius: 2px; height: 0; transition: height 2s ease-out; box-shadow: var(--gold-glow); }
.timeline-vertical.active::after { height: 100%; }

.timeline-item::after { content: ''; position: absolute; width: 20px; height: 20px; background-color: var(--neon); border: 4px solid var(--white); top: 20px; border-radius: 50%; z-index: 1; box-shadow: 0 0 10px rgba(0,0,0,0.1); opacity: 0; transform: scale(0); transition: all 0.5s ease 0.3s; }
.timeline-item.izquierda::after { right: -10px; } .timeline-item.derecha::after { left: -10px; }
.timeline-item.active::after { opacity: 1; transform: scale(1); }
.timeline-item:hover::after { transform: scale(1.3); background-color: var(--accent-gold); border-color: var(--white); box-shadow: var(--gold-glow); }

body.dark-mode .anio-timeline { color: #00ff88 !important; text-shadow: var(--glow-shadow); }
body.dark-mode .timeline-vertical::after { background-color: var(--accent-gold) !important; box-shadow: 0 0 10px rgba(212, 175, 55, 0.5) !important;}
body.dark-mode .timeline-item::after { background-color: #00ff88 !important; border-color: #001a38 !important; box-shadow: 0 0 15px rgba(0, 255, 136, 0.8) !important;}

/* =========================================
   17. PÁGINA DE INFRAESTRUCTURA (VITRINA GRID)
   ========================================= */
.galeria-vitrina { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, 250px); gap: 20px; max-width: 1000px; margin: 0 auto; }
.foto-item { position: relative; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.2); cursor: pointer; }
.foto-item.principal { grid-row: span 2; }
.foto-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }

.foto-overlay { position: absolute; bottom: -100px; left: 0; width: 100%; background: linear-gradient(transparent, rgba(0, 26, 56, 0.9)); padding: 20px; color: white; transition: bottom 0.4s ease; }
.foto-overlay h3 { color: var(--neon); margin-bottom: 5px; font-size: 1.3rem; }
.foto-item:hover img { transform: scale(1.1); }
.foto-item:hover .foto-overlay { bottom: 0; }

.tarjeta-infra { background: var(--white); border-radius: 15px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,0.04); transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid var(--border-light); }
.tarjeta-infra:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 123, 255, 0.15); border-color: var(--accent-blue); } 
.infra-img-box { width: 100%; height: 200px; overflow: hidden; }
.infra-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tarjeta-infra:hover .infra-img-box img { transform: scale(1.1) rotate(2deg); }
.infra-info { padding: 25px; text-align: center; }
.infra-info h3 { color: var(--accent-blue); margin-bottom: 10px; } 

@media screen and (max-width: 768px) {
    .galeria-vitrina { grid-template-columns: 1fr; grid-template-rows: auto; }
    .foto-item.principal { grid-row: auto; height: 300px; }
    .foto-item.secundaria { height: 200px; }
    .foto-overlay { bottom: 0; background: linear-gradient(transparent, rgba(0, 26, 56, 1)); }
}

/* =========================================
   18. PARCHE MODO OSCURO (INFRAESTRUCTURA)
   ========================================= */
body.dark-mode section#campus { background-color: #0d1117 !important; }
body.dark-mode section#tecnologia p { color: #a3b3bc !important; }
body.dark-mode .infra-info h3 { color: #ffffff !important; }
body.dark-mode .infra-info p { color: #a3b3bc !important; }
body.dark-mode .foto-overlay { background: linear-gradient(transparent, rgba(13, 17, 23, 0.95)) !important; }

/* =========================================
   19. ESTADÍSTICAS Y SERVICIOS 
   ========================================= */
.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; text-align: center; color: white; }
.stat-item { padding: 15px; }
.stat-item:nth-child(1) .stat-icon { color: var(--white); }
.stat-item:nth-child(2) .stat-icon { color: var(--neon); }
.stat-item:nth-child(3) .stat-icon { color: var(--accent-gold); }
.stat-item:nth-child(4) .stat-icon { color: var(--accent-blue); }

.contador { font-size: 3.8rem; color: var(--white); font-weight: bold; margin-bottom: 5px; font-family: 'Playfair Display', serif; text-shadow: 0 2px 10px rgba(0,0,0,0.3);}
.stat-item p { font-size: 1rem; color: #a8bada; text-transform: uppercase; letter-spacing: 1px;}

.grid-servicios { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.servicio-card { display: flex; align-items: center; background: var(--white); padding: 20px; border-radius: 12px; border: 1px solid var(--border-light); box-shadow: 0 8px 20px rgba(0,0,0,0.04); transition: transform 0.3s ease; }
.servicio-card:nth-child(1):hover { transform: translateX(10px); border-left: 4px solid var(--accent-purple); box-shadow: var(--purple-glow); }
.servicio-card:nth-child(2):hover { transform: translateX(10px); border-left: 4px solid var(--accent-gold); box-shadow: var(--gold-glow); }
.servicio-card:nth-child(3):hover { transform: translateX(10px); border-left: 4px solid var(--accent-blue); box-shadow: var(--blue-glow); }

.icon-serv { font-size: 2.5rem; margin-right: 20px; background: rgba(25, 66, 57, 0.05); padding: 15px; border-radius: 50%; color: var(--primary); }
.servicio-card:hover .icon-serv { background: rgba(0, 255, 136, 0.1); color: var(--neon); }

body.dark-mode .servicio-card { background: rgba(30, 35, 40, 0.5) !important; border-color: rgba(255,255,255,0.05) !important;}
body.dark-mode .servicio-card h4 { color: white !important;}
body.dark-mode .servicio-card p { color: #a3b3bc !important;}
body.dark-mode .banner-seguridad { background: rgba(30, 35, 40, 0.8) !important; border-left-color: var(--neon) !important; color: white;}
body.dark-mode .map-overlay { background: rgba(0,0,0,0.6) !important; }

/* =========================================
   20. MAPA COMPACTO (SPLIT CARD - INICIO)
   ========================================= */
.mapa-compacto-container { display: flex; flex-wrap: wrap; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.1); background: var(--primary); border: 1px solid var(--border-light); }
.mapa-info { flex: 1; min-width: 300px; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.mapa-info h3 { color: var(--accent-gold) !important; margin-bottom: 15px; font-size: 1.6rem; text-shadow: var(--gold-glow);}
.mapa-frame { flex: 1.5; min-width: 300px; min-height: 350px; position: relative; }

body.dark-mode section#ubicacion { background-color: #0a0e14 !important; }
body.dark-mode .mapa-compacto-container { border-color: var(--neon); box-shadow: 0 10px 30px rgba(0, 255, 136, 0.15); }

/* =========================================
   22. MAQUETA CASA ABIERTA (FULL ANIMACIONES PREMIUM)
   ========================================= */
.maqueta-premium {
    position: relative; background: var(--white); border-radius: 20px; padding: 3px; 
    overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.1); 
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); max-width: 950px; margin: 0 auto; z-index: 1;
}

.maqueta-premium:hover {
    transform: translateY(-15px) rotateX(3deg) rotateY(-3deg) scale(1.02);
    box-shadow: 0 30px 60px rgba(25, 66, 57, 0.2); 
}

.maqueta-premium::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(transparent, transparent, transparent, var(--neon), var(--accent-gold), var(--accent-purple));
    animation: rotarBordeRight 4s linear infinite; z-index: -1;
}

.maqueta-premium::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(transparent, transparent, transparent, var(--accent-blue), var(--neon), var(--accent-purple));
    animation: rotarBordeLeft 6s linear infinite; animation-delay: -2s; z-index: -1;
}

@keyframes rotarBordeRight { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes rotarBordeLeft { 0% { transform: rotate(0deg); } 100% { transform: rotate(-360deg); } }

.maqueta-content {
    background: var(--white); border-radius: 17px; padding: 50px 40px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; position: relative; z-index: 2;
}

.maqueta-badge {
    position: absolute; top: -15px; left: 30px; background: linear-gradient(45deg, var(--accent-gold), #ffdf00); color: #000;
    padding: 8px 25px; border-radius: 30px; font-weight: bold; font-size: 0.95rem;
    box-shadow: var(--gold-glow); animation: pulsoOro 2s infinite alternate ease-in-out; z-index: 10;
}

@keyframes pulsoOro {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(212, 175, 55, 0.5); }
    100% { transform: scale(1.08); box-shadow: 0 0 30px rgba(212, 175, 55, 0.9); }
}

.maqueta-visual {
    flex: 1; min-width: 250px; height: 300px; background: var(--white);
    border: 2px dashed rgba(25, 66, 57, 0.3); box-shadow: inset 0 0 30px rgba(25, 66, 57, 0.05); 
    border-radius: 15px; display: flex; justify-content: center; align-items: center; 
    position: relative; overflow: hidden;
}

.icono-3d {
    font-size: 7rem; filter: drop-shadow(0 15px 15px rgba(0,0,0,0.15)); 
    animation: levitacionProyecto 3s ease-in-out infinite; z-index: 2;
}

@keyframes levitacionProyecto {
    0%, 100% { transform: translateY(0px) rotate(0deg); filter: drop-shadow(0 15px 15px rgba(0,0,0,0.15)); }
    50% { transform: translateY(-18px) rotate(3deg); filter: drop-shadow(0 25px 25px rgba(25, 66, 57, 0.2)); }
}

.energy-pulse { position: absolute; border-radius: 50%; background: var(--primary-light); opacity: 0; }
.pulse-1 { width: 100px; height: 100px; animation: sonarPulse 3s infinite; }
.pulse-2 { width: 100px; height: 100px; animation: sonarPulse 3s infinite 1s; }

@keyframes sonarPulse { 0% { transform: scale(0.6); opacity: 0.3; } 100% { transform: scale(2.8); opacity: 0; } }

.img-proyecto-fit { width: 90%; height: 90%; object-fit: contain; border-radius: 10px; animation: levitacionProyecto 3s ease-in-out infinite; }

.maqueta-info { flex: 2; min-width: 300px; }
.maqueta-info h3 { color: var(--primary); font-size: 2.3rem; margin-bottom: 10px; font-weight: 700; }
.desc-placeholder { color: #555; line-height: 1.8; margin-bottom: 25px; font-size: 0.95rem; }

.maqueta-tech { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.maqueta-tech span {
    background: rgba(25, 66, 57, 0.05); color: var(--primary); 
    padding: 7px 16px; border-radius: 8px; font-size: 0.85rem; font-weight: bold;
    border: 1px solid rgba(25, 66, 57, 0.2); transition: all 0.3s ease;
}
.maqueta-tech span:hover { background: var(--primary); color: var(--white); transform: translateY(-5px) scale(1.1); box-shadow: 0 10px 20px rgba(25, 66, 57, 0.2); }

.maqueta-links { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-demo-live {
    background: linear-gradient(45deg, var(--accent-blue), var(--neon), var(--accent-purple), var(--accent-blue)); background-size: 300% 300%;
    color: var(--white); padding: 14px 28px; border-radius: 30px; font-weight: bold; text-decoration: none; transition: 0.3s ease;
    animation: moverGradienteContinuo 4s linear infinite; box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}
.btn-demo-live:hover { transform: scale(1.08) translateY(-3px); box-shadow: 0 10px 20px rgba(0, 123, 255, 0.4); color: var(--white); }
@keyframes moverGradienteContinuo { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }

.btn-repo-code { background: transparent; color: var(--primary); border: 2px solid var(--primary); padding: 14px 28px; border-radius: 30px; font-weight: bold; text-decoration: none; transition: all 0.3s ease; }
.btn-repo-code:hover { background: var(--primary); color: var(--white); transform: scale(1.08) translateY(-3px); box-shadow: 0 10px 20px rgba(25, 66, 57, 0.2); }

.animate-item-1, .animate-item-2, .animate-item-3, .animate-item-4, .animate-item-5, .animate-item-6 { opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.maqueta-premium.reveal.active .animate-item-1 { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.maqueta-premium.reveal.active .animate-item-2 { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.maqueta-premium.reveal.active .animate-item-3 { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
.maqueta-premium.reveal.active .animate-item-4 { opacity: 1; transform: translateY(0); transition-delay: 0.65s; }
.maqueta-premium.reveal.active .animate-item-5 { opacity: 1; transform: translateY(0); transition-delay: 0.8s; }
.maqueta-premium.reveal.active .animate-item-6 { opacity: 1; transform: translateY(0); transition-delay: 0.95s; }

@media screen and (max-width: 768px) {
    .maqueta-premium { width: 95%; margin: 0 auto; }
    .maqueta-content { padding: 40px 20px; text-align: center; }
    .maqueta-badge { left: 10px; font-size: 0.8rem; padding: 6px 20px; }
    .maqueta-visual { min-width: 100%; height: 250px; margin-bottom: 20px; }
    .icono-3d { font-size: 5rem; }
    .maqueta-info h3 { font-size: 1.8rem; }
    .maqueta-tech { justify-content: center; }
    .maqueta-links { justify-content: center; gap: 10px; }
    .btn-demo-live, .btn-repo-code { padding: 12px 20px; font-size: 0.9rem; width: 100%; }
}
/* =========================================
   23. MAQUETA CASA ABIERTA (PREMIUM)
   ========================================= */
.maqueta-premium { position: relative; background: var(--white); border-radius: 20px; padding: 3px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.1); transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); max-width: 950px; margin: 0 auto; z-index: 1; }
.maqueta-premium:hover { transform: translateY(-15px) rotateX(3deg) rotateY(-3deg) scale(1.02); box-shadow: 0 30px 60px rgba(25, 66, 57, 0.2); }
.maqueta-premium::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(transparent, transparent, transparent, var(--neon), var(--accent-gold), var(--accent-purple)); animation: rotarBordeRight 4s linear infinite; z-index: -1; }
.maqueta-premium::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(transparent, transparent, transparent, var(--accent-blue), var(--neon), var(--accent-purple)); animation: rotarBordeLeft 6s linear infinite; animation-delay: -2s; z-index: -1; }
@keyframes rotarBordeRight { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes rotarBordeLeft { 0% { transform: rotate(0deg); } 100% { transform: rotate(-360deg); } }
.maqueta-content { background: var(--white); border-radius: 17px; padding: 50px 40px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; position: relative; z-index: 2; }
.maqueta-badge { position: absolute; top: -15px; left: 30px; background: linear-gradient(45deg, var(--accent-gold), #ffdf00); color: #000; padding: 8px 25px; border-radius: 30px; font-weight: bold; font-size: 0.95rem; box-shadow: var(--gold-glow); animation: pulsoOro 2s infinite alternate ease-in-out; z-index: 10; }
@keyframes pulsoOro { 0% { transform: scale(1); box-shadow: 0 0 10px rgba(212, 175, 55, 0.5); } 100% { transform: scale(1.08); box-shadow: 0 0 30px rgba(212, 175, 55, 0.9); } }
.maqueta-visual { flex: 1; min-width: 250px; height: 300px; background: var(--white); border: 2px dashed rgba(25, 66, 57, 0.3); box-shadow: inset 0 0 30px rgba(25, 66, 57, 0.05); border-radius: 15px; display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden; }
.icono-3d { font-size: 7rem; filter: drop-shadow(0 15px 15px rgba(0,0,0,0.15)); animation: levitacionProyecto 3s ease-in-out infinite; z-index: 2; }
@keyframes levitacionProyecto { 0%, 100% { transform: translateY(0px) rotate(0deg); filter: drop-shadow(0 15px 15px rgba(0,0,0,0.15)); } 50% { transform: translateY(-18px) rotate(3deg); filter: drop-shadow(0 25px 25px rgba(25, 66, 57, 0.2)); } }
.energy-pulse { position: absolute; border-radius: 50%; background: var(--primary-light); opacity: 0; }
.pulse-1 { width: 100px; height: 100px; animation: sonarPulse 3s infinite; }
.pulse-2 { width: 100px; height: 100px; animation: sonarPulse 3s infinite 1s; }
@keyframes sonarPulse { 0% { transform: scale(0.6); opacity: 0.3; } 100% { transform: scale(2.8); opacity: 0; } }
.img-proyecto-fit { width: 90%; height: 90%; object-fit: contain; border-radius: 10px; animation: levitacionProyecto 3s ease-in-out infinite; }
.maqueta-info { flex: 2; min-width: 300px; }
.maqueta-info h3 { color: var(--primary); font-size: 2.3rem; margin-bottom: 10px; font-weight: 700; }
.desc-placeholder { color: #555; line-height: 1.8; margin-bottom: 25px; font-size: 0.95rem; }
.maqueta-tech { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.maqueta-tech span { background: rgba(25, 66, 57, 0.05); color: var(--primary); padding: 7px 16px; border-radius: 8px; font-size: 0.85rem; font-weight: bold; border: 1px solid rgba(25, 66, 57, 0.2); transition: all 0.3s ease; }
.maqueta-tech span:hover { background: var(--primary); color: var(--white); transform: translateY(-5px) scale(1.1); box-shadow: 0 10px 20px rgba(25, 66, 57, 0.2); }
.maqueta-links { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-demo-live { background: linear-gradient(45deg, var(--accent-blue), var(--neon), var(--accent-purple), var(--accent-blue)); background-size: 300% 300%; color: var(--white); padding: 14px 28px; border-radius: 30px; font-weight: bold; text-decoration: none; transition: 0.3s ease; animation: moverGradienteContinuo 4s linear infinite; box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2); }
.btn-demo-live:hover { transform: scale(1.08) translateY(-3px); box-shadow: 0 10px 20px rgba(0, 123, 255, 0.4); color: var(--white); }
@keyframes moverGradienteContinuo { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
.btn-repo-code { background: transparent; color: var(--primary); border: 2px solid var(--primary); padding: 14px 28px; border-radius: 30px; font-weight: bold; text-decoration: none; transition: all 0.3s ease; }
.btn-repo-code:hover { background: var(--primary); color: var(--white); transform: scale(1.08) translateY(-3px); box-shadow: 0 10px 20px rgba(25, 66, 57, 0.2); }
.animate-item-1, .animate-item-2, .animate-item-3, .animate-item-4, .animate-item-5, .animate-item-6 { opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.maqueta-premium.reveal.active .animate-item-1 { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.maqueta-premium.reveal.active .animate-item-2 { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.maqueta-premium.reveal.active .animate-item-3 { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
.maqueta-premium.reveal.active .animate-item-4 { opacity: 1; transform: translateY(0); transition-delay: 0.65s; }
.maqueta-premium.reveal.active .animate-item-5 { opacity: 1; transform: translateY(0); transition-delay: 0.8s; }
.maqueta-premium.reveal.active .animate-item-6 { opacity: 1; transform: translateY(0); transition-delay: 0.95s; }

/* ========================================================
   MODO OSCURO (BLINDADO)
   ======================================================== */
body.dark-mode .maqueta-premium { background: #0a0e14 !important; box-shadow: 0 15px 35px rgba(0,0,0,0.5) !important; }
body.dark-mode .maqueta-premium:hover { box-shadow: 0 30px 60px rgba(0, 255, 136, 0.2) !important; }
body.dark-mode .maqueta-content { background: #0d1117 !important; border: 1px solid rgba(255,255,255,0.03) !important; }
body.dark-mode .maqueta-info h3 { color: var(--white) !important; }
body.dark-mode .desc-placeholder { color: #a3b3bc !important; }

body.dark-mode .maqueta-visual { background: rgba(0,0,0,0.3) !important; border-color: rgba(255,255,255,0.05) !important; box-shadow: inset 0 0 30px rgba(0,0,0,0.5) !important;}
body.dark-mode .energy-pulse { background: var(--neon) !important; }

body.dark-mode .maqueta-tech span { background: #111111 !important; color: var(--neon) !important; border-color: rgba(0,255,136,0.3) !important; }
body.dark-mode .maqueta-tech span:hover { background: var(--neon) !important; color: #111111 !important; box-shadow: var(--glow-shadow) !important; }

body.dark-mode .btn-repo-code { color: var(--neon) !important; border-color: var(--neon) !important; }
body.dark-mode .btn-repo-code:hover { background: var(--neon) !important; color: #111111 !important; box-shadow: var(--glow-shadow) !important; }
/* =========================================
   ESTILOS CONTENEDOR IMAGEN PREMIUM (GLASS)
   ========================================= */
.glass-image-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    transition: all 0.4s ease-out;
    cursor: pointer;
}

.glass-image-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(25, 66, 57, 0.15);
    border-color: var(--neon);
}

/* Barra Superior */
.glass-image-header {
    background: var(--primary);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.icon-sport { font-size: 1.2rem; }
.glass-image-header p { font-size: 0.8rem; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; }

/* Marco de la Imagen Blindado */
.glass-image-frame {
    width: 100%;
    max-height: 450px; /* Altura máxima para no romper el diseño */
    overflow: hidden;
    background-color: #ddd; /* Color de carga */
}

.img-clasificados {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen llene el espacio sin deformarse */
    transition: transform 0.6s ease;
}

.glass-image-container:hover .img-clasificados {
    transform: scale(1.05); /* Efecto de zoom suave */
}

/* Barra Inferior (Footer) */
.glass-image-footer {
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
}

.footer-info h4 { color: var(--primary); font-weight: 700; font-size: 1.2rem; }
.footer-info p { color: #666; font-size: 0.9rem; margin-top: 3px; }

.tag-status {
    background: rgba(0, 255, 136, 0.15);
    color: var(--primary);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* MODO OSCURO (GLASS DARK) */
body.dark-mode .glass-image-container {
    background: rgba(30, 35, 40, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

body.dark-mode .glass-image-container:hover { border-color: var(--neon); box-shadow: 0 15px 35px rgba(0, 255, 136, 0.2); }
body.dark-mode .glass-image-footer { background: rgba(20, 25, 30, 0.9); border-top-color: rgba(255,255,255,0.05); }
body.dark-mode .footer-info h4 { color: white; }
body.dark-mode .footer-info p { color: #a3b3bc; }
body.dark-mode .glass-image-frame { background-color: #222; }
body.dark-mode .tag-status { background: rgba(0, 255, 136, 0.1); color: var(--neon); }
/* Estilo del Modal de Imagen */
.modal-imagen-overlay {
    display: none;
    position: fixed;
    z-index: 11000; /* Por encima de todo */
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    cursor: zoom-out;
    animation: fadeIn 0.4s ease;
}

.modal-img-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1000px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.modal-img-content img {
    width: 100%;
    border: 3px solid var(--neon);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

.cerrar-view {
    position: absolute;
    top: 20px; right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Efecto sobre la miniatura */
.overlay-click {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(25, 66, 57, 0.4);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: 0.3s;
}

.glass-image-container:hover .overlay-click {
    opacity: 1;
}

.overlay-click span { color: white; font-weight: bold; border: 1px solid white; padding: 5px 15px; border-radius: 20px; }
.modal-img-content img {
    transition: transform 0.2s ease-out; /* Movimiento suave del zoom */
    cursor: grab; /* Indica que se puede interactuar */
}

.modal-img-content img:active {
    cursor: grabbing;
}
/* Estilos para las tarjetas de novedades */
.card-novedad {
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    position: relative;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-novedad:hover {
    transform: translateY(-10px);
    border-color: var(--neon);
    box-shadow: var(--glow-shadow);
}

.fecha-tag {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--primary);
    color: var(--neon);
    padding: 5px 15px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid var(--neon);
}

.card-icon { font-size: 2.5rem; margin-bottom: 10px; }

.ubicacion-tag, .hora-tag, .tag-tech {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: auto;
    background: rgba(0, 255, 136, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

/* Resalte para el evento actual (Tu Casa Abierta) */
.destacada-animada {
    border: 2px solid var(--neon);
    background: rgba(0, 255, 136, 0.02);
}

.badge-vivo {
    color: #ff4d4d;
    font-weight: bold;
    font-size: 0.7rem;
    animation: parpadeo 1.5s infinite;
}

@keyframes parpadeo { 50% { opacity: 0.3; } }

/* MODO OSCURO */
body.dark-mode .card-novedad {
    background: rgba(30, 35, 40, 0.5);
    border-color: rgba(255, 255, 255, 0.05);
}
body.dark-mode .card-novedad h3 { color: white; }
body.dark-mode .card-novedad p { color: #a3b3bc; }