:root {
    --rojo: #e31e24;
    --rojo-light: #ff333a;
    --rojo-dark: #b3161b;
    --negro-total: #000000;
    --negro-fuerte: #0a0a0a;
    --negro-suave: #1a1a1a;
    --gris-texto: #cccccc;
    --blanco: #ffffff;
    --glass-bg: rgba(10, 10, 10, 0.9);
    --shadow-light: 0 0 15px rgba(255, 50, 50, 0.4);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.7);
    --transition-fast: 0.3s ease-out;
    --transition-medium: 0.5s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    background-color: var(--negro-total); 
    color: var(--blanco); 
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Animaciones CSS Keyframe --- */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulseNeon {
    0% { box-shadow: 0 0 5px var(--rojo), 0 0 10px var(--rojo), 0 0 15px var(--rojo); }
    100% { box-shadow: 0 0 10px var(--rojo-light), 0 0 20px var(--rojo-light), 0 0 30px var(--rojo-light); }
}

/* --- SECCIÓN SEDE / MAPA --- */
.stadium-section {
    padding: 80px 5%;
    background: #080808;
    text-align: center;
}

.section-title .top-label {
    color: #e31e24;
    letter-spacing: 5px;
    font-size: 0.9rem;
}

.separator-stadium {
    width: 60px;
    height: 4px;
    background: #e31e24;
    margin: 15px auto 40px;
}

.map-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr; /* Texto a la izquierda, mapa a la derecha */
    gap: 30px;
    background: #111;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #222;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.map-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    background: linear-gradient(135deg, #111 0%, #000 100%);
}

.map-info i {
    font-size: 3rem;
    color: #e31e24;
    margin-bottom: 20px;
}

.map-info h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
}

.match-day-note {
    margin-top: 20px;
    color: #e31e24;
    font-weight: bold;
    font-style: italic;
}

.map-frame {
    filter: grayscale(100%) invert(90%) contrast(90%); /* Mapa estilo "Dark Mode" */
    transition: 0.5s;
}

.map-frame:hover {
    filter: grayscale(0%) invert(0%); /* Se pone a color al pasar el mouse */
}

/* Responsivo para celulares */
@media (max-width: 768px) {
    .map-wrapper {
        grid-template-columns: 1fr;
    }
    .map-info {
        text-align: center;
        padding: 30px;
    }
}

/* --- NAVBAR DINÁMICA --- */
.navbar {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    z-index: 2000;
    transition: var(--transition-medium);
    background: transparent;
    border-bottom: 2px solid transparent;
}
.navbar.scrolled {
    height: 70px;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border-bottom-color: var(--rojo);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.nav-container {
    width: 90%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-space img {
    height: 120px;
    transform: translateY(20px);
    transition: var(--transition-medium);
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.6));
}

.navbar.scrolled .logo-space img {
    height: 80px;
    transform: translateY(0);
}

.slogan-animate {
    font-family: 'Oswald', sans-serif;
    letter-spacing: 4px;
    font-size: 0.85rem;
    color: var(--gris-texto);
    text-transform: uppercase;
    animation: fadeInScale 1s ease-out;
    border-left: 1px solid var(--rojo);
    border-right: 1px solid var(--rojo);
    padding: 5px 15px;
}

.nav-links { display: flex; list-style: none; gap: 35px; }
.nav-links a {
    color: var(--blanco);
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
    position: relative;
    transition: var(--transition-fast);
    text-transform: uppercase;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--rojo);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}
.nav-links a:hover, .nav-links .active-link { color: var(--rojo); }
.nav-links a:hover::after, .nav-links .active-link::after { width: 100%; }

/* --- HERO SECTION CON PARTICULAS --- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1574629810360-7efbbe195018?q=80&w=1500') center/cover no-repeat;
    overflow: hidden;
}
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.9) 100%);
    z-index: 2;
}
.hero-content {
    z-index: 3;
    position: relative;
    padding: 0 20px;
}

.badge-tdm {
    background: var(--rojo);
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    box-shadow: var(--shadow-light);
    animation: fadeInScale 1s ease-out forwards;
    opacity: 0;
    animation-delay: 0.5s;
}
.hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(3rem, 10vw, 6.5rem);
    line-height: 1;
    margin: 30px 0;
    color: var(--blanco);
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
    animation: fadeInScale 1s ease-out forwards;
    opacity: 0;
    animation-delay: 0.7s;
}
.accent { color: var(--rojo); }
.hero p {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    letter-spacing: 4px;
    color: var(--gris-texto);
    margin-bottom: 40px;
    animation: fadeInScale 1s ease-out forwards;
    opacity: 0;
    animation-delay: 0.9s;
}

/* Botón Neón */
.btn-neon {
    background: var(--rojo);
    color: var(--blanco);
    padding: 18px 45px;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
    display: inline-block;
    letter-spacing: 2px;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(227, 30, 36, 0.5);
    animation: fadeInScale 1s ease-out forwards;
    opacity: 0;
    animation-delay: 1.1s;
}
.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: var(--transition-medium);
}
.btn-neon:hover::before { left: 100%; }
.btn-neon:hover {
    box-shadow: 0 0 20px var(--rojo), 0 0 40px var(--rojo-light), 0 0 80px var(--rojo-light);
    background: var(--rojo-dark);
    transform: translateY(-3px);
}

/* --- STATS BAR --- */
.stats-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 80px 5%;
    background: linear-gradient(to right, var(--negro-total), var(--negro-fuerte), var(--negro-total));
    border-top: 1px solid var(--rojo-dark);
    border-bottom: 1px solid var(--rojo-dark);
    box-shadow: 0 0 20px rgba(227, 30, 36, 0.2);
}
.stat-item {
    text-align: center;
    position: relative;
    padding: 0 20px;
}
.stat-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -2px;
    width: 4px;
    height: 80%;
    background: var(--rojo);
    transform: translateY(-50%) scaleY(0);
    transition: transform 0.6s ease-out;
}
.stat-item.active::before { transform: translateY(-50%) scaleY(1); }
.stat-item h2 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    color: var(--rojo);
    text-shadow: 0 0 15px rgba(255, 30, 38, 0.6);
    margin-bottom: 5px;
}
.stat-item span {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--gris-texto);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- MAIN CONTENT (Historia, Misión/Visión) --- */
.main-content {
    padding: 120px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.info-card {
    background: linear-gradient(145deg, var(--negro-fuerte), var(--negro-suave));
    padding: 70px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 80px;
    border: 1px solid #282828;
    box-shadow: var(--shadow-dark);
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}
.info-card h2 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--rojo);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.separator {
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--rojo), transparent);
    margin: 20px auto 40px;
    border-radius: 2px;
}
.info-card p {
    font-size: 1.2rem;
    color: var(--gris-texto);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}
.info-card strong { color: var(--rojo-light); }


.mv-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}
.mv-card {
    background: linear-gradient(135deg, var(--negro-fuerte), var(--negro-suave));
    padding: 50px;
    border-radius: 15px;
    border-left: 5px solid var(--rojo);
    box-shadow: var(--shadow-dark);
    transition: var(--transition-medium);
    text-align: center;
}
.mv-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.9), var(--shadow-light);
}
.mv-card i {
    font-size: 3.5rem;
    color: var(--rojo);
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(255, 30, 38, 0.5);
}
.mv-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    color: var(--rojo);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.mv-card p {
    font-size: 1.1rem;
    color: var(--gris-texto);
    line-height: 1.7;
}

/* --- FOOTER --- */
.footer-final {
    padding: 80px 5%;
    background: var(--negro-total);
    border-top: 2px solid var(--negro-suave);
    text-align: center;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}
.f-name {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: var(--rojo);
    margin-bottom: 10px;
    text-transform: uppercase;
}
.f-loc {
    font-size: 1rem;
    color: var(--gris-texto);
    margin-bottom: 5px;
}
.f-tag {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    color: var(--gris-texto);
    letter-spacing: 3px;
    opacity: 0.7;
    margin-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    display: inline-block;
}

/* --- Clases para JS (Scroll Reveal) --- */
.reveal, .reveal-left, .reveal-right, .reveal-top, .reveal-bottom {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}
.reveal-top.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-bottom.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-top { transform: translateY(-30px); }
.reveal-bottom { transform: translateY(30px); }

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .nav-container { padding: 0 15px; }
    .nav-links { gap: 20px; }
    .nav-links a { font-size: 1rem; }
    .slogan-animate { display: none; } /* Ocultar en tablets */

    .hero h1 { font-size: clamp(2.5rem, 8vw, 5rem); }
    .hero p { font-size: clamp(1rem, 2.5vw, 1.5rem); }
    .btn-neon { padding: 15px 30px; font-size: 0.9rem; }

    .stats-bar { flex-wrap: wrap; padding: 60px 5%; }
    .stat-item { flex-basis: 45%; margin-bottom: 30px; }

    .info-card { padding: 50px; }
    .info-card h2 { font-size: clamp(2rem, 5vw, 3rem); }
    .info-card p { font-size: 1rem; }

    .mv-container { grid-template-columns: 1fr; }
    .mv-card { padding: 40px; }
    .mv-card h3 { font-size: 1.8rem; }
    .mv-card p { font-size: 1rem; }
}

@media (max-width: 768px) {
    .navbar { height: 70px; }
    .navbar.scrolled { height: 60px; }
    .logo-space img { height: 90px; transform: translateY(15px); }
    .navbar.scrolled .logo-space img { height: 60px; transform: translateY(0); }

    .nav-links { display: none; /* Se activaría con un menú hamburguesa */ }
    .nav-center { display: none; } /* Ocultar slogan en móvil */
    
    .hero { height: 80vh; }
    .hero h1 { font-size: clamp(2rem, 8vw, 4rem); }
    .hero p { font-size: clamp(0.9rem, 2.5vw, 1.2rem); letter-spacing: 2px; }
    .btn-neon { padding: 12px 25px; font-size: 0.8rem; }

    .stats-bar { padding: 40px 5%; }
    .stat-item { flex-basis: 100%; margin-bottom: 20px; }
    .stat-item h2 { font-size: 4rem; }
    .stat-item::before { display: none; } /* Eliminar la barra vertical en móvil */

    .info-card { padding: 30px; margin-bottom: 50px; }
    .info-card h2 { font-size: 2rem; }
    .info-card p { font-size: 0.95rem; }

    .mv-card { padding: 30px; }
    .mv-card i { font-size: 2.5rem; }
    .mv-card h3 { font-size: 1.6rem; }
    .mv-card p { font-size: 0.9rem; }

    .footer-final { padding: 50px 5%; }
    .f-name { font-size: 1.5rem; }
    .f-loc { font-size: 0.9rem; }
    .f-tag { font-size: 0.7rem; letter-spacing: 2px; }
}


/* --- DISEÑO ELITE STEALTH COMPLETO --- */

.elite-gallery {
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}

/* Header de Impacto */
.ultra-header {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #000;
}

.bg-text {
    position: absolute;
    font-size: 25rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    z-index: 1;
    user-select: none;
}

.header-main-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.top-label {
    letter-spacing: 8px;
    font-size: 0.8rem;
    color: #e31e24;
    display: block;
    margin-bottom: 10px;
}

.glitch-text {
    font-family: 'Oswald', sans-serif;
    font-size: 6rem;
    text-transform: uppercase;
    line-height: 0.9;
}

.red-glow {
    color: #e31e24;
    text-shadow: 0 0 20px rgba(227, 30, 36, 0.6);
}

.accent-line {
    width: 100px;
    height: 5px;
    background: #e31e24;
    margin: 20px auto;
}

/* Botón Cyberpunk */
.nav-strip {
    max-width: 1200px;
    margin: -40px auto 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.cyber-btn {
    background: transparent;
    border: 1px solid var(--rojo);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    color: #fff;
    z-index: 1;
}

.cyber-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--rojo);
    transition: 0.4s;
    z-index: -1;
    transform: skewX(-20deg);
}

.cyber-btn:hover::before {
    left: 0;
}

.cyber-btn:hover {
    transform: skew(-5deg) scale(1.05);
    box-shadow: -10px 0 20px rgba(227, 30, 36, 0.4);
}

/* Contenedor Industrial */
.industrial-container {
    max-width: 1200px;
    margin: 0 auto 50px;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid #222;
    position: relative;
    padding: 40px;
}

.corner-decor {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #e31e24;
}
.top-left { top: -5px; left: -5px; border-right: none; border-bottom: none; }
.top-right { top: -5px; right: -5px; border-left: none; border-bottom: none; }
.bottom-left { bottom: -5px; left: -5px; border-right: none; border-top: none; }
.bottom-right { bottom: -5px; right: -5px; border-left: none; border-top: none; }

/* Sección CTA Final */
.gallery-footer-cta {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(to bottom, transparent, rgba(227, 30, 36, 0.05));
}

.shimmer-text {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 3px;
    color: #fff;
    margin-bottom: 10px;
}

.social-pills {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pill {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    transition: 0.3s;
}

.pill.fb { background: #1877f2; }
.pill.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.pill:hover { transform: translateY(-5px); filter: brightness(1.2); }

/* FOOTER ELITE */
.elite-footer {
    background: #000;
    padding: 60px 0 0;
    border-top: 1px solid #1a1a1a;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo { height: 70px; margin-right: 15px; }

.footer-brand { display: flex; align-items: center; }

.brand-name { font-family: 'Oswald', sans-serif; font-size: 1.6rem; font-weight: bold; }

.red-text { color: #e31e24; }

.brand-slogan { font-size: 0.8rem; letter-spacing: 3px; color: #666; text-transform: uppercase; }

.footer-details { text-align: right; color: #555; font-size: 0.9rem; }

.location-tag { color: #888; margin-top: 5px; }

.bottom-accent-bar {
    height: 5px;
    background: #e31e24;
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%);
}

/* Status Dot y Animación */
.status-indicator { font-size: 0.7rem; letter-spacing: 3px; display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; background: #00ff00; border-radius: 50%; box-shadow: 0 0 10px #00ff00; animation: pulse 1.5s infinite; }

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }

@media (max-width: 768px) {
    .glitch-text { font-size: 3.5rem; }
    .bg-text { font-size: 10rem; }
    .industrial-container { padding: 15px; width: 92%; }
    .footer-grid { flex-direction: column; text-align: center; }
    .footer-details { text-align: center; }
}

.messenger-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0084FF; /* Color oficial Messenger */
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    z-index: 3000;
    box-shadow: 0 5px 20px rgba(0, 132, 255, 0.4);
    transition: 0.3s;
    font-family: 'Oswald', sans-serif;
}
.messenger-float:hover {
    transform: scale(1.1) translateY(-5px);
    background: #0073e6;
}
@media (max-width: 768px) {
    .messenger-float span { display: none; }
    .messenger-float { padding: 15px; border-radius: 50%; }
}

.btn-league:hover {
    background: #e31e24 !important;
    box-shadow: 0 0 20px rgba(227, 30, 36, 0.5);
    transform: translateY(-3px);
    color: #fff !important;
}

/* Ajuste responsivo para el cuadro de la liga */
@media (max-width: 768px) {
    .league-header h2 { font-size: 1.8rem !important; }
    .league-content { padding: 20px !important; }
}

/* ===== MEJORAS DE RESPONSIVIDAD ===== */

/* Menú Hamburguesa para móviles */
.mobile-menu-toggle {
    display: none;
    font-size: 2rem;
    color: var(--blanco);
    cursor: pointer;
    z-index: 2001;
    background: transparent;
    border: none;
    transition: var(--transition-fast);
    padding: 10px;
}

.mobile-menu-toggle:hover {
    color: var(--rojo);
}

/* Overlay para menú móvil */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1999;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-links {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    text-align: center;
    width: 100%;
    padding: 20px;
}

.mobile-menu-links.active {
    display: block;
}

.mobile-menu-links ul {
    list-style: none;
}

.mobile-menu-links li {
    margin: 25px 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.4s ease forwards;
}

.mobile-menu-links li:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-links li:nth-child(2) { animation-delay: 0.2s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-links a {
    color: var(--blanco);
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.5rem, 6vw, 2rem);
    text-transform: uppercase;
    transition: var(--transition-fast);
    display: inline-block;
    position: relative;
}

.mobile-menu-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--rojo);
    transition: width 0.3s ease;
}

.mobile-menu-links a:hover::after,
.mobile-menu-links a.active-link::after {
    width: 100%;
}

.mobile-menu-links a:hover,
.mobile-menu-links .active-link {
    color: var(--rojo);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    color: var(--blanco);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition-fast);
}

.mobile-menu-close:hover {
    color: var(--rojo);
    transform: rotate(90deg);
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none !important;
    }
    
    .nav-container {
        position: relative;
        padding: 0 15px;
    }
    
    .logo-space img {
        height: 70px;
        transform: translateY(10px);
    }
    
    .navbar.scrolled .logo-space img {
        height: 50px;
    }
    
    .slogan-animate {
        display: none;
    }
    
    .hero h1 {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    
    .stats-bar {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .stat-item {
        flex: 1 1 100%;
    }
    
    .stat-item::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 70vh;
    }
    
    .hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    
    .badge-tdm {
        padding: 5px 15px;
        font-size: 0.7rem;
    }
    
    .btn-neon {
        padding: 12px 25px;
        font-size: 0.8rem;
    }
    
    .info-card {
        padding: 30px 20px;
    }
    
    .info-card h2 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
}

/* Mejora para el mapa */
.map-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.map-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .map-frame {
        padding-bottom: 75%; /* 4:3 Aspect Ratio para móviles */
    }
    
    .map-wrapper {
        grid-template-columns: 1fr;
    }
    
    .map-info {
        padding: 30px 20px;
        text-align: center;
    }
}

/* Mejora para imágenes */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Scroll padding para compensar navbar fija */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
}

/* Mejoras de accesibilidad */
:focus {
    outline: 2px solid var(--rojo);
    outline-offset: 2px;
}

/* Clases de utilidad para dispositivos táctiles */
.touch-device .btn-neon {
    padding: 15px 40px; /* Botones más grandes para táctil */
}

/* Animación suave para transiciones */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Mejora para el botón de Messenger */
.messenger-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0084FF;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    z-index: 3000;
    box-shadow: 0 5px 20px rgba(0, 132, 255, 0.4);
    transition: all 0.3s ease;
    font-family: 'Oswald', sans-serif;
}

.messenger-float:hover {
    transform: scale(1.1) translateY(-5px);
    background: #0073e6;
    box-shadow: 0 8px 25px rgba(0, 132, 255, 0.6);
}

@media (max-width: 768px) {
    .messenger-float {
        bottom: 20px;
        right: 20px;
        padding: 12px;
        border-radius: 50%;
    }
    
    .messenger-float span {
        display: none;
    }
    
    .messenger-float i {
        font-size: 1.5rem;
    }
}

/* Mejora para la galería en móviles */
@media (max-width: 768px) {
    .glitch-text {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    
    .bg-text {
        font-size: clamp(6rem, 20vw, 10rem);
    }
    
    .industrial-container {
        padding: 15px;
        margin: 0 15px 30px;
    }
    
    .cyber-btn {
        width: 100%;
        justify-content: center;
        clip-path: polygon(5% 0, 100% 0, 95% 100%, 0% 100%);
    }
    
    .nav-strip {
        flex-direction: column;
        gap: 15px;
        margin: -20px 15px 30px;
    }
}

/* Orientación landscape */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }
    
    .hero h1 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    .stats-bar {
        padding: 30px 15px;
    }
    
    .mobile-menu-links a {
        font-size: 1.2rem;
    }
    
    .mobile-menu-links li {
        margin: 15px 0;
    }
}

/* Pantallas grandes */
@media (min-width: 1400px) {
    .container,
    .main-content,
    .industrial-container {
        max-width: 1300px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Impresión */
@media print {
    .navbar,
    .messenger-float,
    .btn-neon,
    .footer-final {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

.fb-grid {
    min-height: 600px;
    background: linear-gradient(90deg, #111 25%, #1a1a1a 50%, #111 75%);
    background-size: 200% 100%;
    animation: loadingShimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes loadingShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

