/* parimatchcasinochile.cl — light/paper editorial review theme. Serif display, teal-green accent. */

:root {
  --bg: #f6f3ec;
  --bg-soft: #eeeadf;
  --card: #ffffff;
  --card-hover: #faf8f2;
  --text: #1c1a16;
  --muted: #5c574c;
  --muted-soft: #8a8477;
  --line: #ddd7c8;
  --accent: #2f6f5e;
  --accent-dark: #234f43;
  --brand: #c9b800;
  --max: 1180px;
  --max-copy: 760px;
  --radius: 10px;
  --radius-sm: 6px;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: Inter, 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(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 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;
}
.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(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
}
.topbar p { margin: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  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; }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--text);
  color: var(--brand);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.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; }

/* N7 — table-based nav-links */
table.nav-links {
  border-collapse: collapse;
  margin: 0;
}
table.nav-links td {
  padding: 0 2px;
}
table.nav-links a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
table.nav-links a:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
table.nav-links a[aria-current="page"] { color: var(--accent); }

/* ---------- 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); }
.breadcrumb [aria-current="page"] { color: var(--text); }

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

.hero { padding: 40px 0 12px; }
.kicker {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 14px;
}
h1 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--text);
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.14;
  margin: 0 0 18px;
}
h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin-top: 16px;
  background: var(--brand);
  border-radius: 2px;
}
.lead {
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 19px);
  margin: 0 0 16px;
}

.copy h2 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--text);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.22;
  margin: 56px 0 14px;
  scroll-margin-top: 84px;
}
.copy h3 {
  color: var(--text);
  font-size: 19px;
  font-weight: 650;
  margin: 30px 0 8px;
}
.copy p { margin: 0 0 15px; }
.copy a { font-weight: 600; }

section { scroll-margin-top: 84px; }
.long { content-visibility: auto; contain-intrinsic-size: auto 700px; }

/* ---------- Review-framing note (signature component) ---------- */
.review-note {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 22px 0;
  font-size: 15.5px;
  color: var(--muted);
}
.review-note p { margin: 0; }
.review-note strong { color: var(--accent-dark); }

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

/* ---------- Cards (RG section) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin: 22px auto 12px;
  width: min(100% - 32px, 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; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 18px;
}
.faq details + details { margin-top: 10px; }
.faq details[open] { background: var(--card-hover); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 26px 13px 0;
  position: relative;
  font-weight: 700;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 11px;
  color: var(--accent);
  font-weight: 700;
  font-size: 20px;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 13px; }

/* ---------- 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 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); }
.site-footer .foot-desc { color: var(--muted); max-width: 36ch; margin: 10px 0 0; }
.site-footer .logo-mark { margin-bottom: 4px; }

/* Footer payment block — M7: div > picture > img */
.footer-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.footer-payments picture { display: inline-flex; }
.footer-payments img {
  height: 28px;
  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); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .site-header .container { flex-wrap: wrap; }
  table.nav-links, table.nav-links tbody, table.nav-links tr { display: block; }
  table.nav-links tr { display: flex; flex-wrap: wrap; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 24px, var(--max)); }
  .copy { width: min(100% - 24px, var(--max-copy)); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  h1 { font-size: clamp(27px, 8vw, 34px); }
  table.data { 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}

/* Editorial recommendation button */
.resena-cta{display:inline-block;margin:20px 0 6px;padding:12px 26px;background:var(--accent);color:#fff;border-radius:var(--radius-sm);font-family:var(--sans);font-weight:600;font-size:15px;text-decoration:none}
.resena-cta:hover{background:var(--accent-dark)}

/* enlaces de conversión en el nav */
table.nav-links a.nav-dest { color: var(--accent); font-weight: 700; }
table.nav-links a.nav-dest:hover { background: var(--accent); color: #fff; }
