/* PDF Sencillo — estilos. Un solo archivo, sin preprocesadores. */

/* ---------- 1. Tokens ---------- */
:root {
  --brand: #0f6e5f;
  --brand-strong: #0a5246;
  --brand-tint: #e5f3ef;
  --brand-tint-2: #cfe9e1;
  --mark: #e4572e;
  --ink: #16212b;
  --ink-2: #3a4752;
  --muted: #56636e;
  --line: #dde3e7;
  --line-strong: #c3ccd3;
  --bg: #f6f8f9;
  --card: #ffffff;
  --ok: #0f7a3d;
  --ok-bg: #e7f6ec;
  --warn: #8a5300;
  --warn-bg: #fff4dc;
  --err: #b42318;
  --err-bg: #fdecea;
  --info-bg: #eef3f8;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 33, 43, .06), 0 6px 24px rgba(16, 33, 43, .06);
  --focus: 0 0 0 3px #fff, 0 0 0 5px #1d6fd8;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --wrap: 1120px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--bg); }
img, svg, canvas { max-width: 100%; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-strong); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; color: #fff; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.25em; }

/* ---------- 3. Header / nav ---------- */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo svg { width: 30px; height: 30px; }
.logo b { color: var(--brand); }
.nav-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer; min-height: 44px; }
.site-nav { display: none; }
.site-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 16px 16px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; min-height: 44px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-strong); }
@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; box-shadow: none; border: 0; padding: 0; background: none; }
  .site-nav ul { display: flex; gap: 2px; }
  .site-nav a { padding: 8px 10px; font-size: .95rem; }
  .site-nav .icon { display: none; }
}

/* ---------- 4. Botones y formularios ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 11px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { border-color: var(--brand); color: var(--brand-strong); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.btn-secondary { background: var(--brand-tint); border-color: var(--brand-tint-2); color: var(--brand-strong); }
.btn-ghost { background: transparent; }
.btn-link { background: none; border: 0; color: var(--brand); text-decoration: underline; padding: 8px 4px; min-height: 44px; font-weight: 600; }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 1.06rem; }
.btn-sm { min-height: 38px; padding: 6px 12px; font-size: .92rem; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; padding: 0; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand-strong); background: var(--brand-tint); }
.icon-btn[disabled] { opacity: .35; cursor: default; background: var(--card); border-color: var(--line); color: var(--ink-2); }
.icon-btn .icon { width: 18px; height: 18px; }
label { font-weight: 600; }
input[type=text], select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%; }
input[type=text]:focus, select:focus, textarea:focus { outline: none; box-shadow: var(--focus); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; flex: none; }
.field { display: grid; gap: 6px; }
.field-hint { font-size: .9rem; color: var(--muted); margin: 0; font-weight: 400; }
.field-error { color: var(--err); font-size: .92rem; margin: 0; font-weight: 600; }
.field-error:empty { display: none; }
.field-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .field-row.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; min-height: 44px; }
fieldset.options { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
fieldset.options legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 600; min-height: 44px; background: #fff; }
.radio-pill:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-strong); }
.option-cards { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .option-cards { grid-template-columns: repeat(3, 1fr); } }
.option-card { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px; cursor: pointer; background: #fff; }
.option-card input { margin-top: 3px; }
.option-card .oc-title { font-weight: 700; }
.option-card .oc-desc { grid-column: 2; font-weight: 400; font-size: .92rem; color: var(--muted); }
.option-card:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }

/* ---------- 5. Avisos ---------- */
.notice { border-radius: 10px; padding: 12px 14px; margin: 0; font-size: .95rem; border: 1px solid transparent; }
.notice-info { background: var(--info-bg); border-color: #d6e1ec; }
.notice-warn { background: var(--warn-bg); border-color: #f2d9a6; color: #4a3100; }
.notice-error { background: var(--err-bg); border-color: #f5c6c1; color: #6b130c; }
.notice-ok { background: var(--ok-bg); border-color: #bfe5cc; color: #0b4a26; }
.notice[hidden] { display: none; }

/* ---------- 6. Tarjeta de herramienta y estados ---------- */
.tool-hero { padding: 24px 0 8px; }
.tool-hero h1 { margin-bottom: .3em; }
.tool-hero .lead { color: var(--ink-2); font-size: 1.06rem; max-width: 62ch; margin-bottom: 16px; }
.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); }
.tool-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
@media (min-width: 720px) { .tool-card { padding: 24px; } }
.tool-card .stage { display: none; }
.tool-card[data-state="idle"] .stage-idle,
.tool-card[data-state="selected"] .stage-work,
.tool-card[data-state="cancelled"] .stage-work,
.tool-card[data-state="validating"] .stage-progress,
.tool-card[data-state="working"] .stage-progress,
.tool-card[data-state="done"] .stage-result,
.tool-card[data-state="error"] .stage-error,
.tool-card[data-state="fatal"] .stage-error { display: block; }
.tool-card[data-state="fatal"] [data-error-back] { display: none; }
.tool-card[data-state="validating"] [data-cancel] { display: none; }

.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 230px; padding: 28px 16px; border: 2px dashed var(--brand-tint-2); border-radius: 12px; background: linear-gradient(180deg, #fbfdfc, var(--brand-tint)); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .tool-card.is-drag .dropzone { border-color: var(--brand); background: var(--brand-tint); }
.dropzone:focus-within { box-shadow: var(--focus); }
.dropzone .dz-icon { width: 54px; height: 54px; color: var(--brand); stroke-width: 1.6; }
.dropzone .dz-title { font-size: 1.15rem; font-weight: 750; }
.dropzone .dz-sub { color: var(--muted); font-weight: 500; }
.dropzone .btn { margin-top: 8px; pointer-events: none; }
.dz-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dz-meta { margin: 10px 0 0; font-size: .88rem; color: var(--muted); text-align: center; }
.tool-card.is-drag::after { content: "Suelta los archivos para agregarlos"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(229, 243, 239, .92); border: 2px dashed var(--brand); border-radius: var(--radius); font-weight: 750; color: var(--brand-strong); font-size: 1.1rem; z-index: 5; pointer-events: none; }
.tool-card[data-state="idle"].is-drag::after { display: none; }

.stage-work > * + * { margin-top: 16px; }
.ws-title { font-size: 1.1rem; margin: 0; }
.ws-hint { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.ws-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding-top: 4px; }
.ws-actions .btn-primary { margin-left: auto; }
@media (max-width: 520px) { .ws-actions .btn { flex: 1 1 100%; } .ws-actions .btn-primary { order: -1; } }
.ws-summary { color: var(--ink-2); font-size: .95rem; margin: 0; }
.file-summary { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 12px 14px; background: var(--bg); border-radius: 10px; }
.file-name { word-break: break-all; }
.file-meta { color: var(--muted); font-size: .92rem; }

.stage-progress { text-align: center; padding: 36px 8px; }
.stage-progress p { font-weight: 650; margin-bottom: 14px; }
progress { width: 100%; max-width: 460px; height: 12px; border-radius: 999px; overflow: hidden; appearance: none; border: 0; background: var(--brand-tint); display: block; margin: 0 auto 18px; }
progress::-webkit-progress-bar { background: var(--brand-tint); }
progress::-webkit-progress-value { background: var(--brand); border-radius: 999px; transition: width .2s; }
progress::-moz-progress-bar { background: var(--brand); border-radius: 999px; }
progress:indeterminate { background: linear-gradient(90deg, var(--brand-tint) 0%, var(--brand) 50%, var(--brand-tint) 100%) 0 0 / 200% 100%; animation: pf-indet 1.2s linear infinite; }
progress:indeterminate::-webkit-progress-bar { background: transparent; }
progress:indeterminate::-moz-progress-bar { background: transparent; }
@keyframes pf-indet { to { background-position: -200% 0; } }

.stage-result > * + * { margin-top: 14px; }
.stage-result [data-result-title] { font-size: 1.35rem; margin: 0; outline: none; display: flex; align-items: center; gap: 10px; }
.stage-result [data-result-title] .icon { color: var(--ok); width: 28px; height: 28px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.result-actions .btn-primary { min-height: 54px; font-size: 1.08rem; padding: 12px 26px; }
.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.result-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.result-list .btn { min-height: 40px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat { background: var(--bg); border-radius: 10px; padding: 12px 14px; }
.stat span { display: block; font-size: .85rem; color: var(--muted); }
.stat strong { font-size: 1.3rem; }
.stat.is-good strong { color: var(--ok); }
.stat.is-bad strong { color: var(--err); }
.stage-error { padding: 20px 4px; outline: none; }
.stage-error p { font-size: 1.02rem; }

/* ---------- 7. Listas de archivos (unir, JPG a PDF) ---------- */
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: f; }
.file-row { display: grid; grid-template-columns: auto auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; counter-increment: f; }
.file-row::before { content: counter(f); font-weight: 800; color: var(--brand); min-width: 1.4em; text-align: center; }
.file-row .drag-handle { color: var(--muted); cursor: grab; display: none; }
@media (hover: hover) { .file-row .drag-handle { display: inline-flex; } }
.file-row .fr-info { min-width: 0; }
.file-row .fr-name { font-weight: 650; overflow-wrap: anywhere; }
.file-row .fr-meta { font-size: .88rem; color: var(--muted); }
.file-row.is-invalid { border-color: #f1b8b1; background: var(--err-bg); }
.file-row.is-invalid .fr-meta { color: var(--err); font-weight: 600; }
.fr-actions { display: flex; gap: 6px; }
.file-row.is-dragging, .page.is-dragging { opacity: .45; }
.drop-before { box-shadow: 0 -3px 0 var(--brand); }
.drop-after { box-shadow: 0 3px 0 var(--brand); }
.page.drop-before { box-shadow: -4px 0 0 var(--brand); }
.page.drop-after { box-shadow: 4px 0 0 var(--brand); }
.img-row { grid-template-columns: auto 64px 1fr auto; }
.img-thumb { width: 64px; height: 64px; border-radius: 8px; background: var(--bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.img-thumb canvas { max-width: 64px; max-height: 64px; transition: transform .2s; }
@media (max-width: 560px) {
  .file-row, .img-row { grid-template-columns: auto 1fr; }
  .file-row .drag-handle { display: none; }
  .img-row .img-thumb { grid-row: span 2; }
  .fr-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .img-row .fr-actions { grid-column: 2; }
}

/* ---------- 8. Cuadrícula de páginas ---------- */
.grid-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.page-grid { list-style: none; margin: 0; padding: 4px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); max-height: 620px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.page-grid:empty { display: none; }
.page { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: grid; gap: 6px; }
.page[draggable=true] { cursor: grab; }
.page.is-selected { border-color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); background: var(--brand-tint); }
.page-frame { position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, #f2f5f7 0 6px, #eef1f4 6px 12px); border-radius: 6px; overflow: hidden; }
.page-frame canvas { max-width: 100%; max-height: 100%; box-shadow: 0 1px 3px rgba(0,0,0,.18); background: #fff; transition: transform .2s; }
.page:not(.is-ready) .page-frame canvas { width: 70%; height: 90%; }
.page.is-failed .page-frame::after { content: "Sin vista previa"; position: absolute; font-size: .8rem; color: var(--muted); }
.page-pos { position: absolute; top: 4px; left: 4px; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 700; border-radius: 6px; padding: 1px 7px; }
.page-rot { position: absolute; bottom: 4px; right: 4px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; border-radius: 6px; padding: 1px 7px; }
.page-bar { display: grid; gap: 6px; }
.page-check, .page-label { display: flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 650; min-height: 30px; cursor: pointer; }
.page-grid.no-select .page-check { cursor: default; }
.page-grid.no-select .page-check input { display: none; }
.page-actions:empty { display: none; }
.page-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.page-actions .icon-btn { width: 34px; height: 34px; }

/* ---------- 9. Resultados de imágenes y texto ---------- */
.thumb-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-height: 560px; overflow: auto; }
.thumb-results li { border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: grid; gap: 8px; background: #fff; }
.thumb-results img { width: 100%; height: 160px; object-fit: contain; background: var(--bg); border-radius: 6px; }
.thumb-results .btn { width: 100%; }
.text-output { min-height: 320px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9rem; line-height: 1.5; resize: vertical; }

/* ---------- 10. Debajo de la herramienta ---------- */
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: .93rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .icon { color: var(--brand); }
.limits { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }
.section { padding: 36px 0; }
.section + .section { border-top: 1px solid var(--line); }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-strong); font-weight: 800; align-items: center; justify-content: center; margin-bottom: 8px; }
.steps strong { display: block; }
.faq { display: grid; gap: 10px; max-width: 80ch; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding-bottom: 14px; color: var(--ink-2); }
.tool-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tool-link { display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.tool-link:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); transform: translateY(-1px); }
.tool-link .tl-name { display: block; font-size: 1.02rem; font-weight: 700; }
.tool-link .tl-desc { color: var(--muted); font-size: .9rem; line-height: 1.45; display: block; margin-top: 2px; }
.tool-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--brand-tint); color: var(--brand-strong); }
.tool-ico .icon { width: 24px; height: 24px; }
.tool-ico.c-organizar { background: #e8f0fd; color: #1f4fa3; }
.tool-ico.c-optimizar { background: #fdf0e6; color: #9a4a0b; }
.tool-ico.c-desde-pdf { background: #f1ebfb; color: #5b3196; }
.tool-ico.c-a-pdf { background: #e5f3ef; color: #0a5246; }
.cat-title { font-size: 1.05rem; margin: 26px 0 12px; color: var(--ink-2); }

/* ---------- 11. Portada ---------- */
.home-hero { padding: 40px 0 20px; text-align: center; }
.home-hero h1 { max-width: 20ch; margin: 0 auto .35em; }
.home-hero .lead { color: var(--ink-2); font-size: 1.12rem; max-width: 60ch; margin: 0 auto 22px; }
.home-hero .trust { justify-content: center; }
.popular { margin-top: 26px; text-align: left; }
.privacy-box { display: grid; gap: 18px; grid-template-columns: 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
@media (min-width: 800px) { .privacy-box { grid-template-columns: 1.3fr 1fr; padding: 30px; } }
.privacy-box ul { margin: 0; padding-left: 1.2em; }

/* ---------- 12. Publicidad (solo si está activada) ---------- */
.ad-slot { margin: 24px auto; text-align: center; min-height: 120px; max-width: 100%; overflow: hidden; }
.ad-slot .ad-label { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.ad-slot--footer { min-height: 100px; }
.ad-slot.is-preview { border: 1px dashed var(--line-strong); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; background: repeating-linear-gradient(-45deg, transparent 0 10px, #f0f3f5 10px 20px); }

/* ---------- 13. Footer ---------- */
.site-footer { margin-top: 40px; background: #0f1b24; color: #c8d2da; padding: 36px 0 24px; font-size: .94rem; }
.site-footer a { color: #e8eef2; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: .95rem; color: #fff; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer .logo { color: #fff; }
.site-footer .logo b { color: #7fd6c2; }
.footer-bottom { border-top: 1px solid #23323d; margin-top: 26px; padding-top: 16px; font-size: .85rem; color: #9fb0bc; }

/* ---------- 14. Páginas de texto (legales, 404) ---------- */
.page-text { padding: 30px 0; }
.page-text .prose { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; max-width: 80ch; }
@media (min-width: 720px) { .page-text .prose { padding: 34px 40px; } }
.todo { background: #fff3c4; padding: 0 4px; border-radius: 4px; }
