/* ---------- Tokens ---------- */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef2f9;
  --text: #18202f;
  --muted: #5b6577;
  --border: #dfe5f0;
  --accent: #2f5aa8;
  --accent-strong: #234789;
  --accent-soft: #e6edf9;
  --accent-text: #ffffff;
  --sun: #f2b441;
  --sun-soft: #fdf1d7;
  --teal: #0f6f68;
  --teal-soft: #dcf1ee;
  --hero-1: #eef3fc;
  --hero-2: #dbe6fa;
  --shadow: 0 1px 2px rgba(20, 40, 80, .05), 0 8px 24px rgba(20, 40, 80, .07);
  --radius: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10141c;
    --surface: #171d28;
    --surface-2: #1f2633;
    --text: #f2edf5;
    --muted: #a99fb0;
    --border: #2c3545;
    --accent: #8fb0ec;
    --accent-strong: #aac4f3;
    --accent-soft: #1d2a44;
    --accent-text: #0b1426;
    --sun: #f2b441;
    --sun-soft: #3a2f17;
    --teal: #5fc4b9;
    --teal-soft: #173430;
    --hero-1: #141c2b;
    --hero-2: #1b2740;
    --shadow: none;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 0 0 16px; }
h3 { font-size: 1.1rem; margin: 26px 0 10px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand img { display: block; border-radius: 10px; }
.brand em { color: var(--accent); font-style: normal; }
.main-nav { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; }
.main-nav > a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 4px; }
.main-nav > a:hover { color: var(--text); }
.years { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.years a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .9rem; padding: 5px 13px; border-radius: 999px; }
.years a[aria-current="page"] { background: var(--accent); color: var(--accent-text); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 100% -10%, var(--hero-2), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, var(--sun-soft), transparent 60%),
    var(--hero-1);
  border-bottom: 1px solid var(--border);
  padding: 40px 0 44px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.3rem); margin: 6px 0 16px; letter-spacing: -.035em; }
.h1-sub { display: block; font-size: .5em; font-weight: 650; color: var(--muted); letter-spacing: -.01em; margin-top: 6px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; font-size: .9rem; color: var(--accent); background: var(--surface); border: 1px solid var(--border); padding: 5px 12px 5px 9px; border-radius: 999px; }
.eyebrow svg { color: var(--sun); }
.lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 20px; max-width: 46ch; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }

.stats { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 22px; padding: 0; }
.stats li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 14px; font-size: .95rem; color: var(--muted); }
.stats b { color: var(--text); font-size: 1.15rem; margin-right: 4px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; padding: 12px 20px; border-radius: 12px; border: 2px solid transparent; transition: transform .1s, background .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-text); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-text); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.otro-anio { margin: 14px 0 0; color: var(--muted); }
.otro-anio a { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; }

/* ---------- Tarjeta «próximo festivo» ---------- */
.next-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.next-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--accent), var(--sun)); }
.next-label { display: block; margin: 4px 0 8px; font-weight: 700; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.next-card select {
  width: 100%; font: inherit; font-weight: 650; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; margin-bottom: 14px;
}
.next-count { display: flex; align-items: baseline; gap: 8px; margin: 0; line-height: 1; }
.next-count span { font-size: clamp(3.2rem, 9vw, 4.4rem); font-weight: 800; letter-spacing: -.05em; color: var(--accent); font-variant-numeric: tabular-nums; }
.next-count small { font-size: 1.15rem; font-weight: 700; color: var(--muted); }
.next-date { margin: 10px 0 2px; font-size: 1.2rem; font-weight: 750; }
.next-date::first-letter { text-transform: uppercase; }
.next-name { margin: 0 0 14px; color: var(--muted); min-height: 1.6em; }
.next-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }

/* ---------- Secciones ---------- */
.section { padding: 40px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-lead { color: var(--muted); margin: -8px 0 16px; }
.prose p { max-width: 70ch; }

/* Comunidades */
.ccaa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ccaa-card {
  display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 16px 14px;
  transition: transform .12s, border-color .12s, box-shadow .12s;
}
.ccaa-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow); color: var(--text); }
.ccaa-name { font-weight: 750; font-size: 1.05rem; }
.ccaa-n { color: var(--muted); font-size: .9rem; }
.ccaa-next { margin-top: 8px; font-size: .85rem; color: var(--teal); font-weight: 600; }
.ccaa-next:empty { display: none; }

/* Fichas de festivos */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.tile { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.tile-date {
  flex: none; width: 64px; text-align: center; border-radius: 12px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border); display: flex; flex-direction: column; line-height: 1.1;
}
.tile-wd { background: var(--accent); color: var(--accent-text); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 0; }
.tile-aut .tile-wd { background: var(--teal); }
.tile-day { font-size: 1.6rem; font-weight: 800; padding-top: 4px; }
.tile-mon { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; padding-bottom: 5px; }
.tile-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile-name { font-weight: 700; }
.tile-full { color: var(--muted); font-size: .88rem; }
.badge { align-self: flex-start; margin-top: 4px; font-size: .74rem; font-weight: 750; padding: 2px 9px; border-radius: 999px; }
.badge.nac { background: var(--accent-soft); color: var(--accent-strong); }
.badge.aut { background: var(--teal-soft); color: var(--teal); }

.callout { margin-top: 16px; background: var(--sun-soft); border: 1px solid color-mix(in srgb, var(--sun) 45%, var(--border)); border-radius: 12px; padding: 12px 16px; font-size: .95rem; }
.callout-soft { background: var(--surface); border-color: var(--border); color: var(--muted); }

/* Calendario anual */
.anio { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.mes-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 12px 8px; }
table.mes { border-collapse: separate; border-spacing: 2px; width: 100%; table-layout: fixed; font-variant-numeric: tabular-nums; }
table.mes caption { text-align: left; font-weight: 800; padding: 0 4px 6px; }
.mes-n { float: right; font-size: .75rem; font-weight: 700; color: var(--accent); padding-top: 3px; }
table.mes th { font-size: .72rem; color: var(--muted); font-weight: 700; padding: 2px 0; }
table.mes td { text-align: center; font-size: .88rem; padding: 0; height: 30px; border-radius: 8px; }
table.mes td.finde { color: var(--muted); background: var(--surface-2); }
table.mes td.fest { background: var(--accent); color: var(--accent-text); font-weight: 800; cursor: help; }
table.mes td.hoy { box-shadow: inset 0 0 0 2px var(--teal); font-weight: 800; }
.leyenda { font-size: .88rem; color: var(--muted); display: flex; gap: 6px 14px; align-items: center; flex-wrap: wrap; margin: 0; }
.dot { display: inline-block; width: 13px; height: 13px; border-radius: 4px; margin-right: 2px; vertical-align: -2px; }
.dot.fest { background: var(--accent); }
.dot.finde { background: var(--surface-2); border: 1px solid var(--border); }
.dot.hoy { box-shadow: inset 0 0 0 2px var(--teal); }

/* Puentes */
.puentes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.puente { display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, var(--surface), var(--sun-soft)); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.puente-n { flex: none; width: 70px; height: 70px; border-radius: 50%; background: var(--sun); color: #3a2604; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; line-height: 1; }
.puente-n b { font-size: 1.7rem; }
.puente-body { display: flex; flex-direction: column; }
.puente-title { font-weight: 750; }
.puente-title::first-letter { text-transform: uppercase; }
.puente-range { color: var(--muted); font-size: .92rem; }
.largos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.largos li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: .92rem; color: var(--muted); }
.largos b { color: var(--text); }
.empty { color: var(--muted); }

/* Tabla comparativa */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.cmp th, table.cmp td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.cmp thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); }
table.cmp tbody tr:last-child th, table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp th[scope="row"] { white-space: nowrap; }
table.cmp th[scope="row"] a { font-weight: 700; text-decoration: none; }
table.cmp .num { font-weight: 800; }
.mini { display: inline-block; margin: 2px 10px 2px 0; }
.mini b { color: var(--accent); }

/* Preguntas frecuentes */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; }
.faq-item summary { cursor: pointer; list-style: none; font-weight: 700; padding: 16px 28px 16px 0; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.5rem; font-weight: 400; color: var(--accent); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 16px; color: var(--muted); }

/* Otras comunidades */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .92rem; }
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Pie ---------- */
.site-footer { margin-top: 56px; background: var(--surface); border-top: 1px solid var(--border); padding: 36px 0 28px; color: var(--muted); font-size: .9rem; }
.footer-top { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 24px 40px; }
.footer-brand p { margin: 10px 0 0; max-width: 36ch; }
.footer-title { margin: 0 0 8px; font-weight: 800; color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.footer-links a, .footer-legal a { color: var(--muted); text-decoration: none; }
.footer-links a:hover, .footer-legal a:hover { color: var(--accent); text-decoration: underline; }
.footer-note { margin: 24px 0 8px; }
.footer-legal { display: flex; gap: 16px; }

/* ---------- Páginas legales ---------- */
.legal { max-width: 760px; padding-top: 32px; padding-bottom: 24px; }
.legal h1 { font-size: 2rem; }

/* ---------- Móvil ---------- */
/* ---------- Herramientas ---------- */
.hero-tool { padding: 30px 0 34px; }
.hero-tool h1 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); }
.hero-tool .lead { max-width: 70ch; }
.tools-nav { gap: 2px 4px; }
.tools-nav > a { padding: 6px 10px; border-radius: 8px; }
.tools-nav > a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.tool { display: grid; gap: 16px; }
.panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 18px 20px 8px; margin: 0; min-width: 0; box-shadow: var(--shadow); }
.panel legend { font-weight: 800; font-size: 1.05rem; padding: 0 8px; }
.tool label { display: block; font-size: .9rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.tool label small { font-weight: 400; }
.tool input, .tool select, .tool textarea {
  display: block; width: 100%; margin-top: 5px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
}
.tool textarea { resize: vertical; line-height: 1.5; }
.tool input:focus, .tool select:focus, .tool textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tool label.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.tool label.check input { width: auto; margin: 0; accent-color: var(--accent); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.hint { display: block; font-weight: 400; font-size: .8rem; margin-top: 4px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.seg label { display: flex; gap: 8px; align-items: center; margin: 0; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; color: var(--text); background: var(--bg); }
.seg label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.seg input { width: auto !important; margin: 0 !important; accent-color: var(--accent); }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.quick label { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text); }
.quick input { width: 84px !important; margin: 0 !important; }
table.rows { width: 100%; border-collapse: collapse; }
table.rows th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 6px; }
table.rows td { padding: 4px; vertical-align: middle; }
table.rows td input, table.rows td select { margin: 0; padding: 8px 10px; }
table.rows .num, table.rows tfoot th { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.rows tfoot th { font-size: .95rem; text-transform: none; letter-spacing: 0; color: var(--text); border-top: 1px solid var(--border); padding-top: 10px; }
table.rows tfoot th:first-child { text-align: left; }
table.rows .out { font-weight: 700; }
#viviendas td:nth-child(3), #asistentes td:nth-child(3) { width: 110px; }
.remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 6px 8px; border-radius: 8px; }
.remove:hover { color: #c0392b; background: var(--surface-2); }
.btn { font: inherit; cursor: pointer; }
.btn-sm { padding: 8px 14px; font-size: .92rem; margin-bottom: 12px; }
.warn { color: #9a5b00; font-size: .9rem; margin: 6px 0 10px; font-weight: 600; }
.warn:empty, .summary:empty { display: none; }
.summary { color: var(--teal); font-weight: 700; margin: 8px 0 12px; }
.punto { border: 1px dashed var(--border); border-radius: 12px; padding: 12px 14px 2px; margin-bottom: 12px; background: var(--bg); }
.punto-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.punto-n { font-weight: 800; color: var(--accent); }
.privacy { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hero-note { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.hero-note-title { margin: 0 0 8px; font-weight: 800; }
.hero-note ul { margin: 0; padding-left: 20px; color: var(--muted); }
.hero-note li { margin: 6px 0; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tool-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; transition: transform .12s, border-color .12s, box-shadow .12s; }
.tool-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow); color: var(--text); }
.tool-name { font-weight: 800; font-size: 1.1rem; }
.tool-desc { color: var(--muted); font-size: .95rem; flex: 1; }
.tool-go { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 700; margin-top: 6px; }
.nota { color: var(--muted); font-size: .92rem; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .panel { padding: 14px 12px 4px; }
  table.rows thead { display: none; }
  table.rows, table.rows tbody, table.rows tr, table.rows td { display: block; width: 100% !important; }
  table.rows tr { position: relative; border: 1px solid var(--border); border-radius: 10px; padding: 6px 40px 6px 6px; margin-bottom: 8px; }
  table.rows td:last-child { position: absolute; top: 6px; right: 4px; width: auto !important; }
  table.rows tfoot, table.rows tfoot tr { display: table; width: 100%; }
  table.rows tfoot tr { border: 0; padding: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 26px 0 30px; }
  .main-nav > a { display: none; }
  .tiles, .puentes { grid-template-columns: 1fr; }
  .anio { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mes-card { padding: 8px 6px 4px; }
  table.mes td { height: 24px; font-size: .74rem; }
  table.mes th { font-size: .62rem; }
  table.mes { border-spacing: 1px; }
  table.mes caption { font-size: .9rem; }
  .mes-n { display: none; }
  .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Rediseño Junta Vecinos ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
h1, h2, h3, .brand, .tool-name, .step-t, .panel legend, .btn, .next-label, .eyebrow { font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
.accent-text { color: var(--accent); display: block; }
.site-header { box-shadow: 0 1px 0 var(--border), 0 6px 20px rgba(20, 40, 80, .04); }

/* Hero */
.hero-home { padding: 52px 0 56px; }
.hero-home h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
.hero-art { width: 100%; height: auto; max-width: 460px; justify-self: end; filter: drop-shadow(0 18px 40px rgba(47, 90, 168, .18)); }
.trust { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.trust li { display: inline-flex; align-items: center; gap: 6px; font-size: .93rem; font-weight: 600; color: var(--text); }
.trust svg { width: 20px; height: 20px; color: #fff; background: #1f9d6b; border-radius: 50%; padding: 2px; flex: none; }

/* Página de herramienta */
.hero-tool { padding: 26px 0 30px; }
.tool-title { display: flex; gap: 18px; align-items: flex-start; margin-top: 6px; }
.tool-title h1 { margin: 0 0 8px; }
.tool-title .lead { margin: 0; }
.tool-badge { flex: none; width: 64px; height: 64px; border-radius: 18px; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.tool-badge svg { width: 34px; height: 34px; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.doc-preview { display: none; }
@media (min-width: 1100px) {
  .tool-layout { grid-template-columns: minmax(0, 1fr) 440px; }
  .doc-preview {
    display: flex; flex-direction: column; position: sticky; top: 84px; height: calc(100vh - 110px); max-height: 820px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  }
  .doc-preview-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 700; font-size: .9rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
  .doc-preview iframe { flex: 1; width: 100%; border: 0; background: #e9edf3; }
}
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: #1f9d6b; box-shadow: 0 0 0 4px rgba(31, 157, 107, .18); }
.tool { counter-reset: step; }
.panel legend::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .85rem; vertical-align: 1px; }
.tool .actions { position: sticky; bottom: 0; z-index: 2; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); padding: 12px 0; align-items: center; }
.card-plain { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.card-plain > .table-wrap { border: 0; }
.prose.card-plain h2:first-child { margin-top: 0; }

/* Tarjetas de herramientas */
.tool-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.tool-card { padding: 22px; border-radius: 18px; box-shadow: var(--shadow); }
.tool-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 8px; }
.tool-icon svg { width: 26px; height: 26px; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.mini-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--text); font-weight: 700; }
.mini-card:hover { border-color: var(--accent); color: var(--accent); }
.mini-icon { flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.mini-icon svg { width: 22px; height: 22px; }

/* Cómo funciona */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.steps li { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
.step-n { width: 40px; height: 40px; border-radius: 12px; background: var(--sun); color: #3a2604; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; }
.step-t { font-weight: 800; font-size: 1.08rem; margin-top: 6px; }
.step-d { color: var(--muted); }

/* Por qué fiarte */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; background: linear-gradient(135deg, var(--accent), #1e3f7d); color: #fff; border-radius: 24px; padding: 32px; margin-top: 40px; }
.why h2 { color: #fff; }
.why a { color: #ffd98a; }
.why p { color: #dbe6fa; margin: 0; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.why-list li { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 14px 16px; color: #e8eefb; }
.why-list strong { color: #fff; }

@media (max-width: 860px) {
  .hero-art { justify-self: center; max-width: 360px; }
  .why { grid-template-columns: 1fr; padding: 24px; }
}
@media (max-width: 560px) {
  .tool-title { flex-direction: column; gap: 12px; }
  .tool-badge { width: 52px; height: 52px; border-radius: 14px; }
}
/* Plus Jakarta Sans ya es compacta: menos apretado entre letras */
h1, .hero h1, .hero-home h1 { letter-spacing: -.015em; word-spacing: .04em; }
h2 { letter-spacing: -.01em; }
