/* ============================================================
   base.css — idéntico en todas las apps de Kerzou.
   Los colores y fuentes vienen de theme.css.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* ---------- Header ---------- */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-family: var(--font-display); font-size: 22px;
}
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* ---------- Tipografía ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 68px); letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4vw, 38px); }
h3 { font-size: 21px; }
.lead { font-size: 20px; color: var(--muted); max-width: 32em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; text-decoration: none;
  box-shadow: var(--glow);
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn svg { width: 18px; height: 18px; }
.btn-quiet {
  background: transparent; color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ---------- Secciones ---------- */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }

/* ---------- Páginas de texto (soporte, legales) ---------- */
.doc { padding: 40px 0 80px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.doc h2 { font-size: 24px; margin: 44px 0 12px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc .summary {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px 24px; margin: 0 0 8px;
}
.doc .summary p { margin: 0; }
.doc .summary p + p { margin-top: 10px; }

/* FAQ con <details> */
.faq { margin-top: 12px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 36px 18px 0; position: relative;
  font-weight: 600; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }
.faq details > div p { margin: 0 0 10px; }

/* Caja de contacto */
.contact {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 24px; margin: 28px 0 8px;
}
.contact p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { gap: 14px; font-size: 14px; }
  section { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
