/* parimatchpromo.cl — light paper/editorial theme. Serif display, voucher-stub motif.
   Yellow used only as underline/highlight accent, never as a fill. */

:root {
  --bg: #faf8f3;
  --bg-soft: #f2efe6;
  --card: #ffffff;
  --card-border: #e4ded0;
  --text: #1f1d18;
  --muted: #5c574a;
  --muted-soft: #8a8474;
  --line: #e4ded0;
  --brand: #f8ff13;
  --brand-ink: #4a4a00;
  --accent-border: #1f1d18;
  --max: 1080px;
  --max-prose: 760px;
  --radius: 6px;
  --radius-sm: 4px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", Cambria, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

a { color: var(--text); text-decoration: underline; text-decoration-color: var(--muted-soft); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--brand-ink); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 18+ top bar ---------- */
.topbar {
  background: var(--text);
  color: #f4f1ea;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.badge-18 {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  padding: 0 6px;
  border: 2px solid #f4f1ea;
  border-radius: var(--radius-sm);
  color: #f4f1ea;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
}
.topbar p { margin: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--text);
  font-size: 17px;
}
.brand-name span { color: var(--muted-soft); font-weight: 400; }

/* N8 nav: <dl class="nav-links"> > <div> > <dt class="sr-only"> + <dd> > <a> */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.nav-links > div { margin: 0; }
.nav-links dd { margin: 0; }
.nav-links a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--text); }
.nav-links a[aria-current="page"] {
  color: var(--text);
  box-shadow: inset 0 -3px 0 var(--brand);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  font-size: 13px;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 10px 0;
  color: var(--muted-soft);
}
.breadcrumb li { display: inline-flex; gap: 8px; align-items: center; }
.breadcrumb li + li::before { content: "›"; color: var(--muted-soft); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* ---------- Main / prose ---------- */
main { padding: 8px 0 48px; }

.hero { padding: 40px 0 12px; position: relative; }
h1 {
  color: var(--text);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.14;
  letter-spacing: normal;
  margin: 0 0 18px;
  max-width: var(--max-prose);
}
.underline-accent {
  background-image: linear-gradient(var(--brand), var(--brand));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.32em;
}
.lead {
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 19px);
  max-width: var(--max-prose);
  margin: 0 0 16px;
}

/* Voucher-stub hero decoration — CSS only, decorative */
.voucher-stub {
  position: relative;
  max-width: var(--max-prose);
  height: 92px;
  margin: 22px 0 8px;
  border: 1px dashed var(--muted-soft);
  border-radius: 8px;
  background:
    radial-gradient(circle at 6px 50%, var(--bg) 4px, transparent 5px) left center / 16px 100% repeat-y,
    var(--bg-soft);
  overflow: hidden;
}
.voucher-stub::before {
  content: "PROMO · CÓDIGO · INFORMATIVO";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-soft);
  font-family: var(--serif);
  font-size: clamp(14px, 2vw, 20px);
  letter-spacing: 0.28em;
}
.voucher-stub::after {
  content: "";
  position: absolute;
  top: 8px; bottom: 8px; left: 30px;
  border-left: 1px dashed var(--muted-soft);
}

.notice {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--brand-ink);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 18px 0;
  max-width: var(--max-prose);
  font-size: 15px;
}
.notice p { margin: 0; }

.prose { max-width: var(--max-prose); }
.prose h2 {
  color: var(--text);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.2;
  margin: 44px 0 12px;
  scroll-margin-top: 24px;
}
.prose h3 {
  color: var(--text);
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  margin: 26px 0 8px;
}
.prose p { margin: 0 0 14px; }
.prose a { font-weight: 600; }

section { scroll-margin-top: 24px; }

.long { content-visibility: auto; contain-intrinsic-size: auto 600px; }

/* ---------- Callout (code anatomy) ---------- */
.callout {
  position: relative;
  max-width: var(--max-prose);
  background: var(--card);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 20px 0;
}
.callout::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 14px 14px 0;
  border-color: transparent var(--brand) transparent transparent;
}
.callout h3 { margin: 0 0 6px; font-size: 16px; color: var(--text); }
.callout p { margin: 0; font-size: 15px; }

/* ---------- Tables ---------- */
.table-wrap {
  max-width: var(--max);
  overflow-x: auto;
  margin: 18px 0 8px;
  border: 1px solid var(--line);
  background: var(--card);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
}
caption {
  text-align: left;
  padding: 12px 16px 0;
  color: var(--muted-soft);
  font-size: 13px;
  font-weight: 600;
}
th, td {
  text-align: left;
  padding: 11px 16px;
  vertical-align: top;
}
thead th {
  color: var(--text);
  font-weight: 700;
  border-bottom: 2px solid var(--accent-border);
  white-space: nowrap;
}
tbody tr:nth-child(even) { background: var(--bg-soft); }
tbody td:first-child { color: var(--text); font-weight: 600; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 18px 0 8px;
  max-width: var(--max);
}
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin: 0 0 8px; color: var(--text); font-size: 17px; }
.card p { margin: 0; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { max-width: var(--max-prose); margin-top: 8px; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 28px 16px 0;
  position: relative;
  font-weight: 700;
  color: var(--text);
  font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 14px;
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 20px;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 16px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 40px 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
}
.site-footer h4 {
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .foot-desc { color: var(--muted); max-width: 42ch; margin: 12px 0 0; }
.footer-logo .logo-mark { margin-bottom: 4px; }

/* Footer payment block — M8: <ol class="footer-payments"> > <li> > <img> */
.footer-payments {
  list-style: none;
  margin: 28px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.footer-payments li { margin: 0; }
.footer-payments img {
  height: 30px;
  width: auto;
  display: block;
}

.footer-legal {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-soft);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}
.footer-legal .badge-18 { border-color: var(--muted-soft); color: var(--muted-soft); }
.footer-legal a { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .site-header .container { flex-wrap: wrap; }
  .nav-links { flex-wrap: wrap; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { width: min(100% - 24px, var(--max)); }
  .hero { padding: 28px 0 8px; }
  table { font-size: 14px; }
}

.logo-mark img { width: 36px; height: 36px; display: block; object-fit: cover; }

.legal-doc{padding:48px 0;max-width:820px}
.legal-doc h1{margin-bottom:8px}
.legal-doc h2{margin-top:34px}
.legal-doc .legal-updated{color:var(--muted,#888);font-size:14px}

/* Content figures — real platform screenshots */
.content-figure{margin:24px 0}
.content-figure img{width:100%;height:auto;border-radius:var(--radius);display:block}

/* Promo action button */
.promo-btn{display:inline-block;margin:16px 0 4px;padding:12px 24px;background:var(--brand);color:var(--brand-ink);border:2px solid var(--accent-border);border-radius:var(--radius);font-family:var(--sans);font-weight:700;font-size:15px;text-decoration:none;box-shadow:3px 3px 0 var(--accent-border)}
.promo-btn:hover{box-shadow:1px 1px 0 var(--accent-border);transform:translate(2px,2px)}

/* acentos nav conversión */
.nav-links a.nav-mark { color: var(--brand-ink); background: var(--brand); font-weight: 700; }
.nav-links a.nav-mark:hover { filter: brightness(.95); background: var(--brand); }
