/* =========================================================
   BUNKERS INC. — Landing
   2HN Games · Proyecto académico UCM
   ---------------------------------------------------------
   Estructura del archivo:
     1. Variables (tokens de diseño)
     2. Reset + base
     3. Tipografías y utilidades
     4. Overlays globales (ruido, scanlines)
     5. Botones reutilizables
     6. Navegación
     7. Hero
     8. Banda hazard / divisores
     9. Secciones genéricas
    10. Sobre el juego
    11. Mecánicas (features)
    12. Tráiler
    13. Capturas (galería)
    14. Descarga
    15. Equipo
    16. Referencias
    17. Footer
    18. Responsive
   ========================================================= */


/* =========================================================
   1. VARIABLES — toca aquí para ajustar la paleta global
   ========================================================= */
:root {
    /* Fondos */
    --bg-deepest: #0c0805;
    --bg-base:    #14100a;
    --bg-panel:   #1f1810;
    --bg-elevated:#2b2117;
    --bg-hover:   #38291b;

    /* Bordes y separadores */
    --border:        #3a2c1c;
    --border-strong: #4f3a23;

    /* Texto */
    --text-primary:   #f4e6c5;
    --text-secondary: #c4b290;
    --text-muted:     #8a7a5e;
    --text-faint:     #5b4f3c;

    /* Acentos */
    --accent:        #d4a342;     /* mustard dorado, color de marca */
    --accent-bright: #f0c460;
    --accent-dim:    #a37d2c;
    --danger:        #c4452f;     /* rojo del sello de cera */
    --danger-bright: #e35a3f;
    --hazard:        #f0c460;     /* amarillo de advertencia */

    /* Sombras */
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-hard: 0 8px 32px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 24px rgba(212, 163, 66, 0.25);

    /* Tipografías */
    --font-display: "Black Ops One", "Impact", sans-serif;
    --font-mono:    "VT323", "Courier New", monospace;
    --font-body:    "Barlow", -apple-system, system-ui, sans-serif;

    /* Layout */
    --container-max: 1200px;
    --container-pad: clamp(1.25rem, 4vw, 2.5rem);
    --section-pad-y: clamp(4rem, 10vw, 7rem);

    /* Radios — pequeños, sensación industrial */
    --radius-sm: 2px;
    --radius:    4px;
    --radius-lg: 6px;
}


/* =========================================================
   2. RESET + BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-base);
    /* Atmósfera: gradiente sutil radial desde arriba */
    background-image:
        radial-gradient(ellipse at top, rgba(212, 163, 66, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(196, 69, 47, 0.04) 0%, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-bright); }

ul { list-style: none; padding: 0; margin: 0; }

code {
    font-family: var(--font-mono);
    color: var(--accent);
    background: var(--bg-panel);
    padding: 0.1em 0.4em;
    border-radius: var(--radius-sm);
    font-size: 0.95em;
}

::selection {
    background: var(--accent);
    color: var(--bg-base);
}


/* =========================================================
   3. TIPOGRAFÍAS Y UTILIDADES
   ========================================================= */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.05;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

strong { color: var(--accent-bright); font-weight: 700; }


/* =========================================================
   4. OVERLAYS GLOBALES — grano + scanlines tipo CRT
   ========================================================= */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.04;
    /* SVG inline de ruido fractal */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='1'/></svg>");
}

.scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1001;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0px,
        rgba(0,0,0,0) 2px,
        rgba(0,0,0,0.06) 3px,
        rgba(0,0,0,0) 4px
    );
    opacity: 0.5;
    mix-blend-mode: multiply;
}


/* =========================================================
   5. BOTONES
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.85em 1.6em;
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn--small  { padding: 0.6em 1.1em; font-size: 0.85rem; }
.btn--large  { padding: 1em 2em;     font-size: 1.05rem; }

.btn--primary {
    background: var(--accent);
    color: var(--bg-deepest);
    border-color: var(--accent);
    box-shadow: var(--shadow-soft);
}
.btn--primary:hover {
    background: var(--accent-bright);
    border-color: var(--accent-bright);
    color: var(--bg-deepest);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn--ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-strong);
}
.btn--ghost:hover {
    color: var(--accent-bright);
    border-color: var(--accent);
    background: rgba(212,163,66,0.06);
    transform: translateY(-2px);
}


/* =========================================================
   6. NAVEGACIÓN
   ========================================================= */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(12, 8, 5, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0.85rem var(--container-pad);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-primary);
}
.nav__brand:hover { color: var(--accent-bright); }

.nav__brand-mark {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--bg-deepest);
    background: var(--danger);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--bg-base), 0 0 0 3px var(--danger), 0 4px 12px rgba(196,69,47,0.4);
    transform: rotate(-8deg);
    transition: transform 0.3s ease;
}
.nav__brand:hover .nav__brand-mark { transform: rotate(-15deg) scale(1.05); }

.nav__brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav__brand-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.03em;
}
.nav__brand-sub {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    margin-top: 2px;
}

.nav__links {
    display: flex;
    gap: 1.8rem;
    margin-left: auto;
}
.nav__links a {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    position: relative;
    padding: 0.3em 0;
}
.nav__links a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    height: 2px; width: 0;
    background: var(--accent);
    transition: width 0.25s ease;
}
.nav__links a:hover { color: var(--text-primary); }
.nav__links a:hover::after { width: 100%; }


/* =========================================================
   7. HERO
   ========================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 8rem var(--container-pad) 4rem;
}

/* Cielo tóxico en gradiente */
.hero__sky {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(240, 196, 96, 0.12), transparent 50%),
        linear-gradient(180deg,
            #1a1108 0%,
            #2a1d0f 35%,
            #3d2a14 65%,
            #1a1108 100%
        );
    z-index: -3;
}

/* Silueta de skyline en CSS puro: edificios irregulares como recorte */
.hero__skyline {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 35vh;
    background: var(--bg-deepest);
    z-index: -2;
    /* Skyline construido con polígonos */
    clip-path: polygon(
        0% 100%,
        0% 78%,
        4% 78%, 4% 60%, 8% 60%, 8% 78%,
        12% 78%, 12% 50%, 14% 50%, 14% 45%, 18% 45%, 18% 70%,
        22% 70%, 22% 55%, 26% 55%, 26% 35%, 28% 35%, 28% 70%,
        32% 70%, 32% 65%, 36% 65%, 36% 40%, 40% 40%, 40% 25%, 42% 25%, 42% 60%,
        46% 60%, 46% 75%, 50% 75%, 50% 50%, 54% 50%, 54% 30%, 56% 30%, 56% 55%,
        60% 55%, 60% 70%, 64% 70%, 64% 45%, 68% 45%, 68% 65%,
        72% 65%, 72% 55%, 76% 55%, 76% 75%, 80% 75%, 80% 60%,
        84% 60%, 84% 70%, 88% 70%, 88% 50%, 92% 50%, 92% 80%,
        96% 80%, 96% 65%, 100% 65%, 100% 100%
    );
    box-shadow: 0 -6px 30px rgba(212, 163, 66, 0.05);
}

/* Capa de niebla baja */
.hero__fog {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40vh;
    background: linear-gradient(180deg, transparent 0%, rgba(20, 16, 10, 0.6) 50%, var(--bg-base) 100%);
    z-index: -1;
    pointer-events: none;
}

/* HUD esquinas */
.hero__hud {
    position: absolute;
    top: 6rem;
    right: var(--container-pad);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    z-index: 2;
}
.hud-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(31, 24, 16, 0.7);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.35em 0.9em;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
}
.hud-pill--mono { color: var(--accent); border-color: rgba(212,163,66,0.3); }
.hud-dot {
    width: 8px; height: 8px;
    background: var(--danger-bright);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--danger-bright);
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.85); }
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    /* Pequeña animación de entrada en cascada */
    animation: fadeUp 0.9s ease 0.1s both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 1.05rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.hero__eyebrow::before {
    content: "█ ";
    color: var(--danger);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 14vw, 11rem);
    line-height: 0.85;
    margin: 0 0 1.5rem;
    /* Sombra con desplazamiento — efecto stamp */
    text-shadow:
        4px 4px 0 var(--bg-deepest),
        8px 8px 0 rgba(196, 69, 47, 0.2);
}
.hero__title-line { display: block; }
.hero__title-line--accent {
    color: var(--accent);
    /* Pequeño desplazamiento para sensación stencil */
    margin-left: 0.4em;
}

.hero__tagline {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 38ch;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}
.hero__tags li {
    background: rgba(31, 24, 16, 0.6);
    border: 1px solid var(--border);
    padding: 0.3em 0.8em;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero__scroll {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    width: 24px; height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    z-index: 2;
}
.hero__scroll span {
    display: block;
    width: 3px; height: 8px;
    background: var(--text-secondary);
    margin: 6px auto 0;
    border-radius: 2px;
    animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot {
    0%   { opacity: 0; transform: translateY(0); }
    40%  { opacity: 1; }
    80%  { opacity: 0; transform: translateY(12px); }
    100% { opacity: 0; }
}


/* =========================================================
   8. BANDA HAZARD — divisor de advertencia de radiación
   ========================================================= */
.hazard-band {
    height: 14px;
    background: repeating-linear-gradient(
        135deg,
        var(--hazard) 0 16px,
        var(--bg-deepest) 16px 32px
    );
    opacity: 0.55;
    border-top: 1px solid var(--bg-deepest);
    border-bottom: 1px solid var(--bg-deepest);
}


/* =========================================================
   9. SECCIONES GENÉRICAS
   ========================================================= */
.section {
    padding: var(--section-pad-y) var(--container-pad);
    position: relative;
}
.section--alt { background: var(--bg-deepest); }

.section__inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

.section__head {
    margin-bottom: 3rem;
}

.section__num {
    display: inline-block;
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.6rem;
}

.section__title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1;
    margin-bottom: 1rem;
}

.section__lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 60ch;
}

.lead { font-size: 1.15rem; color: var(--text-secondary); }

.subhead {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 3rem 0 1.5rem;
}
.subhead__bar {
    display: inline-block;
    width: 32px; height: 3px;
    background: var(--accent);
}


/* =========================================================
   10. SOBRE EL JUEGO — layout dos columnas
   ========================================================= */
.two-col {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: start;
}
.two-col__head { position: sticky; top: 6rem; }
.two-col__body p { margin-bottom: 1.2em; }

.objectives {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.objectives li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.2rem;
    background: var(--bg-panel);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
}
.objective__icon {
    flex-shrink: 0;
    width: 32px; height: 32px;
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-size: 1rem;
    border-radius: 50%;
}
.objective__icon--win  { background: rgba(212, 163, 66, 0.15); color: var(--accent); }
.objective__icon--lose { background: rgba(196, 69, 47, 0.15);  color: var(--danger-bright); border-left-color: var(--danger); }
.objectives li:has(.objective__icon--lose) { border-left-color: var(--danger); }


/* =========================================================
   11. MECÁNICAS — features grid
   ========================================================= */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.feature {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem 1.6rem;
    position: relative;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    /* Esquina superior izquierda recortada para sensación pixel/militar */
    clip-path: polygon(0 12px, 12px 0, 100% 0, 100% 100%, 0 100%);
}
.feature::before {
    /* Diagonal de la esquina recortada */
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 16px; height: 16px;
    background: linear-gradient(135deg, transparent 50%, var(--accent) 50%);
    opacity: 0.5;
}
.feature:hover {
    transform: translateY(-4px);
    background: var(--bg-elevated);
    border-color: var(--accent-dim);
}
.feature:hover::before { opacity: 1; }

.feature__icon {
    width: 48px; height: 48px;
    color: var(--accent);
    margin-bottom: 1rem;
}
.feature__icon svg { width: 100%; height: 100%; }

.feature h4 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.feature p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}


/* =========================================================
   12. TRÁILER
   ========================================================= */
.video {
    max-width: 960px;
    margin: 0 auto;
}
.video__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--bg-deepest);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hard);
}
.video__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video__caption {
    text-align: center;
    margin-top: 1rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

/* Contenedor de dos vídeos en la sección de tráiler */
.videos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* En pantallas medianas/pequeñas, apila uno encima del otro */
@media (max-width: 900px) {
    .videos {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}


/* =========================================================
   13. CAPTURAS — galería con item ancho ocasional
   ========================================================= */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery__item {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-deepest);
    transition: transform 0.25s ease, border-color 0.25s ease;
    position: relative;
    aspect-ratio: 16 / 9;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;        /* ← explícito, por si quieres ajustarlo por imagen */
    transition: transform 0.4s ease, filter 0.3s ease;
    filter: saturate(0.9) contrast(1.05);
}


.gallery__item:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}
.gallery__item:hover img {
    transform: scale(1.04);
    filter: saturate(1.1) contrast(1.1);
}

.gallery__item figcaption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 0.7rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
    letter-spacing: 0.05em;
    transform: translateY(100%);
    transition: transform 0.25s ease;
}
.gallery__item:hover figcaption { transform: translateY(0); }


/* =========================================================
   14. DESCARGA
   ========================================================= */
.download {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.download-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.8rem;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.download-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.download-card__icon {
    width: 60px; height: 60px;
    display: grid; place-items: center;
    color: var(--accent);
    background: rgba(212,163,66,0.08);
    border-radius: var(--radius);
}

.download-card__platform {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.download-card h3 {
    font-size: 1.25rem;
    margin: 0.25rem 0;
}
.download-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.download-card__arrow {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}
.download-card:hover .download-card__arrow {
    transform: translateX(6px);
    color: var(--accent);
}

.download__note {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-align: center;
}
.download__note-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-deepest);
    padding: 0.15em 0.6em;
    margin-right: 0.6rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    letter-spacing: 0.15em;
}


/* =========================================================
   15. EQUIPO
   ========================================================= */
.team {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.member {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.member:hover {
    transform: translateY(-2px);
    background: var(--bg-elevated);
    border-color: var(--accent);
    color: var(--text-primary);
}

.member__avatar {
    flex-shrink: 0;
    width: 48px; height: 48px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent-dim), var(--accent));
    color: var(--bg-deepest);
    font-family: var(--font-display);
    font-size: 1.3rem;
    border-radius: 50%;
    border: 2px solid var(--border-strong);
}
.member__avatar::before {
    /* La inicial sale del atributo data-initial */
    content: attr(data-initial);
}

.member__info { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.member__name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}
.member__role {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.member__handle {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.95rem;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   16. REFERENCIAS
   ========================================================= */
.refs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}

.ref {
    padding: 1.6rem;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
}
.ref__title {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
}
.ref ul {
    margin-bottom: 0.8rem;
}
.ref ul li {
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-size: 1.05rem;
    padding: 0.15em 0;
}
.ref ul li::before {
    content: "▸ ";
    color: var(--accent);
}
.ref p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}


/* =========================================================
   17. FOOTER
   ========================================================= */
.footer {
    background: var(--bg-deepest);
    border-top: 1px solid var(--border);
    padding: 3rem var(--container-pad) 2rem;
    margin-top: 2rem;
}

.footer__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.footer__brand-mark {
    font-family: var(--font-display);
    color: var(--accent);
    font-size: 2rem;
    line-height: 1;
    border: 2px solid var(--accent);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius);
}
.footer__brand-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-primary);
}
.footer__brand-sub {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    letter-spacing: 0.1em;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: flex-end;
}
.footer__links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.footer__links a:hover { color: var(--accent); }

.footer__legal {
    grid-column: 1 / -1;
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    margin: 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}


/* =========================================================
   18. RESPONSIVE
   ========================================================= */
@media (max-width: 920px) {
    .nav__links { display: none; }
    .two-col { grid-template-columns: 1fr; gap: 2rem; }
    .two-col__head { position: static; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .gallery__item--wide { grid-column: span 2; }
    .footer__inner { grid-template-columns: 1fr; }
    .footer__links { justify-content: flex-start; }
    .hero__hud { top: 5rem; right: var(--container-pad); }
}

@media (max-width: 560px) {
    .nav__brand-sub { display: none; }
    .hero__title { letter-spacing: -0.02em; }
    .hero__hud { position: static; flex-direction: row; flex-wrap: wrap; margin-bottom: 1.5rem; }
    .gallery { grid-template-columns: 1fr; }
    .gallery__item--wide { grid-column: span 1; }
    .download-card { grid-template-columns: 1fr; text-align: left; }
    .download-card__arrow { display: none; }
    .gallery__item figcaption { transform: translateY(0); }
}

/* =========================================================
   CRÉDITOS / RECURSOS EXTERNOS
   ========================================================= */
.credits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.2rem;
}

.credit {
    padding: 1.6rem;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-left: 3px solid var(--danger);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.credit__source {
    font-family: var(--font-display);
    text-transform: uppercase;
    color: var(--accent);
    font-size: 1.1rem;
    letter-spacing: 0.04em;
}

.credit__desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.credit__link {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    align-self: flex-start;
}
.credit__link:hover { color: var(--accent-bright); }

.credit__license {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-deepest);
    padding: 0.2em 0.6em;
    border-radius: var(--radius-sm);
    align-self: flex-start;
    letter-spacing: 0.05em;
    border: 1px solid var(--border);
}

/* =========================================================
   ACCESIBILIDAD: respetar prefers-reduced-motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
