    /* =========================================================
       RESETEO GLOBAL PARA MÓVILES (Eliminar mancha azul al tocar)
       ========================================================= */
    *, *::before, *::after {
        -webkit-tap-highlight-color: transparent !important;
    }
    a:active, button:active, div:active, span:active, li:active {
        outline: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    /* Anillo de foco solo para quien navega con teclado (con ratón o táctil no aparece) */
    *:focus-visible {
        outline: 2px solid #00ffc3 !important;
        outline-offset: 3px;
    }

    /* =========================================================
       CSS CENTRALIZADO DEL MENÚ (Para todas las páginas)
       ========================================================= */
    .navbar {
        top: 0; left: 0; width: 100%; padding: 0 4%; 
        display: flex; align-items: center; justify-content: space-between;
        background: linear-gradient(to bottom, rgba(10,16,20,0.9) 0%, transparent 100%);
        transition: 0.4s; border-bottom: 1px solid transparent;
        opacity: 0; animation: navLoad 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        z-index: 1000;
    }

    /* Diferencias de posición según la página */
    .navbar.nav-absolute { position: absolute; height: 90px; }
    .navbar.nav-fixed { position: fixed; height: 90px; }
    .navbar.nav-project { 
        position: fixed; height: 90px; 
        background: linear-gradient(to bottom, rgba(10,16,20,0.95) 0%, rgba(10,16,20,0.8) 60%, transparent 100%); 
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    /* Estado Scrolled (Al bajar la página) */
    .navbar.scrolled { background: rgba(10,16,20,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.1); height: 70px; }
    .navbar.nav-project.scrolled { height: 70px; background: rgba(10,16,20,0.98); }

    @keyframes navLoad { 0% { opacity: 0; transform: translateY(-20px); } 100% { opacity: 1; transform: translateY(0); } }
    
    /* LOGO */
    .nav-logo { min-width: 0; flex-shrink: 1; }
    .nav-logo img { 
        height: 40px; width: auto; max-width: 100%; opacity: 0; 
        animation: logoReveal 2s cubic-bezier(0.16, 1, 0.3, 1) forwards, navLogoPulse 4s infinite alternate 2s; 
        transition: height 0.4s ease, transform 0.3s, filter 0.3s; 
    }
    .navbar.scrolled .nav-logo img { height: 36px; }
    
    /* Logo específico para project.php */
    .navbar.nav-project .nav-logo img { height: 40px; filter: drop-shadow(0 0 5px var(--lifestream)); opacity: 1; animation: none; }
    .navbar.nav-project .nav-logo:hover img { transform: scale(1.05); filter: drop-shadow(0 0 10px var(--lifestream)); }

    @keyframes logoReveal { 0% { opacity: 0; transform: scale(1.4) translateY(-15px); filter: blur(12px); } 100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0) drop-shadow(0 0 5px rgba(0, 255, 195, 0.2)); } }
    @keyframes navLogoPulse { 0% { filter: drop-shadow(0 0 5px rgba(0, 255, 195, 0.2)); } 100% { filter: drop-shadow(0 0 15px rgba(0, 255, 195, 0.6)); } }

    /* MENÚ ESTÁNDAR Y CASCADA (ESCRITORIO) */
    .nav-menu { display: flex; gap: clamp(18px, 4.6vw - 28px, 40px); list-style: none; margin: 0; padding: 0; }
    .nav-menu li { opacity: 0; animation: menuItemReveal 0.8s ease forwards; }
    .nav-menu li:nth-child(1) { animation-delay: 0.3s; }
    .nav-menu li:nth-child(2) { animation-delay: 0.4s; }
    .nav-menu li:nth-child(3) { animation-delay: 0.5s; }
    .nav-menu li:nth-child(4) { animation-delay: 0.6s; }
    .nav-menu li:nth-child(5) { animation-delay: 0.7s; }
    .nav-menu li:nth-child(6) { animation-delay: 0.8s; }
    .nav-menu li:nth-child(7) { animation-delay: 0.9s; }
    @keyframes menuItemReveal { 0% { opacity: 0; transform: translateY(-10px); filter: blur(4px); } 100% { opacity: 1; transform: translateY(0); filter: blur(0); } }

    .nav-link { text-decoration: none; color: #e0e0e0; font-size: 0.9rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; position: relative; transition: color 0.3s ease; padding-bottom: 5px; font-family: var(--font-main); }
    .nav-link::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background-color: var(--lifestream); transition: all 0.3s ease; transform: translateX(-50%); }
    .nav-link:hover, .nav-link.active { color: var(--lifestream); text-shadow: 0 0 8px rgba(0, 255, 195, 0.4); }
    .nav-link:hover::after, .nav-link.active::after { width: 100%; }
    
    .mobile-menu-toggle { display: none; color: white; font-size: 1.8rem; cursor: pointer; }
    .desktop-spacer { width: 30px; }

    /* MENÚ ESPECÍFICO DE PROJECT.PHP */
    .nav-actions { display: flex; align-items: center; gap: 25px; }
    .nav-action-link { text-decoration: none; color: #aaa; font-family: var(--font-main); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; transition: all 0.3s ease; padding: 8px 0; position: relative; }
    .nav-action-link i { font-size: 0.9rem; transition: transform 0.3s; }
    .nav-action-link:hover { color: white; }
    .nav-action-link:hover i.fa-arrow-left { transform: translateX(-3px); color: var(--lifestream); }
    .nav-action-link.catalog { color: var(--ui-gold); opacity: 0.9; }
    .nav-action-link.catalog:hover { color: #fff; text-shadow: 0 0 10px var(--ui-gold); opacity: 1; }
    .nav-action-link.catalog:hover i { filter: drop-shadow(0 0 5px var(--ui-gold)); }
    .nav-action-link.catalog:hover i { transform: rotate(90deg); }
    .nav-separator { width: 1px; height: 20px; background: rgba(255,255,255,0.15); transform: skewX(-15deg); }

    /* RESPONSIVE MÓVIL */
    @media (max-width: 1024px) {
        .nav-menu { 
            position: fixed; top: 0; right: -105%; width: 80%; max-width: 300px; height: 100vh; 
            background: rgba(10,16,20,0.98); backdrop-filter: blur(15px); flex-direction: column; 
            justify-content: center; align-items: center; gap: 30px; transition: 0.4s ease; 
            z-index: 1001; box-shadow: -5px 0 20px rgba(0,0,0,0.5); padding: 0; 
        }
        .nav-menu.active { right: 0; }
        
        /* Magia: Cascada al abrir el menú móvil */
        .nav-menu li { animation: none !important; opacity: 0; transform: translateY(20px); transition: all 0.4s ease; filter: none; }
        .nav-menu.active li { opacity: 1; transform: translateY(0); }
        .nav-menu.active li:nth-child(1) { transition-delay: 0.2s; }
        .nav-menu.active li:nth-child(2) { transition-delay: 0.3s; }
        .nav-menu.active li:nth-child(3) { transition-delay: 0.4s; }
        .nav-menu.active li:nth-child(4) { transition-delay: 0.5s; }
        .nav-menu.active li:nth-child(5) { transition-delay: 0.6s; }
        .nav-menu.active li:nth-child(6) { transition-delay: 0.7s; }
        
        .mobile-menu-toggle { display: block; z-index: 1002; position: relative; margin-right: 5px; }
        .desktop-spacer { display: none; }
        .navbar { padding: 0 20px; }
        .nav-logo img { height: clamp(28px, 8.5vw, 40px) !important; } 
        .navbar.scrolled .nav-logo img { height: clamp(26px, 7.8vw, 36px) !important; } 
    }
    @media (max-width: 600px) {
        .nav-text { display: none; } 
        .nav-action-link i { font-size: 1.4rem; padding: 10px; } 
        .navbar.nav-project { height: 70px; padding: 0 20px; }
        .nav-separator { display: none; }
        .nav-actions { gap: 10px; }
    }

    /* =========================================================
       CSS CENTRALIZADO DEL FOOTER (Para todas las páginas)
       ========================================================= */
    .site-footer {
        padding: 80px 6% 40px;
        background: linear-gradient(to bottom, var(--bg-deep) 0%, #050505 100%);
        text-align: center;
        position: relative;
        z-index: 10;
        margin-top: auto; /* Ayuda a empujar el footer abajo si la página es corta */
    }

    /* === LÍNEA DE ENERGÍA MAKO === */
    .mako-line {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 2px; /* Grosor de la línea base */
        background: rgba(0, 255, 195, 0.1); /* Rastro sutil de energía apagada */
        overflow: hidden;
    }

    .mako-line::before {
        content: '';
        position: absolute;
        top: 0;
        left: -50%;
        width: 50%; /* Longitud del rayo de energía */
        height: 100%;
        /* Degradado: Transparente -> Verde Mako -> Núcleo Blanco -> Verde Mako -> Transparente */
        background: linear-gradient(90deg, transparent, rgba(0, 255, 195, 0.8), #ffffff, rgba(0, 255, 195, 0.8), transparent);
        box-shadow: 0 0 15px var(--lifestream), 0 0 30px var(--lifestream);
        animation: makoFlow 3.5s linear infinite; /* Velocidad y bucle infinito */
    }

    @keyframes makoFlow {
        0% { left: -50%; }
        100% { left: 150%; }
    }
    
    .footer-content {
        max-width: 1000px;
        margin: 0 auto;
    }
    
    .footer-logo {
        height: 60px;
        width: auto;
        max-width: 100%; /* Blindaje para que nunca se salga de la pantalla */
        margin-bottom: 30px;
        filter: drop-shadow(0 0 10px rgba(0,255,195,0.2));
    }
    
    .footer-title {
        font-family: var(--font-main);
        font-size: 1.5rem;
        color: var(--lifestream);
        margin-bottom: 20px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .footer-social {
        margin: 25px 0 35px;
    }
    
    .footer-social a {
        color: #aaa;
        font-size: 1.6rem;
        margin: 0 15px;
        text-decoration: none;
        transition: all 0.3s ease;
        display: inline-block;
    }
    
    .footer-social a:hover {
        color: var(--lifestream);
        transform: translateY(-4px) scale(1.1);
        filter: drop-shadow(0 0 8px rgba(0, 255, 195, 0.4));
    }
    
    .footer-text {
        color: #666;
        font-size: 0.95rem;
        line-height: 1.6;
        max-width: 700px;
        margin: 0 auto 20px;
    }
    
    .footer-legal {
        margin-top: 20px;
    }
    
    .footer-legal a {
        color: #666;
        text-decoration: none;
        font-size: 0.85rem;
        margin: 0 15px;
        transition: color 0.3s ease;
    }
    
    .footer-legal a:hover {
        color: var(--lifestream);
    }

    /* =========================================================
       RESPONSIVE MÓVIL FOOTER
       ========================================================= */
    @media (max-width: 768px) {
        .site-footer {
            padding: 50px 5% 30px;
        }
        .footer-logo {
            height: auto;
            max-width: 80%; /* En móvil, el logo se adapta al ancho de la pantalla */
            margin-bottom: 20px;
        }
        .footer-title {
            font-size: 1.2rem;
            margin-bottom: 15px;
            line-height: 1.3;
        }
        .footer-social a {
            margin: 0 12px;
            font-size: 1.4rem;
        }
        .footer-text {
            font-size: 0.85rem;
            margin-bottom: 20px;
        }
        .footer-legal a {
            display: block;
            margin: 10px 0;
        }
    }

/* ===== Solo móviles y tablets (pantalla táctil): animaciones más ligeras. En ordenador todo queda como siempre. =====
   Sin desenfoque animado ni brillos que latan con filtros (obligan a repintar sin parar y en un móvil lento se nota). */
@media (pointer: coarse) {
    .nav-logo img { filter: drop-shadow(0 0 9px rgba(0, 255, 195, 0.4)); animation: logoRevealMovil 2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
    @keyframes logoRevealMovil { 0% { opacity: 0; transform: scale(1.4) translateY(-15px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
}
