/* parimatch-app.cl — light "app UI panel" help-center theme. Near-black mono accent, yellow demoted to inline chip. */

:root {
  --bg: #f7f7f5;
  --bg-soft: #ffffff;
  --panel: #eeeeec;
  --text: #1c1c1c;
  --muted: #5a5a58;
  --muted-soft: #8a8a86;
  --line: #dedcd8;
  --brand: #f8ff13;
  --brand-ink: #4a4a00;
  --accent-line: #111111;
  --max: 980px;
  --radius: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--accent-line); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #000; }

.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;
}

/* ---------- Top status bar ---------- */
.status-bar {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
}
.status-bar .container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.status-bar p { margin: 0; color: var(--muted); }
.badge-18 {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg-soft);
  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; text-decoration: none; }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent-line);
  color: var(--brand);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.brand-name {
  font-weight: 700;
  color: var(--text);
  font-size: 16px;
}
.brand-name span { color: var(--muted-soft); font-weight: 500; }

/* N6: div.nav-links with visually-hidden <h2> before links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.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(--panel); color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--panel); }

/* ---------- 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 48px; }

.hero { padding: 30px 0 4px; }
h1 {
  color: var(--text);
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.14;
  margin: 0 0 16px;
}
.lead {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
  margin: 0 0 14px;
}

.prose { max-width: 720px; }
h2 {
  color: var(--text);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.22;
  margin: 40px 0 12px;
  scroll-margin-top: 80px;
}
h3 {
  color: var(--text);
  font-size: 19px;
  font-weight: 650;
  margin: 24px 0 8px;
}
p { margin: 0 0 14px; }
ul.copy-list { margin: 0 0 14px; padding-left: 20px; }
ul.copy-list li { margin: 0 0 10px; }

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

/* ---------- App panel ---------- */
.app-panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 18px 0;
}
.app-panel > :last-child { margin-bottom: 0; }
.app-panel .panel-heading { margin-top: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 18px 0;
}
.grid-2 .app-panel { margin: 0; }

/* ---------- Chip ---------- */
.chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 460px;
}
caption {
  text-align: left;
  padding: 12px 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(--text);
  font-weight: 700;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
tbody tr { border-bottom: 1px solid var(--line); }
tbody tr:last-child { border-bottom: none; }
tbody td:first-child { color: var(--text); font-weight: 600; }

/* ---------- Step list (near-black numeral badges) ---------- */
.step-list { list-style: none; margin: 18px 0; padding: 0; counter-reset: step; }
.step-list li {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 0 0 20px 0;
}
.step-list li:last-child { padding-bottom: 0; }
.step-list li::before {
  counter-increment: step;
  content: counter(step);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-line);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.step-list li > div > :last-child { margin-bottom: 0; }
.step-list h3 { margin: 3px 0 6px; }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin-top: 8px; }
.faq details {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 2px 16px;
}
.faq details + details { margin-top: 10px; }
.faq details[open] { background: var(--panel); }
.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-line);
  font-weight: 700;
  font-size: 20px;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 13px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 36px 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 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); }
.foot-desc { color: var(--muted); max-width: 34ch; margin: 10px 0 0; }

/* Footer payment block — M6: <p class="footer-payments"> with inline <img>s */
p.footer-payments {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.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;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .site-header .container { flex-wrap: wrap; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 24px, var(--max)); }
  .app-panel { padding: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  h1 { font-size: clamp(26px, 8vw, 34px); }
  h2 { font-size: clamp(20px, 6vw, 26px); }
  table { font-size: 14px; }
  .step-list li { grid-template-columns: 28px 1fr; gap: 12px; }
  .step-list li::before { width: 28px; height: 28px; font-size: 13px; }
}

.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-figure{margin:24px 0}
.content-figure img{width:100%;height:auto;border-radius:var(--radius,12px);display:block}

.btn-acceso{display:inline-block;margin:18px 0 8px;padding:13px 28px;background:var(--brand);color:var(--brand-ink);border:1px solid var(--accent-line);border-radius:var(--radius-sm);font-weight:700;text-decoration:none}
.btn-acceso:hover{filter:brightness(.95)}

/* nav conversion accents */
.nav-links a.nav-acc { color: var(--brand); font-weight: 700; border: 1px solid var(--accent-line); border-radius: var(--radius-sm); }
.nav-links a.nav-acc:hover { background: var(--brand); color: var(--brand-ink); }
