﻿/* --- RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Impact', 'Arial Black', sans-serif; -webkit-tap-highlight-color: transparent; }
body { background-color: #000000; color: #ffffff; overflow-x: hidden; line-height: 1.2; }

/* --- ENCABEZADO STICKY REVOLUCIONARIO --- */
#main-header { position: fixed; top: 0; left: 0; width: 100%; background-color: #000000; border-bottom: 5px dashed #ff2a2a; display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; z-index: 9999; transition: all 0.3s ease; }
#main-header.shrink { padding: 8px 15px; background-color: rgba(0, 0, 0, 0.95); border-bottom-style: dotted; border-bottom-color: #ffffff; }
.nav-logo { height: 50px; transition: height 0.3s ease; filter: drop-shadow(0 0 6px #ff2a2a); }
#main-header.shrink .nav-logo { height: 35px; }
.menu-trigger { background: #ff2a2a; color: #000000; padding: 8px 15px; font-size: 1.1rem; cursor: pointer; transform: rotate(3deg); border: 2px solid #ffffff; transition: transform 0.2s ease, background 0.2s ease; user-select: none; text-align: center; }
.menu-trigger:hover, .menu-trigger:active { transform: rotate(-3deg) scale(1.05); background: #ffffff; color: #ff2a2a; }

/* --- CONTENIDO --- */
main { margin-top: 100px; padding: 10px; }
.split-section { display: grid; grid-template-columns: 1fr; gap: 30px; padding: 15px; }
.spirit-box { background: #111111; border-left: 6px solid #ff2a2a; padding: 25px 20px; transform: rotate(-0.5deg); box-shadow: 6px 6px 0px #ffffff; }
.glitch-text { font-size: 2.2rem; color: #ff2a2a; text-transform: uppercase; letter-spacing: -1px; margin-bottom: 15px; text-shadow: 2px 2px 0px #ffffff; }
.spirit-p { font-family: 'Courier New', Courier, monospace; font-size: 1.1rem; font-weight: bold; color: #ffffff; }
.spirit-p .highlight { color: #ff2a2a; background: #ffffff; padding: 2px 5px; }
.spirit-p .sub-wild { font-size: 1.8rem; color: #ff2a2a; display: inline-block; margin-top: 10px; animation: pulse 1s infinite alternate; }
.btn-wild { margin-top: 25px; background: #ffffff; color: #000000; border: none; padding: 12px 25px; font-size: 1.4rem; cursor: pointer; text-transform: uppercase; box-shadow: 4px 4px 0px #ff2a2a; width: 100%; transition: 0.2s; }
.btn-wild:active { background: #ff2a2a; color: #ffffff; box-shadow: -4px -4px 0px #ffffff; }

/* --- CUADRO ALIADOS GIGANTE --- */
.allies-box { text-align: center; margin-top: 10px; width: 100%; }
.image-frame { position: relative; width: 100%; max-width: 100%; margin: 0 auto; border: 12px solid transparent; border-image: linear-gradient(to right, #ff2a2a 33%, #ffffff 33%, #ffffff 66%, #000000 66%) 20; cursor: pointer; background: #111111; overflow: hidden; user-select: none; }
#main-ally-img { width: 100%; display: block; height: auto; }
.allies-inside-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90%; color: #000000; font-size: 1.2rem; text-transform: uppercase; text-align: center; letter-spacing: 2px; pointer-events: none; z-index: 5; }
#floating-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 10; }
.floating-ally-logo { position: absolute; width: 75%; max-width: 450px; aspect-ratio: 1 / 1; object-fit: contain; background-color: transparent; border: none; transform: translate(-50%, -50%); opacity: 1; animation: floatingFade 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }

@keyframes floatingFade {
    0% { transform: translate(-50%, -50%) scale(0.5) rotate(0deg); opacity: 0; }
    15% { transform: translate(-50%, -50%) scale(1) rotate(4deg); opacity: 1; }
    75% { opacity: 0.6; }
    100% { transform: translate(calc(-50% + var(--random-x)), calc(-50% - 150px)) scale(0.85) rotate(var(--random-rotate)); opacity: 0; }
}

/* --- SECCIONES CENTRALES --- */
.manifesto-strip { text-align: center; padding: 50px 15px; background: linear-gradient(180deg, #000000 0%, #ff2a2a 50%, #000000 100%); border-top: 3px solid #ffffff; border-bottom: 3px solid #ffffff; margin: 30px 0; }
.manifesto-strip h2 { font-size: 1.8rem; letter-spacing: -0.5px; margin-bottom: 15px; }
.manifesto-strip p { font-family: sans-serif; font-size: 1.1rem; text-transform: uppercase; color: #000000; background: #ffffff; display: inline-block; padding: 5px 10px; }

.nav-grid { display: grid; grid-template-columns: 1fr; gap: 25px; padding: 10px 15px; }
.nav-card { position: relative; background: #111; border: 3px solid #ffffff; overflow: hidden; height: 280px; }
.nav-card img { width: 100%; height: 100%; object-fit: cover; filter: contrast(120%); }
.card-link { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%) rotate(-1deg); background: #000000; color: #ff2a2a; text-decoration: none; font-size: 1.4rem; padding: 10px 15px; border: 2px solid #ff2a2a; width: 85%; text-align: center; box-shadow: 4px 4px 0px #ffffff; }

/* --- MISIÓN Y VISIÓN --- */
.compass-section { display: grid; grid-template-columns: 1fr; gap: 30px; padding: 30px 15px; margin: 20px 0; }
.compass-card { background: #0d0d0d; padding: 25px; border: 3px solid #ffffff; transform: rotate(0.5deg); }
.compass-card:nth-child(even) { transform: rotate(-0.5deg); border-color: #ff2a2a; }
.compass-card h2 { font-size: 2.2rem; color: #ff2a2a; margin-bottom: 12px; }
.compass-card:nth-child(even) h2 { color: #ffffff; }
.compass-card p { font-family: 'Courier New', Courier, monospace; font-size: 1.05rem; color: #e0e0e0; line-height: 1.4; text-align: justify; font-weight: bold; }

/* --- RADARES CULTURALES --- */
.axes-section { padding: 40px 15px; }
.axes-header { text-align: center; margin-bottom: 40px; }
.axes-header h2 { font-size: 2.2rem; text-shadow: 2px 2px 0px #ff2a2a; }
.axes-header p { font-family: 'Courier New', monospace; font-size: 1.1rem; color: #ff2a2a; margin-top: 5px; }
.axes-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.axis-item { background: #111111; border: 2px dashed #ffffff; display: flex; flex-direction: column; }
.axis-item img { width: 100%; height: 200px; object-fit: cover; border-bottom: 4px solid #ff2a2a; }
.axis-content { padding: 20px; }
.axis-content h3 { font-size: 2rem; color: #ff2a2a; margin-bottom: 5px; }
.axis-content h4 { font-family: sans-serif; font-size: 1rem; font-style: italic; color: #ffffff; margin-bottom: 12px; }
.axis-content p { font-family: sans-serif; font-size: 0.9rem; color: #dddddd; line-height: 1.4; text-align: justify; }

/* --- MODAL POPOUT --- */
.popout-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.98); z-index: 10000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; padding: 15px; }
.popout-overlay.active { opacity: 1; visibility: visible; }
.popout-content { position: relative; width: 100%; max-width: 800px; border: 4px dashed #ff2a2a; background: #111; padding: 10px; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; }
.video-wrapper video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }
.crazy-close-btn { position: absolute; top: -55px; right: 0; background: #ff2a2a; color: #ffffff; border: 2px dashed #ffffff; padding: 8px 15px; font-size: 1rem; cursor: pointer; }

/* --- FOOTER INTACTO --- */
footer { border-top: 4px dashed #ff2a2a; background: #000000; padding: 35px 15px; text-align: center; margin-top: 50px; }
.anti-copy { font-size: 1.1rem; margin-bottom: 20px; letter-spacing: 0.5px; font-weight: bold; }
.social-links { display: flex; justify-content: center; gap: 25px; }
.social-links a img { height: 38px; filter: invert(100%); transition: transform 0.2s ease; }
.social-links a:hover img { transform: scale(1.15) rotate(8deg); }

/* --- ESCRITORIO --- */
@media (min-width: 768px) {
    #main-header { padding: 20px 40px; } .nav-logo { height: 70px; } .menu-trigger { font-size: 1.4rem; padding: 10px 20px; } main { margin-top: 140px; padding: 20px; }
    .split-section { grid-template-columns: 40fr 60fr; gap: 50px; padding: 40px; align-items: center; }
    .glitch-text { font-size: 3.2rem; } .spirit-p { font-size: 1.25rem; } .btn-wild { width: auto; }
    .allies-inside-text { font-size: 2.2rem; letter-spacing: 3px; }
    .nav-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 20px 40px; } .nav-card { height: 400px; }
    .nav-card img { filter: grayscale(100%) contrast(150%); transition: 0.4s ease; } .nav-card:hover img { filter: grayscale(0%) contrast(100%); transform: scale(1.05); }
    .compass-section { grid-template-columns: 1fr 1fr; gap: 40px; padding: 20px 40px; } .compass-card { padding: 40px; } .compass-card h2 { font-size: 3rem; } .compass-card p { font-size: 1.3rem; }
    .axes-header h2 { font-size: 4rem; } .axes-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.03); } }
/* ==========================================================================
   INYECCIÓN: MENÚ DE NAVEGACIÓN SENCILLO PARA EL FOOTER UNIVERSAL
   ========================================================================== */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 0 10px;
}

.footer-nav a {
    font-family: Arial, Helvetica, sans-serif; /* Letra sencilla solicitada */
    font-size: 0.85rem; /* Letra pequeña solicitada */
    color: #aaaaaa; /* Gris suave para que sea discreto */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.footer-nav a:hover, .footer-nav a:active {
    color: #ff2a2a; /* Enciende en rojo corporativo al pasar el cursor o tocarlo */
}

/* Ajuste de separación en pantallas de escritorio */
@media (min-width: 768px) {
    .footer-nav {
        gap: 30px;
        margin-bottom: 30px;
    }
    .footer-nav a {
        font-size: 0.9rem;
    }
}
/* ==========================================================================
   HOJA DE ESTILOS ACTUALIZADA PARA EL ENCABEZADO UNIVERSAL
   ========================================================================== */

#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000000;
    border-bottom: 5px dashed #ff2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    z-index: 9999;
    transition: all 0.3s ease;
}

/* Estado contraído al hacer scroll general */
#main-header.shrink {
    padding: 8px 15px;
    background-color: rgba(0, 0, 0, 0.95);
    border-bottom-style: dotted;
    border-bottom-color: #ffffff;
}

.nav-logo {
    height: 50px;
    transition: height 0.3s ease;
    filter: drop-shadow(0 0 6px #ff2a2a);
}

#main-header.shrink .nav-logo {
    height: 35px;
}

/* Contenedor alineado de los botones */
.header-buttons-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.menu-trigger {
    background: #ff2a2a;
    color: #000000;
    padding: 8px 15px;
    font-size: 1rem;
    cursor: pointer;
    transform: rotate(3deg);
    border: 2px solid #ffffff;
    transition: transform 0.2s ease, background 0.2s ease;
    user-select: none;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

/* Estilo propio para destacar el botón de TV en Vivo */
.live-tv-btn {
    background: #ffffff;
    color: #000000;
    transform: rotate(-1deg);
}

.menu-trigger:hover, .menu-trigger:active {
    transform: rotate(-3deg) scale(1.05);
    background: #ffffff;
    color: #ff2a2a;
}

.live-tv-btn:hover, .live-tv-btn:active {
    background: #ff2a2a;
    color: #ffffff;
    border-color: #ffffff;
    transform: rotate(2deg) scale(1.05);
}

/* --- OPTIMIZACIÓN RESPONSIVA PANTALLAS CHICAS (MÓVILES) --- */
@media (max-width: 480px) {
    #main-header {
        padding: 10px 12px;
    }
    .header-buttons-group {
        gap: 8px;
    }
    .menu-trigger {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
}

/* --- OPTIMIZACIÓN PANTALLAS GRANDES (ESCRITORIO) --- */
@media (min-width: 768px) {
    #main-header {
        padding: 20px 40px;
    }
    .nav-logo {
        height: 70px;
    }
    .menu-trigger {
        font-size: 1.3rem;
        padding: 10px 20px;
    }
    .header-buttons-group {
        gap: 20px;
    }
}
