/* landing.css — LugarLatino /parques/ + /parques/reglas/
   Estética editorial colombiana: fieltro verde oscuro, crema, oro.
   Tipografías: Fraunces (titulares) + Outfit (texto), vía Google Fonts. */

:root {
  --fieltro: #0B2B21;
  --fieltro-2: #103a2d;
  --crema: #F5EFE0;
  --crema-2: #EFE6CF;
  --oro: #C9A227;
  --oro-suave: #E3C565;
  --tinta: #22281F;
  --tinta-suave: #4A5347;
  --amarillo-j: #E9B928;
  --azul-j: #2E5FA3;
  --verde-j: #2E7D4F;
  --rojo-j: #B3402F;
  --borde: rgba(11, 43, 33, 0.14);
  --max: 72rem;
  --radio: 0.75rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--crema);
}

h1, h2, h3, summary {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--fieltro);
}

h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); margin: 0.4em 0 0.5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0 0 0.75em; }
h3 { font-size: 1.2rem; margin: 0 0 0.4em; }

p { margin: 0 0 1em; }
a { color: var(--verde-j); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--fieltro); }
img { max-width: 100%; height: auto; }

/* Anclas: espacio para el header */
section[id], article[id], details[id] { scroll-margin-top: 5rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ── Header ─────────────────────────────── */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.75rem clamp(1rem, 4vw, 2rem);
  background: var(--fieltro); color: var(--crema);
  position: sticky; top: 0; z-index: 50;
}
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--crema); text-decoration: none; }
.brand img { display: block; border-radius: 50%; }
.brand-name { font-family: "Fraunces", serif; font-size: 1.15rem; font-weight: 600; }
.brand-name em { font-style: normal; color: var(--oro-suave); }
.site-nav { display: flex; gap: 0.5rem; }
.site-nav a {
  color: var(--crema); text-decoration: none; font-weight: 600;
  padding: 0.45rem 0.9rem; border-radius: 999px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--oro); color: var(--fieltro); }

/* ── Breadcrumb ─────────────────────────── */
.breadcrumb { max-width: var(--max); margin: 0 auto; padding: 1rem clamp(1rem, 4vw, 2rem) 0; font-size: 0.875rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.35rem; color: var(--tinta-suave); }
.breadcrumb [aria-current="page"] { color: var(--tinta-suave); }

/* ── Hero ───────────────────────────────── */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem);
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 52rem) { .hero { grid-template-columns: 1.2fr 1fr; } }
.kicker {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.8rem; color: var(--oro); margin-bottom: 0.5rem;
}
.lede { font-size: 1.15rem; color: var(--tinta-suave); max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.hero-meta { font-size: 0.9rem; color: var(--tinta-suave); }
.hero-figure { margin: 0; }
.hero-figure img { border-radius: var(--radio); box-shadow: 0 1rem 2.5rem rgba(11, 43, 33, 0.25); }

/* ── Botones ────────────────────────────── */
.btn {
  display: inline-block; font-weight: 700; text-decoration: none;
  padding: 0.8rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--oro); color: var(--fieltro); box-shadow: 0 0.4rem 1rem rgba(201, 162, 39, 0.35); }
.btn-primary:hover { color: var(--fieltro); background: var(--oro-suave); }
.btn-ghost { border-color: var(--fieltro); color: var(--fieltro); }
.btn-ghost:hover { background: var(--fieltro); color: var(--crema); }

/* ── Secciones de la landing ────────────── */
.game-section { max-width: var(--max); margin: 0 auto; padding: 1rem clamp(1rem, 4vw, 2rem) 2rem; }
.pasos, .faq, .cultura { max-width: var(--max); margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2rem); }

.pasos-list { padding-left: 1.25rem; display: grid; gap: 0.9rem; }
.pasos-list li::marker { font-family: "Fraunces", serif; font-weight: 700; color: var(--oro); font-size: 1.2em; }

.cultura {
  background: var(--fieltro); color: var(--crema);
  border-radius: var(--radio); margin-bottom: 2rem;
}
.cultura h2 { color: var(--oro-suave); }
.cultura a { color: var(--oro-suave); }
.cultura p { max-width: 70ch; margin: 0; }

/* ── Acordeones FAQ (sin JS) ────────────── */
.faq details {
  background: #fff; border: 1px solid var(--borde); border-radius: var(--radio);
  margin-bottom: 0.6rem; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 0.9rem 1.1rem; font-size: 1.05rem; list-style: none;
  position: relative; padding-right: 2.5rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  font-family: "Outfit", sans-serif; font-weight: 700; color: var(--oro); font-size: 1.3rem;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.1rem 0.9rem; margin: 0 0 0.5rem; }
.faq details p + p { color: var(--tinta-suave); font-size: 0.95rem; }
.faq-reglas h3 { margin: 1.75rem 0 0.75rem; font-size: 1.35rem; }

/* ── Página de reglas ───────────────────── */
.toc {
  max-width: var(--max); margin: 0 auto 2rem; padding: 1.5rem clamp(1rem, 4vw, 2rem);
  background: var(--crema-2); border-radius: var(--radio);
}
.toc ol { columns: 1; margin: 0; padding-left: 1.4rem; }
@media (min-width: 40rem) { .toc ol { columns: 2; column-gap: 3rem; } }
.toc li { margin-bottom: 0.35rem; break-inside: avoid; }

.regla-parte { max-width: var(--max); margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2rem) 1rem; }
.regla-parte > h2 { border-bottom: 3px solid var(--oro); padding-bottom: 0.4rem; }

.articulo { margin-bottom: 1.75rem; max-width: 75ch; }
.articulo h3 { color: var(--fieltro); }
.articulo h3::first-letter { color: var(--oro); }
.articulo ul, .articulo ol { padding-left: 1.4rem; }
.articulo li { margin-bottom: 0.3rem; }

.nota {
  font-size: 0.85rem; color: var(--tinta-suave);
  border-left: 3px solid var(--oro); padding: 0.4rem 0 0.4rem 0.9rem;
  margin: 0.6rem 0 0;
}

/* Tabla del tablero legible en móvil */
.table-wrap { overflow-x: auto; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; min-width: 30rem; background: #fff; }
caption { text-align: left; font-size: 0.85rem; color: var(--tinta-suave); margin-bottom: 0.4rem; }
th, td { border: 1px solid var(--borde); padding: 0.55rem 0.8rem; text-align: left; }
thead th { background: var(--fieltro); color: var(--crema); font-family: "Outfit", sans-serif; }
tbody th { background: var(--crema-2); }

/* Casos especiales (dl) */
.casos { max-width: 75ch; }
.casos dt { font-weight: 700; color: var(--fieltro); margin-top: 1.1rem; }
.casos dd { margin: 0.25rem 0 0; }

/* CTA final */
.cta-final {
  max-width: var(--max); margin: 2rem auto; padding: 2.5rem clamp(1rem, 4vw, 2rem);
  background: var(--fieltro); border-radius: var(--radio); text-align: center; color: var(--crema);
}
.cta-final h2 { color: var(--oro-suave); }

/* ── Footer ─────────────────────────────── */
.site-footer {
  background: var(--fieltro); color: rgba(245, 239, 224, 0.8);
  padding: 2rem clamp(1rem, 4vw, 2rem); margin-top: 2rem; text-align: center;
}
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; margin-bottom: 0.75rem; }
.site-footer a { color: var(--oro-suave); }
.site-footer p { margin: 0; font-size: 0.9rem; }

/* ── Impresión básica (reglamento) ──────── */
@media print {
  .site-header, .site-footer, .breadcrumb, .hero-cta, .cta-final, .hero-figure, .toc { display: none; }
  body { background: #fff; font-size: 11pt; }
  .faq details { border: none; }
  .faq details { display: block; }
  .faq details > * { display: block; }
  .faq summary::after { content: ""; }
  a { color: inherit; text-decoration: none; }
  .regla-parte, .articulo { break-inside: avoid-page; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
