/* ============================================================================
   SPARK MTG — Hoja de estilo compartida de las páginas de contenido estáticas
   (guías, hub, legales, FAQ, sobre-nosotros, contacto).

   Calca el sistema "ONYX & SLATE" del app React (src/index.css @theme): fondo
   casi negro, texto claro, acento AZUL (#3b82f6) y tipografía Outfit — para que
   el contenido crawlable se vea como el resto de spark-mtg.es. Sustituye a los
   estilos inline morados que cada página duplicaba.
   ========================================================================== */

:root {
    --base: #0a0a0a;
    --surface: #161616;
    --elevated: #1e1e1e;
    --border: #262626;
    --border-light: #333333;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-soft: #93c5fd;
    --text-primary: #f5f5f5;
    --text-secondary: #d4d4d4;
    --text-muted: #737373;
    --text-faint: #525252;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    background: var(--base);
    color: var(--text-secondary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-soft); text-decoration: underline; }

/* ── Header — réplica fiel de la navbar del app (src/components/Navbar.jsx) ──
   Mismo alto (3.5rem), fondo translúcido con blur, border-bottom #1a1a1a,
   logo idéntico y enlaces con el mismo pill-style (hover = estado activo del
   app: fondo #1e1e1e + texto claro). Sin avatar/login/idioma (no hay sesión en
   una página estática) y con enlaces DUROS a las secciones del app. ────────── */
header.site {
    position: sticky; top: 0; z-index: 50;
    min-height: 3.5rem;
    padding: 0 1.25rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "brand nav cta";
    align-items: center; gap: .5rem;
    background: rgba(10, 10, 10, .9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid #1a1a1a;
}
header.site .brand { grid-area: brand; justify-self: start; display: flex; align-items: center; gap: .5rem; text-decoration: none; }
header.site .brand:hover { text-decoration: none; }
header.site .brand-logo { width: 1.75rem; height: 1.75rem; object-fit: contain; }
header.site .brand-text { display: flex; flex-direction: column; line-height: 1; }
header.site .brand-name { font-size: 1.1rem; font-weight: 900; color: var(--accent); letter-spacing: -.04em; }
header.site .brand-sub { font-size: .52rem; font-weight: 600; color: #333; letter-spacing: .16em; text-transform: uppercase; margin-top: 1px; }
/* Nav centrada (columna del medio) — como el layout de 3 zonas de Navbar.jsx */
header.site nav { grid-area: nav; justify-self: center; display: flex; align-items: center; justify-content: center; gap: .1rem; flex-wrap: wrap; }
header.site nav a {
    padding: .4rem .85rem; border-radius: .4rem;
    font-size: .85rem; font-weight: 500; color: var(--text-muted);
    transition: color .15s, background .15s;
}
header.site nav a:hover { color: var(--text-primary); background: var(--elevated); text-decoration: none; }
/* Zona derecha: CTA que equilibra el logo (espejo del botón "Donar" del app) */
header.site .nav-cta {
    grid-area: cta; justify-self: end; white-space: nowrap;
    padding: .4rem .85rem; border-radius: .4rem;
    border: 1px solid var(--border); background: transparent;
    font-size: .82rem; font-weight: 600; color: #a3a3a3;
    transition: color .15s, background .15s, border-color .15s;
}
header.site .nav-cta:hover { color: var(--text-primary); background: var(--elevated); text-decoration: none; }
@media (max-width: 768px) {
    /* Sin hamburguesa JS en estático: logo | CTA arriba, nav centrada debajo */
    header.site {
        grid-template-columns: 1fr auto;
        grid-template-areas: "brand cta" "nav nav";
        padding: .5rem 1rem; row-gap: .25rem;
    }
    header.site nav { gap: 0; }
    header.site nav a { padding: .35rem .55rem; font-size: .8rem; }
}

/* ── Article layout ─────────────────────────────────────────────────────── */
.wrap { max-width: 780px; margin: 0 auto; padding: 2.5rem 1.5rem 1rem; }
.crumbs { font-size: .8rem; color: var(--text-muted); margin-bottom: 1.4rem; }
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--text-secondary); }

article h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; color: var(--text-primary);
    line-height: 1.15; letter-spacing: -.02em; margin-bottom: .8rem;
}
article .meta { font-size: .82rem; color: var(--text-muted); margin-bottom: 2rem; border-bottom: 1px solid var(--border); padding-bottom: 1.3rem; }
article h2 { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); letter-spacing: -.01em; margin: 2.4rem 0 .8rem; }
article h3 { font-size: 1.15rem; font-weight: 600; color: var(--accent-soft); margin: 1.7rem 0 .5rem; }
article p { color: var(--text-secondary); margin-bottom: 1.1rem; }
article ul, article ol { padding-left: 1.4rem; color: var(--text-secondary); margin-bottom: 1.2rem; }
article li { margin-bottom: .55rem; }
article li::marker { color: var(--accent); }
article strong { color: var(--text-primary); font-weight: 700; }
article em { color: var(--text-primary); font-style: italic; }
article a { font-weight: 500; }

.lead { font-size: 1.14rem; color: var(--text-primary); }

/* ── Callout (nota lateral con acento azul) ─────────────────────────────── */
.callout {
    background: var(--surface); border: 1px solid var(--border);
    border-left: 3px solid var(--accent); border-radius: 10px;
    padding: 1.1rem 1.3rem; margin: 1.6rem 0;
}
.callout p { margin: 0; color: var(--text-secondary); }

/* ── Ad slot label ──────────────────────────────────────────────────────── */
.adbox { margin: 2.4rem 0; text-align: center; }
.adbox .lbl { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: .4rem; }

/* ── "Sigue aprendiendo" ────────────────────────────────────────────────── */
.related { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.4rem 1.6rem; margin: 2.6rem 0 0; }
.related h2 { margin-top: 0; font-size: 1.1rem; color: var(--text-primary); }
.related ul { margin-bottom: 0; }

/* ── CTA (gradiente azul, sin morado ni emojis) ─────────────────────────── */
.cta {
    background: linear-gradient(135deg, #0f2545 0%, #0b1626 100%);
    border: 1px solid #1e3a5f; border-radius: 16px;
    padding: 2rem; text-align: center; margin: 2.6rem 0 1rem;
}
.cta h2 { color: var(--text-primary); margin: 0 0 .4rem; font-size: 1.35rem; }
.cta p { color: var(--text-secondary); margin: 0 0 1.3rem; }
.cta a.btn {
    display: inline-block; background: var(--accent); color: #fff; font-weight: 700;
    padding: .75rem 1.8rem; border-radius: 10px; transition: background .15s;
}
.cta a.btn:hover { background: var(--accent-hover); text-decoration: none; }

/* ── Footer (coherente con el Footer.jsx del app) ───────────────────────── */
footer.site { background: var(--base); border-top: 1px solid #1a1a1a; padding: 2rem 1.5rem; text-align: center; color: var(--text-muted); font-size: .85rem; margin-top: 3rem; }
footer.site nav a { color: var(--text-muted); margin: 0 .5rem; display: inline-block; line-height: 2; font-size: .85rem; }
footer.site nav a:hover { color: var(--text-secondary); text-decoration: none; }
footer.site .copy { margin-top: .8rem; }
footer.site .disc { margin-top: .8rem; font-size: .75rem; color: var(--text-faint); max-width: 680px; margin-left: auto; margin-right: auto; line-height: 1.6; }
