/*
  ╔══════════════════════════════════════════════════════════════════════════╗
  ║  SISTEMA DE DISEÑO DE MUSEOS TAPI — HOJA DE ESTILOS PRINCIPAL            ║
  ║  Archivo     : public/css/main.css                                       ║
  ║  Dependencias: Google Fonts (Public Sans, Noto Sans, Share Tech Mono),  ║
  ║                Material Symbols Outlined.                                ║
  ║  Versión     : v3.1.0 (Junio 2026)                                       ║
  ╚══════════════════════════════════════════════════════════════════════════╝
*/

/* ═══════════════════════════════════════════════════════════
   ★  ÍNDICE DE FUNCIONAMIENTO  ★
   1. IMPORTACIONES Y FUENTES ........ Configuración de tipografías.
   2. VARIABLES Y ESTILOS BASE ....... Propiedades globales del body/html.
   3. TRANSICIÓN DE TEMAS ............ Animaciones del tema claro y oscuro.
   4. BARRA DE PROGRESO DE SCROLL .... Progreso horizontal superior.
   5. UTILIDADES Y ESTILOS RÁPIDOS ... Gradientes, sombras y animaciones base.
   6. CABECERA GLOBAL (TOPBAR) ....... Estilos de la barra de navegación superior.
   7. MENÚ LATERAL (SIDEBAR) ......... Estilos de menú colapsable izquierdo/derecho.
   8. PIE DE PÁGINA (FOOTERS) ........ Efectos de fusión y fondos dinámicos.
   9. INTERRUPTOR DE TEMA PREMIUM ... Animaciones de sol, luna y nubes.
   10. ICONOS SOCIALES PREMIUM ....... Animación interactiva en redes.
   11. MENÚ HAMBURGUESA PREMIUM ...... Efecto hover en icono de tres líneas.
   12. SECCIÓN DE VIDEO Y HUD ........ Estilos de reproductor y brillo HUD.
   ═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────
   1. IMPORTACIONES Y FUENTES — Tipografías y símbolos
   ───────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;400;500;600;700;800;900&family=Noto+Sans:wght@300;400;500;600;700&family=Share+Tech+Mono&family=Black+Ops+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');


/* ─────────────────────────────────────────────────────
   2. VARIABLES Y ESTILOS BASE — Configuración global
   ───────────────────────────────────────────────────── */
body {
    font-family: "Public Sans", "Noto Sans", sans-serif;
    --h-height: 70px;
}


.sector-number {
    font-family: 'Black Ops One', cursive;
    font-weight: 400;
    color: rgba(30, 58, 138, 0.08);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.02em;
    z-index: 0;
    font-size: 9rem;
}

@media (min-width: 768px) {
    .sector-number {
        font-size: 18rem;
    }
}

.dark .sector-number {
    color: rgba(255, 255, 255, 0.05);
}


@media (max-width: 767px) {
    body {
        --h-height: 110px;
    }
}

/* ─────────────────────────────────────────────────────
   3. TRANSICIÓN DE TEMAS — Animaciones del tema claro y oscuro
   ───────────────────────────────────────────────────── */
:root {
    view-transition-name: root;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.5s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Transiciones de respaldo cuando View Transitions API no está disponible */
.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *:before,
.theme-transitioning *:after {
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ─────────────────────────────────────────────────────
   4. BARRA DE PROGRESO DE SCROLL — Progreso horizontal y barras de desplazamiento
   ───────────────────────────────────────────────────── */
/* [*] NOTA: Ocultar Barra de Desplazamiento por Defecto */
html,
body {
    scrollbar-width: none;
    /* Firefox */
    scroll-padding-top: var(--h-height);
    overflow-x: hidden;
    max-width: 100%;
}

::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Edge */
}

/* Barra de Progreso de Desplazamiento Horizontal */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 9999;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #d373ff, #a067bb, #eeccfd);
    background-size: 200% 100%;
    animation: dynamicFusion 3s linear infinite;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
    transition: width 0.1s ease-out;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ─────────────────────────────────────────────────────
   5. UTILIDADES Y ESTILOS RÁPIDOS — Gradientes, sombras y animaciones base
   ───────────────────────────────────────────────────── */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #0032A0, #3b82f6);
}

.shadow-glow {
    box-shadow: 0 0 15px rgba(0, 50, 160, 0.5);
}

.shadow-glow-lg {
    box-shadow: 0 0 30px rgba(0, 50, 160, 0.6);
}

.animate-fade-in-up {
    /* Desactivado para carga inmediata a petición del usuario */
    opacity: 1 !important;
    transform: none !important;
}

@keyframes fadeInUp {
    from {
        opacity: 1;
        transform: none;
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-outlined.fill {
    font-variation-settings: 'FILL' 1;
}

@keyframes dynamicFusion {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

/* Estilos Globales de Scroll Reveal - Neutralizado para carga inmediata */
.reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.reveal.active {
    opacity: 1 !important;
    transform: none !important;
}

.footer-fusion-tanks {
    background: linear-gradient(135deg, #9333ea 0%, #09090b 50%, #db2777 100%);
    background-size: 200% 200%;
    animation: dynamicFusion 12s ease-in-out infinite;
    position: relative;
}

.footer-fusion-tanks::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 11, 0.85);
    z-index: 0;
}

.footer-fusion-tanks>div {
    position: relative;
    z-index: 10;
}

.footer-fusion-border-tanks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #c084fc 0%, #f472b6 50%, #fbbf24 100%);
    background-size: 200% 100%;
    animation: dynamicFusion 12s ease-in-out infinite;
    z-index: 50;
}

.header-fusion-border-tanks {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #c084fc 0%, #f472b6 50%, #fbbf24 100%);
    background-size: 200% 100%;
    animation: dynamicFusion 12s ease-in-out infinite;
    z-index: 50;
}

.footer-fusion-casa {
    background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 50%, #c5a065 100%);
    background-size: 200% 200%;
    animation: dynamicFusion 10s ease infinite;
    position: relative;
}

.footer-fusion-casa::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.60);
    z-index: 0;
}

.footer-fusion-casa>div {
    position: relative;
    z-index: 10;
}

.footer-fusion-border-casa {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #c5a065 30%, #fdfcf0 50%, #c5a065 70%, transparent 100%);
    background-size: 200% 100%;
    animation: dynamicFusion 8s ease-in-out infinite;
    z-index: 50;
}

.breathing-pearl-gold {
    background: linear-gradient(90deg, transparent 0%, #c5a065 30%, #fdfcf0 50%, #c5a065 70%, transparent 100%);
    background-size: 200% 100%;
    animation: dynamicFusion 8s ease-in-out infinite;
}

.topbar-main.footer-fusion-casa .util-btn:hover {
    color: #c5a065 !important;
}

.topbar-main.footer-fusion-casa .topbar-brand:hover span {
    filter: brightness(1.2);
}

/* ─────────────────────────────────────────────────────
   6. CABECERA GLOBAL (TOPBAR) — Barra de navegación superior
   ───────────────────────────────────────────────────── */
.topbar-global {
    width: 100%;
    background-color: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(12px);
    color: white;
    padding-top: 0;
    padding-bottom: 0.25rem;
    z-index: 100;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
}

.topbar-container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: opacity 0.2s;
}

.topbar-brand:hover {
    opacity: 0.8;
}

.topbar-logo {
    height: 2rem;
    width: auto;
    filter: invert(1) brightness(2);
}

.topbar-titles {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-align: left;
}

.topbar-subtitle {
    font-family: serif;
    font-style: italic;
    font-size: 10px;
    color: #94a3b8;
    line-height: 1.25;
}

.topbar-title {
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: white;
}

.topbar-utils {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.util-btn {
    color: #94a3b8;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Requerido para posicionar el tooltip */
}

.util-btn:hover {
    color: white;
}

/* ── Sobrescritura de Botones de Utilidad en Modales ────────────────────── */
#modal-3d .util-btn:hover {
    color: #0032A0 !important;
}

.dark #modal-3d .util-btn:hover {
    color: #60a5fa !important;
}

#modal-3d .hover\:text-red-500:hover {
    color: #ef4444 !important;
}

.util-btn.active-utility {
    color: #3b82f6 !important;
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.5));
}

.dark .util-btn.active-utility {
    color: #60a5fa !important;
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.6));
}

/* ── Sistema de Tooltips (Mensajes Emergentes) ─────────────────────── */
/* Flecha indicadora */
.util-btn[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 5px solid transparent;
    border-bottom-color: rgba(15, 23, 42, 0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transition-delay: 0s;
    z-index: 9999;
}

/* Caja de texto del tooltip */
.util-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -42px;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(15, 23, 42, 0.98);
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transition-delay: 0s;
    z-index: 9999;
}

/* Al pasar el mouse: mostrar con retraso */
.util-btn[data-tooltip]:hover::before,
.util-btn[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0.6s;
}

/* ── Tooltip para Botón de Redes Sociales (Apunta Hacia Arriba) ──────────────────── */
/* ── Tooltips Premium de Redes Sociales (Hover Dinámico) ────────────────── */
.social-wrapper-premium {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.social-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    /* Prevenir que se deforme en pantallas pequeñas */
    background: rgba(255, 255, 255, 0.05);
    /* Base para tema oscuro */
    border-radius: 50%;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-icon:hover {
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* Implementación estándar de tooltips */
.social-icon .tooltip {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    color: #1e293b;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    white-space: nowrap;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.social-icon .tooltip::after {
    content: "";
    height: 8px;
    width: 8px;
    background: #fff;
    bottom: -4px;
    left: 50%;
    transform: translate(-50%) rotate(45deg);
    transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.social-icon:hover {
    transform: translateY(-5px);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.social-icon:hover .tooltip {
    top: -55px;
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}







.social-icon:hover .tooltip {
    text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
}

.util-divider {
    width: 1px;
    height: 1rem;
    background-color: rgba(148, 163, 184, 0.4);
    margin: 0 0.25rem;
}

/* ── Móvil: Botones de Cabecera Compactos ─────────────────────── */
@media (max-width: 767px) {
    .topbar-utils {
        gap: 0.35rem !important;
    }

    .util-divider {
        margin: 0;
    }
}

/* Visualización Responsiva del Idioma */
.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-full {
    display: none;
    /* Oculto en móvil */
}

@media (min-width: 1024px) {
    .lang-full {
        display: inline;
        /* Visible en escritorio */
    }
}

@media (min-width: 768px) {
    .util-divider {
        display: block;
    }
}



/* ─────────────────────────────────────────────────────
   7. MENÚ LATERAL (SIDEBAR) — Estilos de menú colapsable izquierdo/derecho
   ───────────────────────────────────────────────────── */
.menu-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #d1d5db;
    font-weight: 700;
    font-size: 1rem;
    text-transform: capitalize;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.2s;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-right: 3rem;
}

.menu-parent:hover {
    color: #60a5fa;
}

.menu-parent .chevron {
    font-size: 1.25rem;
    transition: transform 0.3s;
}

.menu-parent.active .chevron {
    transform: rotate(180deg);
}

.menu-child {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #9ca3af;
    transition: all 0.2s;
    padding-left: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    margin-left: 0.25rem;
}

.menu-child:hover {
    color: #60a5fa;
    border-left-color: #60a5fa;
}

/* Hover de alto contraste para barra de tanques (Tema Azul) */
#left-sidebar.bg-military-dark a:hover,
#left-sidebar.bg-military-dark a:hover span,
#left-sidebar.bg-military-dark .menu-parent:hover,
#left-sidebar.bg-military-dark .menu-child:hover {
    color: #60a5fa !important;
}


.menu-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s;
    overflow: hidden;
}

.menu-content.open {
    grid-template-rows: 1fr;
}

.menu-inner {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.menu-parent-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: #334155;
    font-family: serif;
    font-weight: 700;
    font-size: 1.125rem;
    text-transform: capitalize;
    letter-spacing: 0.025em;
    cursor: pointer;
    transition: color 0.2s;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.menu-parent-right:hover {
    color: #c5a065;
}

.menu-parent-right .chevron-right {
    font-size: 1.25rem;
    transition: transform 0.3s;
}

.menu-parent-right.active .chevron-right {
    transform: rotate(180deg);
}

.menu-child-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    color: #64748b;
    transition: all 0.2s;
    border-right: 2px solid #e2e8f0;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    padding-right: 0.75rem;
    width: 100%;
}

.menu-child-right:hover {
    color: #c5a065;
    border-right-color: #c5a065;
}

/* Animación del Alternador de Tema */
@keyframes sun-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.theme-toggle .material-symbols-outlined {
    animation: sun-spin 10s linear infinite;
    display: inline-block;
    transform-origin: center;
}

/* Animación Real de Ondas de Sonido (Rutas SVG) */
@keyframes wave-outward {
    0% {
        opacity: 0;
        transform: scale(0.8) translateX(-1px);
    }

    50% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }

    100% {
        opacity: 0;
        transform: scale(1.3) translateX(3px);
    }
}

.bg-music-toggle.playing .sound-wave {
    animation: wave-outward 2.0s infinite ease-out;
    transform-origin: 10px 12px;
    /* Establecer el origen en la salida del altavoz */
}

.bg-music-toggle.playing .wave-delay-1 {
    animation-delay: 0s;
}

.bg-music-toggle.playing .wave-delay-2 {
    animation-delay: 0.1s;
}

.bg-music-toggle.playing .material-symbols-outlined {
    color: white;
}

/* Animación de paneo de búsqueda (Sin zoom ni resplandor) */
@keyframes search-panning {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(3px, 3px);
    }

    50% {
        transform: translate(-3px, 0);
    }

    75% {
        transform: translate(0, -3px);
    }

    100% {
        transform: translate(0, 0);
    }
}

.search-toggle .material-symbols-outlined {
    animation: search-panning 5s ease-in-out infinite;
    display: inline-block;
}

/* Utilidades personalizadas para el efecto de pantalla dividida (Split) */
.clip-diagonal-left {
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
}

.clip-diagonal-right {
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

@media (max-width: 768px) {

    .clip-diagonal-left,
    .clip-diagonal-right {
        clip-path: none;
    }
}

.text-shadow-strong {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.bg-grain {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

/* Sidebar Animations */
#left-sidebar {
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#left-sidebar.open {
    transform: translateX(0);
}

#right-sidebar {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#right-sidebar.open {
    transform: translateX(0);
}

.overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Superposición izquierda: azul profundo frío */
#left-overlay {
    background: rgba(0, 20, 60, 0.58) !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Superposición derecha: dorado ámbar cálido */
#right-overlay {
    background: rgba(90, 50, 0, 0.52) !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* ─────────────────────────────────────────────────────
   8. COMPONENTE AZIMUTH TÁCTICO — Indicador numérico lateral táctico
   ───────────────────────────────────────────────────── */
.azimuth-indicator {
    position: absolute;
    right: 0px;
    top: 0;
    bottom: 0px;
    width: 50px;
    height: 100%;
    pointer-events: none;
    z-index: 60;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    font-family: 'Share Tech Mono', monospace;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.azimuth-scale {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    transition: none;
    margin-right: 5px;
    padding: 0;
}

.azimuth-tick {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(0, 243, 255, 0.4);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.azimuth-tick.major {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.azimuth-tick .line {
    width: 8px;
    height: 1px;
    background: currentColor;
}

.azimuth-tick.major .line {
    width: 12px;
    height: 0.5px;
}

.azimuth-tick .number {
    font-size: 8px;
    color: rgba(0, 243, 255, 0.6);
}

.azimuth-tick.major .number {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
}

.azimuth-pointer {
    position: absolute;
    right: 0;
    top: 0;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 12px solid #ff0000;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.8));
    z-index: 100;
    pointer-events: none;
    opacity: 1;
    transition: none;
    animation: tacticalPulse 0.8s infinite ease-in-out;
}

@keyframes tacticalPulse {
    0% {
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.9));
    }

    50% {
        opacity: 0.6;
        filter: drop-shadow(0 0 4px rgba(255, 0, 0, 0.4));
    }

    100% {
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.9));
    }
}

/* ─────────────────────────────────────────────────────
   8. PIE DE PÁGINA (FOOTERS) — Efectos de fusión y fondos dinámicos
   ───────────────────────────────────────────────────── */
.footer-fusion {
    background: linear-gradient(135deg, #9333ea 0%, #09090b 50%, #db2777 100%);
    background-size: 200% 200%;
    animation: dynamicFusion 12s ease infinite;
    position: relative;
}

.footer-fusion::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 11, 0.85);
    z-index: 0;
}

.footer-fusion>div {
    position: relative;
    z-index: 10;
}

.header-fusion-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #c084fc 0%, #f472b6 50%, #fbbf24 100%);
    background-size: 200% 100%;
    animation: dynamicFusion 12s ease-in-out infinite;
    z-index: 50;
}

.footer-fusion-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #c084fc 0%, #f472b6 50%, #fbbf24 100%);
    background-size: 200% 100%;
    animation: dynamicFusion 12s ease-in-out infinite;
    z-index: 50;
}

@keyframes text-fusion-breathing {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}


.animate-text-fusion {
    display: inline-block;
    background-size: 250% auto;
    animation: text-fusion-breathing 12s ease-in-out infinite;
}

/* Leaderboard Section Styles */
.metallic-gradient {
    background: linear-gradient(135deg, #f0f1f5 0%, #ffffff 50%, #dadee7 100%);
}

.text-glow-gradient {
    background: linear-gradient(90deg, #00329e, #2563eb, #00329e);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine-glow 3s linear infinite;
}


@keyframes shine-glow {
    to {
        background-position: 200% center;
    }
}

.tech-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 50, 158, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.dark .tech-card {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.05);
}

/* ── Theme Switch Smooth Transitions ── */

/* View Transitions API (Chrome/Edge/Modern) */
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.6s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fallback for smooth class-based transition */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
    transition: background-color 0.6s ease-in-out,
        color 0.6s ease-in-out,
        border-color 0.6s ease-in-out,
        box-shadow 0.6s ease-in-out,
        backdrop-filter 0.6s ease-in-out,
        filter 0.6s ease-in-out,
        opacity 0.6s ease-in-out !important;
}

/* Animación del Punto de Pulso */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #4caf50;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}


.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid #4caf50;
    animation: pulseActive 2s infinite;
}

@keyframes pulseActive {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Animación del Botón de Intercambio */
@keyframes swap-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(180deg);
    }
}

.animate-swap {
    display: inline-block;
}

.util-btn:hover .animate-swap {
    animation: swap-spin 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* --- EXTENSIONES TÁCTICAS DEL MUSEO --- */

.hero-shimmer {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0) 0%, rgba(59, 130, 246, 0.1) 50%, rgba(59, 130, 246, 0) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.tactical-border {
    position: relative;
}

.tactical-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-top: 2px solid #3b82f6;
    border-left: 2px solid #3b82f6;
}

.tactical-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid #3b82f6;
    border-right: 2px solid #3b82f6;
}

.card-glass {
    /* Estilo de Sombra Definido y Refinado */
    background: #e0e6ee;
    border: 1.5px solid rgba(0, 0, 0, 0.02);
    border-radius: 1.875rem;
    /* 30px - Estética Estandarizada */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 30px -5px rgba(0, 32, 160, 0.12);
    position: relative;
    z-index: 1;
}

.dark .card-glass {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.card-glass:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -10px rgba(0, 32, 160, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    z-index: 10;
}

.dark .card-glass:hover {
    background: #1e293b;
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.8);
}

.section-divider {
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 10%;
    width: 80%;
    height: 4px;
    /* Increased from 3px */
    background: linear-gradient(90deg, transparent, #1d4ed8, transparent);
    /* Stronger blue */
    z-index: 50;
    border-radius: 4px;
    opacity: 0.8;
    /* Asegurar visibilidad */
}

.dark .section-divider::before {
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.8), transparent);
    height: 3px;
    opacity: 1;
}

.tactical-tag {
    position: absolute;
    top: 4rem;
    left: 2rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    padding: 4px 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-left: 4px solid #3b82f6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 20;
    backdrop-filter: blur(4px);
    letter-spacing: 2px;
    font-weight: 900;
}

.tactical-tag::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    animation: global-pulse-dot 2s infinite;
}

@keyframes global-pulse-dot {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
        box-shadow: 0 0 10px #3b82f6;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

/* ─── Patrón de Fondo de Cuadrícula ─────────────────── */
.grid-bg {
    --_bg: #f8fafc;
    --_grid-heavy: rgba(0, 0, 0, 0.08);
    --_grid-light: rgba(0, 0, 0, 0.05);
    background-image:
        linear-gradient(var(--_grid-heavy) 1.5px, transparent 1.5px),
        linear-gradient(90deg, var(--_grid-heavy) 1.5px, transparent 1.5px),
        linear-gradient(var(--_grid-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--_grid-light) 1px, var(--_bg) 1px);
    background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
}

.dark .grid-bg {
    background-image: none;
}

.luxury-gradient {
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 30;
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.5s ease;
    display: none;
}

.dark #particles-canvas {
    display: block !important;
}

.footer-layer {
    position: relative;
    z-index: 60;
    background-color: #020617;
}

.pulse-dot-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: global-pulse-dot 2s infinite;
}

/* ─────────────────────────────────────────────────────
   9. INTERRUPTOR DE TEMA PREMIUM — Alternador animado de sol, luna y nubes
   ───────────────────────────────────────────────────── */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch .theme-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2196f3;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    z-index: 0;
    overflow: hidden;
}

.sun-moon {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: yellow;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.theme-checkbox:checked+.slider {
    background-color: black;
}

.theme-checkbox:focus+.slider {
    box-shadow: 0 0 1px #2196f3;
}

.theme-checkbox:checked+.slider .sun-moon {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
    background-color: white;
    -webkit-animation: rotate-center 0.6s ease-in-out both;
    animation: rotate-center 0.6s ease-in-out both;
}

.moon-dot {
    opacity: 0;
    transition: 0.4s;
    fill: gray;
}

.theme-checkbox:checked+.slider .sun-moon .moon-dot {
    opacity: 1;
}

.slider.round {
    border-radius: 34px;
}

.slider.round .sun-moon {
    border-radius: 50%;
}

#moon-dot-1 {
    left: 10px;
    top: 3px;
    position: absolute;
    width: 6px;
    height: 6px;
    z-index: 4;
}

#moon-dot-2 {
    left: 2px;
    top: 10px;
    position: absolute;
    width: 10px;
    height: 10px;
    z-index: 4;
}

#moon-dot-3 {
    left: 16px;
    top: 18px;
    position: absolute;
    width: 3px;
    height: 3px;
    z-index: 4;
}

#light-ray-1 {
    left: -8px;
    top: -8px;
    position: absolute;
    width: 43px;
    height: 43px;
    z-index: -1;
    fill: white;
    opacity: 10%;
}

#light-ray-2 {
    left: -50%;
    top: -50%;
    position: absolute;
    width: 55px;
    height: 55px;
    z-index: -1;
    fill: white;
    opacity: 10%;
}

#light-ray-3 {
    left: -18px;
    top: -18px;
    position: absolute;
    width: 60px;
    height: 60px;
    z-index: -1;
    fill: white;
    opacity: 10%;
}

.cloud-light {
    position: absolute;
    fill: #eee;
    animation-name: cloud-move;
    animation-duration: 6s;
    animation-iteration-count: infinite;
}

.cloud-dark {
    position: absolute;
    fill: #ccc;
    animation-name: cloud-move;
    animation-duration: 6s;
    animation-iteration-count: infinite;
    animation-delay: 1s;
}

#cloud-1 {
    left: 30px;
    top: 15px;
    width: 40px;
}

#cloud-2 {
    left: 44px;
    top: 10px;
    width: 20px;
}

#cloud-3 {
    left: 18px;
    top: 24px;
    width: 30px;
}

#cloud-4 {
    left: 36px;
    top: 18px;
    width: 40px;
}

#cloud-5 {
    left: 48px;
    top: 14px;
    width: 20px;
}

#cloud-6 {
    left: 22px;
    top: 26px;
    width: 30px;
}

@keyframes cloud-move {
    0% {
        transform: translateX(0px);
    }

    40% {
        transform: translateX(4px);
    }

    80% {
        transform: translateX(-4px);
    }

    100% {
        transform: translateX(0px);
    }
}

.stars {
    transform: translateY(-32px);
    opacity: 0;
    transition: 0.4s;
}

.star {
    fill: white;
    position: absolute;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    animation-name: star-twinkle;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

.theme-checkbox:checked+.slider .stars {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
}

#star-1 {
    width: 20px;
    top: 2px;
    left: 3px;
    animation-delay: 0.3s;
}

#star-2 {
    width: 6px;
    top: 16px;
    left: 3px;
}

#star-3 {
    width: 12px;
    top: 20px;
    left: 10px;
    animation-delay: 0.6s;
}

#star-4 {
    width: 16px;
    top: 10px;
    left: 8px;
    animation-delay: 1.3s;
}

@keyframes star-twinkle {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    40% {
        opacity: 1;
        transform: scale(1.2);
    }

    80% {
        opacity: 1;
        transform: scale(0.8);
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}


/* ─────────────────────────────────────────────────────
   10. ICONOS SOCIALES PREMIUM — Animación interactiva en redes sociales
   ───────────────────────────────────────────────────── */
.tapi-social-container {
    display: flex !important;
    flex-flow: row wrap !important;
    gap: 12px 10px !important;
    /* Espaciado horizontal de 12px, vertical de 10px */
    padding: 15px 0 !important;
    list-style: none !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    /* Eliminado el ancho máximo para permitir una sola fila si hay espacio */
}

.tapi-social-item {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.tapi-social-item:hover {
    transform: translateY(-8px) !important;
    z-index: 10 !important;
}

.tapi-social-link {
    position: relative !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    cursor: pointer !important;
    transition: all 0.4s ease !important;
    color: #fff !important;
    overflow: hidden !important;
    text-decoration: none !important;
    z-index: 5 !important;
    /* Recorte a prueba de fallos para Webkit */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    isolation: isolate !important;
}

/* Elemento de fondo usando posición para evitar bugs de recorte */
.tapi-social-filled {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    /* Crítico para prevenir el renderizado cuadrado nativo */
    transform: scaleY(0) !important;
    transform-origin: bottom center !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1 !important;
}

.tapi-social-item:hover .tapi-social-filled {
    transform: scaleY(1) !important;
}

.tapi-social-item:hover .tapi-social-link {
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5) !important;
}

.tapi-social-link svg,
.tapi-social-link i {
    position: relative !important;
    z-index: 2 !important;
    font-size: 18px !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: all 0.4s ease !important;
    fill: currentColor !important;
    color: currentColor !important;
}

.tapi-social-item:hover .tapi-social-link svg,
.tapi-social-item:hover .tapi-social-link i {
    transform: scale(1.2) !important;
    color: #ffffff !important;
}

/* Mensaje Emergente (Tooltip) */
.tapi-social-tooltip {
    position: absolute !important;
    top: -45px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    color: #fff !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    z-index: 20 !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5) !important;
}

.tapi-social-tooltip::after {
    content: "" !important;
    position: absolute !important;
    bottom: -4px !important;
    left: 50% !important;
    transform: translateX(-50%) rotate(45deg) !important;
    width: 8px !important;
    height: 8px !important;
    background: inherit !important;
}

.tapi-social-item:hover .tapi-social-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
    /* Removed extra movement since parent translates up */
}

/* Colores con manejo de relleno exacto */
.tapi-social-item.facebook .tapi-social-filled,
.tapi-social-item.facebook .tapi-social-tooltip {
    background: #1877F2 !important;
}

.tapi-social-item.instagram .tapi-social-filled,
.tapi-social-item.instagram .tapi-social-tooltip {
    background: linear-gradient(45deg, #405de6, #5b51db, #b33ab4, #c135b4, #e1306c, #fd1f1f) !important;
}

.tapi-social-item.x .tapi-social-filled,
.tapi-social-item.x .tapi-social-tooltip {
    background: #000000 !important;
}

.tapi-social-item.youtube .tapi-social-filled,
.tapi-social-item.youtube .tapi-social-tooltip {
    background: #FF0000 !important;
}

.tapi-social-item.tiktok .tapi-social-filled,
.tapi-social-item.tiktok .tapi-social-tooltip {
    background: #010101 !important;
}

.tapi-social-item.tiktok:hover .tapi-social-link {
    border-color: #ff0050 !important;
}

.tapi-social-item.linkedin .tapi-social-filled,
.tapi-social-item.linkedin .tapi-social-tooltip {
    background: #0077b5 !important;
}

.tapi-social-item.whatsapp .tapi-social-filled,
.tapi-social-item.whatsapp .tapi-social-tooltip {
    background: #25D366 !important;
}

/* ─────────────────────────────────────────────────────
   11. MENÚ HAMBURGUESA PREMIUM — Efecto hover en icono de tres líneas
   ───────────────────────────────────────────────────── */
.hamburger-premium {
    width: 26px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.hamburger-premium span {
    display: block;
    height: 3px;
    background-color: currentColor;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.hamburger-premium span:nth-child(1) {
    width: 100%;
}

.hamburger-premium span:nth-child(2) {
    width: 60%;
}

.hamburger-premium span:nth-child(3) {
    width: 85%;
}

.group:hover .hamburger-premium span {
    width: 100% !important;
}

.group:active .hamburger-premium span {
    transform: scaleX(0.8);
}

.hamburger-premium.align-right {
    align-items: flex-end;
}

/* Colores del Menú de Hamburguesa */
.hamburger-tanques span {
    background-color: #912bc2 !important;
}

.group:hover .hamburger-tanques span {
    background-color: white !important;
}

/* ─────────────────────────────────────────────────────
   12. SECCIÓN DE VIDEO Y HUD — Estilos de reproductor y brillo HUD
   ───────────────────────────────────────────────────── */
.video-hud-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.play-button-ripple {
    position: relative;
}

.play-button-ripple::before {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: ripple-pulse 2s infinite;
}

@keyframes ripple-pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.video-glow-text {
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

/* Complemento Tailwind: Asegura prioridad en hover:text-primary-bright */
.hover\:text-primary-bright:hover {
    color: #60a5fa !important;
}

/* Navigation dropdown with fluid animation */
.nav-dropdown {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 15px);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.group:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* Override hover colors to align with Section 1 (purple/pink) instead of blue */
.topbar-main nav a:hover,
.topbar-main nav button:hover {
    color: #c084fc !important; /* light purple */
    transform: translateY(-1px);
}

.topbar-main nav a,
.topbar-main nav button {
    transition: color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.2s ease-in-out;
}

/* Submenu links premium transition and hover styling */
.nav-dropdown a {
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.nav-dropdown a:hover {
    background-color: rgba(147, 51, 234, 0.2) !important; /* purple/20 */
    color: #f472b6 !important; /* pink */
    padding-left: 1.5rem !important; /* smooth horizontal shift */
}

/* Specific class utility overrides for topbar */
.topbar-main .hover\:text-primary:hover {
    color: #a78bfa !important;
}
.topbar-main .hover\:bg-primary\/25:hover {
    background-color: rgba(167, 139, 250, 0.2) !important;
}

/* Footer & mobile sidebar hover highlights update */
.footer-fusion a:not(.tapi-social-link):hover,
.footer-fusion-tanks a:not(.tapi-social-link):hover {
    color: #a78bfa !important;
}

#left-sidebar a:hover,
#left-sidebar .menu-parent:hover,
#left-sidebar .menu-child:hover {
    color: #a78bfa !important;
}

/* ── Estilo del Topbar Vintage ── */
.topbar-global {
    background-color: #4a3f35 !important;
    border-bottom: 1px solid rgba(250, 246, 238, 0.1) !important;
}
/* Enlaces, textos, iconos y botones en la barra superior (Color crema de redes #FAF6EE) */
.topbar-global *,
.topbar-global a,
.topbar-global button,
.topbar-global span,
.topbar-global svg,
.topbar-global i,
.topbar-global .util-btn,
.topbar-global nav a,
.topbar-global nav button {
    color: #FAF6EE !important;
    fill: #FAF6EE !important;
}
/* Excepción para el título animado "Mafer Store" */
.topbar-global .topbar-store-title {
    background: linear-gradient(90deg, #b088f9, #f3a3c3, #f5cb6c, #b088f9) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}
/* Hover de todos los elementos interactivos */
.topbar-global a:hover,
.topbar-global button:hover,
.topbar-global .util-btn:hover,
.topbar-global svg:hover,
.topbar-global nav a:hover,
.topbar-global nav button:hover,
.topbar-global a:hover *,
.topbar-global button:hover * {
    color: #f3a3c3 !important;
    fill: #f3a3c3 !important;
}
/* Línea decorativa inferior - pulso pastel */
.header-fusion-border-tanks {
    background: linear-gradient(90deg, #b088f9, #f3a3c3, #f5cb6c) !important;
    height: 2px !important;
}
.util-divider {
    background-color: rgba(250, 246, 238, 0.2) !important;
}

/* 
  =========================================
  ESTILOS ESPECÍFICOS DE INDEX.HTML (FUSIONADOS)
  ========================================= 
*/

/* 1. Shimmer effect for text */
@keyframes text-shimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animate-text-shimmer {
    background-size: 200% auto;
    animation: text-shimmer 5s ease-in-out infinite;
}

/* 2. Modal Scale animation */
@keyframes modalScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 3. Ranking Dinámico: Ases del Blindaje */
@keyframes medalFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-6px) rotate(2deg);
    }
}

@keyframes premiumShine {
    0% {
        transform: translate(-100px, -200px) rotate(30deg);
    }

    20% {
        transform: translate(500px, 400px) rotate(30deg);
    }

    100% {
        transform: translate(500px, 400px) rotate(30deg);
    }
}

.medal-anim-gold {
    animation: medalFloat 3s ease-in-out infinite;
}

.medal-anim-silver {
    animation: medalFloat 3.4s ease-in-out infinite 0.2s;
}

.medal-anim-bronze {
    animation: medalFloat 3.8s ease-in-out infinite 0.4s;
}

.rank-entry {
    animation: rankSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Premium Shine Effect for injected SVGs */
.premium-shine {
    animation: premiumShine 4s infinite ease-in-out;
    mix-blend-mode: overlay;
}

/* Infinite Ribbon Scroll */
@keyframes scrollRibbon {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.ribbon-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Gradient Mask for faded edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ribbon-track {
    display: flex;
    width: max-content;
    gap: 2.5rem;
    animation: scrollRibbon 40s linear infinite;
    padding: 20px 0;
}

.ribbon-track:hover {
    animation-play-state: paused;
}

.sponsor-circle {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 9999px;
    /* Force Circle */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.2);
    /* slate-300/20 */
    background: rgba(248, 250, 252, 0.8);
    /* slate-50/80 */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.dark .sponsor-circle {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.sponsor-circle:hover {
    transform: scale(1.1) translateY(-5px);
    background: white;
    border-color: #3b82f6;
    /* primary */
    box-shadow: 0 10px 15px -3px rgb(59 130 246 / 0.3);
}

.dark .sponsor-circle:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .sponsor-circle {
        width: 65px;
        height: 65px;
    }

    .ribbon-track {
        gap: 1.5rem;
        animation-duration: 25s;
    }
}

/* 4. BOTÓN DE LA MASCOTA (Tapa de seguridad) */
.mcb-wrap {
    position: relative;
    width: 36px;
    height: 36px;
    cursor: pointer;
    flex-shrink: 0;
    perspective: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.75);
}

.mcb-base {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, #facc15, #facc15 4px, #1e1e1e 4px, #1e1e1e 8px);
    border-radius: 6px;
    border: 1.5px solid #ca8a04;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.mcb-red {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    background: radial-gradient(circle at 35% 30%, #ff8080 0%, #dc2626 40%, #7f1d1d 100%);
    border-radius: 50%;
    border: 1.5px solid #450a0a;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 200, 200, 0.4);
    z-index: 2;
    transition: transform 0.08s;
}

.mcb-wrap:hover .mcb-red {
    transform: translate(-50%, calc(-50% + 1px));
}

.mcb-hinge {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 4px;
    background: linear-gradient(180deg, #94a3b8, #334155);
    border-radius: 2px;
    z-index: 5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.mcb-lid {
    position: absolute;
    top: 0;
    left: -1px;
    transform: rotateX(0deg);
    transform-origin: top center;
    width: calc(100% + 2px);
    height: 100%;
    background: linear-gradient(160deg, rgba(186, 230, 253, 0.3), rgba(56, 189, 248, 0.1));
    border: 1px solid rgba(125, 211, 252, 0.6);
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(56, 189, 248, 0.2), inset 0 1px 3px rgba(255, 255, 255, 0.2);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
    z-index: 4;
    pointer-events: none;
}

.mcb-lid::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 6px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
}

.mcb-wrap[data-state="open"] .mcb-lid {
    transform: rotateX(135deg);
}

.mcb-wrap[data-state="open"] .mcb-red {
    animation: mcbPulse 0.9s ease-in-out infinite;
}

@keyframes mcbPulse {

    0%,
    100% {
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.7), 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    50% {
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.7), 0 0 0 7px rgba(239, 68, 68, 0);
    }
}

.mcb-tracer-el {
    position: fixed;
    height: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #fbbf24 40%, #ef4444 70%, #fff 100%);
    border-radius: 3px;
    box-shadow: 0 0 6px #ef4444, 0 0 14px #fbbf24;
    pointer-events: none;
    z-index: 99999;
    transform-origin: right center;
}

.mcb-boom-el {
    position: fixed;
    font-size: 48px;
    pointer-events: none;
    z-index: 99999;
    animation: mcbBoom 0.65s ease-out forwards;
    user-select: none;
    line-height: 1;
}

@keyframes mcbBoom {
    0% {
        transform: translate(-50%, -50%) scale(0.2);
        opacity: 1;
    }

    40% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
}

@keyframes mcbShakeMascot {

    0%,
    100% {
        transform: none;
    }

    15% {
        transform: translateX(-5px) rotate(-3deg);
    }

    35% {
        transform: translateX(5px) rotate(3deg);
    }

    55% {
        transform: translateX(-3px) rotate(-2deg);
    }

    75% {
        transform: translateX(3px) rotate(2deg);
    }
}

/* 5. Corner Vignettes para Legibilidad (Invisible Pop) */
.vignette-top-left {
    /* Viñeta CLARA para texto OSCURO sobre fondo MILITAR */
    background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.4) 0%, transparent 80%);
}

.vignette-top-right {
    /* Viñeta OSCURA para texto OSCURO sobre fondo CLARO */
    background: radial-gradient(circle at 100% 0%, rgba(0, 0, 0, 0.8) 0%, transparent 80%);
}

.dark .vignette-top-left,
.dark .vignette-top-right {
    opacity: 0.9;
}

/* 6. Navigation dropdown on hover */
.group:hover .nav-dropdown {
    display: block !important;
}