/* Vigía · public site. Tokens first; dark mode is its own set of steps, not an automatic flip. */
:root {
  --paper: #F3EFE6; --surface: #FFFCF6; --surface-2: #EEE8DC; --ink: #15140F; --ink-2: #3A3830; --muted: #6E695E;
  --line: #E1DACB; --line-2: #CFC6B4;
  --brand: #14213D; --brand-ink: #F3EFE6; --accent: #E8457A; --accent-soft: #FFE3EC;
  --rojo: #B42318; --rojo-bg: #FCE7E3; --ambar: #8A5A00; --ambar-bg: #FBEFD2; --verde: #1F7A45; --verde-bg: #E2F2E7;
  --s0: #E6E0D2; --s1: #D3DCEB; --s2: #A3B7D7; --s3: #6584B8; --s4: #2B4A82;
  --hero-bg: #14213D; --hero-ink: #F3EFE6;
  --wa: #1DA851; --shadow: 0 1px 2px rgba(20, 19, 15, .04), 0 8px 24px -12px rgba(20, 19, 15, .18);
  --r: 18px; --r-sm: 12px; --max: 1120px;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F1217; --surface: #161A21; --surface-2: #1C212A; --ink: #EEE9DF; --ink-2: #C9C3B7; --muted: #9A958A;
    --line: #262C36; --line-2: #343C48;
    --brand: #E9E3D6; --brand-ink: #0F1217; --accent: #FF7AA2; --accent-soft: rgba(255, 122, 162, .14);
    --rojo: #FF8B7B; --rojo-bg: rgba(255, 110, 90, .14); --ambar: #F4C15A; --ambar-bg: rgba(244, 193, 90, .13);
    --verde: #6FD69A; --verde-bg: rgba(111, 214, 154, .12);
    --s0: #1D232C; --s1: #22344F; --s2: #2F5185; --s3: #4C78BC; --s4: #92B6EE;
    --hero-bg: #1C2944; --hero-ink: #EEE9DF;
    --wa: #25D366; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16.5px/1.6 var(--sans); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background-image: radial-gradient(rgba(120, 100, 60, .05) 1px, transparent 1px); background-size: 3px 3px;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
kbd { font: 500 .72rem var(--mono); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; color: var(--muted); background: var(--surface); }

/* ---------- header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 1.15rem var(--sans); letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.mark { width: 30px; height: 30px; flex: none; }
.mark rect { fill: var(--brand); }
.mark path { fill: none; stroke: var(--brand-ink); stroke-width: 2.2; }
.mark circle { fill: var(--accent); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; padding: 6px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.search-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 500 .9rem var(--sans); cursor: pointer; transition: border-color .2s, color .2s; }
.search-btn:hover { color: var(--ink); border-color: var(--line-2); }
.search-btn svg, .search-box svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- masthead */
.mast { position: relative; overflow: hidden; padding: 64px 0 40px; }
.mast::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(closest-side, var(--accent-soft), transparent 70%); z-index: -1; filter: blur(8px); }
.mast::after { content: ""; position: absolute; left: -160px; bottom: -260px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--s2) 35%, transparent), transparent 70%); z-index: -1; }
.mast-sm { padding: 40px 0 16px; }
.mast-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: center; }
.paper { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 26px 26px 20px; transform: rotate(1.6deg); box-shadow: var(--shadow); }
.paper::before, .paper::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); z-index: -1; }
.paper::before { transform: rotate(-3deg) translate(-6px, 6px); }
.paper::after { transform: rotate(-1.5deg) translate(4px, 10px); opacity: .7; }
.paper-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.paper-h .kicker { margin: 0; text-align: right; }
.paper-date { display: flex; flex-direction: column; line-height: 1; }
.paper-d { font: 400 4rem/0.9 var(--serif); letter-spacing: -.03em; }
.paper-list { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.paper-list li { border-bottom: 1px solid var(--line); }
.paper-list a { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px 0; text-decoration: none; font: 400 1.15rem/1.25 var(--serif); }
.paper-list a:hover { color: var(--accent); }
.paper-list .dot { margin-top: .5em; }
.paper-f { margin: 14px 0 0; color: var(--muted); }
.kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 14px; }
.display { font: 400 clamp(2.7rem, 7.4vw, 5.6rem)/0.98 var(--serif); letter-spacing: -.025em; margin: 0 0 22px; max-width: 14ch; text-wrap: balance; }
.display em { font-style: italic; color: var(--accent); }
.display-sm { font-size: clamp(2.3rem, 5.4vw, 3.8rem); max-width: none; }
.display-item { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 22ch; line-height: 1.04; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 60ch; margin: 0 0 26px; }
.mast-sem { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 26px; }
.mast-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- buttons, chips, semáforo */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); text-decoration: none; font: 600 .97rem var(--sans); border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn svg { width: 19px; height: 19px; fill: currentColor; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: var(--surface); }

.sem { display: inline-flex; align-items: center; gap: 6px; font: 600 .76rem var(--sans); letter-spacing: .01em; padding: 3px 10px 3px 4px; border-radius: 999px; white-space: nowrap; }
.sem-i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font: 700 .64rem var(--mono); color: var(--surface); }
.sem-rojo { color: var(--rojo); background: var(--rojo-bg); } .sem-rojo .sem-i { background: var(--rojo); }
.sem-amarillo { color: var(--ambar); background: var(--ambar-bg); } .sem-amarillo .sem-i { background: var(--ambar); }
.sem-verde { color: var(--verde); background: var(--verde-bg); } .sem-verde .sem-i { background: var(--verde); }
.sem-big { font-size: .9rem; padding: 6px 14px 6px 6px; } .sem-big .sem-i { width: 22px; height: 22px; font-size: .72rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot-rojo { background: var(--rojo); } .dot-amarillo { background: var(--ambar); } .dot-verde { background: var(--verde); }
.pill { font: 600 .74rem var(--sans); padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.pill-vid { background: var(--accent-soft); color: var(--accent); }

.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; margin: 0 -2px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 500 .86rem var(--sans); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .n { font-size: .74rem; opacity: .7; }
.chip-sem .sem-i { width: 16px; height: 16px; font-size: .58rem; }
.chip-rojo .sem-i { background: var(--rojo); } .chip-amarillo .sem-i { background: var(--ambar); }
.chip-static { cursor: default; height: 28px; font-size: .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-empty { padding: 8px 0 20px; }

/* ---------- sections */
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 48px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sec-h h2, .sec-title { font: 400 clamp(1.7rem, 3vw, 2.2rem)/1.1 var(--serif); letter-spacing: -.015em; margin: 0; }
.sec-title { margin: 48px 0 12px; }
.sec-h a { color: var(--muted); text-decoration: none; } .sec-h a:hover { color: var(--accent); }

/* ---------- cards */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card:has(.stretched:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.card h3 { font: 600 1.12rem/1.32 var(--sans); letter-spacing: -.012em; margin: 0; text-wrap: pretty; }
.stretched { text-decoration: none; color: inherit; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.stretched:focus-visible { outline: none; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.src { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.card-x { margin: 0; color: var(--ink-2); font-size: .95rem; }
.card-foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.who-l { text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; margin-right: 4px; }
.when { color: var(--ink-2); }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.bento > .card { grid-column: span 2; }
.bento > .card-hero { grid-column: span 4; grid-row: span 2; padding: 30px; background: var(--hero-bg); color: var(--hero-ink); border-color: transparent; }
.card-hero h3 { font: 400 clamp(1.8rem, 3.4vw, 2.7rem)/1.06 var(--serif); letter-spacing: -.015em; }
.card-hero .card-x { color: color-mix(in srgb, var(--hero-ink) 78%, transparent); font-size: 1.02rem; max-width: 60ch; }
.card-hero .src, .card-hero .card-foot, .card-hero .when { color: color-mix(in srgb, var(--hero-ink) 70%, transparent); }
.card-hero .card-foot { border-top-color: color-mix(in srgb, var(--hero-ink) 22%, transparent); }
.card-hero .sem-rojo { background: #FCE7E3; color: #B42318; } .card-hero .sem-rojo .sem-i { background: #B42318; color: #fff; }
.card-hero .sem-amarillo { background: #FBEFD2; color: #8A5A00; } .card-hero .sem-amarillo .sem-i { background: #8A5A00; color: #fff; }
.card-hero .sem-verde { background: #E2F2E7; color: #1F7A45; } .card-hero .sem-verde .sem-i { background: #1F7A45; color: #fff; }
.card-hero { overflow: hidden; }
.card-hero > *:not(.hero-num) { position: relative; z-index: 1; }
.hero-num { position: absolute; right: 18px; bottom: 34px; font: italic 400 clamp(8rem, 16vw, 15rem)/.8 var(--serif); letter-spacing: -.04em; color: color-mix(in srgb, var(--accent) 55%, transparent); opacity: .5; pointer-events: none; }
.hero-play { align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; margin-top: 6px; padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--hero-ink) 12%, transparent); font-weight: 600; font-size: .9rem; }
.card-hero .pill-vid { background: #FFE3EC; color: #C42A5E; }
.bento > .card:only-child { grid-column: 1 / -1; }

.list { display: grid; gap: 12px; }
.card-row h3 { font-size: 1.08rem; }
.group { margin-bottom: 26px; }
.group-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 12px 0 12px; }
.group-h h3 { margin: 0; font: 600 .96rem var(--sans); }
.others { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.others summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 14px 20px; font-weight: 600; color: var(--ink-2); }
.others summary::-webkit-details-marker { display: none; }
.others summary::after { content: "+"; font: 400 1.2rem/1 var(--mono); color: var(--muted); margin-left: 12px; }
.others[open] summary::after { content: "–"; }
.others summary > span:first-child { margin-right: auto; }
.others ul { list-style: none; margin: 0; padding: 0 20px 14px; columns: 2 320px; column-gap: 28px; }
.others li { break-inside: avoid; padding: 7px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.others a { text-decoration: none; color: var(--ink-2); } .others a:hover { color: var(--accent); }
.ext { font-size: .75em; margin-left: 4px; color: var(--muted); }

/* ---------- ticker */
.ticker { margin: 36px 0 0; border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; gap: 36px; width: max-content; padding: 14px 0; animation: tick 80s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; font-size: .93rem; color: var(--ink-2); }
.tick:hover { color: var(--accent); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- videos */
.vrow { display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.vrow-all { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.vcard { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.vthumb { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.vcard:hover .vthumb img { transform: scale(1.04); }
.vplay { position: absolute; left: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #111; font-size: .85rem; }
.vt { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.video { position: relative; width: 100%; max-width: 340px; aspect-ratio: 9 / 16; margin: 0 0 24px; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- stats */
.stats { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.stats > div { padding: 26px 24px; display: flex; flex-direction: column; gap: 4px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stat-n { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.stat-l { color: var(--muted); font-size: .9rem; }

/* ---------- day lists */
.days { list-style: none; margin: 0; padding: 0; }
.days li { border-bottom: 1px solid var(--line); }
.days a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 4px; text-decoration: none; transition: padding .2s, color .2s; }
.days a:hover { padding-left: 10px; color: var(--accent); }
.days-d { font-weight: 500; }
.days-m { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.crumbs { color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--accent); }
.pager { display: flex; justify-content: space-between; margin: 32px 0; }
.pager a { text-decoration: none; color: var(--muted); } .pager a:hover { color: var(--accent); }

/* ---------- item */
.item { padding-top: 34px; }
.item-h .card-meta { margin-bottom: 18px; }
.item-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; margin-top: 12px; }
.item-main { max-width: 68ch; }
.item-main > p { font-size: 1.06rem; color: var(--ink-2); }
.item-main .kicker { margin-top: 30px; }
.item-lead { font-size: 1.28rem !important; line-height: 1.5; color: var(--ink) !important; }
.callout { display: flex; gap: 14px; align-items: flex-start; margin: 24px 0; padding: 16px 18px; border-radius: var(--r-sm); background: var(--rojo-bg); color: var(--ink); }
.callout .sem-i { background: var(--rojo); flex: none; margin-top: 2px; }
.official { margin: 0; padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-2); font: 400 .92rem/1.55 var(--mono); overflow-wrap: anywhere; }
.item-side { position: sticky; top: 84px; display: grid; gap: 12px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.panel .kicker { margin-bottom: 10px; }
.who-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.who-list li { padding-left: 18px; position: relative; font-weight: 500; }
.who-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
.timeline li { position: relative; display: flex; flex-direction: column; }
.timeline li::before { content: ""; position: absolute; left: -24px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); }
.timeline li.is-future::before { border-color: var(--accent); background: var(--accent); }
.panel-actions { display: grid; gap: 8px; }
.panel-actions .btn { width: 100%; }

/* ---------- calendar heatmap (sequential: one hue, light to dark) */
.legend { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legend .l1 { background: var(--s1); } .legend .l2 { background: var(--s2); } .legend .l3 { background: var(--s3); } .legend .l4 { background: var(--s4); }
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.month { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.month figcaption { font: 400 1.4rem var(--serif); margin-bottom: 12px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-h { text-align: center; font-size: .7rem; color: var(--muted); padding-bottom: 2px; }
.cal-c { position: relative; aspect-ratio: 1; border-radius: 6px; display: grid; place-items: center; font-size: .7rem; text-decoration: none; color: var(--ink-2); }
.cal-pad { visibility: hidden; }
.cal-off { color: color-mix(in srgb, var(--muted) 55%, transparent); }
.cal-none { box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.cal-c.l0 { background: var(--s0); } .cal-c.l1 { background: var(--s1); } .cal-c.l2 { background: var(--s2); }
.cal-c.l3 { background: var(--s3); color: #fff; } .cal-c.l4 { background: var(--s4); color: #fff; }
@media (prefers-color-scheme: dark) { .cal-c.l3, .cal-c.l4 { color: #0F1217; } .cal-c.l2 { color: var(--ink); } }
a.cal-c { transition: transform .15s; }
a.cal-c:hover { transform: scale(1.12); z-index: 2; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
a.cal-c[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: var(--paper); font: 500 .74rem var(--sans); padding: 5px 9px; border-radius: 8px; pointer-events: none; }

/* ---------- CTA, footer, floating button */
.cta { margin: 72px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: 34px; border-radius: 26px; background: var(--hero-bg); color: var(--hero-ink); position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 45%, transparent), transparent); }
.cta-copy { position: relative; z-index: 1; max-width: 560px; }
.cta .kicker { color: color-mix(in srgb, var(--hero-ink) 65%, transparent); margin-bottom: 8px; }
.cta h2 { font: 400 clamp(1.7rem, 3.2vw, 2.4rem)/1.08 var(--serif); margin: 0 0 8px; }
.cta p { margin: 0; color: color-mix(in srgb, var(--hero-ink) 78%, transparent); }
.cta .btn { position: relative; z-index: 1; }
.foot { margin-top: 64px; padding: 36px 0 48px; border-top: 1px solid var(--line); }
.foot-in { display: grid; gap: 10px; }
.foot p { margin: 0; max-width: 80ch; }
.brand-foot { margin-bottom: 4px; }
.wa-float { display: none; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; place-items: center; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); z-index: 30; transition: transform .3s, opacity .3s; }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float.is-hidden { transform: scale(.6); opacity: 0; pointer-events: none; }

/* ---------- search */
.search { width: min(680px, calc(100vw - 24px)); max-height: min(640px, 80vh); margin: 10vh auto auto; padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); overflow: hidden; }
.search::backdrop { background: rgba(10, 12, 16, .45); backdrop-filter: blur(6px); }
.search[open] { display: flex; flex-direction: column; animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.search-box { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); margin: 0; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 1.1rem var(--sans); }
.search-x { border: 1px solid var(--line-2); background: transparent; color: var(--muted); border-radius: 8px; font: 500 .72rem var(--mono); padding: 4px 8px; cursor: pointer; }
.search-r { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; }
.search-r a { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 11px 12px; border-radius: 12px; text-decoration: none; }
.search-r a .dot { grid-row: span 2; margin-top: 8px; }
.search-r a .m { font: 400 .76rem var(--mono); color: var(--muted); }
.search-r a[aria-selected="true"], .search-r a:hover { background: var(--surface-2); }
.search-r mark { background: var(--accent-soft); color: inherit; border-radius: 3px; }
.search-r .empty { padding: 18px 12px; color: var(--muted); }
.search-hint { padding: 10px 18px; margin: 0; border-top: 1px solid var(--line); }

/* ---------- live touches */
.live { display: inline-flex; align-items: center; gap: 8px; margin-right: 14px; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); letter-spacing: .06em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 0 color-mix(in srgb, var(--wa) 60%, transparent); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.paper-wrap { position: relative; }
.seal { position: absolute; width: 124px; height: 124px; right: -40px; top: -62px; z-index: 3; transform: rotate(10deg); filter: drop-shadow(0 6px 14px rgba(20, 19, 15, .12)); }
.seal-ring { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; }
.seal text { font: 600 14px var(--mono); fill: var(--accent); }
.seal-spin { transform-origin: 100px 100px; animation: spin 36s linear infinite; }
.seal-in { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 4; }
.seal-eye { fill: none; stroke: var(--ink); stroke-width: 5; }
.seal-pupil { fill: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.paper-list li { animation: stamp .55s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(.25s + var(--i, 0) * .18s); }
@keyframes stamp { from { opacity: 0; transform: scale(1.08) rotate(-1.2deg); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.paper { transition: transform .5s cubic-bezier(.2, .7, .3, 1); }
.paper-wrap:hover .paper { transform: rotate(0deg) translateY(-4px); }
.when.is-soon { color: var(--rojo); font-weight: 500; }
.card-hero .when.is-soon { color: #FFB4A8; }
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 40; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- motion */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ticker { overflow-x: auto; }
}

/* ---------- responsive */
@media (max-width: 900px) {
  .mast-grid { grid-template-columns: 1fr; }
  .paper-wrap { display: none; }
  .item-grid { grid-template-columns: 1fr; gap: 8px; }
  .item-side { position: static; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento > .card { grid-column: span 1; }
  .bento > .card-hero { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top-in { gap: 10px; height: 58px; }
  .nav { gap: 0; } .nav a { padding: 6px 9px; font-size: .9rem; }
  .search-btn { padding: 0 10px; } .search-btn-t, .search-btn kbd { display: none; }
  .mast { padding: 40px 0 24px; }
  .bento { grid-template-columns: 1fr; }
  .bento > .card { grid-column: 1 / -1; }
  .bento > .card-hero { padding: 24px; }
  .hero-num { display: none; }
  .card { padding: 18px; }
  .stats { grid-template-columns: 1fr; }
  .stats > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .cta { padding: 26px 22px; border-radius: 22px; }
  .cta .btn { width: 100%; }
  .days a { flex-direction: column; align-items: flex-start; gap: 4px; }
  .wa-float { display: grid; }
}
@media (min-width: 641px) { .wa-float { display: none !important; } }
