/* RUINSHOT — pages.css
 *
 * Hoja de estilos de las paginas de contenido del sitio (/como-jugar/, /privacidad/ y las cuatro paginas
 * de aterrizaje), que genera _ops/build-seo.mjs. Son paginas estaticas normales (se desplazan, se imprimen, se leen con lector de
 * pantalla): NO comparten nada con la interfaz del juego (css/style.css + ui.js), salvo la paleta
 * "atardecer" de THEME.ui. Sin fuentes externas ni imagenes.
 */

:root {
  --bg: #12101f;
  --bg2: #1b1832;
  --panel: #191630;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f7eee3;
  --muted: #b6abc6;
  --accent: #ff8a3d;
  --accent-hot: #ff6a2b;
  --gold: #ffc83d;
  --font: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffe08a; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 16px;
}

.skip {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 20;
  padding: 8px 14px;
  background: var(--gold);
  color: #1b1220;
  font-weight: 700;
  border-radius: 4px;
}
.skip:focus { top: 8px; }

/* --- cabecera --- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 16, 31, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}
.brand {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.1em;
  text-decoration: none;
  background: linear-gradient(180deg, #fff3d1 0%, #ffd48c 35%, #ff8a3d 75%, #ff6a2b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
}
.top-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 18px;
  font-size: 14px;
}
.top-nav a { color: var(--muted); text-decoration: none; }
.top-nav a:hover, .top-nav a[aria-current="page"] { color: var(--text); }
.top-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.top-nav .cta, .btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ff9a52 0%, var(--accent-hot) 100%);
  color: #25110a;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  box-shadow: 0 8px 20px -10px rgba(255, 106, 43, 0.9);
}
.top-nav .cta:hover, .btn:hover { color: #25110a; filter: brightness(1.08); }

/* --- portada de la pagina: el cielo de la marca --- */
.hero {
  padding: 36px 0 32px;
  background:
    linear-gradient(180deg, rgba(18, 16, 31, 0.5) 0%, rgba(18, 16, 31, 0.88) 100%),
    linear-gradient(180deg, #454b86 0%, #6f6ba4 28%, #b98aa3 50%, #ee9e7c 68%, #f8b27a 84%, #fcd08f 100%);
  border-bottom: 1px solid var(--line);
}
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #ffdcb8;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 5.4vw, 44px);
  line-height: 1.12;
  letter-spacing: 0.01em;
}
.lead { margin: 0; max-width: 62ch; font-size: 17px; color: #efe5da; }

/* --- contenido --- */
.content { padding-top: 28px; padding-bottom: 56px; }
.content section { margin: 0 0 40px; }
h2 {
  margin: 0 0 12px;
  padding-top: 6px;
  font-size: clamp(22px, 3.6vw, 28px);
  line-height: 1.2;
  border-top: 1px solid var(--line);
}
.content section:first-of-type h2:first-child { border-top: 0; }
h3 { margin: 22px 0 6px; font-size: 18px; line-height: 1.3; color: #ffe2c2; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin: 0 0 6px; }
li::marker { color: var(--accent); }
code, kbd {
  font-family: var(--mono);
  font-size: 0.88em;
}
kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: 1px 7px;
  text-align: center;
  color: #2b2236;
  background: linear-gradient(180deg, #fffaf3 0%, #efe4d6 100%);
  border-radius: 5px;
  box-shadow: inset 0 -2px 0 rgba(43, 34, 54, 0.2), 0 2px 0 #8e8299;
  font-weight: 700;
}
code { padding: 1px 5px; background: var(--bg2); border-radius: 3px; border: 1px solid var(--line); }

.toc {
  margin: 0 0 36px;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.toc ul { margin: 8px 0 0; padding: 0; list-style: none; columns: 2; column-gap: 28px; }
.toc li { margin: 0 0 4px; break-inside: avoid; }

/* Recuadro «En 30 segundos» de las paginas de aterrizaje: lo esencial antes del texto largo. */
.glance {
  margin: 0 0 22px;
  padding: 16px 18px 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
}
.glance > strong { display: block; margin: 0 0 8px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #ffdcb8; }
.glance ul { margin: 0 0 10px; padding-left: 20px; }
.glance + .toc { margin-top: 0; }

/* «Mas sobre RUINSHOT»: tarjetas hacia las demas guias (enlaces internos con texto descriptivo). */
.more ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.more li { margin: 0; }
.more a {
  display: block;
  height: 100%;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
}
.more a:hover { border-color: var(--accent); background: var(--bg2); }
.more a strong { display: block; margin: 0 0 4px; color: var(--gold); }
.more a span { display: block; font-size: 14.5px; line-height: 1.45; color: var(--muted); }

/* --- tablas --- */
.tablewrap { margin: 0 0 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
th, td { padding: 9px 12px; text-align: left; vertical-align: top; }
thead th {
  position: sticky;
  top: 0;
  background: var(--bg2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.03); }
tbody th { font-weight: 700; white-space: nowrap; }
tbody td, tbody th { border-top: 1px solid var(--line); }
tbody tr:first-child td, tbody tr:first-child th { border-top: 0; }

/* --- pie --- */
.foot {
  padding: 28px 0 40px;
  background: var(--bg2);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.foot p { margin: 0 0 10px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 10px; }
.foot .small { font-size: 12.5px; margin: 0; }

@media (max-width: 640px) {
  .toc ul { columns: 1; }
  .more ul { grid-template-columns: minmax(0, 1fr); }
  .top-nav { font-size: 13px; }
  .top-nav a:not(.cta) { display: none; }
  th, td { padding: 8px 10px; }
  .hero { padding: 24px 0 24px; }
}

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

@media print {
  .top, .skip, .foot nav { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
