/* Kit Verifactu — styles.css
   Estilo "gestoría moderna": sobrio, claro, confiable. Sin animaciones de adorno. */

:root {
  --ink: #0f1b2d;
  --ink-2: #3b4658;
  --muted: #667085;
  --line: #e3e1da;
  --line-2: #d3d0c6;
  --bg: #f7f6f2;
  --paper: #ffffff;
  --brand: #0b6e5f;
  --brand-ink: #08584c;
  --brand-soft: #e6f2ef;
  --amber: #b45309;
  --amber-soft: #fdf3e3;
  --green: #15803d;
  --green-soft: #e8f5ec;
  --blue: #1d4ed8;
  --blue-soft: #eaf0fd;
  --red: #b42318;
  --red-soft: #fdecea;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 8px 24px rgba(15, 27, 45, .06);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas, video { max-width: 100%; display: block; }
a { color: var(--brand-ink); text-underline-offset: 2px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.05rem; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--brand); display: grid; place-items: center; flex: none; }
.logo small { display: block; font-weight: 600; font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 8px; }
.main-nav a:hover { background: var(--bg); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--brand-ink); background: var(--brand-soft); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 10px; cursor: pointer; font-weight: 700; font-size: .9rem; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 16px 14px; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px; }
}

/* ---------- Hero + tool ---------- */
.hero { padding: 22px 0 8px; }
@media (min-width: 720px) { .hero { padding: 36px 0 12px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.hero .lead { color: var(--ink-2); font-size: 1.02rem; max-width: 62ch; margin-bottom: 16px; }

.tool-switch { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.tool-switch a { text-decoration: none; font-size: .86rem; font-weight: 700; color: var(--ink-2); border: 1px solid var(--line-2); background: var(--paper); padding: 7px 12px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; }
.tool-switch a:hover { border-color: var(--brand); color: var(--brand-ink); }
.tool-switch a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 640px) {
  .tool-switch { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .tool-switch::-webkit-scrollbar { display: none; }
  .tool-switch a { flex: none; font-size: .8rem; padding: 6px 10px; }
  .hero .lead { font-size: .96rem; margin-bottom: 12px; }
  .eyebrow { margin-bottom: 8px; }
}

.tool-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
@media (min-width: 720px) { .tool-card { padding: 28px; } }

.privacy-badge { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font-size: .9rem; color: var(--ink-2); }
.privacy-badge svg { flex: none; }
.privacy-hero {
  display: flex; align-items: center; gap: 12px;
  background: var(--green-soft); border: 1px solid #bfe3cb; color: #0f5132;
  border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 16px; font-weight: 700;
}
.privacy-hero span { font-weight: 500; display: block; font-size: .88rem; color: #24543a; }

.noscript-msg { background: var(--amber-soft); border: 1px solid #f2d3a6; padding: 12px; border-radius: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: .98rem; border-radius: 10px; padding: 12px 18px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
.btn-ghost { background: var(--paper); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-link { background: none; border: none; padding: 6px 0; color: var(--brand-ink); text-decoration: underline; cursor: pointer; font-weight: 600; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn:focus-visible, .choice:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #8fc9bd; outline-offset: 2px; }

/* ---------- Quiz ---------- */
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.quiz-step { font-size: .85rem; font-weight: 700; color: var(--muted); }
.progress { height: 6px; background: var(--bg); border-radius: 99px; overflow: hidden; flex: 1; max-width: 220px; }
.progress > i { display: block; height: 100%; background: var(--brand); width: 0; transition: width .25s; }
.quiz-q { font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem); font-weight: 800; margin: 0 0 4px; }
.quiz-help { color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.choices { display: grid; gap: 10px; }
@media (min-width: 640px) { .choices.cols-2 { grid-template-columns: 1fr 1fr; } .choices.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.choice {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 12px;
  padding: 16px; min-height: 64px; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.choice:hover { border-color: var(--brand); background: #fbfdfc; }
.choice.is-selected { border-color: var(--brand); background: var(--brand-soft); }
.choice-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; flex: none; font-size: 1.25rem; }
.choice strong { display: block; font-size: 1.02rem; }
.choice small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.35; margin-top: 2px; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; min-height: 32px; }

/* Result */
.result-head { border-radius: 12px; padding: 16px; margin-bottom: 16px; border: 1px solid; }
.result-head.is-yes { background: var(--amber-soft); border-color: #f2d3a6; }
.result-head.is-no { background: var(--green-soft); border-color: #bfe3cb; }
.result-head.is-info { background: var(--blue-soft); border-color: #c7d5f8; }
.result-tag { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; margin-bottom: 4px; }
.is-yes .result-tag { color: var(--amber); }
.is-no .result-tag { color: var(--green); }
.is-info .result-tag { color: var(--blue); }
.result-title { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.7rem); font-weight: 800; margin: 0 0 6px; }
.result-head p { margin: 0; color: var(--ink-2); }

.result-grid { display: grid; gap: 12px; margin-bottom: 16px; }
@media (min-width: 640px) { .result-grid { grid-template-columns: 1fr 1fr; } }
.stat { background: var(--bg); border-radius: 12px; padding: 14px 16px; }
.stat-label { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stat-value { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); font-weight: 800; line-height: 1.15; }
.stat-sub { font-size: .86rem; color: var(--ink-2); }

.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.steps-list li { counter-increment: s; position: relative; padding: 10px 12px 10px 46px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.steps-list li::before { content: counter(s); position: absolute; left: 12px; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.note { border-left: 4px solid var(--blue); background: var(--blue-soft); padding: 12px 14px; border-radius: 0 10px 10px 0; margin: 0 0 16px; font-size: .94rem; }
.note.warn { border-color: var(--amber); background: var(--amber-soft); }
.note.bad { border-color: var(--red); background: var(--red-soft); }
.note.good { border-color: var(--green); background: var(--green-soft); }
.note p:last-child { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.feedback { font-size: .88rem; color: var(--green); font-weight: 700; min-height: 1.2em; }
.answers-summary { font-size: .86rem; color: var(--muted); margin: 0 0 14px; }

/* ---------- QR reader ---------- */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px;
  border: 2px dashed var(--line-2); border-radius: 14px; padding: 28px 16px; background: #fbfaf7; cursor: pointer;
  transition: border-color .15s, background-color .15s; min-height: 190px;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--brand); background: var(--brand-soft); }
.dropzone strong { font-size: 1.08rem; }
.dropzone small { color: var(--muted); }
.qr-alt { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.qr-alt .btn { flex: 1 1 200px; }
.paste-box { margin-top: 14px; }
.paste-box summary { cursor: pointer; font-weight: 700; color: var(--brand-ink); font-size: .92rem; }
.paste-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.paste-row input { flex: 1 1 240px; min-width: 0; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; font-size: .92rem; }

.camera-box { display: none; margin-top: 14px; }
.camera-box.is-on { display: block; }
.camera-frame { position: relative; border-radius: 12px; overflow: hidden; background: #000; max-width: 520px; margin: 0 auto; aspect-ratio: 4 / 3; }
.camera-frame video { width: 100%; height: 100%; object-fit: cover; }
.camera-frame::after { content: ""; position: absolute; inset: 18% 22%; border: 3px solid rgba(255,255,255,.85); border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0,0,0,.25); }
.camera-actions { text-align: center; margin-top: 10px; }

.working { display: none; align-items: center; gap: 12px; padding: 16px; background: var(--bg); border-radius: 12px; margin-top: 14px; }
.working.is-on { display: flex; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--brand); animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

.qr-result { display: none; margin-top: 16px; }
.qr-result.is-on { display: block; }
.qr-layout { display: grid; gap: 16px; }
@media (min-width: 760px) { .qr-layout { grid-template-columns: 200px 1fr; align-items: start; } }
.qr-thumb { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.qr-thumb canvas { width: 100%; height: auto; image-rendering: pixelated; }
.qr-thumb p { font-size: .78rem; color: var(--muted); margin: 6px 0 0; text-align: center; }
.data-table { width: 100%; border-collapse: collapse; margin: 0 0 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
.data-table th { width: 42%; font-size: .84rem; color: var(--muted); font-weight: 700; }
.data-table td { font-weight: 700; word-break: break-word; }
.data-table td .ok { color: var(--green); font-weight: 700; font-size: .82rem; display: block; }
.data-table td .ko { color: var(--red); font-weight: 700; font-size: .82rem; display: block; }
.raw { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8rem; background: var(--bg); padding: 10px; border-radius: 8px; word-break: break-all; margin: 0 0 14px; color: var(--ink-2); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.blue { background: var(--blue-soft); color: var(--blue); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }

/* ---------- Checklist ---------- */
.check-summary { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.check-summary .progress { max-width: none; height: 10px; flex: 1 1 200px; }
.check-count { font-weight: 800; font-size: 1.05rem; }
.check-group { margin: 0 0 16px; }
.check-group h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.check-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); margin-bottom: 8px; }
.check-item.is-done { background: var(--green-soft); border-color: #bfe3cb; }
.check-item.is-na { opacity: .6; }
.check-item input[type="checkbox"] { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); flex: none; cursor: pointer; }
.check-item label { flex: 1; cursor: pointer; }
.check-item label strong { display: block; font-size: .98rem; }
.check-item label small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.na-btn { flex: none; font-size: .76rem; font-weight: 700; border: 1px solid var(--line-2); background: var(--paper); border-radius: 999px; padding: 4px 10px; cursor: pointer; color: var(--ink-2); }
.na-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.missing { margin-top: 6px; }
.missing ul { margin: 6px 0 0; padding-left: 20px; }
.tag-cond { display: inline-block; font-size: .7rem; font-weight: 800; color: var(--blue); background: var(--blue-soft); border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }

/* ---------- Ads / monetization placeholders ---------- */
.ad-slot {
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px;
  border: 1.5px dashed var(--line-2); border-radius: 12px; background: repeating-linear-gradient(45deg, #faf9f6, #faf9f6 10px, #f4f2ec 10px, #f4f2ec 20px);
  color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: center;
}
.ad-slot small { font-weight: 600; letter-spacing: .02em; text-transform: none; }
.ad-leader { min-height: 100px; margin: 22px 0; }
@media (min-width: 760px) { .ad-leader { min-height: 110px; } }
.ad-incontent { min-height: 260px; margin: 8px 0 0; }
@media (min-width: 760px) { .ad-incontent { min-height: 140px; } }

.promo-dialog { border: none; border-radius: 16px; padding: 0; max-width: 420px; width: calc(100% - 32px); box-shadow: 0 20px 60px rgba(15,27,45,.25); }
.promo-dialog::backdrop { background: rgba(15, 27, 45, .45); }
.promo-inner { padding: 22px; position: relative; }
.promo-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper); cursor: pointer; font-size: 1.2rem; line-height: 1; }
.promo-dialog .ad-slot { min-height: 250px; margin: 12px 0 14px; }
.promo-dialog h2 { font-size: 1.1rem; margin-right: 40px; }

.corner-toast {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; width: min(320px, calc(100% - 32px));
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(15,27,45,.18);
  padding: 14px 14px 14px 14px; display: none;
}
.corner-toast.is-on { display: block; }
.corner-toast .ad-slot { min-height: 70px; margin-top: 8px; }
.corner-toast p { margin: 0; font-size: .88rem; font-weight: 700; padding-right: 30px; }
.toast-close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper); cursor: pointer; line-height: 1; }

/* ---------- Content sections ---------- */
.section { padding: 34px 0; }
@media (min-width: 720px) { .section { padding: 48px 0; } }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section .intro { color: var(--ink-2); max-width: 70ch; }

.how { display: grid; gap: 14px; counter-reset: h; margin-top: 18px; }
@media (min-width: 760px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how-step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.section-alt .how-step { background: var(--bg); }
.how-num { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; display: grid; place-items: center; margin-bottom: 10px; }
.how-step p { color: var(--ink-2); margin: 0; font-size: .95rem; }

.tools-grid { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 760px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }
.tool-link { display: block; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: border-color .15s; }
.tool-link:hover { border-color: var(--brand); color: var(--ink); }
.tool-link p { color: var(--ink-2); font-size: .94rem; margin: 0 0 10px; }
.tool-link span { color: var(--brand-ink); font-weight: 700; font-size: .92rem; }
.tool-link .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); display: grid; place-items: center; margin-bottom: 10px; }

.timeline { display: grid; gap: 12px; margin: 20px 0; }
@media (min-width: 760px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
.date-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; border-top: 4px solid var(--brand); }
.date-card.amber { border-top-color: var(--amber); }
.date-card.blue { border-top-color: var(--blue); }
.date-card .d { font-size: 1.35rem; font-weight: 800; }
.date-card .who { font-weight: 700; margin-bottom: 6px; }
.date-card p { font-size: .93rem; color: var(--ink-2); margin: 0; }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .94rem; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: var(--ink); color: #fff; font-size: .9rem; }
.compare tbody th { font-weight: 700; color: var(--ink-2); width: 24%; background: #fbfaf7; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0; border-radius: var(--radius); }
@media (max-width: 640px) {
  .compare, .compare thead, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare tbody tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .compare tbody th { background: none; padding-bottom: 2px; border: 0; color: var(--ink); }
  .compare td { border: 0; padding-top: 2px; }
  .compare td::before { content: attr(data-label); display: block; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
}

.profiles { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 760px) { .profiles { grid-template-columns: 1fr 1fr; } }
.profile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.section-alt .profile { background: var(--bg); }
.profile h3 { display: flex; gap: 10px; align-items: center; }
.profile p, .profile li { color: var(--ink-2); font-size: .95rem; }
.profile ul { padding-left: 18px; margin: 0; }

.affiliates { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 760px) { .affiliates { grid-template-columns: repeat(3, 1fr); } }
.aff-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.aff-badge { align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .08em; background: var(--ink); color: #fff; padding: 3px 9px; border-radius: 6px; }
.aff-logo { height: 56px; border: 1.5px dashed var(--line-2); border-radius: 10px; display: grid; place-items: center; color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .08em; }
.aff-card ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: .92rem; }
.aff-card .btn { margin-top: auto; }
.aff-disclosure { font-size: .82rem; color: var(--muted); margin-top: 12px; }

.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.section-alt .faq details { background: var(--bg); }
.faq summary { cursor: pointer; padding: 16px 44px 16px 16px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--brand); font-weight: 600; }
.faq details[open] summary::after { content: "−"; }
.faq .ans { padding: 0 16px 14px; color: var(--ink-2); }
.faq .ans p:last-child { margin-bottom: 0; }

.disclaimer { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--ink-2); border-radius: 0 12px 12px 0; padding: 14px 16px; font-size: .9rem; color: var(--ink-2); margin: 0; }
.disclaimer strong { color: var(--ink); }

.prose { max-width: 75ch; }
.prose h2 { margin-top: 1.4em; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .86em; background: var(--brand-soft); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; word-break: break-all; }
.footer-legal, .aff-disclosure, .disclaimer { overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9cfd8; padding: 32px 0 90px; font-size: .9rem; margin-top: 30px; }
.site-footer a { color: #e5e9ef; }
.footer-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 22px; padding-top: 16px; font-size: .82rem; color: #a7b0bd; }

/* ---------- Print (by si alguien imprime el resultado) ---------- */
@media print {
  .site-header, .site-footer, .ad-slot, .corner-toast, .promo-dialog, .tool-switch, .actions, .section:not(.hero) { display: none !important; }
  body { background: #fff; }
  .tool-card { box-shadow: none; border: 0; }
}
