/* ═════════ Diseño "moderno" (colores de PDFlow: morado → rosa) ═════════
   Para volver al diseño anterior: SITE_THEME=clasico en .env (usa styles-clasico.css) */
:root {
  --brand: #6c4dff;
  --brand-2: #ff4d8d;
  --brand-3: #ff4d8d;
  --brand-dark: #5638e6;
  --grad: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  --bg: #f6f7fb;
  --bg-2: #eceef7;
  --surface: #ffffff;
  --surface-2: #fafbff;
  --text: #14162a;
  --muted: #6b7090;
  --border: #e6e8f2;
  --border-strong: #d5d8e8;
  --ok: #12b886;
  --err: #e03131;
  --info: #4263eb;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -6px rgba(16, 24, 40, .10);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, .04), 0 24px 48px -12px rgba(16, 24, 40, .18);
  --glow: 0 10px 30px -8px color-mix(in srgb, var(--brand) 55%, transparent);
  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
/* Oscuro: sigue al sistema salvo que se elija otro tema con el botón 🌓 (data-theme) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1020; --bg-2: #141730; --surface: #171a30; --surface-2: #1c2038; --text: #eef0ff; --muted: #9aa0c5;
    --border: #262a4a; --border-strong: #343a63;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -6px rgba(0, 0, 0, .5);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1020; --bg-2: #141730; --surface: #171a30; --surface-2: #1c2038; --text: #eef0ff; --muted: #9aa0c5;
  --border: #262a4a; --border-strong: #343a63;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -6px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--brand-2) 12%, transparent), transparent 60%),
    radial-gradient(900px 500px at 95% 0%, color-mix(in srgb, var(--brand-3) 10%, transparent), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--brand); text-underline-offset: 3px; }
img, canvas { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 620px; }
.center { text-align: center; }
.muted, .small { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--brand) 25%, transparent); }

/* ───── Cabecera translúcida ───── */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.logo-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; background: var(--grad); color: #fff; border-radius: 10px; font-size: 1.05rem; font-weight: 800; box-shadow: var(--glow); }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { color: var(--text); text-decoration: none; font-weight: 550; font-size: .95rem; padding: 8px 12px; border-radius: 999px; transition: background .2s; white-space: nowrap; }
.main-nav a:hover { background: var(--bg-2); color: var(--text); }
#auth-nav { display: flex; gap: 6px; align-items: center; }
@media (max-width: 760px) {
  .logo-text { display: none; }
  .main-nav a { padding: 6px 8px; font-size: .88rem; }
  .main-nav > a:first-child { display: none; }
}

/* ───── Botones ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--grad); background-size: 140% 140%; color: #fff !important; border: 0; border-radius: 999px;
  padding: 12px 24px; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none;
  box-shadow: var(--glow); transition: transform .2s var(--ease), box-shadow .2s, background-position .4s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); background-position: 100% 0; box-shadow: 0 14px 34px -8px color-mix(in srgb, var(--brand) 65%, transparent); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-sm { padding: 7px 16px; font-size: .9rem; }
.main-nav .btn-sm { padding: 8px 16px; }
.btn-lg { padding: 16px 36px; font-size: 1.08rem; }
.btn-ghost { background: var(--surface); color: var(--text) !important; border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--surface-2); box-shadow: var(--shadow); }
.btn-danger { background: var(--err); box-shadow: none; }

/* ───── Portada ───── */
.hero { text-align: center; padding: 72px 0 36px; position: relative; }
.hero .wrap::before {
  content: "✦ Gratis · Máxima calidad · Sin marcas de agua";
  display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
}
.hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 850; line-height: 1.1; margin: 0 auto 16px; max-width: 820px; letter-spacing: -.03em; }
.grad-text { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; margin: 0 auto 28px; }
.search { position: relative; display: inline-block; width: min(560px, 100%); }
.search::before { content: "⌕"; position: absolute; left: 20px; top: 50%; transform: translateY(-52%); font-size: 1.3rem; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; padding: 16px 20px 16px 50px; border-radius: 999px; border: 1px solid var(--border-strong); font: inherit; font-size: 1.02rem;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); transition: border-color .2s, box-shadow .2s;
}
.search input:focus { outline: none; border-color: color-mix(in srgb, var(--brand) 50%, transparent); box-shadow: var(--shadow-lg), 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }

.category { margin: 44px 0; }
.category h2 { font-size: 1.3rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.category h2::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--grad); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tool-card {
  --h: 255;
  position: relative; display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px;
  text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm); overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.tool-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .25s;
  background: radial-gradient(400px 160px at 0% 0%, hsl(var(--h) 90% 60% / .10), transparent 70%);
}
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -14px hsl(var(--h) 80% 50% / .5); border-color: hsl(var(--h) 80% 60%); }
.tool-card:hover::after { opacity: 1; }
.tool-card h3 { margin: 12px 0 4px; font-size: 1.02rem; font-weight: 700; }
.tool-card p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.tool-icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 22px; line-height: 1;
  background: hsl(var(--h, 255) 90% 60% / .16);
}
.badge { position: absolute; top: 14px; right: 14px; background: linear-gradient(135deg, #5c7cfa, #4263eb); color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.badge-hot { background: var(--grad); }
/* Filtros de la portada */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0 22px; }
.chip { font: inherit; font-size: .92rem; font-weight: 600; padding: 8px 16px; border-radius: 999px; cursor: pointer; background: var(--surface); color: var(--text); border: 1px solid var(--border); transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--grad); color: #fff; border-color: transparent; }
.theme-btn { font: inherit; font-size: 1rem; width: 38px; height: 38px; border-radius: 10px; cursor: pointer; background: var(--surface); color: var(--text); border: 1px solid var(--border); flex: none; }
.theme-btn:hover { border-color: var(--brand); }
.features { margin: 72px auto; }
.features > h2, .faq > h2, .seo-content h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature-grid > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.feature-grid > div::before { content: "✓"; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); font-weight: 800; margin-bottom: 10px; }
.feature-grid h3 { margin: 0 0 6px; }
.feature-grid p { margin: 0; color: var(--muted); }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 10px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 10px 0 0; }
.faq { margin-bottom: 56px; }

/* ───── Página de herramienta ───── */
.breadcrumb { font-size: .88rem; color: var(--muted); padding-top: 20px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.tool-hero { text-align: center; padding: 26px 16px 6px; }
.tool-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 850; margin: 6px 0 10px; letter-spacing: -.03em; }
.tool-app {
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-lg);
  padding: clamp(16px, 3vw, 32px); margin: 20px 0 48px; min-height: 260px;
}
.seo-content { display: grid; gap: 32px; margin-bottom: 56px; }
.howto ol { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 10px; }
.howto ol li { counter-increment: step; display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; }
.howto ol li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; font-size: .9rem; }

.dropzone {
  position: relative; border: 2px dashed color-mix(in srgb, var(--brand) 30%, var(--border-strong)); border-radius: 20px; padding: 52px 16px; text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 4%, transparent), transparent); transition: border-color .2s, background .2s, transform .2s;
}
.dropzone::before { content: "⇪"; display: block; font-size: 2.4rem; line-height: 1; margin-bottom: 14px; color: var(--brand); opacity: .8; }
.dropzone.drag { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, transparent); transform: scale(1.01); }
.dropzone p { margin: 12px 0 0; color: var(--muted); font-size: .92rem; }
.file-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; }
.file-item { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.file-item::before { content: "▤"; color: var(--brand); font-size: 1.1rem; }
.file-item .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.file-item .size { color: var(--muted); font-size: .85rem; }
.icon-btn { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; width: 34px; height: 34px; cursor: pointer; color: var(--text); font-size: 1rem; transition: all .15s; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 20px 0; padding: 18px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.options label, .form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
.options label.check, .form label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  font: inherit; font-weight: 400; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: color-mix(in srgb, var(--brand) 55%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 13%, transparent); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); }
textarea { resize: vertical; }
input[type=color] { width: 56px; height: 40px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); padding: 3px; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.progress { height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; margin-top: 20px; }
.progress > div { height: 100%; width: 0; background: var(--grad); border-radius: 99px; transition: width .3s var(--ease); }
.status { text-align: center; color: var(--muted); margin-top: 10px; min-height: 1.5em; font-size: .92rem; }
.alert { border-radius: var(--radius-sm); padding: 12px 16px; margin: 12px 0; border: 1px solid; font-size: .95rem; }
.alert-error { background: color-mix(in srgb, var(--err) 8%, transparent); border-color: color-mix(in srgb, var(--err) 30%, transparent); }
.alert-info { background: color-mix(in srgb, var(--info) 8%, transparent); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.alert-ok { background: color-mix(in srgb, var(--ok) 9%, transparent); border-color: color-mix(in srgb, var(--ok) 32%, transparent); }
.results { margin-top: 24px; }
.result-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--border); background: var(--surface-2); border-radius: var(--radius-sm); margin-bottom: 8px; animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.app-gate { text-align: center; padding: 24px; }
.app-gate h2 { margin: 14px 0 8px; }
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); gap: 4px; flex-wrap: wrap; }
.segmented label { flex-direction: row !important; align-items: center; gap: 8px !important; padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: var(--surface); box-shadow: var(--shadow); color: var(--brand); }

/* ───── Miniaturas / editores ───── */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin: 16px 0; }
.thumb { background: var(--surface-2); border: 2px solid var(--border); border-radius: 14px; padding: 10px; text-align: center; cursor: grab; position: relative; user-select: none; transition: border-color .15s, transform .15s; }
.thumb:hover { transform: translateY(-2px); }
.thumb.dragging { opacity: .4; }
.thumb.over { border-color: var(--brand); }
.thumb canvas { display: block; margin: 0 auto; box-shadow: 0 2px 10px rgba(0,0,0,.15); border-radius: 4px; transition: transform .25s var(--ease); background: #fff; }
.thumb .tools { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.thumb .num { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.placer { display: grid; grid-template-columns: 1fr 300px; gap: 20px; }
@media (max-width: 820px) { .placer { grid-template-columns: 1fr; } }
.page-stage { position: relative; display: inline-block; max-width: 100%; box-shadow: var(--shadow-lg); border-radius: 6px; cursor: crosshair; background: #fff; touch-action: none; }
.page-stage canvas { display: block; border-radius: 6px; }
.page-stage .item { position: absolute; cursor: move; border: 1px dashed transparent; white-space: pre; line-height: 1; }
.page-stage .item:hover, .page-stage .item.sel { border-color: var(--info); }
.page-stage .item img { display: block; width: 100%; pointer-events: none; }
.page-nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 10px 0; }
.side-panel { display: grid; gap: 12px; align-content: start; }
.sig-pad { border: 1px solid var(--border-strong); border-radius: 14px; background: #fff; touch-action: none; width: 100%; height: 160px; cursor: crosshair; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px; background: var(--bg-2); border-radius: 999px; }
.tabs button { flex: 1; border: 0 !important; box-shadow: none !important; background: transparent; }
.tabs button[aria-selected=true] { background: var(--surface); color: var(--brand) !important; box-shadow: var(--shadow) !important; }
.camera video { width: 100%; max-height: 60vh; background: #000; border-radius: 16px; }
.diff { width: 100%; border-collapse: collapse; font-size: .9rem; }
.diff td { padding: 4px 10px; vertical-align: top; border-bottom: 1px solid var(--border); white-space: pre-wrap; word-break: break-word; }
.diff .del { background: color-mix(in srgb, var(--err) 12%, transparent); }
.diff .add { background: color-mix(in srgb, var(--ok) 14%, transparent); }
.diff .page-row td { background: var(--bg-2); font-weight: 650; }

/* ───── Formularios y tarjetas ───── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h2 { margin-top: 0; }
.form { display: grid; gap: 16px; margin: 20px 0 48px; }
.form-msg { margin: 0; min-height: 1.4em; }
.form-msg.err { color: var(--err); }
.form-msg.ok { color: var(--ok); }
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 24px 0; }
.download { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text); text-align: center; transition: transform .2s var(--ease), box-shadow .2s; }
a.download:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.download strong { font-size: 1.1rem; }
.download.disabled { opacity: .55; }
table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); font-weight: 650; font-size: .92rem; }
tr:last-child td { border-bottom: 0; }
.prose { max-width: 820px; padding-bottom: 56px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.prose h2 { margin-top: 36px; }
.table-scroll { overflow-x: auto; }

/* ───── Pie ───── */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 22px; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; }
.footer-title { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--text); opacity: .8; text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: var(--brand); opacity: 1; }
.copyright { color: var(--muted); font-size: .85rem; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }

.modal-back { position: fixed; inset: 0; background: rgba(10, 12, 20, .55); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 50; padding: 16px; animation: pop .2s; }
.modal { background: var(--surface); border-radius: 20px; padding: 24px; width: min(420px, 100%); display: grid; gap: 12px; box-shadow: var(--shadow-lg); }
.modal h2 { margin: 0; font-size: 1.2rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ───────── Anuncios, aviso de cookies y Premium ───────── */
.ad-slot { display: block; margin: 28px 0; min-height: 280px; text-align: center; }
/* Sin anuncio disponible: el espacio desaparece (no queda un hueco con «Publicidad») */
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none !important; }
.ad-label { display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.consent-banner { position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin: 0 auto; padding: 16px 20px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.consent-banner p { margin: 0; font-size: .95rem; }
.consent-banner .actions { justify-content: flex-end; margin-top: 12px; }
.consent-banner .btn { min-width: 120px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.benefits { padding-left: 1.2em; margin: 18px 0 24px; }
.benefits li { margin: 6px 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.plan { text-align: center; }
.plan h2 { margin: 0 0 6px; }
.plan .price { font-size: 1.5rem; font-weight: 700; margin: 0 0 16px; min-height: 1.5em; }
@media (max-width: 560px) { .consent-banner .actions { justify-content: stretch; } .consent-banner .btn { flex: 1; } }
/* Móviles estrechos: «Descargar app» sigue en el pie de página */
@media (max-width: 420px) { .main-nav a[href="/descargar"] { display: none; } }
/* Móviles estrechos: la cabecera (con el botón 🌓) cabe sin desbordarse */
@media (max-width: 420px) {
  .header-inner { gap: 8px; }
  .main-nav, #auth-nav { gap: 2px; }
  .main-nav a { padding: 6px 7px; font-size: .84rem; }
  .main-nav .btn-sm { padding: 7px 12px; }
  .theme-btn { width: 32px; height: 32px; font-size: .9rem; }
}
