/* ============================================================
   SAPIENS — contenido.css
   Hoja de estilos COMPARTIDA por las páginas de contenido
   (sobre-sapiens, contacto, términos, cookies, modos, blog…).
   Es independiente de style.css (el juego) para no interferir.
   Tema oscuro con acentos dorados, coherente con privacidad.html.
   ============================================================ */

:root {
  --bg:         #0a0b0f;
  --surface:    #13151c;
  --surface-2:  #171a22;
  --border:     #1e2130;
  --gold:       #c9a84c;
  --gold-dim:   #7a6330;
  --text:       #e8dfc8;
  --text-muted: #7a7a6a;
  --accent:     #9b6fd4;
  --radius:     12px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
}

/* ── HEADER / NAV ── */
header {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  background: rgba(10,11,15,0.92);
  backdrop-filter: blur(12px);
  z-index: 10;
  flex-wrap: wrap;
}
.logo-mark {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .15em;
  color: var(--gold);
  text-decoration: none;
}
.main-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}
.main-nav a {
  font-size: .82rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: .03em;
  transition: color .15s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--gold); }
.header-sep { flex: 1; }
.back-link {
  font-size: .8rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: .05em;
  transition: color .15s;
}
.back-link:hover { color: var(--text); }

/* ── HERO ── */
.hero {
  padding: 4.5rem 2rem 3rem;
  max-width: 820px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.hero-lead {
  font-size: 1.05rem;
  color: #c4baa8;
  max-width: 680px;
}
.hero-meta {
  font-size: .82rem;
  color: var(--text-muted);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.hero-meta span { display: flex; align-items: center; gap: .4rem; }

/* ── DIVIDER ── */
.divider {
  max-width: 820px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
}

/* ── TOC ── */
.toc-wrap {
  max-width: 820px;
  margin: 2.5rem auto;
  padding: 0 2rem;
}
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}
.toc-title {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.toc ol {
  list-style: none;
  counter-reset: toc;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: .35rem .5rem;
}
.toc li { counter-increment: toc; }
.toc a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .88rem;
  display: flex;
  align-items: baseline;
  gap: .5rem;
  transition: color .15s;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: .72rem;
  color: var(--gold-dim);
  font-weight: 600;
  min-width: 1.8rem;
}
.toc a:hover { color: var(--gold); }

/* ── CONTENT ── */
.content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

section {
  padding-top: 3.25rem;
  scroll-margin-top: 5rem;
}

.section-eyebrow {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: .6rem;
}

h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--text);
  margin: 1.75rem 0 .85rem;
}

p { color: #c4baa8; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a.inline { color: var(--gold); text-decoration: none; }
a.inline:hover { text-decoration: underline; }

/* listas */
.policy-list {
  list-style: none;
  margin: 1rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.policy-list li {
  color: #c4baa8;
  padding-left: 1.4rem;
  position: relative;
  font-size: .95rem;
}
.policy-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold-dim);
  font-weight: 600;
}

/* lista numerada de preguntas y respuestas (blog) */
.qa-list {
  margin: 1rem 0 1.25rem;
  padding-left: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.qa-list li {
  color: #c4baa8;
  font-size: .95rem;
  line-height: 1.7;
  padding-left: .3rem;
}
.qa-list li::marker { color: var(--gold-dim); font-weight: 700; }
.qa-list strong { color: var(--text); }
.qa-list em { color: #d8cba6; }

/* callout */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: .9rem;
  color: #c4baa8;
}
.callout strong { color: var(--gold); }
.callout-accent { border-left-color: var(--accent); }
.callout-accent strong { color: #c2a0f0; }

/* tabla */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
th {
  text-align: left;
  padding: .6rem 1rem;
  background: var(--surface);
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
td {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
  color: #c4baa8;
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.02); }

/* contact card */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.contact-card a { color: var(--gold); text-decoration: none; font-size: .95rem; }
.contact-card a:hover { text-decoration: underline; }
.contact-label {
  font-size: .72rem;
  color: var(--text-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ── FORMULARIO ── */
.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form-group { display: flex; flex-direction: column; gap: .45rem; }
.form-group label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .8rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  outline: none;
  transition: border-color .15s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 140px; }
.btn-submit {
  align-self: flex-start;
  background: var(--gold);
  color: #14110a;
  border: none;
  border-radius: 10px;
  padding: .85rem 1.75rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .03em;
  cursor: pointer;
  text-decoration: none;
  transition: filter .15s, transform .1s;
}
.btn-submit:hover  { filter: brightness(1.08); }
.btn-submit:active { transform: translateY(1px); }

/* ── FAQ (details/summary) ── */
.faq { display: flex; flex-direction: column; gap: .75rem; margin: 1.5rem 0; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--text);
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: '+';
  color: var(--gold);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}
.faq details[open] summary::before { content: '−'; }
.faq .faq-body { padding: 0 1.25rem 1.15rem 2.6rem; }
.faq .faq-body p { font-size: .92rem; }

/* tarjetas de enlaces internos (relacionados / modos) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.link-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  display: block;
  transition: border-color .15s, transform .1s;
}
.link-card:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.link-card .lc-title { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--text); margin-bottom: .35rem; }
.link-card .lc-desc { font-size: .85rem; color: var(--text-muted); }

/* botón grande "jugar" */
.play-cta {
  display: inline-block;
  background: var(--gold);
  color: #14110a;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .03em;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  margin: 1.5rem 0;
  transition: filter .15s, transform .1s;
}
.play-cta:hover  { filter: brightness(1.08); }
.play-cta:active { transform: translateY(1px); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
}
.footer-nav {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.footer-nav a { color: var(--text-muted); text-decoration: none; transition: color .15s; }
.footer-nav a:hover { color: var(--gold); }
footer .copyright a { color: var(--text-muted); }

/* ── Tarjeta informativa ──
   Misma caja que .link-card, pero sin enlace detrás. Se le quita el
   gesto de elevarse al pasar por encima: prometía ser pulsable y no
   lo era. */
.link-card--info { cursor: default; }
.link-card--info:hover { border-color: var(--border); transform: none; }

/* ── MOVIMIENTO REDUCIDO ──
   El desplazamiento suave del índice y los rebotes de tarjetas y
   botones son adorno: si el sistema pide menos movimiento, se quitan.
   Las transiciones de color se quedan, que no mueven nada. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .link-card, .btn-submit, .play-cta { transition: border-color .15s, filter .15s; }
  .link-card:hover,
  .btn-submit:active,
  .play-cta:active { transform: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  header { padding: 1rem; gap: 1rem; }
  .hero  { padding: 3rem 1rem 2rem; }
  .toc-wrap, .content { padding-left: 1rem; padding-right: 1rem; }
  .toc ol { grid-template-columns: 1fr; }
  h2 { font-size: 1.2rem; }
  .form { padding: 1.25rem; }
}
