/* parimatchbono.cl — warm charcoal, editorial "bonus calculator" theme.
   Yellow restricted to thin rules + table-header text + FAQ marker. Teal for numeric highlights only. */

:root {
  --bg: #161510;
  --bg-soft: #1c1a14;
  --card: #211f18;
  --card-hover: #282619;
  --text: #f4f2ec;
  --muted: #a8a290;
  --muted-soft: #75705f;
  --line: #332f24;
  --brand: #f8ff13;
  --brand-dark: #d8df00;
  --accent-num: #8fd6c4;
  --max: 1120px;
  --max-prose: 760px;
  --radius: 14px;
  --radius-sm: 8px;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--muted-soft); }
a:hover { border-bottom-color: var(--brand); }

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

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(22, 21, 16, 0.94);
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; border: none; }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.brand-name { font-weight: 700; color: var(--text); font-size: 16px; letter-spacing: -0.01em; }
.brand-name span { color: var(--muted-soft); font-weight: 500; }

/* Nav variant N9: ul[role=menu] > li[role=none] > a[role=menuitem] */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.nav-links li { 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;
  border: none;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--text); }
.nav-links a[aria-current="page"] { color: 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); border: none; }
.breadcrumb [aria-current="page"] { color: var(--text); }

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

/* Hero: text left, ledger card right */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 40px;
  align-items: start;
  padding: 40px 0 24px;
}
.hero-text { max-width: var(--max-prose); }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--brand);
  padding-bottom: 2px;
  margin-bottom: 18px;
}
h1 {
  color: var(--text);
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.lead { color: #c7c2b2; font-size: clamp(16px, 1.6vw, 19px); margin: 0 0 14px; }

.prose { max-width: var(--max-prose); }
.prose h2 {
  color: var(--text);
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 44px 0 14px;
  scroll-margin-top: 80px;
}
.prose h3 { color: var(--text); font-size: 20px; font-weight: 700; margin: 26px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose a { color: var(--text); font-weight: 600; }
section { scroll-margin-top: 80px; }
.long { content-visibility: auto; contain-intrinsic-size: auto 600px; }

/* ---------- Rule accent ---------- */
.rule { border-bottom: 1px solid var(--brand); }

/* ---------- Ledger card ---------- */
.ledger-wrap { position: sticky; top: 92px; }
.ledger-caption { display: block; font-size: 12px; color: var(--muted-soft); margin: 0 0 8px; }
.ledger-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px 18px;
}
.ledger-card .ledger-title {
  display: inline-block;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--brand);
  padding-bottom: 6px;
  margin: 0 0 14px;
}
.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.ledger-row:last-of-type { border-bottom: none; }
.ledger-row .lbl { color: var(--muted); }
.ledger-row .val { font-family: var(--mono); color: var(--accent-num); font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger-row.total { border-top: 1px solid var(--line); border-bottom: none; margin-top: 4px; padding-top: 12px; }
.ledger-row.total .lbl { color: var(--text); font-weight: 700; }
.ledger-row.total .val { font-size: 22px; font-weight: 700; }
.ledger-note { margin: 12px 0 0; font-size: 11.5px; color: var(--muted-soft); line-height: 1.5; }

/* ---------- Illustrative caption (guardrail) ---------- */
.ejemplo-cap {
  margin: 8px 0 22px;
  font-size: 12.5px;
  color: var(--muted-soft);
  font-style: italic;
}

/* ---------- Tables ---------- */
.table-wrap {
  max-width: var(--max);
  overflow-x: auto;
  margin: 18px 0 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
caption { text-align: left; padding: 14px 16px 0; color: var(--muted-soft); font-size: 13px; font-weight: 600; }
th, td { text-align: left; padding: 12px 16px; vertical-align: top; }
thead th {
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--line); }
tbody tr:last-child { border-bottom: none; }
tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
tbody td:first-child { color: var(--text); font-weight: 600; }
td.num { text-align: right; font-family: var(--mono); color: var(--accent-num); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- 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(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: background 0.15s ease;
}
.card:hover { background: var(--card-hover); }
.card h3 { margin: 0 0 8px; color: var(--text); font-size: 17px; }
.card p { margin: 0; font-size: 15px; }

/* ---------- Payment icon row (inline context) ---------- */
.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 14px 0 6px;
}
.payment-icons img { height: 28px; width: auto; display: block; }

/* ---------- FAQ ---------- */
.faq { max-width: var(--max-prose); margin-top: 8px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 16px;
}
.faq details + details { margin-top: 10px; }
.faq details[open] { background: var(--card-hover); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 24px 12px 22px;
  position: relative;
  font-weight: 700;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--brand);
  transition: transform 0.15s ease;
}
.faq details[open] summary::before { transform: rotate(90deg); }
.faq details p { margin: 0 0 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 36px 0 24px;
  font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 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); border: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .foot-desc { color: var(--muted); max-width: 40ch; margin: 10px 0 0; }
.site-footer .foot-lockup { display: inline-flex; align-items: center; gap: 10px; }

/* Footer payment block — M9: nav > a > img */
.footer-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.footer-payments a { border: none; display: inline-flex; }
.footer-payments img { height: 26px; 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 a { color: var(--muted); border: none; text-decoration: underline; }
.footer-legal .badge-18 { border-color: var(--muted-soft); color: var(--muted-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .ledger-wrap { position: static; }
}
@media (max-width: 880px) {
  .site-header .container { flex-wrap: wrap; }
  .nav-links { flex-wrap: wrap; gap: 4px; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 20px, var(--max)); }
  .footer-grid { grid-template-columns: 1fr; }
  .ledger-row { flex-direction: column; gap: 2px; }
  .ledger-row .val { font-size: 17px; }
}
@media (max-width: 420px) {
  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}

/* Sober ledger-style action button */
.calc-btn{display:inline-block;margin:16px 0 4px;padding:12px 26px;background:var(--brand);color:#161510;border-radius:var(--radius-sm);font-weight:700;font-size:15px;text-decoration:none}
.calc-btn:hover{background:var(--brand-dark)}

/* nav: enlaces destacados */
.nav-links a.nav-hi { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.nav-links a.nav-hi:hover { background: var(--brand); color: #161510; text-decoration: none; }
