/* ==========================================================================
   DUMATH — ESTILO RETRO PIXEL MINIMALISTA Y PULCRO
   Predominio morado místico, fondo difuminado en transición y navegación limpia
   ========================================================================== */

:root {
    /* Paleta Principal Morada Mística */
    --purple-deepest: #0c0317;
    --purple-dark: #18062e;
    --purple-panel: #27094b;
    --purple-card: #360d66;
    --purple-bright: #8700ed;
    --purple-neon: #a855f7;
    --purple-light: #c084fc;
    --purple-lavender: #f1e6ff;
    --purple-glow: rgba(168, 85, 247, 0.35);

    /* Acentos Dorados Retro */
    --gold-primary: #ffd13b;
    --gold-hover: #ffdf70;
    --gold-glow: rgba(255, 209, 59, 0.4);

    /* Textos */
    --text-pure: #ffffff;
    --text-main: #f5edff;
    --text-muted: #d4b8f7;

    /* Fuentes Pixeladas */
    --font-heading: 'Press Start 2P', monospace;
    --font-ui: 'Pixelify Sans', sans-serif;
    --font-mono: 'VT323', monospace;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    image-rendering: pixelated;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--purple-deepest);
    color: var(--text-main);
    font-family: var(--font-ui);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--purple-deepest);
}
::-webkit-scrollbar-thumb {
    background: var(--purple-bright);
    border: 2px solid var(--purple-light);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* ==========================================================================
   FONDO SLIDESHOW DIFUMINADO (BackgroundDUMATH.jpg)
   ========================================================================== */

.bg-slideshow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    /* Imagen de fondo nítida y clara sin desenfoque excesivo */
    filter: brightness(0.65) saturate(1.15);
    transition: opacity 1.8s ease-in-out;
}

.bg-slide.active {
    opacity: 1;
}

.bg-overlay-purple {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradado morado místico transparente para que el arte de fondo se aprecie claramente */
    background: radial-gradient(
        circle at 50% 35%,
        rgba(135, 0, 237, 0.22) 0%,
        rgba(22, 5, 42, 0.58) 55%,
        rgba(10, 2, 20, 0.82) 100%
    );
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN RETRO MINIMALISTA
   ========================================================================== */

.retro-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(18, 5, 36, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--purple-panel);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    padding: 0.8rem 2rem;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand-badge {
    text-decoration: none;
    background: var(--purple-panel);
    border: 2px solid var(--purple-light);
    padding: 0.4rem 0.9rem;
    box-shadow: 3px 3px 0 #000;
    transition: transform 0.15s, background 0.15s;
}

.brand-badge:hover {
    transform: translateY(-2px);
    background: var(--purple-bright);
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    color: var(--gold-primary);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: rgba(15, 4, 30, 0.88);
    border: 2px solid var(--purple-light);
    padding: 0.45rem 1.4rem;
    box-shadow: 3px 3px 0 #000;
}

.nav-link {
    font-family: var(--font-ui);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.15s;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-primary);
}

.nav-divider {
    color: var(--purple-light);
    opacity: 0.5;
    user-select: none;
}

/* Botón Iniciar Sesión en la barra */
.nav-btn-login {
    background: var(--purple-panel);
    border: 2px solid var(--purple-light);
    color: var(--text-pure);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    padding: 0.55rem 1rem;
    cursor: pointer;
    box-shadow: 2px 2px 0 #000;
    transition: all 0.15s;
    letter-spacing: 0.5px;
}

.nav-btn-login:hover {
    background: var(--purple-bright);
    color: var(--gold-primary);
    transform: translateY(-2px);
    border-color: var(--gold-primary);
}

/* Botón Jugar en la barra */
.nav-btn-play {
    background: var(--gold-primary);
    color: #160424;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: bold;
    text-decoration: none;
    padding: 0.55rem 1.2rem;
    border: 2px solid #000;
    box-shadow: 3px 3px 0 #000;
    transition: all 0.15s;
    letter-spacing: 0.5px;
}

.nav-btn-play:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    background: var(--purple-panel);
    border: 2px solid var(--purple-light);
    color: #fff;
    font-size: 1.3rem;
    padding: 0.2rem 0.6rem;
    cursor: pointer;
}

/* Menú Móvil */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 270px;
    height: 100vh;
    background: var(--purple-dark);
    border-left: 3px solid var(--purple-light);
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    transition: right 0.3s ease;
    padding: 1.5rem;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--purple-light);
    padding-bottom: 0.8rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--gold-primary);
}

.mobile-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-link {
    font-family: var(--font-ui);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    padding: 0.5rem;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    border-bottom: 1px dashed var(--purple-card);
}

.mobile-link:hover {
    color: var(--gold-primary);
}

.mobile-link.btn-action {
    background: var(--purple-panel);
    border: 2px solid var(--purple-light);
    color: var(--gold-primary);
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    margin-top: 1rem;
}

.mobile-link.btn-play {
    background: var(--gold-primary);
    color: #160424 !important;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.75rem;
}

/* ==========================================================================
   CONTENEDOR PRINCIPAL
   ========================================================================== */

.page-container {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

/* Hero & Logo */
.hero-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    width: 100%;
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.main-logo {
    max-width: 820px;
    width: 95%;
    height: auto;
    filter: drop-shadow(0 0 35px rgba(135, 0, 237, 0.75)) drop-shadow(0 8px 0 rgba(0, 0, 0, 0.85));
    animation: gentleFloat 4s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.tagline-text {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    color: var(--gold-primary);
    letter-spacing: 2.5px;
    text-shadow: 2px 2px 0 #000, 0 0 15px rgba(255, 209, 59, 0.45);
    margin-top: 0.5rem;
    text-transform: uppercase;
    text-align: center;
}

/* Bloque de Información del Programa RPG con Pantalla Retro TV (CRT) */
.info-card {
    width: 100%;
    max-width: 1140px;
    /* Fondo morado transparente con trama de líneas de barrido tipo TV antigua */
    background:
        linear-gradient(rgba(18, 16, 38, 0) 50%, rgba(0, 0, 0, 0.38) 50%),
        radial-gradient(ellipse at center, rgba(38, 10, 72, 0.45) 0%, rgba(12, 2, 25, 0.78) 100%);
    background-size: 100% 4px, 100% 100%;
    backdrop-filter: blur(5px) saturate(1.2);
    -webkit-backdrop-filter: blur(5px) saturate(1.2);
    border: 4px solid #6b21a8;
    outline: 2px solid #a855f7;
    outline-offset: -2px;
    border-radius: 20px;
    box-shadow:
        inset 0 0 80px rgba(0, 0, 0, 0.85),
        inset 0 0 20px rgba(168, 85, 247, 0.25),
        0 0 35px rgba(135, 0, 237, 0.4),
        0 20px 50px rgba(0, 0, 0, 0.9);
    padding: 3.5rem 2.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Reflejo y brillo de curvatura de pantalla de tubo retro */
.info-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 16px 16px 140px 140px / 16px 16px 30px 30px;
    pointer-events: none;
    z-index: 1;
}

.info-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--gold-primary);
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 #000, 0 0 12px rgba(255, 209, 59, 0.4);
    line-height: 1.45;
    position: relative;
    z-index: 2;
}

.info-subtitle {
    font-family: var(--font-ui);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--purple-light);
    letter-spacing: 0.5px;
    margin-top: -0.6rem;
    position: relative;
    z-index: 2;
}

.link-retro {
    color: var(--gold-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s, text-shadow 0.15s;
}

.link-retro:hover {
    color: #ffffff;
    text-shadow: 0 0 8px var(--gold-glow);
}

/* Foto del Equipo */
.team-photo-block {
    width: 100%;
    max-width: 860px;
    background: #000;
    border: 3px solid var(--purple-light);
    box-shadow: 6px 6px 0 #000;
    margin: 1rem 0;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.team-photo-block:hover {
    transform: translateY(-3px);
    border-color: var(--gold-primary);
}

.featured-photo-img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    display: block;
    image-rendering: auto;
}

.photo-caption {
    display: block;
    background: rgba(14, 3, 28, 0.95);
    border-top: 2px solid var(--purple-panel);
    padding: 0.65rem 1rem;
    font-family: var(--font-ui);
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* Secciones de Artículo */
.article-section {
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    text-align: left;
    margin-top: 1rem;
    padding-top: 1.8rem;
    border-top: 2px dashed rgba(168, 85, 247, 0.4);
    position: relative;
    z-index: 2;
}

.sub-section-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--gold-primary);
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 #000;
    line-height: 1.45;
}

/* Grid de Fotos de Validación (jugando1.jpg y jugando2.jpg) */
.gameplay-photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin-top: 0.8rem;
}

.gameplay-photo-card {
    background: #000;
    border: 3px solid var(--purple-panel);
    box-shadow: 5px 5px 0 #000;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.gameplay-photo-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-primary);
    box-shadow: 6px 6px 0 #000, 0 0 15px var(--gold-glow);
}

.gameplay-photo-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    image-rendering: auto;
}

/* ==========================================================================
   REPRODUCTOR DE VIDEO RETRO (YOUTUBE AUTOPLAY)
   ========================================================================== */
.video-container-retro {
    width: 100%;
    max-width: 860px;
    margin: 1.2rem auto;
    background: #000;
    border: 3px solid var(--purple-light);
    box-shadow: 6px 6px 0 #000, 0 0 25px rgba(168, 85, 247, 0.4);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
    height: 0;
    z-index: 2;
}

.retro-video-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    object-fit: cover;
}

.video-footer-link {
    display: flex;
    justify-content: center;
    margin-top: -0.5rem;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 2;
}

.link-retro-video {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-ui);
    font-size: 1.2rem;
    color: var(--gold-primary);
    text-decoration: none;
    background: rgba(22, 6, 42, 0.75);
    border: 2px solid var(--purple-light);
    padding: 0.4rem 1rem;
    box-shadow: 3px 3px 0 #000;
    transition: transform 0.15s, border-color 0.15s, color 0.15s;
    border-radius: 4px;
}

.link-retro-video:hover {
    transform: translateY(-2px);
    border-color: var(--gold-primary);
    color: #ffffff;
    box-shadow: 4px 4px 0 #000, 0 0 15px var(--gold-glow);
}

.yt-play-badge {
    background: #ff0000;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

/* Cuadrículas de Galería Distribuidas por Sección */
.section-gallery-grid {
    display: grid;
    gap: 1.4rem;
    width: 100%;
    margin: 1.5rem 0;
    position: relative;
    z-index: 2;
}

.section-gallery-grid.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.section-gallery-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-card {
    background: #000;
    border: 3px solid var(--purple-panel);
    box-shadow: 4px 4px 0 #000;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.gallery-card.span-2 {
    grid-column: span 2;
}

.gallery-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--gold-primary);
    box-shadow: 6px 6px 0 #000, 0 0 15px var(--gold-glow);
}

.gallery-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center top;
    display: block;
    image-rendering: auto;
    transition: transform 0.3s ease;
}

.gallery-card-img.img-lg {
    height: 260px;
}

.gallery-card.span-2 .gallery-card-img {
    height: 240px;
}

.gallery-card:hover .gallery-card-img {
    transform: scale(1.04);
}

.scene-item:hover .scene-img {
    transform: scale(1.06);
}

.info-text-group {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    max-width: 940px;
    position: relative;
    z-index: 2;
}

.info-paragraph {
    font-family: var(--font-ui);
    font-size: 1.55rem;
    color: var(--text-main);
    line-height: 1.75;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.info-paragraph strong {
    color: var(--gold-primary);
}

/* Caja Destacada de Diagnóstico Nacional */
.retro-highlight-box {
    width: 100%;
    background: rgba(35, 10, 60, 0.7);
    border: 2px solid var(--gold-primary);
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.7), 4px 4px 0 #000;
    padding: 1.5rem 1.8rem;
    margin: 0.8rem 0;
    border-radius: 4px;
    position: relative;
    text-align: left;
}

.highlight-stat-badge {
    display: inline-block;
    background: var(--gold-primary);
    color: #160424;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.35rem 0.85rem;
    border: 2px solid #000;
    margin-bottom: 0.8rem;
    box-shadow: 2px 2px 0 #000;
}

.diagnosis-source {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px dashed rgba(255, 209, 59, 0.4);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-ui);
    font-size: 1.2rem;
}

.source-label {
    color: var(--purple-light);
    font-weight: 700;
}

.link-retro-source {
    color: var(--gold-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s, text-shadow 0.15s;
    line-height: 1.4;
}

.link-retro-source:hover {
    color: #ffffff;
    text-shadow: 0 0 10px var(--gold-glow);
}

/* Caja de Mecánicas de Juego y Desafíos */
.retro-mechanics-card {
    width: 100%;
    background: rgba(22, 6, 42, 0.75);
    border: 2px dashed var(--purple-light);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6), 4px 4px 0 #000;
    padding: 1.6rem 1.8rem;
    margin: 0.8rem 0;
    border-radius: 4px;
    text-align: left;
}

.mechanics-subtitle {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--gold-primary);
    margin-bottom: 0.8rem;
    letter-spacing: 0.8px;
    text-shadow: 1px 1px 0 #000;
}

/* Mapas del Gameplay en Columna Vertical Grande */
.gameplay-vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    width: 100%;
    margin-top: 1.6rem;
    position: relative;
    z-index: 2;
}

.gameplay-big-card {
    background: #000;
    border: 3px solid var(--purple-light);
    box-shadow: 6px 6px 0 #000, 0 0 20px rgba(168, 85, 247, 0.25);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gameplay-big-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: var(--gold-primary);
    box-shadow: 8px 8px 0 #000, 0 0 25px var(--gold-glow);
}

.gameplay-big-img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    display: block;
    image-rendering: auto;
    background: #07020e;
}

/* Banner Destacado del Programa Fellowship */
.fellowship-feature-badge {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1.6rem;
}

.fellowship-banner-link {
    display: inline-flex;
    align-items: center;
    gap: 1.4rem;
    background: rgba(30, 8, 56, 0.88);
    border: 2px solid var(--gold-primary);
    padding: 0.9rem 1.8rem;
    text-decoration: none;
    box-shadow: 4px 4px 0 #000, 0 0 20px var(--gold-glow);
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    border-radius: 4px;
}

.fellowship-banner-link:hover {
    transform: translateY(-3px);
    background: rgba(50, 14, 85, 0.95);
    box-shadow: 6px 6px 0 #000, 0 0 25px var(--gold-glow);
}

.fellowship-banner-logo {
    max-height: 52px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
}

.fellowship-banner-text {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--gold-primary);
    letter-spacing: 0.8px;
    line-height: 1.45;
    text-align: left;
}

/* Grupo de Botones de Acción */
.action-buttons-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.6rem;
    margin-top: 0.8rem;
    position: relative;
    z-index: 2;
}

.pixel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    padding: 1.15rem 2.4rem;
    text-decoration: none;
    border: 3px solid #000;
    box-shadow: 4px 4px 0 #000;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
    user-select: none;
    letter-spacing: 0.5px;
}

.pixel-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000;
}

.pixel-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #000;
}

.pixel-btn-play {
    background: var(--gold-primary);
    color: #160424;
}
.pixel-btn-play:hover {
    background: var(--gold-hover);
}

.pixel-btn-login {
    background: var(--purple-bright);
    color: #ffffff;
    border-color: #000;
}
.pixel-btn-login:hover {
    background: #9d1df5;
}

.pixel-btn-steam {
    background: #171a21;
    color: #c7d5e0;
    border: 3px solid var(--purple-light);
}
.pixel-btn-steam:hover {
    background: #2a475e;
    color: #ffffff;
}

.steam-logo-img {
    height: 26px;
    width: auto;
    object-fit: contain;
}

.w-100 {
    width: 100%;
}

/* ==========================================================================
   BLOQUE DE ALIADOS / PARTNERS
   ========================================================================== */

.partners-block {
    width: 100%;
    max-width: 920px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
}

.partners-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--gold-primary);
    letter-spacing: 1.5px;
    text-shadow: 1px 1px 0 #000;
}

.partners-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 820px;
}

.partner-item {
    background: rgba(24, 6, 46, 0.75);
    border: 2px solid var(--purple-light);
    box-shadow: 4px 4px 0 #000;
    padding: 1.2rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    text-decoration: none;
}

.partner-item:hover {
    transform: translateY(-3px);
    border-color: var(--gold-primary);
    box-shadow: 6px 6px 0 #000, 0 0 15px var(--gold-glow);
}

.partner-item img {
    max-height: 52px;
    max-width: 90%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* ==========================================================================
   FOOTER RETRO
   ========================================================================== */

.clean-footer {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(12, 3, 23, 0.95);
    border-top: 3px solid var(--purple-panel);
    font-family: var(--font-mono);
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* ==========================================================================
   MODAL DE INICIAR SESIÓN / REGISTRO
   ========================================================================== */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 2, 16, 0.85);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: #17062e;
    border: 4px solid var(--gold-primary);
    box-shadow: 8px 8px 0 #000, 0 0 35px var(--purple-glow);
    width: 100%;
    max-width: 440px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.modal-backdrop.active .modal-box {
    transform: scale(1);
}

.modal-header-bar {
    background: var(--purple-panel);
    border-bottom: 2px solid #000;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-caption {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    color: var(--gold-primary);
    letter-spacing: 0.5px;
}

.modal-btn-close {
    background: #ef4444;
    border: 2px solid #000;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 2px 2px 0 #000;
}

.modal-btn-close:hover {
    background: #dc2626;
}

.modal-tab-switch {
    display: flex;
    border-bottom: 2px solid #000;
    background: #100420;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.6rem;
    padding: 0.75rem 0.5rem;
    cursor: pointer;
    transition: all 0.15s;
}

.tab-btn.active {
    background: #17062e;
    color: var(--gold-primary);
    border-bottom: 2px solid var(--gold-primary);
}

.auth-form {
    padding: 1.5rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.auth-form.hidden {
    display: none;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
}

.form-row label {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.form-row input {
    background: #0d031b;
    border: 2px solid var(--purple-light);
    color: #ffffff;
    font-family: var(--font-ui);
    font-size: 1.15rem;
    padding: 0.65rem 0.9rem;
    outline: none;
    transition: border-color 0.15s;
}

.form-row input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 8px var(--gold-glow);
}

.form-role-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
}

.form-role-group label {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    color: var(--text-main);
}

.role-options {
    display: flex;
    gap: 1.5rem;
}

.role-opt {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-family: var(--font-ui);
    font-size: 1.1rem;
    color: var(--gold-primary);
}

.role-opt input {
    accent-color: var(--purple-bright);
    width: 16px;
    height: 16px;
}

.modal-footer-info {
    background: #0d031b;
    border-top: 2px solid #000;
    padding: 0.7rem;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 1.05rem;
    color: var(--purple-light);
}

/* ==========================================================================
   LIGHTBOX MODAL PARA IMÁGENES CLARAS
   ========================================================================== */

.lightbox-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 2, 16, 0.94);
    backdrop-filter: blur(8px);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.lightbox-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    background: #000;
    border: 4px solid var(--gold-primary);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), 0 0 30px var(--purple-glow);
}

.lightbox-container img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    object-fit: contain;
    image-rendering: auto;
}

.lightbox-close {
    position: absolute;
    top: -16px;
    right: -16px;
    background: #ef4444;
    border: 2px solid #000;
    color: #fff;
    font-size: 1.4rem;
    font-weight: bold;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 3px 3px 0 #000;
    z-index: 10;
}

.lightbox-close:hover {
    background: #dc2626;
}

/* ==========================================================================
   RESPONSIVIDAD
   ========================================================================== */

@media (max-width: 860px) {
    .nav-links {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .mobile-menu {
        display: flex;
    }
    .section-gallery-grid.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .partners-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .info-title {
        font-size: 1.4rem;
    }
    .sub-section-title {
        font-size: 1.2rem;
    }
    .info-paragraph {
        font-size: 1.35rem;
    }
}

@media (max-width: 600px) {
    .retro-header {
        padding: 0.7rem 1rem;
    }
    .info-card {
        padding: 2rem 1.2rem;
        border-radius: 14px;
    }
    .section-gallery-grid.grid-2,
    .section-gallery-grid.grid-3 {
        grid-template-columns: 1fr;
    }
    .gallery-card.span-2 {
        grid-column: span 1;
    }
    .gallery-card-img,
    .gallery-card-img.img-lg {
        height: 210px;
    }
    .info-title {
        font-size: 1.25rem;
    }
    .sub-section-title {
        font-size: 1.1rem;
    }
    .info-paragraph {
        font-size: 1.25rem;
    }
    .pixel-btn {
        width: 100%;
        font-size: 0.85rem;
        padding: 1rem 1.5rem;
    }
    .tagline-text {
        font-size: 1.15rem;
    }
    .action-buttons-group {
        flex-direction: column;
        width: 100%;
    }
    .partners-row {
        grid-template-columns: 1fr;
    }
    .fellowship-banner-link {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    .fellowship-banner-text {
        text-align: center;
    }
}