/* Isla Viva · la marisma como interfaz.
   Layout: cabecera fija + vista única por ruta; en móvil, barra inferior tipo app.
   Agua (marisma) como color de estructura, arroz como apoyo,
   flamenco como único acento atrevido. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --ink: #111518;
  --ink-2: #5d6670;
  --line: #e2e5ea;
  --marisma: #2f7d1e;        /* verde arrozal */
  --marisma-ink: #ffffff;
  --arroz: #4f9a26;
  --espiga: #c99418;         /* agua dorada al atardecer */
  --flamenco: #c8611a;       /* sol poniente */
  --flamenco-soft: #fdebd9;
  --cielo: #1a73a8;          /* cielo y agua de la marisma */
  --band: #15476a;
  --ok: #2f7d4f;
  --warn: #b7791f;
  --bad: #c0392b;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px rgba(16, 24, 40, .07);
  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs: 17px;
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --header-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1114; --bg-alt: #15181c; --surface: #191c21; --surface-2: #23272d; --ink: #eceef1; --ink-2: #a4acb5; --line: #2c3138;
    --marisma: #8acb52; --marisma-ink: #0d1a07; --arroz: #9cd067; --espiga: #e6b94e; --flamenco: #f2a160; --flamenco-soft: #3a2414; --cielo: #5fb0e0; --band: #0f3550;
    --ok: #6fcf97; --warn: #f2c94c; --bad: #ff8a80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1114; --bg-alt: #15181c; --surface: #191c21; --surface-2: #23272d; --ink: #eceef1; --ink-2: #a4acb5; --line: #2c3138;
  --marisma: #8acb52; --marisma-ink: #0d1a07; --arroz: #9cd067; --espiga: #e6b94e; --flamenco: #f2a160; --flamenco-soft: #3a2414; --cielo: #5fb0e0; --band: #0f3550;
  --ok: #6fcf97; --warn: #f2c94c; --bad: #ff8a80;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
:root[data-size="l"] { --fs: 19px; }
:root[data-size="xl"] { --fs: 21px; }
:root[data-size="xxl"] { --fs: 24px; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: var(--fs); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 1rem; line-height: 1.55;
  min-height: 100vh; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--flamenco); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.small { font-size: .86rem; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  width: 100%; max-width: 1220px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.stack { display: flex; flex-direction: column; gap: 1rem; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.section-head p { max-width: 58ch; margin-top: .4rem; }

/* ── Cabecera ───────────────────────────── */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; flex-shrink: 0; }
.brand svg { width: 34px; height: 34px; }
.brand small { display: block; font: 400 .66rem/1 var(--f-body); color: var(--ink-2); letter-spacing: 0; margin-top: 2px; }
.nav { display: flex; gap: .15rem; margin-left: .5rem; overflow-x: auto; scrollbar-width: none; }
.nav a { text-decoration: none; padding: .45rem .75rem; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--ink-2); white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--marisma-ink); background: var(--marisma); }
.top-tools { margin-left: auto; display: flex; gap: .35rem; align-items: center; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg, .btn svg, .tab svg, .act svg { width: 20px; height: 20px; flex-shrink: 0; }
.demo-bar { background: var(--flamenco-soft); color: var(--ink); font-size: .84rem; }
.demo-bar .wrap { padding-block: .45rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.demo-bar strong { color: var(--flamenco); }
.demo-bar em { display: none; }

/* ── Botones y campos ───────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .6rem 1.15rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s;
  background: var(--marisma); color: var(--marisma-ink);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.alt { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.hot { background: var(--flamenco); color: #fff; }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.sm { min-height: 38px; padding: .35rem .85rem; font-size: .88rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field label { font-weight: 700; font-size: .9rem; }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: .65rem .9rem; border-radius: var(--r-s);
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
}
textarea.input { resize: vertical; min-height: 110px; }
.input:focus { border-color: var(--marisma); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--marisma) 18%, transparent); }
.chips { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chip {
  border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: .4rem .9rem;
  font-weight: 700; font-size: .86rem; cursor: pointer; white-space: nowrap; min-height: 40px;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tag { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--surface-2); color: var(--ink-2); }
.tag.agua { background: color-mix(in srgb, var(--marisma) 16%, transparent); color: var(--marisma); }
.tag.oro { background: color-mix(in srgb, var(--espiga) 22%, transparent); color: color-mix(in srgb, var(--espiga) 70%, var(--ink)); }
.tag.arroz { background: color-mix(in srgb, var(--arroz) 18%, transparent); color: var(--arroz); }
.tag.flamenco { background: var(--flamenco-soft); color: var(--flamenco); }
.tag.barro { background: color-mix(in srgb, #8a6a4a 18%, transparent); color: color-mix(in srgb, #8a6a4a 75%, var(--ink)); }

/* ── Héroe: la marisma en vivo ──────────── */
.hero { position: relative; isolation: isolate; color: #fff; min-height: clamp(540px, 74vh, 780px); display: flex; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.hero[data-phase="dia"] { color: #0c2a2e; }
.hero .wrap { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding-block: clamp(2rem, 6vh, 4.5rem) 3.8rem; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(100deg, rgba(4, 18, 24, .5), rgba(4, 18, 24, .18) 45%, transparent 70%); }
.hero[data-phase="dia"]::after { background: linear-gradient(100deg, rgba(240, 248, 245, .7), rgba(240, 248, 245, .25) 45%, transparent 70%); }
.hero-copy { max-width: 760px; }
.hero h1 { text-shadow: 0 2px 30px rgba(0, 0, 0, .18); }
.hero[data-phase="dia"] h1 { text-shadow: 0 2px 30px rgba(255, 255, 255, .5); }
.hero h1 .line2 { display: block; font-weight: 400; font-style: italic; font-variation-settings: "wdth" 80; opacity: .92; }
.hero-lead { font-size: clamp(1.02rem, 1.7vw, 1.22rem); max-width: 50ch; margin-top: 1.1rem; }
.hero-cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero .btn.alt { background: rgba(255, 255, 255, .9); color: #0c2a2e; border-color: transparent; }
.hero-foot { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.phase {
  display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px;
  background: rgba(8, 26, 30, .38); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff;
}
.phase button { border: 0; background: transparent; color: inherit; padding: .4rem .8rem; border-radius: 999px; font-weight: 700; font-size: .82rem; cursor: pointer; min-height: 36px; }
.phase button[aria-pressed="true"] { background: #fff; color: #0c2a2e; }
.hero-credit { font-size: .78rem; opacity: .85; }

/* franja "ahora" que muerde el héroe */
.now { position: relative; z-index: 2; margin-top: -2.2rem; }
.now-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  background: var(--surface); border-radius: var(--r-m); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden;
}
.now-item { padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.now-item + .now-item { border-left: 1px solid var(--line); }
.now-item .k { font-size: .8rem; color: var(--ink-2); font-weight: 700; }
.now-item .v { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
.now-item .s { font-size: .82rem; color: var(--ink-2); }
.now-item a { text-decoration: none; display: flex; flex-direction: column; gap: .15rem; }

/* ── Accesos rápidos ────────────────────── */
.quick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .8rem; }
.quick a {
  display: flex; flex-direction: column; gap: .8rem; padding: 1.1rem 1rem 1rem; min-height: 132px;
  border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 700; line-height: 1.25;
  transition: border-color .2s, transform .2s;
}
.quick a:hover { border-color: var(--marisma); transform: translateY(-2px); }
.quick .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--marisma) 12%, transparent); color: var(--marisma); }
.quick .ico svg { width: 24px; height: 24px; }
.quick a:nth-child(2) .ico { background: var(--flamenco-soft); color: var(--flamenco); }
.quick a:nth-child(3) .ico, .quick a:nth-child(6) .ico { background: color-mix(in srgb, var(--espiga) 20%, transparent); color: color-mix(in srgb, var(--espiga) 70%, var(--ink)); }
.quick a:nth-child(4) .ico { background: color-mix(in srgb, var(--arroz) 18%, transparent); color: var(--arroz); }

/* ── Plaza (foro) ───────────────────────── */
.plaza { display: grid; grid-template-columns: 240px minmax(0, 640px) minmax(0, 320px); gap: 1.6rem; justify-content: center; padding-block: 1.6rem 3rem; align-items: start; }
.side { position: sticky; top: calc(var(--header-h) + 16px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: 1rem; }
.side-nav { display: flex; flex-direction: column; gap: .2rem; }
.side-nav button { text-align: left; border: 0; background: transparent; padding: .6rem .8rem; border-radius: var(--r-s); font-weight: 700; cursor: pointer; display: flex; gap: .6rem; align-items: center; color: var(--ink-2); min-height: 44px; }
.side-nav button:hover { background: var(--surface-2); color: var(--ink); }
.side-nav button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.side-nav .dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: .6; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.1rem; }
.panel h3 { font-size: 1rem; margin-bottom: .7rem; }
.feed { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.feed-cats { display: none; }
.plaza-title { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.shield { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; color: var(--ok); }
.shield svg { width: 16px; height: 16px; }

.composer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1rem; display: flex; flex-direction: column; gap: .75rem; box-shadow: var(--shadow); }
.composer .head { display: flex; gap: .7rem; align-items: flex-start; }
.composer textarea { border: 0; background: var(--surface-2); border-radius: var(--r-m); padding: .8rem 1rem; min-height: 54px; resize: none; width: 100%; line-height: 1.45; }
.composer textarea:focus { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--marisma) 25%, transparent); }
.composer .tools { display: flex; gap: .5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.composer select { min-height: 40px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 .8rem; font-weight: 700; font-size: .86rem; max-width: 100%; }
.verdict { font-size: .84rem; display: flex; gap: .4rem; align-items: flex-start; min-height: 1.3em; }
.verdict:empty, #imgPreview:empty { display: none; }
.verdict svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.verdict.allow { color: var(--ok); }
.verdict.review { color: var(--warn); }
.verdict.block { color: var(--bad); }
.preview-img { position: relative; max-width: 220px; }
.preview-img img { border-radius: var(--r-s); }
.preview-img button { position: absolute; top: 6px; right: 6px; }
.help-box { background: var(--flamenco-soft); border-radius: var(--r-s); padding: .8rem 1rem; font-size: .9rem; }

.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-weight: 700; color: #fff; font-family: var(--f-display); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 34px; height: 34px; font-size: .8rem; }

.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.post.enter { animation: rise .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { transform: translateY(14px); opacity: .2; } to { transform: none; opacity: 1; } }
.post-head { display: flex; gap: .7rem; padding: 1rem 1rem .4rem; align-items: center; }
.post-head .who { min-width: 0; flex: 1; }
.post-head .name { font-weight: 700; line-height: 1.2; }
.post-head .meta { font-size: .8rem; color: var(--ink-2); }
.post-body { padding: .3rem 1rem .8rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-body a { color: var(--marisma); }
.post-img { background: var(--surface-2); }
.post-img img { width: 100%; max-height: 560px; object-fit: cover; }
.post-flag { margin: 0 1rem .8rem; padding: .55rem .8rem; border-radius: var(--r-s); font-size: .84rem; background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--ink); }
.post-stats { display: flex; justify-content: space-between; padding: .2rem 1rem .5rem; font-size: .84rem; color: var(--ink-2); }
.post-acts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding: .25rem; }
.act { display: flex; align-items: center; justify-content: center; gap: .45rem; border: 0; background: transparent; padding: .6rem .3rem; border-radius: var(--r-s); font-weight: 700; color: var(--ink-2); cursor: pointer; position: relative; min-height: 44px; font-size: .92rem; }
.act:hover { background: var(--surface-2); }
.act[aria-pressed="true"] { color: var(--flamenco); }
.act[aria-pressed="true"] svg { fill: var(--flamenco); }
.act.pop svg { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); }
.act.pop::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; border: 2px solid var(--flamenco); animation: ripple .7s ease-out forwards; pointer-events: none; }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes ripple { to { transform: scale(7); opacity: 0; } }
.more { position: relative; }
.menu { position: absolute; right: 0; top: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: var(--shadow); padding: .3rem; z-index: 5; min-width: 200px; }
.menu button { display: flex; width: 100%; gap: .5rem; align-items: center; border: 0; background: transparent; padding: .6rem .7rem; border-radius: 8px; cursor: pointer; text-align: left; font-weight: 700; font-size: .9rem; }
.menu button:hover { background: var(--surface-2); }
.comments { border-top: 1px solid var(--line); padding: .8rem 1rem 1rem; display: flex; flex-direction: column; gap: .6rem; background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
.comment { display: flex; gap: .55rem; align-items: flex-start; }
.comment .bubble { background: var(--surface-2); border-radius: 16px; padding: .45rem .8rem; min-width: 0; overflow-wrap: anywhere; }
.comment .bubble b { display: block; font-size: .84rem; }
.comment-form { display: flex; gap: .5rem; align-items: center; }
.comment-form input { flex: 1; min-width: 0; border-radius: 999px; min-height: 42px; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--ink-2); }

/* ── Bloques editoriales ────────────────── */
.band { background: linear-gradient(170deg, var(--band), color-mix(in srgb, var(--band) 80%, var(--cielo))); color: #ffffff; }
.band .muted { color: rgba(255, 255, 255, .78); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: color-mix(in srgb, var(--marisma-ink) 22%, transparent); border-radius: var(--r-m); overflow: hidden; }
.places > div { background: var(--band); padding: 1.1rem 1.2rem; }
.places h3 { font-size: 1.05rem; margin: .2rem 0 .35rem; }
.kind { font-size: .78rem; font-weight: 700; color: #f5c46b; }
.list-lines { display: flex; flex-direction: column; }
.list-lines > * { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.list-lines > *:last-child { border-bottom: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.2rem; display: flex; flex-direction: column; gap: .6rem; min-width: 0; }

/* Negocios */
.biz { position: relative; }
.biz .badge { position: absolute; top: 1rem; right: 1rem; }
.biz h3 { padding-right: 5.5rem; }
.biz-links { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: auto; padding-top: .4rem; }
.biz.destacado { border-color: var(--espiga); }
.biz.premium { border: 2px solid var(--flamenco); box-shadow: var(--shadow); }
.tel { font-family: var(--f-display); font-weight: 700; font-variant-numeric: tabular-nums; user-select: all; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.plan { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-l); padding: 1.5rem; display: flex; flex-direction: column; gap: .9rem; }
.plan.featured { border-color: var(--flamenco); background: linear-gradient(180deg, var(--flamenco-soft), var(--surface) 55%); }
.plan .price { font-family: var(--f-display); font-size: 2.6rem; font-weight: 800; line-height: 1; }
.plan .price small { font-size: 1rem; font-weight: 400; color: var(--ink-2); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.plan li { display: flex; gap: .5rem; }
.plan li svg { width: 18px; height: 18px; color: var(--arroz); flex-shrink: 0; margin-top: 3px; }
.plan .btn { margin-top: auto; }

/* Trámites */
.search-big { position: relative; }
.search-big input { min-height: 60px; font-size: 1.1rem; padding-left: 3.2rem; border-radius: 999px; }
.search-big svg { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--ink-2); }
.tram { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.tram summary { list-style: none; padding: 1rem 1.2rem; cursor: pointer; display: flex; gap: 1rem; justify-content: space-between; align-items: center; font-weight: 700; }
.tram summary::-webkit-details-marker { display: none; }
.tram summary .chev { transition: transform .2s; width: 20px; height: 20px; flex-shrink: 0; }
.tram[open] summary .chev { transform: rotate(180deg); }
.tram .inner { padding: 0 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.areas { display: flex; flex-wrap: wrap; gap: .5rem; }
.areas a { text-decoration: none; }

/* Explora */
.tabs { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; }
.tabs button { border: 0; background: transparent; padding: .8rem 1rem; font-weight: 700; color: var(--ink-2); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; min-height: 48px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--flamenco); }
.timeline { position: relative; display: flex; flex-direction: column; gap: 1.6rem; padding-left: 1.6rem; max-width: 760px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--marisma), var(--arroz), var(--espiga), var(--flamenco)); border-radius: 2px; }
.tl { position: relative; }
.tl::before { content: ""; position: absolute; left: calc(-1.6rem + 1px); top: .4rem; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--marisma); }
.tl .y { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; color: var(--marisma); line-height: 1; }
.tl h3 { margin: .3rem 0 .3rem; }
.birds { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; }
.bird { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1rem; display: flex; flex-direction: column; gap: .3rem; }
.bird svg { width: 54px; height: 40px; }
.months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; margin-bottom: 1.4rem; }
.months div { text-align: center; padding: .5rem 0; border-radius: 8px; background: var(--surface-2); font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.months div.on { background: var(--flamenco); color: #fff; }
.months div.now { outline: 2px solid var(--ink); outline-offset: -2px; }

/* Datos */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.stat { background: var(--surface); padding: 1.3rem; }
.stat .v { font-family: var(--f-display); font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--marisma); }
.stat .l { font-weight: 700; margin-top: .4rem; }
.stat .n { font-size: .82rem; color: var(--ink-2); margin-top: .2rem; }
.bars { display: flex; flex-direction: column; gap: .7rem; }
.bar { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 5.5rem; gap: .8rem; align-items: center; font-size: .9rem; }
.bar .track { height: 14px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar .fill { height: 100%; border-radius: 999px; background: var(--marisma); transform-origin: left; animation: grow 1s cubic-bezier(.2, .8, .2, 1); }
.bar .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
@keyframes grow { from { transform: scaleX(0); } }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(5, 20, 22, .55); backdrop-filter: blur(4px); animation: fade .2s; }
.modal-box { background: var(--surface); color: var(--ink); width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: var(--r-l); padding: 1.6rem; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: rise .3s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; gap: 1rem; }
.modal-box .close { margin-left: auto; }
@keyframes fade { from { opacity: 0; } }
.divider { display: flex; align-items: center; gap: .8rem; color: var(--ink-2); font-size: .84rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: .75rem 1.2rem; border-radius: 999px; font-weight: 700; z-index: 120; box-shadow: var(--shadow); animation: rise .3s; max-width: calc(100vw - 32px); text-align: center; }

/* Pie */
footer { border-top: 1px solid var(--line); padding-block: 2.4rem calc(2.4rem + 70px); background: var(--surface); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot a { display: block; text-decoration: none; color: var(--ink-2); padding: .2rem 0; }
.foot a:hover { color: var(--ink); }
.foot h4 { font-size: .95rem; margin-bottom: .5rem; }

/* Barra inferior móvil */
.tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .35rem 0; border: 0; background: transparent; text-decoration: none; font-size: .7rem; font-weight: 700; color: var(--ink-2); border-radius: 12px; cursor: pointer; }
.tab[aria-current="page"] { color: var(--marisma); }
.tab[aria-current="page"] svg { transform: translateY(-1px); }
.sheet { position: fixed; inset: auto 0 0 0; z-index: 110; background: var(--surface); border-radius: var(--r-l) var(--r-l) 0 0; padding: 1.2rem max(16px, env(safe-area-inset-right, 0px)) calc(1.2rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); box-shadow: 0 -20px 60px rgba(0, 0, 0, .25); animation: up .3s cubic-bezier(.2, .8, .2, 1); display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.sheet a { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1rem .4rem; border-radius: var(--r-m); background: var(--surface-2); text-decoration: none; font-weight: 700; font-size: .84rem; text-align: center; }
.sheet a svg { width: 24px; height: 24px; color: var(--marisma); }
@keyframes up { from { transform: translateY(100%); } }

.page-head { padding-block: 2.2rem 1.4rem; }
.page-head p { max-width: 60ch; margin-top: .6rem; font-size: 1.05rem; }
.note { border-left: 4px solid var(--espiga); background: color-mix(in srgb, var(--espiga) 10%, var(--surface)); padding: .9rem 1.1rem; border-radius: 0 var(--r-s) var(--r-s) 0; font-size: .94rem; }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* ── Responsive ─────────────────────────── */
@media (max-width: 1180px) {
  .plaza { grid-template-columns: minmax(0, 660px) minmax(0, 300px); }
  .plaza > .side.left { display: none; }
  .feed-cats { display: flex; }
  .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .tabbar { display: grid; }
  .plaza { grid-template-columns: minmax(0, 1fr); padding-top: 1rem; }
  .plaza > .side.right { position: static; }
  .split, .foot { grid-template-columns: 1fr; }
  .grid-3, .plans { grid-template-columns: 1fr 1fr; }
  .grid-4, .stats { grid-template-columns: 1fr 1fr; }
  .now-grid { grid-template-columns: 1fr 1fr; }
  .now-item:nth-child(3) { border-left: 0; }
  .now-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
  :root { --header-h: 58px; }
  .brand small { display: none; }
  .grid-3, .grid-2, .plans, .places { grid-template-columns: 1fr; }
  .quick { grid-template-columns: 1fr 1fr; }
  .quick a { min-height: 112px; }
  .months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bar { grid-template-columns: 6.5rem minmax(0, 1fr) 4.6rem; font-size: .84rem; }
  .now-item { padding: .85rem 1rem; }
  .now-item .v { font-size: 1.1rem; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .top-tools .hide-sm { display: none; }
  .hero-credit { display: none; }
  .demo-bar span { display: none; }
  .demo-bar em { display: inline; }
  .hero { min-height: 600px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ════════════════════════════════════════════════════════════
   v2 · Grupo de la Plaza, administración y secciones
   ════════════════════════════════════════════════════════════ */
.h-page { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
.modal-title { font-size: 1.35rem; padding-right: 2.5rem; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--marisma); font-weight: 700; cursor: pointer; text-decoration: none; }
.link:hover { text-decoration: underline; }
.btn.full { width: 100%; }
.icon-btn.ghost { border-color: transparent; background: transparent; }
.icon-btn.ghost:hover { background: var(--surface-2); }
.icon-btn.sm { width: 34px; height: 34px; }
.icon-btn.sm svg { width: 17px; height: 17px; }
.icon-btn.danger, .menu .danger { color: var(--bad); }
.icon-btn.sel { background: var(--surface-2); outline: 2px solid var(--line); }
.clamp4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.avatar.xs { width: 28px; height: 28px; font-size: .68rem; }
.avatar.xl { width: 132px; height: 132px; font-size: 2.6rem; border: 5px solid var(--surface); }
.role { display: inline-block; font: 700 .68rem/1 var(--f-body); padding: .25rem .45rem; border-radius: 6px; vertical-align: 2px; margin-left: .2rem; }
.role.admin { background: var(--marisma); color: var(--marisma-ink); }
.role.moderador { background: color-mix(in srgb, var(--arroz) 22%, transparent); color: var(--arroz); }
.pill { display: inline-flex; align-items: center; gap: .25rem; padding: .18rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.pill.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: color-mix(in srgb, var(--warn) 80%, var(--ink)); }
.pill.bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.search-mini { position: relative; flex: 1; min-width: 0; }
.search-mini svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-2); }
.search-mini .input { padding-left: 2.5rem; border-radius: 999px; min-height: 44px; }
.input.sm { min-height: 36px; padding: .3rem .6rem; font-size: .88rem; width: auto; }
.switch { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--marisma); }
.modal-box.wide { width: min(620px, 100%); }
.modal-box.photo { width: min(1100px, 100%); padding: 0; overflow: hidden; }
.modal-box.photo .close { position: absolute; right: 12px; top: 12px; z-index: 2; }
.modal-box { position: relative; }
.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 4px var(--flamenco); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Aviso general */
.ann-bar { background: var(--marisma); color: var(--marisma-ink); font-weight: 700; font-size: .92rem; }
.ann-bar[data-level="importante"] { background: var(--espiga); color: #1d1606; }
.ann-bar[data-level="urgente"] { background: var(--bad); color: #fff; }
.ann-bar .wrap { display: flex; gap: .6rem; align-items: center; padding-block: .6rem; flex-wrap: wrap; }
.ann-bar svg { width: 20px; height: 20px; flex-shrink: 0; }
.ann-bar a { color: inherit; text-decoration: underline; margin-left: auto; }

/* Cabecera pintada de secciones */
.banner { position: relative; isolation: isolate; color: #fff; min-height: 260px; display: flex; align-items: flex-end; overflow: hidden; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(4, 18, 24, .72), rgba(4, 18, 24, .15) 70%); }
.banner[data-phase="dia"]::after { background: linear-gradient(0deg, rgba(6, 34, 40, .8), rgba(6, 34, 40, .1) 75%); }
.banner-in { padding-block: 3.5rem 2rem; }
.banner h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; }
.banner p { max-width: 62ch; margin-top: .6rem; font-size: 1.05rem; opacity: .95; }

/* ── La Plaza: grupo vecinal ── */
body[data-route="plaza"] { --feed-bg: color-mix(in srgb, var(--surface-2) 55%, var(--bg)); background: var(--feed-bg); }
.wrap-g { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.group { background: var(--feed-bg, var(--bg)); }
.group-cover-wrap { background: linear-gradient(var(--surface-2), var(--surface)); }
.group-cover { max-width: 1120px; margin: 0 auto; aspect-ratio: 1120 / 340; max-height: 360px; overflow: hidden; border-radius: 0 0 14px 14px; }
.group-cover img { width: 100%; height: 100%; object-fit: cover; }
.group-head { background: var(--surface); display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; padding-block: 1.1rem 1rem; }
.group-cover-wrap + .group-head { max-width: none; }
.group-head > * { min-width: 0; }
.group-title h1 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; }
.group-title p { margin-top: .25rem; font-weight: 700; }
.faces { display: flex; margin-top: .6rem; }
.faces .avatar { border: 2px solid var(--surface); margin-left: -6px; }
.faces .avatar:first-child { margin-left: 0; }
.group-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.group-tabs { background: var(--surface); display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 20; }
.group-head, .group-tabs { max-width: none; padding-left: max(16px, calc((100% - 1120px) / 2 + 16px)); padding-right: max(16px, calc((100% - 1120px) / 2 + 16px)); }
.group-tabs button { border: 0; background: none; padding: .95rem .9rem; font-weight: 700; color: var(--ink-2); cursor: pointer; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; min-height: 52px; }
.group-tabs button:hover { color: var(--ink); background: var(--surface-2); border-radius: 8px 8px 0 0; }
.group-tabs button[aria-selected="true"] { color: var(--marisma); border-color: var(--marisma); }
.group-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.2rem; padding-block: 1.2rem 3rem; align-items: start; }
.group-main { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.group-side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: calc(var(--header-h) + 70px + env(safe-area-inset-top, 0px)); }
.group-side .panel h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.panel { box-shadow: 0 1px 2px rgba(15, 43, 45, .06); }
.info-row { display: flex; gap: .7rem; align-items: flex-start; margin-top: .8rem; }
.info-row > svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--ink-2); margin-top: 2px; }
.group-side .btn.full { margin-top: 1rem; }
.sponsor { border-style: dashed; }
.dateblock { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; height: 56px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); flex-shrink: 0; overflow: hidden; }
.dateblock span { display: block; width: 100%; text-align: center; background: var(--flamenco); color: #fff; font-size: .68rem; font-weight: 700; text-transform: uppercase; padding: 2px 0; }
.dateblock b { font-family: var(--f-display); font-size: 1.4rem; line-height: 1.3; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.photo-grid.sm { grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 10px; overflow: hidden; }
.photo-grid button { border: 0; padding: 0; aspect-ratio: 1; overflow: hidden; cursor: pointer; background: var(--surface-2); border-radius: 6px; }
.photo-grid.sm button { border-radius: 0; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photo-grid button:hover img { transform: scale(1.05); }

.composer-card { display: flex; flex-direction: column; gap: .7rem; padding: .9rem 1rem .5rem; }
.composer-pill { flex: 1; min-width: 0; text-align: left; border: 0; background: var(--surface-2); border-radius: 999px; padding: .75rem 1.1rem; color: var(--ink-2); cursor: pointer; font-size: 1.02rem; min-height: 46px; }
.composer-pill:hover { background: color-mix(in srgb, var(--surface-2) 70%, var(--line)); }
.composer-acts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: .35rem; }
.composer-acts button { display: flex; align-items: center; justify-content: center; gap: .45rem; border: 0; background: none; padding: .55rem .3rem; border-radius: 8px; font-weight: 700; color: var(--ink-2); cursor: pointer; min-height: 44px; }
.composer-acts button:hover { background: var(--surface-2); }
.composer-acts svg { width: 22px; height: 22px; }
.feed-tools { display: flex; gap: .6rem; align-items: center; justify-content: space-between; }
.feed-tools .chips { min-width: 0; flex: 1; }
.sort select { min-height: 40px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 .7rem; font-weight: 700; font-size: .86rem; }
.pinned-label { display: flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .9rem; color: var(--ink-2); margin-top: .2rem; }
.pinned-label svg { width: 16px; height: 16px; }

.post { border-radius: 12px; box-shadow: 0 1px 2px rgba(15, 43, 45, .07); }
.post-pin { display: flex; gap: .4rem; align-items: center; padding: .55rem 1rem; font-size: .82rem; font-weight: 700; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.post-pin svg { width: 15px; height: 15px; }
.post-head { padding: .85rem 1rem .4rem; }
.post-head .name { font-size: .98rem; }
.post-head .meta { display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; }
.meta-cat { color: var(--ink-2); font-weight: 400; font-size: .8rem; }
.post-body { padding: .2rem 1rem .7rem; line-height: 1.5; }
.post-body.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; padding-bottom: 0; }
.see-more { margin: 0 1rem .7rem; }
.post-img { display: block; width: 100%; border: 0; padding: 0; cursor: zoom-in; background: var(--surface-2); }
.post-img img { width: 100%; max-height: 620px; object-fit: cover; }
.post-flag { display: flex; gap: .4rem; align-items: center; }
.post-stats { align-items: center; padding: .55rem 1rem; min-height: 38px; }
.rx-sum { display: inline-flex; align-items: center; gap: .35rem; }
.rx-emojis { display: inline-flex; font-size: 1rem; letter-spacing: -0.25em; padding-right: .25em; }
.post-acts { margin: 0 .75rem; padding: .2rem 0; }
.act.on { font-weight: 700; }
.rx-e { font-size: 1.15rem; line-height: 1; }
.rx-wrap { position: relative; display: flex; }
.rx-wrap .act { flex: 1; }
.rx-picker { position: absolute; bottom: calc(100% + 4px); left: 0; display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: var(--surface); box-shadow: 0 6px 24px rgba(0, 0, 0, .18), 0 0 0 1px var(--line); z-index: 6; animation: rxin .22s cubic-bezier(.3, 1.5, .6, 1); }
@keyframes rxin { from { transform: translateY(8px) scale(.85); opacity: 0; } }
.rx-picker button { position: relative; border: 0; background: none; cursor: pointer; padding: 0; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; }
.rx-picker button span { font-size: 1.85rem; line-height: 1; transition: transform .15s cubic-bezier(.3, 1.6, .5, 1); }
.rx-picker button:hover span, .rx-picker button:focus-visible span { transform: scale(1.35) translateY(-6px); }
.rx-picker em { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); font: 700 .7rem/1 var(--f-body); background: rgba(0, 0, 0, .78); color: #fff; padding: .3rem .5rem; border-radius: 999px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; }
.rx-picker button:hover em, .rx-picker button:focus-visible em { opacity: 1; }
.act.pop .rx-e, .act.pop svg { animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); }

.event-box { margin: 0 1rem .9rem; border: 1px solid var(--line); border-radius: 12px; padding: .9rem; display: flex; gap: .9rem; align-items: center; background: color-mix(in srgb, var(--flamenco-soft) 35%, var(--surface)); flex-wrap: wrap; }
.event-box .dateblock { width: 62px; height: 66px; }
.event-box .dateblock b { font-size: 1.7rem; }
.event-info { display: flex; flex-direction: column; gap: .15rem; flex: 1; min-width: 180px; }
.event-info h3 { font-size: 1.1rem; }
.poll { margin: 0 1rem .9rem; display: flex; flex-direction: column; gap: .45rem; }
.poll-opt { position: relative; display: flex; justify-content: space-between; align-items: center; gap: .6rem; border: 1.5px solid var(--line); background: var(--surface); border-radius: 10px; padding: .65rem .8rem; cursor: pointer; overflow: hidden; text-align: left; font-weight: 700; min-height: 46px; }
.poll-opt:hover { border-color: var(--marisma); }
.poll-opt.mine { border-color: var(--marisma); }
.poll-fill { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--marisma) 14%, transparent); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.poll-opt.mine .poll-fill { background: color-mix(in srgb, var(--marisma) 24%, transparent); }
.poll-txt, .poll-pct { position: relative; display: flex; gap: .5rem; align-items: center; }
.poll-radio { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; }

.comments { border-top: 1px solid var(--line); margin: 0 .75rem; padding: .7rem .25rem .9rem; background: none; gap: .55rem; }
.more-c { align-self: flex-start; font-size: .9rem; color: var(--ink-2); }
.comment { position: relative; }
.c-main { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.comment .bubble { position: relative; padding: .5rem .85rem; border-radius: 18px; max-width: 100%; }
.comment .bubble b { font-size: .84rem; }
.c-likes { position: absolute; right: -10px; bottom: -10px; background: var(--surface); border-radius: 999px; padding: 1px 6px; font-size: .72rem; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); white-space: nowrap; }
.c-acts { display: flex; gap: .8rem; align-items: center; padding: .25rem .6rem 0; font-size: .78rem; color: var(--ink-2); }
.c-acts .link { color: var(--ink-2); font-size: .78rem; }
.c-acts .link.on { color: var(--marisma); }
.replies { margin-left: 2.6rem; display: flex; flex-direction: column; gap: .5rem; }
.replies:empty { display: none; }
.c-input { display: flex; gap: .5rem; align-items: center; }
.c-input input { flex: 1; min-width: 0; border: 0; background: var(--surface-2); border-radius: 999px; padding: .6rem 1rem; min-height: 40px; color: var(--ink); }
.c-input input:focus { outline: 2px solid color-mix(in srgb, var(--marisma) 45%, transparent); }
.c-input button { border: 0; background: none; color: var(--marisma); cursor: pointer; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.c-input button:hover { background: var(--surface-2); }
.c-input button svg { width: 20px; height: 20px; }

.composer-modal textarea { border: 0; background: transparent; font-size: 1.25rem; min-height: 120px; resize: none; padding: .2rem 0; line-height: 1.4; }
.composer-modal textarea:focus { outline: none; }
.mini-select { border: 0; background: var(--surface-2); border-radius: 6px; padding: .2rem .5rem; font-size: .8rem; font-weight: 700; min-height: 28px; }
.add-to { display: flex; justify-content: space-between; align-items: center; gap: .6rem; border: 1px solid var(--line); border-radius: 10px; padding: .35rem .5rem .35rem 1rem; font-weight: 700; flex-wrap: wrap; }
.extra-box { border: 1px solid var(--line); border-radius: 12px; padding: .9rem; display: flex; flex-direction: column; gap: .7rem; }
.lightbox { display: grid; grid-template-columns: minmax(0, 1fr) 320px; max-height: calc(100vh - 32px); }
.lightbox img { width: 100%; height: 100%; max-height: calc(100vh - 32px); object-fit: contain; background: #000; }
.lb-side { padding: 1.4rem; display: flex; flex-direction: column; gap: 1rem; overflow: auto; }
.members { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.member { display: flex; gap: .7rem; align-items: center; min-width: 0; }
.member > div { min-width: 0; }
.rule { display: flex; gap: 1rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.rule:last-child { border-bottom: 0; }
.rule > .num { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; color: var(--flamenco); min-width: 1.4rem; }

/* ── Administración ── */
.admin-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.6rem; padding-block: 1.6rem 3rem; align-items: start; }
.admin-nav { position: sticky; top: calc(var(--header-h) + 16px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: 1rem; }
.admin-who { display: flex; gap: .6rem; align-items: center; padding: .4rem; }
.admin-nav nav { display: flex; flex-direction: column; gap: .15rem; }
.admin-nav nav button { display: flex; align-items: center; gap: .7rem; border: 0; background: none; padding: .65rem .8rem; border-radius: 10px; font-weight: 700; color: var(--ink-2); cursor: pointer; text-align: left; min-height: 44px; }
.admin-nav nav button:hover { background: var(--surface); color: var(--ink); }
.admin-nav nav button[aria-current="true"] { background: var(--marisma); color: var(--marisma-ink); }
.admin-nav nav button svg { width: 20px; height: 20px; flex-shrink: 0; }
.admin-nav nav button span:nth-child(2) { flex: 1; }
.badge-n { background: var(--flamenco); color: #fff; border-radius: 999px; font-size: .72rem; padding: .1rem .45rem; min-width: 1.4rem; text-align: center; }
.admin-main { display: flex; flex-direction: column; gap: 1.2rem; min-width: 0; }
.admin-head p { margin-top: .3rem; }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1rem 1.1rem; }
.kpi .v { font-family: var(--f-display); font-size: 2rem; font-weight: 800; line-height: 1; color: var(--marisma); }
.kpi .l { font-weight: 700; margin-top: .45rem; font-size: .92rem; }
.kpi .s { font-size: .78rem; color: var(--ink-2); margin-top: .15rem; }
.kpi.warn { border-color: var(--flamenco); background: color-mix(in srgb, var(--flamenco-soft) 50%, var(--surface)); }
.kpi.warn .v { color: var(--flamenco); }
.vbars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; height: 170px; align-items: end; margin-top: 1rem; }
.vbar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; min-width: 0; }
.vb-f { width: 100%; min-height: 2px; background: var(--marisma); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: growY .8s cubic-bezier(.2, .8, .2, 1); }
.vbar:last-child .vb-f { background: var(--flamenco); }
@keyframes growY { from { transform: scaleY(0); } }
.vb-n { font-size: .7rem; font-weight: 700; color: var(--ink-2); }
.vb-l { font-size: .68rem; color: var(--ink-2); }
.todo { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; border: 0; background: none; text-align: left; cursor: pointer; padding: .8rem 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.todo:last-child { border-bottom: 0; }
.todo:hover { color: var(--marisma); }
.toolbar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .78rem; color: var(--ink-2); font-weight: 700; padding: .7rem .8rem; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 50%, var(--surface)); white-space: nowrap; }
.table td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: color-mix(in srgb, var(--surface-2) 40%, var(--surface)); }
.table .num { text-align: right; }
.t-text { min-width: 240px; max-width: 420px; }
.nowrap { white-space: nowrap; }
.mod-card { display: flex; flex-direction: column; gap: .6rem; }
.mod-text { white-space: pre-wrap; background: var(--surface-2); border-radius: 10px; padding: .7rem .9rem; overflow-wrap: anywhere; }
.req { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.req:last-of-type { border-bottom: 0; }
.confirm { background: var(--bad) !important; color: #fff !important; border-color: var(--bad) !important; width: auto !important; padding: 0 .6rem; gap: .3rem; display: inline-flex; border-radius: 999px !important; font-weight: 700; font-size: .8rem; }

/* ── Negocios ── */
.biz-head { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 2.2rem 1.6rem; }
.biz-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.6rem; padding-block: 1.6rem 3rem; align-items: start; }
.biz-side { position: sticky; top: calc(var(--header-h) + 16px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: 1rem; }
.cat-list { display: flex; flex-direction: column; gap: .1rem; }
.cat-list button { display: flex; align-items: center; gap: .6rem; border: 0; background: none; padding: .55rem .7rem; border-radius: 10px; font-weight: 700; color: var(--ink-2); cursor: pointer; text-align: left; font-size: .92rem; min-height: 42px; }
.cat-list button svg { width: 18px; height: 18px; flex-shrink: 0; }
.cat-list button span:nth-of-type(1) { flex: 1; }
.cat-list button .n { font-size: .8rem; font-weight: 400; }
.cat-list button:hover:not([disabled]) { background: var(--surface); color: var(--ink); }
.cat-list button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.cat-list button[disabled] { opacity: .4; cursor: default; }
.biz-main { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .9rem; }
.biz-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.1rem; display: flex; flex-direction: column; gap: .35rem; min-width: 0; transition: border-color .2s, box-shadow .2s; }
.biz-card:hover { border-color: color-mix(in srgb, var(--marisma) 50%, var(--line)); box-shadow: var(--shadow); }
.biz-card.destacado { border-color: var(--espiga); }
.biz-card.premium { border: 2px solid var(--flamenco); background: linear-gradient(180deg, color-mix(in srgb, var(--flamenco-soft) 50%, var(--surface)), var(--surface) 60%); }
.biz-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .3rem; }
.biz-card h3 { font-size: 1.05rem; line-height: 1.25; }
.biz-open { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.biz-open:hover { color: var(--marisma); text-decoration: underline; }
.biz-desc { font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.biz-addr { display: flex; gap: .3rem; align-items: flex-start; color: var(--ink-2); margin-top: auto; padding-top: .3rem; }
.biz-links { display: flex; gap: .4rem; flex-wrap: wrap; padding-top: .5rem; }
.offer { display: flex; gap: .35rem; align-items: center; font-size: .86rem; font-weight: 700; color: var(--flamenco); }
.biz-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--marisma) 12%, transparent); color: var(--marisma); flex-shrink: 0; }
.biz-ico svg { width: 22px; height: 22px; }
.biz-ico.lg { width: 60px; height: 60px; border-radius: 16px; }
.biz-ico.lg svg { width: 30px; height: 30px; }
.cat-comer, .cat-dormir { background: var(--flamenco-soft); color: var(--flamenco); }
.cat-campo { background: color-mix(in srgb, var(--arroz) 18%, transparent); color: var(--arroz); }
.cat-industria, .cat-talleres { background: color-mix(in srgb, var(--espiga) 20%, transparent); color: color-mix(in srgb, var(--espiga) 75%, var(--ink)); }
.biz-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.biz-cats a { display: flex; align-items: center; gap: .7rem; padding: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; font-weight: 700; font-size: .92rem; line-height: 1.2; }
.biz-cats a:hover { border-color: var(--marisma); }
.showcase { display: flex; flex-direction: column; gap: .6rem; }

/* Teléfonos */
.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.phone-card { display: flex; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: .9rem 1rem; }
.phone-card.sos { border: 2px solid var(--bad); }
.p-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.p-name { font-weight: 700; }
.p-tel { font-size: 1.25rem; white-space: nowrap; }
.phone-card.sos .p-tel { color: var(--bad); font-size: 1.6rem; }

/* Comer */
.dishes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.dish { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.dish h3 { margin-bottom: .25rem; }

/* Perfil */
.profile-cover { height: 220px; overflow: hidden; }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-head { display: flex; align-items: flex-end; gap: 1.2rem; margin-top: -66px; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.profile-head h1 { font-size: 2rem; font-weight: 800; }
.p-who { padding-bottom: .4rem; min-width: 0; }
.profile-acts { margin-left: auto; padding-bottom: .4rem; }
.profile-body { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 1.4rem; padding-block: 1.4rem 3rem; align-items: start; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.profile-stats b { display: block; font-family: var(--f-display); font-size: 1.6rem; }
.profile-stats span { font-size: .78rem; color: var(--ink-2); }
.my-post { display: flex; flex-direction: column; gap: .4rem; text-decoration: none; }
.my-post:hover { border-color: var(--marisma); }
.link-row { justify-content: space-between; text-decoration: none; flex-wrap: nowrap; }
.link-row:hover { color: var(--marisma); }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .group-body { grid-template-columns: minmax(0, 1fr); }
  .group-side { position: static; order: 2; }
  .admin-layout, .biz-layout, .profile-body { grid-template-columns: minmax(0, 1fr); }
  .admin-nav, .biz-side { position: static; }
  .admin-nav nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .admin-nav nav button { white-space: nowrap; }
  .admin-nav nav button span:nth-child(2) { flex: none; }
  .admin-who, .admin-nav > .btn { display: none; }
  .cat-list { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: .4rem; }
  .cat-list button { white-space: nowrap; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; }
  .cat-list button[disabled] { display: none; }
  .biz-side .panel { display: none; }
  .biz-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox img { max-height: 60vh; }
  .phones, .dishes { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .group-cover { border-radius: 0; aspect-ratio: 16 / 7; }
  .group-actions .btn { flex: 1; }
  .group-actions { width: 100%; }
  .group-head { padding-block: .9rem; }
  .post, .group-main > .panel { border-radius: 0; border-left: 0; border-right: 0; }
  .group-body { padding-left: 0; padding-right: 0; gap: .6rem; }
  .group-main { gap: .6rem; }
  .feed-tools, .pinned-label, .group-main > .note { padding-inline: 16px; }
  .group-side { padding-inline: 16px; }
  .feed-tools { flex-direction: column; align-items: stretch; }
  .members { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vb-n { display: none; }
  .profile-head { margin-top: -50px; }
  .avatar.xl { width: 100px; height: 100px; font-size: 2rem; }
  .profile-acts { margin-left: 0; }
  .profile-cover { height: 150px; }
  .banner { min-height: 220px; }
  .phone-card { flex-wrap: wrap; }
  .composer-acts button { font-size: .86rem; }
}
.admin-nav, .biz-side, .admin-nav nav, .cat-list { min-width: 0; }
.table-wrap, .admin-nav nav, .chips, .cat-list, .tabs, .nav { position: relative; }
.table .icon-btn { display: inline-grid; vertical-align: middle; }
.admin-layout .grid-2 { align-items: start; }
.demo-bar em { font-style: normal; }

/* ════════════════════════════════════════════════════════════
   v3 · La Plaza: red social vecinal
   ════════════════════════════════════════════════════════════ */
.fb, .fb-modal {
  --bg: #f0f2f5; --surface: #ffffff; --surface-2: #f0f2f5; --ink: #050505; --ink-2: #65676b; --line: #ced0d4;
  --marisma: #1a73a8; --marisma-ink: #ffffff; --fb-blue: #1a73a8; --fb-blue-soft: #e4f0f8; --fb-hover: #f2f2f2; --fb-btn: #e4e6eb;
  --fb-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  --f-body: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; --f-display: var(--f-body);
  font-family: var(--f-body); color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fb, :root:not([data-theme="light"]) .fb-modal {
    --bg: #18191a; --surface: #242526; --surface-2: #3a3b3c; --ink: #e4e6eb; --ink-2: #b0b3b8; --line: #3e4042;
    --marisma: #5fb0e0; --fb-blue: #5fb0e0; --fb-blue-soft: #17334a; --fb-hover: #3a3b3c; --fb-btn: #3a3b3c; --fb-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  }
}
:root[data-theme="dark"] .fb, :root[data-theme="dark"] .fb-modal {
  --bg: #18191a; --surface: #242526; --surface-2: #3a3b3c; --ink: #e4e6eb; --ink-2: #b0b3b8; --line: #3e4042;
  --marisma: #5fb0e0; --fb-blue: #5fb0e0; --fb-blue-soft: #17334a; --fb-hover: #3a3b3c; --fb-btn: #3a3b3c; --fb-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}
body[data-route="plaza"] { --feed-bg: #f0f2f5; background: var(--feed-bg); }
:root[data-theme="dark"] body[data-route="plaza"] { --feed-bg: #18191a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body[data-route="plaza"] { --feed-bg: #18191a; } }
.fb { background: var(--bg); font-size: .885rem; line-height: 1.3333; }
.fb h1, .fb h2, .fb h3, .fb-modal h2, .fb-modal h3 { font-family: var(--f-body); letter-spacing: 0; }
.fb .muted { color: var(--ink-2); }
.fb .small { font-size: .8125rem; }

/* Botones de la Plaza */
.fbb { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 6px; border: 0; font: 600 .9375rem/1 var(--f-body); cursor: pointer; white-space: nowrap; }
.fbb svg { width: 18px; height: 18px; }
.fbb.blue { background: var(--fb-blue); color: #fff; }
.fbb.blue:hover { filter: brightness(.94); }
.fbb.grey { background: var(--fb-btn); color: var(--ink); }
.fbb.grey:hover { filter: brightness(.95); }
.fbb.sq { width: 48px; padding: 0; }
.fb .btn, .fb-modal .btn { border-radius: 6px; min-height: 36px; font-family: var(--f-body); font-size: .9375rem; background: var(--fb-blue); color: #fff; border: 0; transform: none; }
.fb .btn.alt, .fb-modal .btn.alt { background: var(--fb-btn); color: var(--ink); }
.fb .btn.hot, .fb-modal .btn.hot { background: var(--fb-blue); color: #fff; }
.fb .btn:hover, .fb-modal .btn:hover { filter: brightness(.95); transform: none; }
.fb .link { color: var(--fb-blue); font-weight: 600; }

/* Cabecera del grupo */
.fb .group-cover-wrap { background: linear-gradient(#d7dadf, var(--surface)); }
.fb .group-cover { border-radius: 0 0 8px 8px; }
.fb .group-head { padding-block: 16px; align-items: flex-end; }
.fb .group-title h1 { font-size: 2rem; font-weight: 700; line-height: 1.2; }
.fb .group-title p { font-size: .9375rem; font-weight: 600; color: var(--ink-2); margin-top: 6px; }
.fb .faces .avatar { width: 32px; height: 32px; margin-left: -8px; font-size: .72rem; }
.fb .faces .avatar:first-child { margin-left: 0; }
.fb .group-actions { gap: 8px; }
.fb .group-tabs { border-top: 1px solid var(--line); border-bottom: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); gap: 0; }
.fb .group-tabs button { font: 600 .9375rem/1 var(--f-body); color: var(--ink-2); height: 58px; padding: 0 16px; border-bottom-width: 3px; border-radius: 0; }
.fb .group-tabs button:hover { background: var(--fb-hover); border-radius: 8px; height: 46px; margin-block: 6px; }
.fb .group-tabs button[aria-selected="true"] { color: var(--fb-blue); border-color: var(--fb-blue); }
.fb .group-tabs button[aria-selected="true"]:hover { border-radius: 0; height: 58px; margin-block: 0; background: none; }
.fb .group-body { grid-template-columns: minmax(0, 680px) 360px; justify-content: center; gap: 16px; padding-top: 16px; }
.fb .group-main { gap: 16px; }

/* Tarjetas */
.fb .panel, .fb .post { background: var(--surface); border: 0; border-radius: 8px; box-shadow: var(--fb-shadow); }
.fb .panel { padding: 12px 16px; }
.fb .group-side .panel h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.fb .info-row { margin-top: 12px; }
.fb .info-row strong { font-weight: 600; }
.fb .sponsor { border: 0; }
.fb .tag { border-radius: 4px; font-weight: 600; }

/* Crear publicación */
.fb .composer-card { padding: 12px 16px 10px; gap: 12px; }
.fb .composer-card .avatar { width: 40px; height: 40px; }
.fb .composer-pill { background: var(--surface-2); color: var(--ink-2); font-size: 1.0625rem; height: 40px; min-height: 40px; padding: 0 12px; border-radius: 20px; }
.fb .composer-pill:hover { background: var(--fb-hover); filter: brightness(.97); }
.fb .composer-acts { border-top: 1px solid var(--line); padding-top: 8px; }
.fb .composer-acts button { font: 600 .9375rem/1 var(--f-body); color: var(--ink-2); height: 40px; min-height: 40px; }
.fb .composer-acts button:hover { background: var(--fb-hover); }
.fb .composer-acts svg { width: 24px; height: 24px; }

/* Temas */
.fb-topics { display: flex; flex-direction: column; gap: 10px; }
.fb-topics-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fb-topics-head h3 { font-size: 1.0625rem; font-weight: 700; }
.fb .sort { display: inline-flex; align-items: center; gap: 2px; font-size: .9375rem; }
.fb .sort select { border: 0; background: transparent; font: 600 .9375rem var(--f-body); color: var(--ink); padding: 4px; min-height: 32px; cursor: pointer; border-radius: 6px; }
.fb .sort select:hover { background: var(--fb-hover); }
.fb .chips { gap: 8px; }
.fb .chip { border: 0; background: var(--fb-btn); color: var(--ink); font: 600 .9375rem/1 var(--f-body); height: 36px; min-height: 36px; padding: 0 12px; border-radius: 18px; }
.fb .chip:hover { filter: brightness(.95); }
.fb .chip[aria-pressed="true"] { background: var(--fb-blue-soft); color: var(--fb-blue); }
.fb .pinned-label { font: 700 1.0625rem var(--f-body); color: var(--ink); margin: 4px 0 -4px; }
.fb .pinned-label svg { display: none; }

/* Publicación */
.fb .post-pin { border-bottom: 1px solid var(--line); margin: 0 16px; padding: 10px 0; font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.fb .post-head { padding: 12px 16px 0; gap: 8px; margin-bottom: 12px; }
.fb .post-head .avatar { width: 40px; height: 40px; font-size: .95rem; }
.fb .post-head .name { font-size: .9375rem; font-weight: 600; line-height: 1.33; }
.fb .post-head .meta { font-size: .8125rem; color: var(--ink-2); gap: 4px; line-height: 1.23; }
.fb .meta-cat { font-size: .8125rem; color: var(--ink-2); font-weight: 400; }
.fb .meta-cat:hover { text-decoration: underline; }
.fb .role { background: none !important; color: var(--fb-blue) !important; padding: 0; font: 600 .8125rem var(--f-body); margin-left: 4px; vertical-align: 0; }
.fb .role::before { content: "· "; color: var(--ink-2); font-weight: 400; }
.fb .post-head .icon-btn { width: 36px; height: 36px; color: var(--ink-2); }
.fb .post-body { padding: 0 16px 12px; font-size: .9375rem; line-height: 1.3333; }
.fb .post-body.big { font-size: 1.5rem; line-height: 1.25; padding-bottom: 16px; }
.fb .see-more { margin: -8px 16px 12px; color: var(--ink); font-weight: 600; }
.fb .post-img { margin-top: 0; }
.fb .post-img img { max-height: 680px; }
.fb .post-flag { margin: 0 16px 12px; border-radius: 6px; font-size: .8125rem; }
.fb .post-stats { padding: 10px 16px; min-height: 0; font-size: .9375rem; color: var(--ink-2); }
.fb .post-stats .link { color: var(--ink-2); font-weight: 400; }
.fb .post-stats .link:hover { text-decoration: underline; }
.stat-r { display: inline-flex; gap: 12px; }
.rx-icons { display: inline-flex; margin-right: 6px; }
.rxi { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; border: 2px solid var(--surface); margin-left: -4px; font-size: .78rem; line-height: 1; box-sizing: border-box; }
.rxi:first-child { margin-left: 0; }
.rxi svg { width: 11px; height: 11px; }
.rxi.like { background: #4f9a26; border-radius: 6px; }
.rxi.love { background: #e4572e; border-radius: 6px; }
.rxi.emo { background: var(--surface-2); border-radius: 6px; }
.fb .post-acts { margin: 0 16px; padding: 4px 0; border-top: 1px solid var(--line); }
.fb .act { font: 600 .9375rem/1 var(--f-body); color: var(--ink-2); height: 36px; min-height: 36px; border-radius: 4px; gap: 6px; }
.fb .act svg { width: 20px; height: 20px; }
.fb .act:hover { background: var(--fb-hover); }
.fb .act svg.filled { fill: var(--fb-blue); stroke: var(--fb-blue); }
.fb .act.on { color: var(--fb-blue); }
.fb .menu { border: 0; border-radius: 8px; box-shadow: 0 12px 28px rgba(0, 0, 0, .2), 0 2px 4px rgba(0, 0, 0, .1); padding: 8px; min-width: 280px; }
.fb .menu button { font: 600 .9375rem var(--f-body); padding: 8px; border-radius: 6px; }
.fb .menu button:hover { background: var(--fb-hover); }
.fb .menu button svg { width: 20px; height: 20px; }

/* Eventos y encuestas */
.fb .event-box { margin: 0 16px 12px; border: 0; border-radius: 8px; background: var(--surface-2); }
.fb .event-info h3 { font-size: 1.0625rem; font-weight: 700; }
.fb .dateblock { border: 0; box-shadow: var(--fb-shadow); border-radius: 8px; }
.fb .dateblock span { background: #e0701a; }
.fb .poll { margin: 0 16px 12px; }
.fb .poll-opt { border: 1px solid var(--line); border-radius: 6px; font: 600 .9375rem var(--f-body); }
.fb .poll-opt:hover { background: var(--fb-hover); }
.fb .poll-fill { background: var(--fb-blue-soft); }
.fb .poll-opt.mine { border-color: var(--fb-blue); }
.fb .poll-opt.mine .poll-fill { background: color-mix(in srgb, var(--fb-blue) 22%, transparent); }
.fb .poll-opt svg { color: var(--fb-blue); }

/* Comentarios */
.fb .comments { margin: 0 16px; padding: 4px 0 12px; border-top: 1px solid var(--line); gap: 8px; }
.fb .more-c { color: var(--ink-2); font-weight: 600; font-size: .9375rem; padding: 4px 0; }
.fb .comment { gap: 6px; }
.fb .comment .avatar.sm { width: 32px; height: 32px; font-size: .75rem; }
.fb .comment .avatar.xs { width: 24px; height: 24px; font-size: .62rem; }
.fb .comment .bubble { background: var(--surface-2); border-radius: 18px; padding: 8px 12px; }
.fb .comment .bubble b { display: block; font-size: .8125rem; font-weight: 600; line-height: 1.23; }
.fb .comment .bubble > span { font-size: .9375rem; line-height: 1.3333; }
.fb .c-likes { display: inline-flex; align-items: center; gap: 2px; font-size: .8125rem; color: var(--ink-2); right: -14px; bottom: -8px; padding: 1px 4px 1px 1px; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.fb .c-likes .rxi { width: 18px; height: 18px; border: 0; }
.fb .c-acts { gap: 12px; padding: 3px 12px 0; font-size: .75rem; }
.fb .c-acts .link { font-size: .75rem; font-weight: 700; color: var(--ink-2); }
.fb .c-acts .link.on { color: var(--fb-blue); }
.fb .replies { margin-left: 38px; }
.fb .c-input { gap: 6px; }
.fb .c-input .avatar.sm { width: 32px; height: 32px; font-size: .75rem; }
.fb .c-input input { background: var(--surface-2); border-radius: 18px; min-height: 36px; padding: 8px 12px; font-size: .9375rem; }
.fb .c-input button { color: var(--fb-blue); }

/* Ventana de crear publicación */
.fb-modal.modal-box { padding: 0 0 16px; gap: 0; border-radius: 8px; width: min(500px, 100%); background: var(--surface); color: var(--ink); font-family: var(--f-body); }
.fb-modal.photo { width: min(1100px, 100%); padding: 0; }
.fb-modal > .close { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; background: var(--fb-btn); border: 0; z-index: 2; }
.fb-modal .composer-modal, .fb-modal > form { padding: 0 16px; gap: 12px; }
.fb-modal .modal-title { text-align: center; font-size: 1.25rem; font-weight: 700; padding: 18px 48px; margin: 0 -16px; border-bottom: 1px solid var(--line); }
.fb-modal .composer-modal > .row strong { font-size: .9375rem; font-weight: 600; }
.fb-modal .mini-select { background: var(--fb-btn); border-radius: 6px; font: 600 .8125rem var(--f-body); color: var(--ink); }
.fb-modal .composer-modal textarea { font-size: 1.5rem; min-height: 150px; color: var(--ink); font-family: var(--f-body); }
.fb-modal .composer-modal textarea::placeholder { color: var(--ink-2); }
.fb-modal .add-to { border-color: var(--line); border-radius: 8px; padding: 8px 8px 8px 16px; font: 600 .9375rem var(--f-body); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.fb-modal .add-to .icon-btn svg { width: 24px; height: 24px; }
.fb-modal .extra-box { border-color: var(--line); border-radius: 8px; }
.fb-modal .input { border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.fb-modal #postBtn { height: 36px; min-height: 36px; }
.fb-modal #postBtn[disabled] { background: var(--fb-btn); color: var(--ink-2); opacity: 1; }
.fb-modal .lb-side { gap: 12px; }

@media (max-width: 960px) {
  .fb .group-body { grid-template-columns: minmax(0, 680px); }
}
@media (max-width: 620px) {
  .fb .group-body { padding: 8px 0 24px; }
  .fb .group-main { gap: 8px; }
  .fb .panel, .fb .post { border-radius: 0; box-shadow: none; }
  .fb .group-side { padding-inline: 0; gap: 8px; }
  .fb .group-cover { border-radius: 0; }
  .fb .group-title h1 { font-size: 1.5rem; }
  .fb .group-actions .fbb { flex: 1; }
  .fb .group-actions .fbb.sq { flex: 0 0 48px; }
  .fb .group-tabs button { height: 48px; padding: 0 12px; }
  .fb .group-tabs button:hover { height: 48px; margin-block: 0; border-radius: 0; background: none; }
  .fb .pinned-label { padding-inline: 16px; }
  .fb .post-body.big { font-size: 1.25rem; font-weight: 700; }
  .fb .act { font-size: .875rem; }
  .fb .composer-acts button { font-size: .875rem; }
  .fb-modal.modal-box { width: 100%; }
}

/* ════════════════════════════════════════════════════════════
   v4 · Fondo neutro (sin verde) y acabado general
   ════════════════════════════════════════════════════════════ */
.section.alt { background: var(--bg-alt); }
footer { background: var(--bg-alt); }
body[data-route="admin"], body[data-route="perfil"], body[data-route="telefonos"], body[data-route="datos"], body[data-route="normas"], body[data-route="negocios"] { background: var(--bg-alt); }
body[data-route="negocios"] .biz-head { background: var(--surface); }
.card, .panel, .quick a, .biz-card, .tram, .phone-card, .kpi, .plan, .bird { border-color: var(--line); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.card, .panel { border-radius: 16px; }
.quick a { border-radius: 16px; }
.quick a:hover, .biz-card:hover, .card[href]:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--marisma) 35%, var(--line)); }
.top { background: color-mix(in srgb, var(--surface) 92%, transparent); border-bottom-color: var(--line); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.icon-btn { border-color: var(--line); }
.demo-bar { background: var(--bg-alt); color: var(--ink-2); font-size: .8rem; border-bottom: 1px solid var(--line); }
.demo-bar .wrap { padding-block: .35rem; gap: .5rem; }
.demo-bar strong { color: var(--ink); display: inline-flex; align-items: center; gap: .4rem; }
.demo-bar strong::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--flamenco); }
.chip { border-color: var(--line); }
.input, select.input, textarea.input { border-color: var(--line); }
.now-grid { border-color: var(--line); }
.stats { background: var(--line); border-color: var(--line); }
.tl::before { background: var(--bg); }
.months div { background: var(--surface-2); }
.places { background: rgba(255, 255, 255, .16); }
footer { padding-block: 2.4rem; }
@media (max-width: 960px) { footer { padding-bottom: calc(2.4rem + 70px + env(safe-area-inset-bottom, 0px)); } }

/* Páginas legales */
.foot { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 960px) { .foot { grid-template-columns: 1fr 1fr; } .foot > .stack { grid-column: 1 / -1; } }
.legal { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 2.5rem; padding-block: 2.2rem 4rem; justify-content: center; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 20px + env(safe-area-inset-top, 0px)); align-self: start; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.legal-nav a { text-decoration: none; padding: .55rem .8rem; border-radius: 10px; font-weight: 700; color: var(--ink-2); }
.legal-nav a:hover { background: var(--surface); color: var(--ink); }
.legal-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.legal-doc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.4rem, 4vw, 2.6rem); min-width: 0; }
.legal-doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal-doc h2 { font-size: 1.2rem; margin: 2rem 0 .6rem; }
.legal-doc p, .legal-doc li { line-height: 1.65; max-width: 68ch; }
.legal-doc p + p { margin-top: .7rem; }
.legal-doc ul { padding-left: 1.2rem; display: flex; flex-direction: column; gap: .45rem; margin: .6rem 0; }
.legal-doc a { color: var(--marisma); }
.legal-doc .table-wrap { margin: .8rem 0; }
.legal-doc .table td { vertical-align: top; }
body[data-route="aviso-legal"], body[data-route="privacidad"], body[data-route="cookies"], body[data-route="condiciones"] { background: var(--bg-alt); }
@media (max-width: 960px) {
  .legal { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding-top: 1.2rem; }
  .legal-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .legal-nav a { white-space: nowrap; }
}
#consentField { align-items: flex-start; font-weight: 400; }
#consentField input { margin-top: 3px; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════
   v5 · Compartir, app instalable, historias, buscador y difusión
   ════════════════════════════════════════════════════════════ */
.wa-btn { background: #25d366; color: #fff; }
.wa-btn:hover { filter: brightness(.95); }

/* Compartir */
.share-preview { background: var(--surface-2); border-radius: 12px; padding: .8rem 1rem; font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.share-opt { display: flex; flex-direction: column; align-items: center; gap: .45rem; border: 0; background: none; cursor: pointer; text-decoration: none; font-weight: 700; font-size: .84rem; color: var(--ink); padding: .4rem 0; border-radius: 12px; }
.share-opt:hover { background: var(--surface-2); }
.share-opt span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.share-opt span svg { width: 26px; height: 26px; }
.share-opt.wa span { background: #25d366; }
.share-opt.tg span { background: #2aabee; }
.share-opt.x span { background: #111518; }
.share-opt.cp span { background: var(--surface-2); color: var(--ink); }
.share-url { overflow-wrap: anywhere; text-align: center; }
.steps { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: .6rem; line-height: 1.5; }

/* Buscador global */
.modal-box.cmdk-box { width: min(640px, 100%); padding: 0; gap: 0; align-self: start; margin-top: 8vh; overflow: hidden; }
.modal-box.cmdk-box > .close { display: none; }
.cmdk-in { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.cmdk-in svg { width: 22px; height: 22px; color: var(--ink-2); flex-shrink: 0; }
.cmdk-in input { flex: 1; min-width: 0; border: 0; background: none; font-size: 1.15rem; color: var(--ink); outline: none; }
kbd { font: 600 .72rem var(--f-body); color: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; padding: .15rem .4rem; }
.cmdk-list { max-height: min(60vh, 520px); overflow-y: auto; padding: .4rem; }
.cmdk-h { font-size: .74rem; font-weight: 700; color: var(--ink-2); padding: .7rem .7rem .3rem; }
.cmdk-item { display: flex; align-items: center; gap: .8rem; width: 100%; border: 0; background: none; padding: .6rem .7rem; border-radius: 10px; cursor: pointer; text-align: left; color: var(--ink); text-decoration: none; font-weight: 700; }
.cmdk-item > svg { width: 20px; height: 20px; color: var(--ink-2); flex-shrink: 0; }
.cmdk-item[aria-selected="true"], .cmdk-item:hover { background: var(--surface-2); }
.cmdk-t { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.cmdk-t small { font-weight: 400; color: var(--ink-2); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-x { width: 16px !important; height: 16px !important; opacity: .5; }
.cmdk-k { font-size: .75rem; color: var(--ink-2); }
.cmdk-empty { padding: 2rem; text-align: center; color: var(--ink-2); }

/* Historias */
.stories { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; scroll-snap-type: x mandatory; }
.story { position: relative; flex: 0 0 112px; height: 200px; border-radius: 12px; overflow: hidden; border: 0; padding: 0; cursor: pointer; background: #1c2a30; box-shadow: var(--fb-shadow, 0 1px 2px rgba(0,0,0,.2)); scroll-snap-align: start; color: #fff; text-align: left; }
.story img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.story:hover img { transform: scale(1.04); }
.story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .55)); pointer-events: none; }
.story-ring { position: absolute; top: 10px; left: 10px; z-index: 1; border-radius: 50%; padding: 2px; background: linear-gradient(135deg, #e0701a, #e3a72f); }
.story-ring .avatar { border: 2px solid #1c2a30; }
.story-cap { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; font: 600 .8125rem/1.2 var(--f-body); text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.story-ev { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .5rem; padding: 50px 12px 40px; background: linear-gradient(160deg, #1a73a8, #e0701a); font-size: .9rem; line-height: 1.2; }
.story.create { background: var(--surface); color: var(--ink); }
.story.create::after { display: none; }
.story.create .story-bg { position: absolute; inset: 0 0 52px; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); }
.story.create .story-bg .avatar { width: 100%; height: 100%; border: 0; border-radius: 0; font-size: 2.4rem; }
.story-plus { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); width: 38px; height: 38px; border-radius: 50%; background: var(--fb-blue, var(--marisma)); color: #fff; display: grid; place-items: center; border: 4px solid var(--surface); z-index: 2; }
.story-plus svg { width: 18px; height: 18px; }
.story.create .story-cap { text-align: center; color: var(--ink); text-shadow: none; bottom: 8px; }
.modal-box.story-box { width: min(440px, 100%); height: min(780px, calc(100vh - 32px)); padding: 0; background: #000; color: #fff; overflow: hidden; border-radius: 14px; }
.story-box > .close { position: absolute; top: 26px; right: 10px; z-index: 5; background: rgba(255, 255, 255, .15); border: 0; color: #fff; }
.story-view { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; }
.sv-bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 4; }
.sv-bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.sv-bars span i { display: block; height: 100%; width: 0; background: #fff; }
.sv-bars span.done i { width: 100%; }
.sv-bars span.on i { animation: svbar 6s linear forwards; }
@keyframes svbar { to { width: 100%; } }
.sv-head { position: absolute; top: 24px; left: 12px; right: 56px; display: flex; gap: .6rem; align-items: center; z-index: 4; }
.sv-head div { display: flex; flex-direction: column; line-height: 1.2; font-size: .9rem; }
.sv-head small { opacity: .8; }
.sv-media { flex: 1; display: grid; place-items: center; min-height: 0; }
.sv-media img { width: 100%; height: 100%; object-fit: cover; }
.sv-event { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 1rem; padding: 2rem; background: linear-gradient(160deg, #1a73a8, #e0701a); }
.sv-event h2 { font-size: 2rem; line-height: 1.1; }
.sv-text { position: absolute; left: 0; right: 0; bottom: 70px; padding: 1rem 1.2rem; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); font-size: 1rem; z-index: 3; }
.sv-zone { position: absolute; top: 70px; bottom: 70px; width: 35%; border: 0; background: none; cursor: pointer; z-index: 2; }
.sv-zone.l { left: 0; } .sv-zone.r { right: 0; }
.sv-cta { position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 4; height: 44px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); color: #fff; font-weight: 700; cursor: pointer; backdrop-filter: blur(6px); }

/* Bloque viral de la portada */
.viral { background: linear-gradient(135deg, color-mix(in srgb, var(--flamenco-soft) 70%, var(--bg)), var(--bg) 60%); }
.viral-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.viral h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
.viral-lead { font-size: 1.08rem; color: var(--ink-2); max-width: 56ch; }
.viral-count { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.viral-count #liveCount { font-family: var(--f-display); font-size: 1.4rem; color: var(--flamenco); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.qr-card { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.1rem; width: 240px; box-shadow: var(--shadow); text-align: center; transform: rotate(2deg); }
.qr-card figcaption { font-size: .82rem; color: var(--ink-2); margin-top: .6rem; }
.qr-box { aspect-ratio: 1; background: #fff; border-radius: 10px; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-box.big { max-width: 260px; }

/* Difusión (administración) */
.poster-slot { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.poster-img { width: 220px; border-radius: 6px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.invite { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.invite:last-child { border-bottom: 0; }
.invite > div:first-child { flex: 1; min-width: 240px; }
.invite p { font-size: .9rem; color: var(--ink-2); margin-top: .2rem; overflow-wrap: anywhere; }
.launch { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: .8rem; }

/* Aparición suave al hacer scroll (navegadores de 2024 en adelante) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .quick a, .biz-cats a, .stat, #homeFeed > .card, .places > div, .biz-card, .tram, .phone-card, .card, .kpi, .tl {
      animation: rise-in linear both; animation-timeline: view(); animation-range: entry 0% entry 35%;
    }
  }
}
@keyframes rise-in { from { opacity: .7; transform: translateY(14px); } }

@media (max-width: 760px) {
  .viral-in { grid-template-columns: 1fr; }
  .qr-card { width: 200px; justify-self: center; transform: none; }
  .share-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .share-opt span { width: 50px; height: 50px; }
  .modal-box.story-box { height: calc(100vh - 32px); }
  .modal-box.cmdk-box { margin-top: 0; }
}
@media (max-width: 620px) {
  .stories { padding-inline: 16px; }
  .story { flex-basis: 100px; height: 178px; }
}
.story-ev .dateblock b, .sv-event .dateblock b { color: #111518; }
.story-ev .dateblock { width: 40px; height: 44px; }
.story-ev .dateblock b { font-size: 1.1rem; }
.story-ev > b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .82rem; }
.story.create .story-cap { bottom: 6px; font-size: .78rem; }
.story-plus { bottom: 30px; }

/* Logotipo: sol sobre el arrozal */
.brand .v { color: var(--marisma); }
.brand svg { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 1px 3px rgba(16, 24, 40, .18); }
.fb .act.on svg.filled { fill: #4f9a26; stroke: #4f9a26; }

/* ── Herramientas de accesibilidad ── */
.a11y-fab { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 90; width: 58px; height: 58px; border-radius: 50%; border: 3px solid #fff; background: #2f7d1e; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); transition: transform .15s; }
.a11y-fab:hover { transform: scale(1.06); }
.a11y-fab svg { width: 30px; height: 30px; }
.a11y-panel { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: 91; width: min(320px, calc(100vw - 32px)); max-height: calc(100vh - 120px); overflow-y: auto; background: #fff; color: #111518; border-radius: 18px; box-shadow: 0 16px 48px rgba(0, 0, 0, .28); padding: .8rem; display: flex; flex-direction: column; gap: .15rem; animation: rise .2s; font-family: "Atkinson Hyperlegible", system-ui, sans-serif; font-size: 17px; }
.a11y-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; padding: .3rem .4rem .6rem; }
.a11y-head h2 { font: 800 1.15rem/1.2 "Bricolage Grotesque", system-ui, sans-serif; color: #111518; }
.a11y-head .icon-btn { background: #f0f2f5; border: 0; color: #111518; }
.a11y-opt { display: flex; align-items: center; gap: .9rem; width: 100%; border: 0; background: none; padding: .75rem .8rem; border-radius: 12px; font-weight: 600; font-size: 1rem; line-height: 1.2; font-family: inherit; color: #111518; cursor: pointer; text-align: left; min-height: 48px; }
.a11y-opt svg { width: 22px; height: 22px; color: #2f7d1e; flex-shrink: 0; }
.a11y-opt:hover, .a11y-opt:focus-visible { background: #eef5ea; }
.a11y-opt[aria-pressed="true"] { background: #2f7d1e; color: #fff; }
.a11y-opt[aria-pressed="true"] svg { color: #fff; }
.a11y-opt.reset { margin-top: .3rem; border-top: 1px solid #e2e5ea; border-radius: 0 0 12px 12px; color: #5d6670; }
.a11y-lvl { margin-left: auto; font-size: .8rem; font-weight: 700; color: #5d6670; background: #f0f2f5; border-radius: 999px; padding: .15rem .55rem; }
@media (max-width: 960px) {
  .a11y-fab { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); width: 50px; height: 50px; }
  .a11y-fab svg { width: 26px; height: 26px; }
  .a11y-panel { bottom: calc(138px + env(safe-area-inset-bottom, 0px)); max-height: calc(100vh - 170px); }
}
/* Escala de grises / negativo (el panel queda fuera del filtro) */
html.a11y-gray body > *:not(.a11y) { filter: grayscale(1); }
html.a11y-invert body > *:not(.a11y) { filter: invert(1) hue-rotate(180deg); }
html.a11y-invert body > *:not(.a11y) img, html.a11y-invert body > *:not(.a11y) canvas, html.a11y-invert body > *:not(.a11y) video { filter: invert(1) hue-rotate(180deg); }
html.a11y-gray.a11y-invert body > *:not(.a11y) { filter: grayscale(1) invert(1); }
html.a11y-invert body { background: #000; }
/* Alto contraste */
html.a11y-contrast { --bg: #ffffff; --bg-alt: #ffffff; --surface: #ffffff; --surface-2: #ffffff; --ink: #000000; --ink-2: #000000; --line: #000000; --marisma: #1a4d0f; --marisma-ink: #ffffff; --flamenco: #8a3a00; --cielo: #003f6b; --shadow: none; color-scheme: light; }
html.a11y-contrast .fb, html.a11y-contrast .fb-modal { --bg: #ffffff; --surface: #ffffff; --surface-2: #ffffff; --ink: #000000; --ink-2: #000000; --line: #000000; --fb-blue: #003f6b; --marisma: #003f6b; --fb-btn: #ffffff; --fb-shadow: none; }
html.a11y-contrast body, html.a11y-contrast body[data-route] { background: #fff; }
html.a11y-contrast .card, html.a11y-contrast .panel, html.a11y-contrast .post, html.a11y-contrast .chip, html.a11y-contrast .input, html.a11y-contrast .btn.alt, html.a11y-contrast .fbb.grey, html.a11y-contrast .composer-pill, html.a11y-contrast .biz-card, html.a11y-contrast .tram, html.a11y-contrast .phone-card { border: 2px solid #000 !important; }
html.a11y-contrast .muted, html.a11y-contrast .small { color: #000 !important; }
html.a11y-contrast .band, html.a11y-contrast .places > div { background: #000 !important; }
/* Fondo claro: sin bandas oscuras */
html.a11y-light .band, html.a11y-light .places > div { background: #ffffff !important; color: #111518; }
html.a11y-light .band .muted { color: #5d6670; }
html.a11y-light .band .kind { color: #8a5a00; }
html.a11y-light .places { background: #e2e5ea; }
/* Subrayar enlaces */
html.a11y-links a, html.a11y-links .link { text-decoration: underline !important; text-underline-offset: 3px; text-decoration-thickness: 2px; }
/* Fuente legible */
html.a11y-readable { --f-display: "Atkinson Hyperlegible", Verdana, sans-serif; --f-body: "Atkinson Hyperlegible", Verdana, sans-serif; }
html.a11y-readable .fb, html.a11y-readable .fb-modal { --f-body: "Atkinson Hyperlegible", Verdana, sans-serif; }
html.a11y-readable body { letter-spacing: .02em; word-spacing: .08em; line-height: 1.75; }
html.a11y-readable h1, html.a11y-readable h2 { letter-spacing: 0 !important; font-style: normal !important; }
/* Parar animaciones */
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* ════════════════════════════════════════════════════════════
   v6 · Los colores del paisaje en toda la web
   cielo azul · verde arrozal · amarillo de espigas y sol · agua
   ════════════════════════════════════════════════════════════ */
:root {
  --sol: #f5b700; --sol-ink: #2b2200; --sol-soft: #fff3c4;
  --cielo-soft: #e8f4fc; --arroz-soft: #ecf7e3;
  --bg-alt: #f3f8fc;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sol: #ffc93c; --sol-ink: #2b2200; --sol-soft: #3a3010; --cielo-soft: #12283a; --arroz-soft: #16281a; } }
:root[data-theme="dark"] { --sol: #ffc93c; --sol-ink: #2b2200; --sol-soft: #3a3010; --cielo-soft: #12283a; --arroz-soft: #16281a; }

/* Franja del paisaje bajo la cabecera */
.top { border-bottom: 0; }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, #2d8bd6 0%, #7cc0ec 22%, #5fb82a 48%, #2f7d1e 70%, #f5b700 88%, #ffb347 100%); }

/* Botones: sol (destacado), arrozal (principal) */
.btn.hot, .fb .btn.hot { background: var(--sol); color: var(--sol-ink); }
.btn.hot:hover { filter: brightness(1.04); }
.hero .btn.hot { box-shadow: 0 6px 20px rgba(245, 183, 0, .35); }
.btn { background: var(--marisma); }
.tag.flamenco { background: var(--sol-soft); color: #8a5a00; }
.nav a[aria-current="page"] { background: var(--marisma); color: #fff; }

/* Accesos rápidos con los tres colores */
.quick .ico { background: var(--cielo-soft); color: var(--cielo); }
.quick a:nth-child(2) .ico, .quick a:nth-child(5) .ico { background: var(--arroz-soft); color: var(--marisma); }
.quick a:nth-child(3) .ico, .quick a:nth-child(6) .ico { background: var(--sol-soft); color: #b07d00; }
.quick a:nth-child(4) .ico { background: var(--cielo-soft); color: var(--cielo); }
.quick a:hover { border-color: var(--cielo); }

/* Secciones: cielo, agua, arrozal y sol */
.section.alt { background: linear-gradient(180deg, var(--cielo-soft), var(--bg) 85%); }
.band { background: linear-gradient(180deg, #2d8bd6 0%, #1a6fa8 45%, #15476a 100%); }
.places > div { background: rgba(10, 40, 70, .35); }
.places { background: rgba(255, 255, 255, .22); border-radius: 18px; }
.kind { color: #ffd45c; }
.viral { background: radial-gradient(120% 140% at 100% 0%, var(--sol-soft) 0%, transparent 55%), linear-gradient(180deg, var(--arroz-soft), var(--bg)); }
.viral-count #liveCount { color: var(--marisma); }
.stat .v { color: var(--marisma); }
.stats { border-radius: 18px; }
.stat:nth-child(2) .v, .stat:nth-child(6) .v { color: var(--cielo); }
.stat:nth-child(3) .v, .stat:nth-child(7) .v { color: #c48a00; }
.biz-cats a:hover { border-color: var(--marisma); background: var(--arroz-soft); }
.now-grid { border-top: 3px solid var(--sol); }

/* Pie: el arrozal al caer la tarde */
footer { background: linear-gradient(180deg, #2f7d1e, #1d5212); color: #eaf6df; border-top: 0; position: relative; }
footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #f5b700, #ffb347, #7cc0ec, #2d8bd6); }
footer .muted, footer .foot a { color: rgba(234, 246, 223, .82); }
footer .foot a:hover { color: #fff; }
footer h4, footer .brand { color: #fff !important; }
footer .brand .v { color: #ffd45c; }

/* Páginas con fondo de cielo muy suave */
body[data-route="admin"], body[data-route="perfil"], body[data-route="telefonos"], body[data-route="datos"], body[data-route="normas"], body[data-route="negocios"],
body[data-route="aviso-legal"], body[data-route="privacidad"], body[data-route="cookies"], body[data-route="condiciones"] { background: var(--bg-alt); }
.phone-card.sos { border-color: #d64a2a; }
.dateblock span { background: var(--sol); color: var(--sol-ink); }
.months div.on { background: var(--marisma); }
.tabs button[aria-selected="true"] { border-color: var(--sol); }
.timeline::before { background: linear-gradient(#2d8bd6, #5fb82a, #f5b700); }
.tl::before { border-color: var(--marisma); }
.plan.featured { border-color: var(--sol); background: linear-gradient(180deg, var(--sol-soft), var(--surface) 55%); }
.a11y-fab { background: linear-gradient(135deg, #5fb82a, #2f7d1e); }

/* ════════════════════════════════════════════════════════════
   v7 · Sello propio de Isla Mayor
   tablas desde el aire · el año del arroz · Isla de Pájaros
   ════════════════════════════════════════════════════════════ */
.tablas-sep { height: 44px; background: var(--tablas, linear-gradient(90deg, #5fb82a, #2d8bd6)) repeat-x center / auto 100%; box-shadow: inset 0 6px 10px -6px rgba(0, 0, 0, .25), inset 0 -6px 10px -6px rgba(0, 0, 0, .25); }
footer::before { height: 12px; background: var(--tablas) repeat-x center / auto 100%; }
.top::after { height: 4px; }

/* El año del arroz */
.ciclo { background: linear-gradient(180deg, var(--bg), var(--arroz-soft)); }
.ciclo-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.4rem); align-items: center; }
.ciclo-img { position: relative; margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 50px rgba(20, 60, 30, .22); aspect-ratio: 1200 / 560; background: var(--surface-2); }
.ciclo-img img { width: 100%; height: 100%; object-fit: cover; animation: ciclo-in .5s ease; }
@keyframes ciclo-in { from { opacity: .3; transform: scale(1.03); } }
.ciclo-now { position: absolute; left: 14px; top: 14px; background: var(--sol); color: var(--sol-ink); font-weight: 800; font-size: .82rem; padding: .35rem .8rem; border-radius: 999px; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.ciclo-info { display: flex; flex-direction: column; gap: .8rem; }
.ciclo-info h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; }
.ciclo-info p { font-size: 1.05rem; line-height: 1.6; color: var(--ink-2); }
.ciclo-when { align-self: flex-start; font-weight: 800; font-size: .85rem; padding: .3rem .8rem; border-radius: 999px; background: color-mix(in srgb, var(--c) 22%, var(--surface)); color: color-mix(in srgb, var(--c) 55%, var(--ink)); }
.ciclo-track { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; margin-top: 1.4rem; }
.ciclo-track button { position: relative; border: 0; cursor: pointer; padding: 0; height: 44px; border-radius: 8px; background: color-mix(in srgb, var(--c) 30%, var(--surface)); color: var(--ink); font-weight: 700; font-size: .78rem; transition: transform .15s, background .2s; }
.ciclo-track button:hover { transform: translateY(-2px); }
.ciclo-track button[aria-pressed="true"] { background: var(--c); color: #10200a; }
.ciclo-track button.hoy::after { content: "hoy"; position: absolute; left: 50%; top: -1.35rem; transform: translateX(-50%); font-size: .7rem; font-weight: 800; color: var(--marisma); }
.ciclo-track button.hoy { outline: 2.5px solid var(--ink); outline-offset: -2.5px; }

/* Isla de Pájaros: murales pop */
.pajaros { background: var(--bg); }
.pajaros-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.pajaros h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; }
.murales { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mural { position: relative; display: block; border-radius: 14px; overflow: hidden; text-decoration: none; box-shadow: 0 4px 0 rgba(0, 0, 0, .9); border: 3px solid #141414; transition: transform .2s; }
.mural:nth-child(odd) { transform: rotate(-1.5deg); }
.mural:nth-child(even) { transform: rotate(1.2deg); }
.mural:hover { transform: rotate(0) scale(1.04); z-index: 1; }
.mural svg { display: block; width: 100%; height: auto; }
.mural span { position: absolute; left: 6px; bottom: 6px; background: #141414; color: #fff; font: 800 .74rem/1.1 var(--f-display); padding: .25rem .5rem; border-radius: 6px; }
.bird .bird-pop { display: block; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 2.5px solid #141414; box-shadow: 0 3px 0 #141414; margin-bottom: .4rem; }
.bird .bird-pop svg { width: 100%; height: 100%; display: block; }

@media (max-width: 860px) {
  .ciclo-grid, .pajaros-in { grid-template-columns: 1fr; }
  .ciclo-track { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 1.6rem; margin-top: 2rem; }
}
@media (max-width: 520px) { .murales { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pajaros .btn { align-self: flex-start; }
.ciclo-info .chips { flex-wrap: wrap; overflow: visible; }

/* ── v8 · contenido ampliado ─────────────────────────────── */
.lead-p { font-size: 1.12rem; line-height: 1.6; color: var(--ink-2); max-width: 68ch; }
.desc-intro { margin-bottom: 1.6rem; }
.vida-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; margin-bottom: 1.2rem; }
.vida-pick button { display: flex; align-items: center; gap: .7rem; text-align: left; padding: .85rem 1rem; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; min-height: 56px; transition: border-color .15s, background .15s; }
.vida-pick button svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--cielo); }
.vida-pick button:hover { border-color: var(--cielo); }
.vida-pick button[aria-selected="true"] { background: var(--cielo); color: #fff; border-color: var(--cielo); }
.vida-pick button[aria-selected="true"] svg { color: var(--sol); }
.vida-steps { list-style: none; counter-reset: v; padding: 0; margin: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); overflow: hidden; }
.vida-steps li { counter-increment: v; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border-top: 1px solid var(--line); }
.vida-steps li:first-child { border-top: 0; }
.vida-steps li::before { content: counter(v); width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; background: var(--sol-soft); color: var(--ink); }
.vida-steps h3 { font-size: 1rem; margin-bottom: .2rem; }
.vida-steps p { margin: 0; font-size: .95rem; }
@media (max-width: 560px) { .vida-steps li { grid-template-columns: 2.2rem minmax(0, 1fr); } .vida-steps li .btn { grid-column: 2; justify-self: start; } }
.admin-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; }
.link-card { position: relative; text-decoration: none; color: var(--ink); gap: .25rem; padding-right: 2.6rem; transition: border-color .15s; }
.link-card:hover { border-color: var(--cielo); }
.link-card .lc-ext { position: absolute; right: 1rem; top: 1.1rem; width: 18px; height: 18px; color: var(--cielo); }
.nat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.nat-list .nat:first-child { grid-column: 1 / -1; border-left: 5px solid var(--marisma); }
.nat p { margin: 0; }
.trails { display: flex; flex-wrap: wrap; gap: .5rem; }
.trail { display: flex; flex-direction: column; padding: .5rem .8rem; border-radius: 10px; background: var(--arroz-soft); font-size: .9rem; }
.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.tips li { display: flex; gap: .6rem; align-items: flex-start; }
.tips li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--marisma); margin-top: .2rem; }
.cine { display: grid; gap: 1.4rem; max-width: 820px; }
.cine-head { padding: 1.6rem; border-radius: var(--r-m); background: linear-gradient(135deg, #15476a, #0e2d44); color: #fff; }
.cine-head h2 { color: #fff; margin-bottom: .5rem; }
.cine-head .lead-p { color: #d7e6f2; margin: 0; }
.cine-stops { list-style: none; counter-reset: c; padding: 0; margin: 0; display: grid; gap: .6rem; }
.cine-stops li { counter-increment: c; display: grid; grid-template-columns: 2.4rem 1fr; column-gap: .9rem; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.cine-stops li::before { content: counter(c); grid-row: span 2; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--band); color: var(--sol); font-weight: 800; }
.sabor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.sabor-col { display: flex; flex-direction: column; gap: 1rem; padding: 1.4rem; border-radius: var(--r-m); background: var(--arroz-soft); }
.sabor-col:last-child { background: color-mix(in srgb, var(--flamenco) 12%, var(--surface)); }
.sabor-col h3 { font-size: 1rem; margin-bottom: .2rem; }
.sabor-col p { margin: 0; }
.recetas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; align-items: start; }
.receta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); border-top: 4px solid var(--sol); }
.receta summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; }
.receta summary::-webkit-details-marker { display: none; }
.receta summary h3 { margin-bottom: .2rem; }
.receta summary p { margin: 0; }
.receta .chev { width: 20px; height: 20px; flex-shrink: 0; transition: transform .2s; }
.receta[open] .chev { transform: rotate(180deg); }
.receta-in { display: grid; gap: 1rem; padding: 0 1.2rem 1.2rem; }
.receta-in h4 { font-size: .95rem; margin: 0 0 .4rem; color: var(--marisma); }
.receta-in ul, .receta-in ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.tierra { margin-bottom: 1.6rem; padding: 1.4rem; border-radius: var(--r-m); background: linear-gradient(135deg, var(--arroz-soft), var(--sol-soft)); }
.tierra h2 { margin-bottom: .2rem; }
.tierra-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1rem; }
.tierra-col h3 { font-size: 1rem; margin-bottom: .2rem; }
.wrap-chips { flex-wrap: wrap; overflow: visible; margin-top: .5rem; }
.wrap-chips .chip { background: var(--surface); }
.bib { border-left: 5px solid var(--cielo); max-width: 560px; }
@media (max-width: 760px) { .nat-list, .sabor, .recetas, .tierra-grid { grid-template-columns: minmax(0, 1fr); } }
.wrap-chips .chip { white-space: normal; text-align: left; height: auto; min-height: 36px; line-height: 1.2; padding-block: .4rem; max-width: 100%; }
.biz-main, .tierra, .tierra-col { min-width: 0; }
@media (max-width: 560px) { .tierra { padding: 1rem; } }

/* ── v9 · agenda ─────────────────────────────────────────── */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .9rem; }
.ev { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 1rem; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1rem; --ev: var(--cielo); }
.ev-date { width: 4rem; height: 4.4rem; border-radius: 14px; background: var(--ev); color: #fff; display: grid; place-content: center; text-align: center; line-height: 1; }
.ev-date svg { width: 28px; height: 28px; }
.ev-d { font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; }
.ev-m { font-size: .8rem; font-weight: 700; text-transform: capitalize; margin-top: .2rem; }
.ev-body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.ev-body h3 { font-size: 1.05rem; line-height: 1.25; }
.ev-body p { margin: 0; }
.ev-kind { font-size: .8rem; font-weight: 700; color: var(--ev); }
.ev-price { font-weight: 700; }
.ev-infantil { --ev: #d6336c; }
.ev-cultura { --ev: var(--band); }
.ev-viaje { --ev: var(--flamenco); }
.ev-plazo { --ev: #8a6d00; }
.ev-plazo .ev-date { background: var(--sol); color: var(--ink); }
.ev-fiesta { --ev: var(--marisma); }
.ev-merca { --ev: var(--marisma); }
.agenda { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.6rem; align-items: start; }
.agenda .ev { padding: 1.2rem; }
.merca { border-left: 5px solid var(--marisma); max-width: 640px; }
.merca p { margin: .3rem 0 0; }
@media (max-width: 900px) { .agenda { grid-template-columns: minmax(0, 1fr); } }
.ev-d.w { font-size: .82rem; font-family: var(--f-body); }

/* ── v10 · historia por capítulos ────────────────────────── */
.hist { display: flex; flex-direction: column; gap: 2rem; }
.hist-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.hist-nav button { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .45rem .9rem .45rem .45rem; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; min-height: 40px; }
.hist-nav button:hover { border-color: var(--cielo); }
.hist-nav .num { width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: var(--cielo); color: #fff; font-size: .8rem; }
.cap { scroll-margin-top: 90px; }
.cap-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; padding-bottom: 1rem; margin-bottom: 1.2rem; border-bottom: 2px solid var(--line); }
.cap-n { font-family: var(--f-display); font-weight: 800; font-size: 3.4rem; line-height: .9; color: var(--sol); -webkit-text-stroke: 1px var(--marisma); }
.cap-era { margin: 0; font-weight: 700; color: var(--marisma); font-size: .9rem; }
.cap-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: .1rem 0 .2rem; }
.cap-lead { margin: 0; color: var(--ink-2); font-size: 1.05rem; }
.cap-body { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 2rem; align-items: start; }
.cap-text p { max-width: 68ch; line-height: 1.7; margin: 0 0 1rem; }
.cap-text p:first-child::first-letter { font-family: var(--f-display); font-weight: 800; font-size: 3.1em; float: left; line-height: .85; margin: .08em .1em 0 0; color: var(--cielo); }
.cap-facts { display: flex; flex-direction: column; gap: .7rem; position: sticky; top: 90px; }
.cap-facts div { display: flex; flex-direction: column; padding: .9rem 1rem; border-radius: var(--r-m); background: var(--arroz-soft); border-left: 4px solid var(--marisma); }
.cap-facts div:nth-child(2) { background: var(--cielo-soft); border-color: var(--cielo); }
.cap-facts div:nth-child(3) { background: var(--sol-soft); border-color: var(--sol); }
.cap-facts strong { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.1; }
.cap-facts span { font-size: .9rem; color: var(--ink-2); }
@media (max-width: 760px) { .cap-body { grid-template-columns: minmax(0, 1fr); } .cap-facts { position: static; flex-direction: row; flex-wrap: wrap; } .cap-facts div { flex: 1 1 140px; } .cap-n { font-size: 2.6rem; } }
.pob-chart { display: flex; align-items: flex-end; gap: .6rem; height: 240px; margin: 1.2rem 0 .8rem; padding: 0 .2rem; border-bottom: 2px solid var(--line); }
.pob-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: .3rem; min-width: 0; }
.pob-bar { width: 100%; max-width: 64px; border-radius: 8px 8px 0 0; background: linear-gradient(var(--sol), var(--marisma)); }
.pob-v { font-size: .8rem; font-weight: 700; }
.pob-y { font-size: .85rem; color: var(--ink-2); margin-bottom: -1.7rem; }
.pob { padding-bottom: 1.2rem; }
.glosario { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; margin: 0; }
.glosario div { padding: 1rem; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.glosario dt { font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; color: var(--cielo); }
.glosario dd { margin: .3rem 0 0; color: var(--ink-2); }
.pob-chart { height: auto; border-bottom: 0; align-items: stretch; }
.pob-col { justify-content: flex-end; height: 230px; }
.pob-bar { box-shadow: 0 2px 0 var(--line); }
.pob-y { margin: .3rem 0 0; }

/* ── Stickers y GIF en la Plaza ── */
.stk { display: block; height: auto; user-select: none; -webkit-user-drag: none; }
.stk.post.st { width: 180px; }
.stk.post.gif { width: min(100%, 420px); border-radius: 14px; }
.stk.comment.st { width: 104px; }
.stk.comment.gif { width: 200px; border-radius: 12px; }
.stk.thumb { width: 100%; }
.post-stk { padding: 4px 16px 12px; display: flex; }
.post-stk .stk.gif { box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.c-stk { position: relative; display: inline-block; margin-top: 4px; }
.c-stk .c-likes { right: -8px; bottom: 2px; }
.comment .bubble.only-name { padding-bottom: 6px; }
.stk-prev { max-width: 260px; }
.stk-prev .stk { width: 100%; }
.gif-ico { font: 800 .62rem/1 var(--f-display, sans-serif); letter-spacing: .02em; color: #fff; background: #8b5cf6; padding: 3px 4px; border-radius: 4px; }
.composer-acts button .gif-ico { margin-right: .1rem; }
.composer-acts svg { width: 22px; height: 22px; }

.stk-picker { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 8px 28px rgba(0, 0, 0, .14); overflow: hidden; }
.stk-picker:not(.post) { margin: 6px 0 4px 40px; }
.stk-tabs { display: flex; gap: .3rem; align-items: center; padding: .45rem .5rem; border-bottom: 1px solid var(--line); }
.stk-tabs [role=tab] { border: 0; background: none; font-weight: 700; font-size: .85rem; color: var(--ink-2); padding: .4rem .7rem; border-radius: 999px; cursor: pointer; min-height: 34px; }
.stk-tabs [role=tab][aria-selected=true] { background: color-mix(in srgb, var(--fb-blue, #1877f2) 12%, transparent); color: var(--fb-blue, #1877f2); }
.stk-q { flex: 1; min-width: 0; border: 0; background: var(--surface-2); border-radius: 999px; padding: .4rem .8rem; min-height: 34px; color: var(--ink); font-size: .85rem; }
.stk-x { border: 0; background: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: var(--ink-2); font-size: 1rem; }
.stk-x:hover { background: var(--surface-2); }
.stk-grid { display: grid; gap: 6px; padding: 8px; max-height: 260px; overflow-y: auto; overscroll-behavior: contain; }
.stk-grid.st { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
.stk-grid.gif { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.stk-grid button { border: 0; background: none; padding: 4px; border-radius: 10px; cursor: pointer; transition: transform .12s, background .12s; }
.stk-grid button:hover, .stk-grid button:focus-visible { background: var(--surface-2); transform: scale(1.05); }
.c-input .c-stk-btn { color: var(--ink-2); }
.c-input .c-stk-btn svg { width: 20px; height: 20px; }
.c-confirm { flex-wrap: wrap; color: var(--ink); }
.c-acts .link.danger, .fb .c-acts .link.danger { color: #c62828; }
.plan li.no { color: var(--ink-2); }
.plan li.no svg { color: #c62828; }
@media (max-width: 520px) {
  .stk-picker:not(.post) { margin-left: 0; }
  .stk.post.st { width: 150px; }
}

/* ── Arranque: esqueletos mientras llegan los datos ── */
.skel { display: flex; flex-direction: column; gap: .7rem; min-height: 150px; }
.skel i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--surface-2) 0%, color-mix(in srgb, var(--surface-2) 55%, var(--surface)) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: skel 1.3s ease-in-out infinite; }
.skel i:first-child { width: 45%; height: 18px; }
.skel i:nth-child(2) { width: 90%; }
.skel i:nth-child(3) { width: 70%; }
.post-skel { min-height: 170px; padding: 16px; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel i { animation: none; } }
.loading-panel { display: flex; align-items: center; gap: .8rem; color: var(--ink-2); }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--marisma); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Portada con foto real ── */
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: 0; transition: opacity 1.1s ease; transform-origin: 60% 60%; }
.hero-photo.on { opacity: 1; animation: kenburns 40s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .hero-photo.on { animation: none; } }
.hero[data-photo], .hero[data-photo][data-phase="dia"] { color: #fff; }
.hero[data-photo]::after, .hero[data-photo][data-phase="dia"]::after { background: linear-gradient(100deg, rgba(4, 18, 24, .62), rgba(4, 18, 24, .28) 50%, rgba(4, 18, 24, .05) 75%), linear-gradient(0deg, rgba(4, 18, 24, .45), transparent 35%); }
.hero[data-photo] h1, .hero[data-photo][data-phase="dia"] h1 { text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
.hero-foot { justify-content: flex-end; }

/* ── Perfil: el nombre va debajo de la portada, no encima de su borde ── */
.profile-cover { position: relative; }
.profile-cover::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(0deg, rgba(0, 0, 0, .18), transparent); }
.profile-head { align-items: flex-start; column-gap: 1.4rem; row-gap: .6rem; }
.profile-head .p-who { margin-top: 78px; padding-bottom: 0; }
.profile-head .p-who h1 { line-height: 1.1; }
.profile-head .profile-acts { margin-top: 82px; padding-bottom: 0; }
.av-wrap { position: relative; flex-shrink: 0; }
.av-wrap .avatar.xl { box-shadow: 0 2px 12px rgba(0, 0, 0, .18); }
.av-edit { position: absolute; right: 4px; bottom: 6px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); border: 3px solid var(--surface); cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.av-edit:hover { background: var(--line); }
.av-edit svg { width: 20px; height: 20px; }
.av-row { display: flex; gap: .9rem; align-items: center; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.av-row .avatar { width: 56px; height: 56px; font-size: 1.2rem; }
label.busy { opacity: .55; pointer-events: none; }
@media (max-width: 620px) {
  .profile-head { flex-direction: column; align-items: center; text-align: center; }
  .profile-head .p-who, .profile-head .profile-acts { margin-top: 0; }
  .profile-head .p-who h1 { font-size: 1.6rem; }
  .profile-head .profile-acts { justify-content: center; }
  .av-edit { width: 34px; height: 34px; right: 0; bottom: 2px; }
}

/* ── Marca Isla Mayor ── */
.brand > span { line-height: 1.05; }
footer .brand svg { width: 34px; height: 34px; border-radius: 9px; margin-right: .2rem; }
/* Portada provisional mientras carga el JavaScript (sin pantalla vacía) */
.boot-hero { background: linear-gradient(180deg, #4a9ad2 0%, #a9cfe8 45%, #f6d7a8 62%, #7cbf3c 63%, #3f8f1f 100%); color: #fff; }
.boot-hero .wrap { justify-content: flex-start; }

/* ── Crear publicación (ventana renovada) ── */
.cz-modal.modal-box { width: min(560px, 100%); }
.fb-modal .cz { gap: 14px; }
.cz-who { display: flex; gap: 10px; align-items: center; }
.cz-who strong { display: block; font-size: .9375rem; font-weight: 600; line-height: 1.2; }
.cz-public { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: .78rem; color: var(--ink-2); background: var(--fb-btn, var(--surface-2)); border-radius: 6px; padding: 2px 8px; font-weight: 600; }
.cz-public svg { width: 13px; height: 13px; }
.cz-cats { border: 0; padding: 0; margin: 0; min-width: 0; }
.cz-cats legend { font-size: .8rem; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.cz-cat-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
.cz-cat-row::-webkit-scrollbar { display: none; }
.cz-cat { flex-shrink: 0; cursor: pointer; }
.cz-cat input { position: absolute; opacity: 0; pointer-events: none; }
.cz-cat span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); font-size: .85rem; font-weight: 600; background: var(--surface); transition: background .15s, border-color .15s; }
.cz-cat:hover span { background: var(--surface-2); }
.cz-cat input:checked + span { background: color-mix(in srgb, var(--fb-blue, #1877f2) 12%, var(--surface)); border-color: var(--fb-blue, #1877f2); color: var(--fb-blue, #1877f2); }
.cz-cat input:focus-visible + span { outline: 2px solid var(--fb-blue, #1877f2); outline-offset: 2px; }
.cz-draft { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .85rem; background: color-mix(in srgb, #f5b700 14%, var(--surface)); border-radius: 8px; padding: 8px 12px; }
.cz-draft svg { width: 16px; height: 16px; }
.cz-draft .link { margin-left: auto; font-weight: 700; }
.cz-text { border-radius: 10px; transition: background .2s; }
.fb-modal .cz-text textarea { display: block; width: 100%; min-height: 110px; font-size: 1.15rem; line-height: 1.4; transition: font-size .15s; }
.fb-modal .cz-text textarea.short { font-size: 1.5rem; }
.cz-text.on-bg { min-height: 230px; display: grid; place-items: center; padding: 20px; }
.fb-modal .cz-text.on-bg textarea { min-height: 60px; text-align: center; font-size: 1.7rem; font-weight: 700; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .25); }
.fb-modal .cz-text.on-bg textarea::placeholder { color: rgba(255, 255, 255, .85); }
.fb-modal .cz-text.on-bg.dark textarea { color: #2b2100; text-shadow: none; }
.fb-modal .cz-text.on-bg.dark textarea::placeholder { color: rgba(43, 33, 0, .65); }
.cz-bgs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cz-bgs[hidden] { display: none; }
.cz-bg { width: 30px; height: 30px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; padding: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.cz-bg.none { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); position: relative; }
.cz-bg.none::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: #c62828; transform: rotate(-45deg); }
.cz-bg.sel { border-color: var(--surface); box-shadow: 0 0 0 2px var(--fb-blue, #1877f2); }
.cz-bg-hint { margin-left: 4px; }
.cz-add { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.cz-add-t { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.cz-tools { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cz-tool { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; font: 600 .8rem var(--f-body); color: var(--ink-2); min-height: 58px; }
.cz-tool:hover { background: var(--surface-2); }
.cz-tool.sel { background: color-mix(in srgb, var(--fb-blue, #1877f2) 10%, var(--surface)); color: var(--fb-blue, #1877f2); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fb-blue, #1877f2) 40%, transparent); }
.cz-tool svg { width: 24px; height: 24px; }
.cz-tool .gif-ico { font-size: .7rem; padding: 4px 5px; }
.cz-foot { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.cz-count { text-align: right; min-height: 0; }
.cz-count:empty { display: none; }
.cz-keys { text-align: center; }
.fb-modal .cz #postBtn { height: 42px; min-height: 42px; font-size: 1rem; }
/* Publicación con fondo de color */
.post-bgtext { min-height: 260px; display: grid; place-items: center; padding: 28px 24px; text-align: center; color: #fff; }
.post-bgtext p { font-size: clamp(1.4rem, 3.6vw, 1.9rem); font-weight: 700; line-height: 1.3; text-shadow: 0 1px 6px rgba(0, 0, 0, .25); max-width: 30ch; overflow-wrap: anywhere; }
.post-bgtext.dark { color: #2b2100; }
.post-bgtext.dark p { text-shadow: none; }
.post-bgtext a { color: inherit; text-decoration: underline; }
@media (hover: none) { .cz-keys { display: none; } }
@media (max-width: 620px) {
  .modal:has(.cz-modal) { padding: 0; align-items: stretch; }
  .cz-modal.modal-box { width: 100%; height: 100dvh; max-height: 100dvh; overflow-y: auto; border-radius: 0; display: flex; flex-direction: column; }
  .cz-modal .cz { flex: 1; }
  .cz-foot { position: sticky; bottom: 0; background: var(--surface); padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); margin-top: auto; }
  .cz-tool span { font-size: .72rem; }
}
.cz > div:empty, .cz #cExtra:empty, .cz #cImg:empty, .cz #cStk:empty { display: none; }
.cz-tool .gif-ico { height: 24px; display: inline-flex; align-items: center; box-sizing: border-box; padding: 0 5px; }
.cz-cat-row { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }

/* Temas de la Plaza y de «Crear publicación»: en varias líneas, sin cortarse */
.fb-topics .chips { flex-wrap: wrap; overflow: visible; }
.fb-topics .chip { white-space: nowrap; }
.cz-cat-row { flex-wrap: wrap; overflow: visible; margin: 0; padding-inline: 0; -webkit-mask-image: none; mask-image: none; }
@media (max-width: 620px) {
  .fb-topics .chips { gap: 6px; }
  .fb-topics .chip { padding: 6px 12px; font-size: .875rem; min-height: 34px; }
  .cz-cat span { padding: 6px 10px; font-size: .82rem; }
}

/* Al abrir una pestaña desde el lateral, el contenido aparece con un suave fundido */
.group-main.flash-in > * { animation: flashIn .45s ease; }
@keyframes flashIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .group-main.flash-in > * { animation: none; } }
.group-tabs { scroll-margin-top: calc(var(--header-h, 64px) + 8px); }
/* Botones del lateral: el borde de foco solo con teclado, no al tocar */
.group-side .btn:focus:not(:focus-visible) { outline: none; box-shadow: none; }

/* ── Portada: textos legibles sobre cualquier fondo ── */
.hero, .hero[data-phase="dia"] { color: #fff; }
.hero::after, .hero[data-phase="dia"]::after {
  background:
    linear-gradient(100deg, rgba(4, 22, 28, .66) 0%, rgba(4, 22, 28, .42) 38%, rgba(4, 22, 28, .12) 62%, transparent 78%),
    linear-gradient(0deg, rgba(4, 22, 28, .5) 0%, transparent 32%);
}
.hero h1, .hero[data-phase="dia"] h1 { text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
.hero-lead { text-shadow: 0 1px 10px rgba(0, 0, 0, .55), 0 0 2px rgba(0, 0, 0, .35); font-weight: 500; }
.hero-credit { background: rgba(4, 22, 28, .5); color: #fff; padding: .3rem .75rem; border-radius: 999px; opacity: 1; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@media (max-width: 620px) {
  .hero::after, .hero[data-phase="dia"]::after { background: linear-gradient(180deg, rgba(4, 22, 28, .62) 0%, rgba(4, 22, 28, .45) 55%, rgba(4, 22, 28, .55) 100%); }
}

/* ── «Lo que más se busca»: cada tarjeta con su fondo temático ──
   Colores oscuros y saturados: el texto blanco cumple contraste AA en todos. */
.quick a.qk { position: relative; isolation: isolate; overflow: hidden; color: #fff; border: 0; min-height: 150px; padding: 1.1rem 1rem 1rem; gap: .7rem; background: var(--qk-bg); box-shadow: 0 4px 14px -6px var(--qk-shadow, rgba(0, 0, 0, .35)); transition: transform .2s, box-shadow .2s; }
.quick a.qk:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -10px var(--qk-shadow, rgba(0, 0, 0, .45)); border: 0; }
.quick a.qk:focus-visible { outline: 3px solid var(--sol, #f5b700); outline-offset: 3px; }
.quick a.qk::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, .28) 0%, transparent 60%); }
.qk-art { position: absolute; inset: 0; z-index: -2; display: block; pointer-events: none; transition: transform .4s ease; }
.qk-art svg { position: absolute; right: -6px; bottom: -4px; width: 82%; height: 92%; }
.quick a.qk:hover .qk-art { transform: scale(1.06); }
.quick a.qk .ico { width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .95); color: var(--qk-ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.qk-t { font-size: .98rem; line-height: 1.25; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); margin-top: auto; padding-right: 1.4rem; }
.qk-go { position: absolute; right: .8rem; bottom: .9rem; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); transition: background .2s, transform .2s; }
.qk-go svg { width: 16px; height: 16px; }
.quick a.qk:hover .qk-go { background: rgba(255, 255, 255, .38); transform: translateX(2px); }
.qk-calendar { --qk-bg: linear-gradient(140deg, #1e5a96 0%, #2a78bd 100%); --qk-ink: #1e5a96; --qk-shadow: rgba(30, 90, 150, .55); }
.qk-health   { --qk-bg: linear-gradient(140deg, #0d6b57 0%, #16917a 100%); --qk-ink: #0d6b57; --qk-shadow: rgba(13, 107, 87, .55); }
.qk-board    { --qk-bg: linear-gradient(140deg, #7a4a12 0%, #a5651b 100%); --qk-ink: #7a4a12; --qk-shadow: rgba(122, 74, 18, .55); }
.qk-ball     { --qk-bg: linear-gradient(140deg, #9c3417 0%, #c45227 100%); --qk-ink: #9c3417; --qk-shadow: rgba(156, 52, 23, .55); }
.qk-bus      { --qk-bg: linear-gradient(140deg, #3a3f97 0%, #5459bd 100%); --qk-ink: #3a3f97; --qk-shadow: rgba(58, 63, 151, .55); }
.qk-phone    { --qk-bg: linear-gradient(140deg, #a3264f 0%, #cc3d6c 100%); --qk-ink: #a3264f; --qk-shadow: rgba(163, 38, 79, .55); }
@media (prefers-reduced-motion: reduce) { .quick a.qk, .qk-art, .qk-go { transition: none; } .quick a.qk:hover { transform: none; } }
@media (max-width: 620px) { .quick a.qk { min-height: 128px; } .qk-t { font-size: .92rem; } }
html.a11y-contrast .quick a.qk { --qk-bg: #000; }
html.a11y-contrast .qk-art { display: none; }
/* La flecha arriba a la derecha, para que nunca tape el texto */
.qk-go { top: .9rem; bottom: auto; }
.qk-t { padding-right: 0; }

/* ═════════ Agenda renovada ═════════ */
.agenda2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.6rem; align-items: start; }
.ag-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; scroll-margin-top: calc(var(--header-h) + 16px); }
.ag-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.ag-tools { display: flex; flex-direction: column; gap: .7rem; margin: 1rem 0 .4rem; }
.ag-tools .search-mini { max-width: 420px; }
.ag-filters { flex-wrap: wrap; overflow: visible; }
.ag-n { font-size: .78em; opacity: .7; margin-left: .15rem; }
.ag-list { display: flex; flex-direction: column; gap: .9rem; }
.ag-month { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin: .9rem 0 -.2rem; font-family: var(--f-body); font-weight: 700; }
.ag-card { --k: var(--cielo); --k-soft: color-mix(in srgb, var(--k) 12%, var(--surface)); display: grid; grid-template-columns: 92px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: box-shadow .2s, border-color .2s; }
.ag-card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--k) 35%, var(--line)); }
.ag-date { background: var(--k); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem .4rem; text-align: center; gap: .1rem; }
.ag-wd { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.ag-day { font-family: var(--f-display); font-size: 2.3rem; font-weight: 800; line-height: 1; }
.ag-day.sm { font-size: 1.1rem; }
.ag-mo { font-size: .85rem; font-weight: 700; text-transform: uppercase; }
.ag-body { padding: 1rem 1.2rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.ag-tags { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.ag-kind { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 700; color: color-mix(in srgb, var(--k) 80%, var(--ink)); background: var(--k-soft); padding: .2rem .6rem; border-radius: 999px; }
.ag-kind svg { width: 14px; height: 14px; }
.ag-cd { font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.ag-cd.soon { color: var(--flamenco); }
.ag-cd.is-now { color: #fff; background: var(--ok); padding: .15rem .55rem; border-radius: 999px; }
.ag-body h3 { font-size: 1.2rem; }
.ag-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .9rem; }
.ag-meta li { display: flex; gap: .35rem; align-items: center; }
.ag-meta svg { width: 16px; height: 16px; color: var(--k); flex-shrink: 0; }
.ag-text { color: var(--ink-2); margin: 0; }
.ag-note { display: flex; gap: .5rem; align-items: flex-start; margin: 0; font-size: .9rem; background: color-mix(in srgb, var(--espiga) 12%, var(--surface)); border-radius: 10px; padding: .55rem .75rem; }
.ag-note svg { width: 18px; height: 18px; color: var(--espiga); flex-shrink: 0; margin-top: 2px; }
.ag-acts .btn.ghost { border: 1px solid var(--line); }
.ag-acts { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .2rem; }
.ag-src { font-size: .75rem; color: var(--ink-2); margin: 0; }
.ag-k-cultura { --k: #6b4bb8; } .ag-k-infantil { --k: #d9467a; } .ag-k-deporte { --k: #c45227; } .ag-k-fiesta { --k: #c8611a; }
.ag-k-viaje { --k: #1a73a8; } .ag-k-plazo { --k: #9a6b00; } .ag-k-taller { --k: #2a8a6e; } .ag-k-mayores { --k: #5a5fc4; }
.ag-k-vecinos { --k: #2f7d1e; } .ag-k-naturaleza { --k: #3f8f1f; } .ag-k-otros { --k: #1a73a8; }
.ag-pages { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: 1.2rem; flex-wrap: wrap; }
.ag-pages:empty { display: none; }
.ag-pnums { display: flex; gap: .3rem; }
.ag-pn { min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; color: var(--ink); }
.ag-pn[aria-current="page"] { background: var(--marisma); color: #fff; border-color: var(--marisma); }
.ag-week { display: flex; gap: .8rem; align-items: flex-start; }
.ag-week > div { display: flex; flex-direction: column; gap: .1rem; }
.ag-week-d { flex-shrink: 0; min-width: 72px; text-align: center; font-size: .75rem; font-weight: 700; background: var(--surface-2); border-radius: 8px; padding: .35rem .4rem; }
.ag-source { display: flex; justify-content: space-between; align-items: center; gap: .8rem; text-decoration: none; color: inherit; }
.ag-source > span { display: flex; flex-direction: column; gap: .1rem; }
.ag-source svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink-2); }
.ag-source:hover strong { color: var(--marisma); text-decoration: underline; }
@media (max-width: 960px) { .agenda2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .ag-card { grid-template-columns: 70px minmax(0, 1fr); }
  .ag-day { font-size: 1.8rem; }
  .ag-body { padding: .9rem; }
  .ag-acts .btn { flex: 1 1 auto; }
  .ag-pnums { order: -1; width: 100%; justify-content: center; }
}

/* ═════════ Trámites renovados ═════════ */
.tr-page { gap: 2.4rem; padding-block: 1.8rem 3rem; }
.tr-search { display: flex; flex-direction: column; gap: .8rem; max-width: 900px; }
.tr-search .search-big { box-shadow: var(--shadow); }
.tr-pop { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.tr-fams { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: .7rem; }
.tr-fam { --c: #1a73a8; display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; padding: .9rem 1rem; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; color: var(--ink); font: 700 .92rem/1.25 var(--f-body); position: relative; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tr-fam svg { width: 26px; height: 26px; padding: 6px; box-sizing: content-box; border-radius: 12px; background: color-mix(in srgb, var(--c) 13%, var(--surface)); color: var(--c); }
.tr-fam b { position: absolute; top: .8rem; right: .9rem; font-size: .8rem; color: var(--ink-2); }
.tr-fam:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); transform: translateY(-1px); }
.tr-fam[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, var(--surface)); box-shadow: 0 0 0 1px var(--c) inset; }
.tf-todas { --c: #2f7d1e; } .tf-padron { --c: #1e5a96; } .tf-tributos { --c: #9a6b00; } .tf-urbanismo { --c: #c45227; } .tf-social { --c: #0d6b57; }
.tf-empleo { --c: #6b4bb8; } .tf-ayto { --c: #1a73a8; } .tf-junta { --c: #2f7d1e; } .tf-estado { --c: #a3264f; }
.tr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; align-items: start; scroll-margin-top: calc(var(--header-h) + 16px); }
.tr-grid > .tr-more, .tr-grid > .tr-empty { grid-column: 1 / -1; }
.tr-card { --c: #1a73a8; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 14px; overflow: hidden; transition: box-shadow .2s; }
.tr-card[open] { box-shadow: var(--shadow); }
.tr-card summary { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1rem 1rem .9rem; cursor: pointer; list-style: none; }
.tr-card summary::-webkit-details-marker { display: none; }
.tr-card summary:hover { background: color-mix(in srgb, var(--c) 4%, var(--surface)); }
.tr-ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 13%, var(--surface)); color: var(--c); }
.tr-ico svg { width: 22px; height: 22px; }
.tr-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.tr-t strong { font-size: 1.02rem; line-height: 1.3; }
.tr-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .25rem; }
.tr-b { font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.tr-b.web { background: color-mix(in srgb, #1a73a8 12%, var(--surface)); color: #1a5f8a; }
.tr-b.cita { background: color-mix(in srgb, #c8611a 13%, var(--surface)); color: #9c4a12; }
.tr-b.clave { background: color-mix(in srgb, #6b4bb8 12%, var(--surface)); color: #563a9c; }
.tr-card .chev { width: 20px; height: 20px; flex-shrink: 0; margin-top: .6rem; transition: transform .2s; color: var(--ink-2); }
.tr-card[open] .chev { transform: rotate(180deg); }
.tr-in { padding: 0 1.1rem 1.1rem 4.3rem; display: flex; flex-direction: column; gap: .6rem; }
.tr-in h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-family: var(--f-body); }
.tr-needs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.tr-needs li { display: flex; gap: .5rem; align-items: flex-start; }
.tr-needs svg { width: 18px; height: 18px; color: var(--c); flex-shrink: 0; margin-top: 3px; }
.tr-acts { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .3rem; }
.tr-help { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.2rem; align-items: center; padding: 1.4rem 1.6rem; border-radius: var(--r-l); background: linear-gradient(120deg, color-mix(in srgb, #1a73a8 12%, var(--surface)), color-mix(in srgb, #2f7d1e 10%, var(--surface))); border: 1px solid var(--line); }
.tr-help-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: #1a73a8; color: #fff; }
.tr-help-ico svg { width: 30px; height: 30px; }
.tr-help h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.tr-help p { margin: 0; color: var(--ink-2); }
.tr-help-acts { display: flex; flex-direction: column; gap: .5rem; }
.tr-ids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tr-id { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem 1.2rem 1.2rem; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.tr-id .btn { align-self: flex-start; margin-top: auto; }
.tr-id-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--marisma); color: #fff; font-weight: 800; font-family: var(--f-display); }
@media (max-width: 900px) { .tr-grid { grid-template-columns: minmax(0, 1fr); } .tr-help { grid-template-columns: auto minmax(0, 1fr); } .tr-help-acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; } .tr-ids { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .tr-fams { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tr-in { padding-left: 1rem; } .tr-help { grid-template-columns: minmax(0, 1fr); } .tr-help-ico { display: none; } }

/* ═════════ Negocios renovados ═════════ */
body .biz-head.bh2 { background: linear-gradient(135deg, #1f5a2a 0%, #2f7d1e 55%, #6aa531 100%); color: #fff; border: 0; padding-block: 2.4rem 2rem; position: relative; overflow: hidden; }
.bh2::after { content: ""; position: absolute; inset: auto 0 0; height: 14px; background: var(--tablas) repeat-x bottom / auto 100%; opacity: .7; }
.bh2-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.bh2-kicker { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .85rem; background: rgba(255, 255, 255, .16); padding: .25rem .7rem; border-radius: 999px; }
.bh2-kicker svg { width: 16px; height: 16px; }
.bh2 h1 { color: #fff; margin: .6rem 0 .4rem; }
.bh2 p { max-width: 60ch; color: rgba(255, 255, 255, .9); margin: 0 0 1.1rem; }
.bh2 .search-big { max-width: 640px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.bh2-stats { display: grid; grid-template-columns: repeat(3, auto); gap: .6rem 1.4rem; align-items: end; }
.bh2-stats > div { display: flex; flex-direction: column; }
.bh2-stats b { font-family: var(--f-display); font-size: 1.8rem; line-height: 1; }
.bh2-stats span { font-size: .8rem; opacity: .85; }
.bh2-stats .btn { grid-column: 1 / -1; }
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.bz { --c: #64748b; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; min-width: 0; }
.bz:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 35%, var(--line)); }
.bz-comer { --c: #c45227; } .bz-dormir { --c: #6b4bb8; } .bz-tiendas { --c: #1a73a8; } .bz-campo { --c: #2f7d1e; } .bz-industria { --c: #5a5fc4; }
.bz-talleres { --c: #4b5563; } .bz-obras { --c: #9a6b00; } .bz-servicios { --c: #0d6b57; } .bz-salud { --c: #a3264f; } .bz-ocio { --c: #d9467a; } .bz-otros { --c: #64748b; }
.bz-cover { position: relative; display: block; width: 100%; height: 74px; border: 0; padding: 0; cursor: pointer; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 60%, #fff)); overflow: hidden; }
.bz.is-paid .bz-cover { height: 110px; }
.bz.is-prem .bz-cover { height: 160px; }
.bz-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.bz:hover .bz-cover img { transform: scale(1.04); }
.bz-pattern { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .9); background-image: radial-gradient(rgba(255, 255, 255, .14) 1.5px, transparent 1.6px); background-size: 14px 14px; }
.bz-pattern svg { width: 34px; height: 34px; }
.bz-tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 800; padding: .25rem .6rem; border-radius: 999px; background: #fff; color: #333; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.bz-cover .bz-tag { position: absolute; top: .6rem; left: .6rem; }
.bz-tag svg { width: 13px; height: 13px; }
.bz-tag-prem { background: linear-gradient(135deg, #f5b700, #e08a00); color: #2b1d00; }
.bz-tag-ver { background: #fff; color: #1e6b2a; }
.bz-tag-own { background: #fff; color: #1a5f8a; }
.bz-tag.inline { box-shadow: none; vertical-align: 1px; }
.bz.is-prem { border-color: color-mix(in srgb, #f5b700 55%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, #f5b700 40%, transparent), 0 6px 20px -8px rgba(224, 138, 0, .45); }
.bz-body { padding: .9rem 1rem .4rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; min-width: 0; }
.bz-cat { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 700; color: var(--c, var(--ink-2)); text-transform: uppercase; letter-spacing: .04em; }
.bz-cat svg { width: 14px; height: 14px; }
.bz-body h3 { font-size: 1.08rem; line-height: 1.25; }
.bz-body h3 .biz-open { text-align: left; }
.bz-desc { margin: 0; color: var(--ink-2); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bz-offer { display: flex; gap: .4rem; align-items: flex-start; margin: .1rem 0 0; font-size: .85rem; font-weight: 700; color: #8a5a00; background: color-mix(in srgb, #f5b700 16%, var(--surface)); padding: .4rem .6rem; border-radius: 8px; }
.bz-offer svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.bz-info { list-style: none; margin: .2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .2rem; font-size: .84rem; color: var(--ink-2); }
.bz-info li { display: flex; gap: .35rem; align-items: flex-start; }
.bz-info svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; }
.bz-acts { display: flex; gap: .35rem; padding: .7rem 1rem 1rem; flex-wrap: wrap; align-items: center; }
.bz-acts .btn.ghost { margin-left: auto; padding-inline: .5rem; }
.bz-acts .btn.ghost svg { width: 16px; height: 16px; }
:root[data-theme="dark"] .bz-offer { color: #f5c94c; }
/* Carrusel Escaparate */
.showcase { margin-bottom: 1.4rem; }
.showcase-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: .7rem; }
.showcase-head p { margin: .3rem 0 0; }
.showcase-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; scrollbar-width: thin; }
.sc-card { scroll-snap-align: start; border-radius: var(--r-m); overflow: hidden; background: var(--surface); border: 1px solid color-mix(in srgb, #f5b700 50%, var(--line)); display: flex; flex-direction: column; }
.sc-img { border: 0; padding: 0; height: 150px; cursor: pointer; display: block; }
.sc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-body { padding: .8rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; }
/* Ficha Escaparate */
.prem-modal.modal-box { width: min(920px, 100%); padding: 0; }
.prem-modal > .close { position: absolute; right: 12px; top: 10px; z-index: 3; width: 40px; height: 40px; background: rgba(255, 255, 255, .95); border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.prem-modal.modal-box { gap: 0; }
.prem { display: flex; flex-direction: column; }
.prem-ribbon { display: flex; gap: .5rem; align-items: center; padding: .6rem 3.4rem .6rem 1.2rem; background: #fff4cc; color: #6b4a00; font-size: .85rem; font-weight: 700; }
.prem-ribbon svg { width: 18px; height: 18px; flex-shrink: 0; }
.prem-cover { position: relative; height: 300px; }
.prem-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prem-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .05) 60%); }
.prem-title { position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.2rem; display: flex; gap: 1rem; align-items: flex-end; color: #fff; }
.prem-title h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); color: #fff; margin: .35rem 0 .15rem; text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
.prem-title p { margin: 0; opacity: .92; }
.prem-logo { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: #fff; color: var(--c); flex-shrink: 0; box-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
.prem-logo svg { width: 38px; height: 38px; }
.prem-acts { display: flex; gap: .5rem; flex-wrap: wrap; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); }
.prem-offer { display: flex; gap: .8rem; align-items: center; margin: 1.2rem 1.4rem 0; padding: 1rem 1.2rem; border-radius: 14px; background: linear-gradient(120deg, #fff4cc, #ffe39a); color: #4d3500; }
.prem-offer svg { width: 28px; height: 28px; flex-shrink: 0; }
.prem-offer p { margin: .1rem 0 0; }
.prem-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1.4rem; padding: 1.2rem 1.4rem 1.6rem; }
.prem-grid h3, .prem-side h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.prem-side { background: var(--surface-2); border-radius: 14px; padding: 1rem; align-self: start; }
.prem-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.prem-menu li { display: flex; align-items: baseline; gap: .5rem; }
.prem-menu i { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); }
.prem-menu b { white-space: nowrap; }
.prem-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.prem-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.bzd-info { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.bzd-info li { display: flex; gap: .55rem; align-items: flex-start; overflow-wrap: anywhere; }
.bzd-info svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--ink-2); }
.bzd-head { --c: #64748b; display: flex; gap: 1rem; align-items: center; }
.bzd-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--c); color: #fff; flex-shrink: 0; }
.bzd-ico svg { width: 28px; height: 28px; }
.bzd-head .modal-title { margin: 0; }
.bzd-up { display: flex; gap: .7rem; align-items: center; background: color-mix(in srgb, #f5b700 12%, var(--surface)); border-radius: 12px; padding: .7rem .9rem; }
.bzd-up > span svg { width: 22px; height: 22px; color: #c08400; }
.bzd-up p { margin: 0; }
/* Bloque de ejemplo en los planes */
.ex-block { margin-top: 2.4rem; padding: 1.6rem; border-radius: var(--r-l); background: linear-gradient(160deg, color-mix(in srgb, #f5b700 10%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, #f5b700 35%, var(--line)); }
.ex-head h2 { margin: .5rem 0 .2rem; }
.ex-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem; margin-top: 1.2rem; align-items: start; }
.ex-col { display: flex; flex-direction: column; gap: .7rem; }
.ex-col h3 { font-size: .9rem; color: var(--ink-2); font-family: var(--f-body); }
.ex-mini { display: flex; gap: .7rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.ex-portada img { width: 110px; object-fit: cover; }
.ex-portada > div, .ex-plaza { display: flex; flex-direction: column; gap: .3rem; padding: .8rem; }
.ex-plaza { align-items: flex-start; }
.ex-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.ex-list li { display: flex; gap: .45rem; }
.ex-list svg { width: 18px; height: 18px; color: var(--marisma); flex-shrink: 0; margin-top: 3px; }
@media (max-width: 1000px) { .ex-grid { grid-template-columns: minmax(0, 1fr); } .bh2-in { grid-template-columns: minmax(0, 1fr); } .bh2-stats { grid-template-columns: repeat(3, auto); justify-content: start; } }
@media (max-width: 700px) { .prem-grid { grid-template-columns: minmax(0, 1fr); } .prem-cover { height: 220px; } .prem-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prem-logo { width: 56px; height: 56px; } }
@media (max-width: 560px) { .biz-grid { grid-template-columns: minmax(0, 1fr); } .bh2-stats .btn { width: 100%; } }

/* ═════════ Comer y dormir renovado ═════════ */
.cm-nav { position: sticky; top: var(--header-h); z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.cm-nav .wrap { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-block: .6rem; }
.cm-nav .wrap::-webkit-scrollbar { display: none; }
.cm-nav a { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; padding: .45rem .9rem; border-radius: 999px; background: var(--surface-2); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .88rem; }
.cm-nav a:hover { background: color-mix(in srgb, var(--flamenco) 14%, var(--surface)); color: var(--flamenco); }
.cm-nav svg { width: 16px; height: 16px; }
.cm-page { gap: 3rem; padding-block: 2rem 3rem; }
.cm-sec { scroll-margin-top: calc(var(--header-h) + 70px); }
.cm-sabor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.cm-flavor { border-radius: var(--r-l); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.cm-arroz { background: linear-gradient(160deg, #eaf6dc, #f8fbef); color: #1f3d12; }
.cm-cangrejo { background: linear-gradient(160deg, #fde3d9, #fff6f1); color: #4a1a0c; }
:root[data-theme="dark"] .cm-arroz { background: linear-gradient(160deg, #1d2b14, #182014); color: #dbeec9; }
:root[data-theme="dark"] .cm-cangrejo { background: linear-gradient(160deg, #331a12, #241510); color: #f6d7cb; }
.cm-flavor-head { display: flex; gap: .9rem; align-items: center; }
.cm-flavor-head > span { font-size: 2.6rem; width: 68px; height: 68px; display: grid; place-items: center; background: rgba(255, 255, 255, .7); border-radius: 20px; }
.cm-flavor-head h2 { color: inherit; }
.cm-flavor-head p { margin: .1rem 0 0; opacity: .8; }
.cm-fact { background: rgba(255, 255, 255, .6); border-radius: 14px; padding: .9rem 1rem; }
:root[data-theme="dark"] .cm-fact, :root[data-theme="dark"] .cm-flavor-head > span { background: rgba(255, 255, 255, .06); }
.cm-fact h3 { font-size: 1.02rem; margin-bottom: .25rem; color: inherit; }
.cm-fact p { margin: 0; opacity: .88; }
.cm-recipes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; align-items: start; }
.cm-recipe { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.cm-recipe[open] { grid-column: 1 / -1; box-shadow: var(--shadow); }
.cm-recipe summary { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.1rem; cursor: pointer; list-style: none; }
.cm-recipe summary::-webkit-details-marker { display: none; }
.cm-r-emo { font-size: 2rem; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: color-mix(in srgb, var(--flamenco) 12%, var(--surface)); flex-shrink: 0; }
.cm-r-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.cm-r-t h3 { font-size: 1.1rem; }
.cm-r-meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .82rem; color: var(--ink-2); }
.cm-r-meta span { display: inline-flex; gap: .3rem; align-items: center; }
.cm-r-meta svg { width: 14px; height: 14px; }
.cm-recipe .chev { width: 20px; height: 20px; color: var(--ink-2); transition: transform .2s; flex-shrink: 0; }
.cm-recipe[open] .chev { transform: rotate(180deg); }
.cm-r-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 1.6rem; padding: 0 1.3rem 1.4rem; }
.cm-r-in h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--flamenco); margin-bottom: .5rem; font-family: var(--f-body); }
.cm-r-in ul, .cm-r-in ol { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
.cm-dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.cm-dish { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.cm-dish-emo { font-size: 1.7rem; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); flex-shrink: 0; }
.cm-dish h3 { font-size: 1rem; margin-bottom: .2rem; }
.cm-dish p { margin: 0; }
.cm-near { display: flex; gap: .8rem; padding: .9rem 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.cm-near-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--cielo) 12%, var(--surface)); color: var(--cielo); flex-shrink: 0; }
.cm-near-ico svg { width: 20px; height: 20px; }
.cm-near h3 { font-size: 1rem; }
.cm-near p { margin: .15rem 0 0; }
.cm-cta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.3rem 1.5rem; border-radius: var(--r-l); background: linear-gradient(120deg, #c45227, #e0882f); color: #fff; }
.cm-cta h3 { color: #fff; }
.cm-cta p { margin: .2rem 0 0; opacity: .92; }
@media (max-width: 860px) { .cm-sabor, .cm-recipes, .cm-r-in { grid-template-columns: minmax(0, 1fr); } }
.bz-acts .btn.ghost { border: 0; background: none; color: var(--c); padding-inline: .3rem; }
.bz-acts .btn.ghost:hover { text-decoration: underline; }

/* ═════════ Teléfonos renovados ═════════ */
.tl-hero { background: linear-gradient(135deg, #0f3550 0%, #1a73a8 100%); color: #fff; padding-block: 2.2rem 2rem; }
.tl-hero h1 { color: #fff; }
.tl-hero p { margin: .4rem 0 1.4rem; opacity: .9; max-width: 60ch; }
.tl-sos { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: .7rem; }
.tl-sos-btn { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: .7rem; align-items: center; padding: .9rem 1rem; border-radius: 18px; background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .2); transition: background .15s, transform .15s; }
.tl-sos-btn:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.tl-sos-btn.main { background: #d92d20; border-color: #d92d20; box-shadow: 0 8px 24px -8px rgba(217, 45, 32, .8); }
.tl-sos-btn.main:hover { background: #c0251a; }
.tl-sos-ico { grid-row: 1 / 4; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.tl-sos-ico svg { width: 22px; height: 22px; }
.tl-sos-n { font-family: var(--f-display); font-size: 1.8rem; font-weight: 800; line-height: 1; }
.tl-sos-btn.main .tl-sos-n { font-size: 2.4rem; }
.tl-sos-l { font-weight: 700; font-size: .88rem; }
.tl-sos-d { font-size: .74rem; opacity: .8; }
.tl-page { gap: 2.2rem; padding-block: 1.8rem 3rem; }
.tl-search { display: flex; flex-direction: column; gap: .7rem; }
.tl-search .chips { flex-wrap: wrap; overflow: visible; }
.tl-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; align-items: start; }
.tl-group { --c: #1a73a8; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 16px); }
.tl-group[hidden] { display: none; }
.tl-group header, .tl-fac header, .tl-p-head { display: flex; align-items: center; gap: .7rem; }
.tl-group header { padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--c) 6%, var(--surface)); }
.tl-group header h2 { font-size: 1.15rem; flex: 1; }
.tl-g-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--c, #1a73a8); color: #fff; flex-shrink: 0; }
.tl-g-ico svg { width: 20px; height: 20px; }
.tg-sos { --c: #d92d20; } .tg-salud { --c: #0d6b57; } .tg-ayto { --c: #1a73a8; } .tg-edu { --c: #6b4bb8; } .tg-apoyo { --c: #a3264f; }
.tl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .6rem; align-items: center; padding: .7rem 1.1rem; border-bottom: 1px solid var(--line); }
.tl-row:last-child { border-bottom: 0; }
.tl-row[hidden] { display: none; }
.tl-info { display: flex; flex-direction: column; min-width: 0; }
.tl-name { font-weight: 700; }
.tl-num { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; font-size: 1.05rem; color: var(--c); text-decoration: none; padding: .4rem .7rem; border-radius: 10px; background: color-mix(in srgb, var(--c) 9%, var(--surface)); white-space: nowrap; }
.tl-num:hover { background: color-mix(in srgb, var(--c) 16%, var(--surface)); }
.tl-num svg { width: 16px; height: 16px; }
.tl-p-head { margin-bottom: .8rem; }
.tl-bib, .tl-merca { --c: #6b4bb8; display: flex; flex-direction: column; gap: .5rem; }
.tl-merca { --c: #c45227; }
.tl-hours { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.tl-hours > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .8rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
.tl-hours > div:last-child { border-bottom: 0; }
.tl-hours > div.today { background: color-mix(in srgb, var(--c) 10%, var(--surface)); font-weight: 700; }
.tl-today { font-size: .7rem; background: var(--c); color: #fff; padding: .1rem .4rem; border-radius: 6px; vertical-align: 1px; }
.tl-facs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; align-items: start; }
.tl-fac { --c: #2f7d1e; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1rem; }
.tl-fac header { margin-bottom: .6rem; }
.tl-fac h3 { font-size: 1.05rem; }
.tl-fac-list { display: flex; flex-direction: column; }
.tl-fac-list a { display: flex; justify-content: space-between; gap: .8rem; padding: .5rem .2rem; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .92rem; }
.tl-fac-list a:hover span:first-child { color: var(--marisma); text-decoration: underline; }
.tl-fac-list .muted { white-space: nowrap; }
.tl-asocs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.tl-asoc { display: flex; flex-direction: column; gap: .45rem; padding: 1.1rem; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.tl-asoc p { margin: 0; }
@media (max-width: 960px) { .tl-sos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tl-sos-btn.main { grid-column: 1 / -1; } .tl-groups { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .tl-row { grid-template-columns: minmax(0, 1fr) auto; } .tl-row .icon-btn { display: none; } .tl-sos-n { font-size: 1.5rem; } }
.tl-search .chip { text-decoration: none; }
@media (max-width: 620px) {
  .tl-sos { gap: .5rem; }
  .tl-sos-btn { padding: .7rem .8rem; grid-template-columns: 1fr; }
  .tl-sos-ico, .tl-sos-d { display: none; }
  .tl-sos-btn.main { grid-template-columns: auto 1fr; }
  .tl-sos-btn.main .tl-sos-ico { display: grid; }
  .tl-sos-btn.main .tl-sos-n { font-size: 2rem; }
  .tl-sos-n { font-size: 1.5rem; }
  .tl-sos-l { font-size: .8rem; line-height: 1.2; }
  .tl-hero { padding-block: 1.6rem 1.4rem; }
  .tl-hero p { margin-bottom: 1rem; }
}
.sponsor .sp-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-top: .6rem; display: block; }
#homeShow:not(:empty) { margin-bottom: 1.4rem; }

/* ═════════ Panel de administración ampliado ═════════ */
.kpis + .kpis { margin-top: -.4rem; }
button.kpi { text-align: left; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
button.kpi:hover { border-color: var(--marisma); box-shadow: var(--shadow); transform: translateY(-1px); }
.kpi.money .v { color: #b07400; }
.kpi.warn .v { color: var(--warn); }
.kpis.k3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vbars.v30 { grid-template-columns: repeat(30, 1fr); gap: 3px; }
.vbars.v30 .vb-n { font-size: .62rem; }
.c-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: start; padding: .9rem 1rem; }
.c-row p { margin: .25rem 0 0; overflow-wrap: anywhere; }
.c-row-acts { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.btn.danger { color: var(--bad); }
.lead-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem; }
.lead { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 12px; background: var(--surface-2); }
.export-list { display: flex; flex-direction: column; gap: .7rem; }
.panel.export { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.panel.export p { margin: .2rem 0 0; }
.ab-photos { border: 1px solid var(--line); border-radius: 12px; padding: .8rem; display: flex; flex-direction: column; gap: .6rem; margin: 0; }
.ab-photos legend { font-weight: 700; font-size: .9rem; padding: 0 .3rem; }
.ab-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.ab-thumb { position: relative; width: 96px; height: 72px; border-radius: 10px; overflow: hidden; }
.ab-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ab-thumb b { position: absolute; left: 4px; bottom: 4px; font-size: .62rem; background: #f5b700; color: #2b1d00; padding: 1px 5px; border-radius: 5px; }
.ab-thumb .icon-btn { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; background: rgba(255, 255, 255, .92); border: 0; }
.ab-thumb .icon-btn svg { width: 14px; height: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1100px) { .kpis.k3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .c-row { grid-template-columns: auto minmax(0, 1fr); } .c-row-acts { grid-column: 1 / -1; justify-content: flex-start; } .vbars.v30 .vb-n { display: none; } .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.showcase-row { grid-auto-columns: minmax(260px, 300px); }
.lead .btn { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 560px) {
  .tr-fam { flex-direction: row; align-items: center; padding: .6rem .7rem; gap: .5rem; font-size: .84rem; }
  .tr-fam svg { width: 20px; height: 20px; padding: 5px; }
  .tr-fam b { position: static; margin-left: auto; }
}

/* ═════════ Accesibilidad: contraste (auditoría) ═════════ */
:root { --flamenco-ink: #a3480f; }
.btn.wa-btn, .wa-btn { background: #0f7a3f; color: #fff; border-color: #0f7a3f; }
.fb .chip[aria-pressed="true"] { color: #155f8c; }
.event-info .small[style*="flamenco"], .event-info > span.small:first-child { color: var(--flamenco-ink) !important; }
.ag-cd.soon, .cm-r-in h4 { color: var(--flamenco-ink); }
.tag.arroz { color: #2f6b14; }
.cap-n { color: #9a6b00; -webkit-text-stroke: 0; }
.ev-plazo { --ev: #7a5f00; }

/* Modo oscuro (elegido a mano) */
:root[data-theme="dark"] { --flamenco-ink: #f2a160; }
:root[data-theme="dark"] .tag.flamenco { background: #3a3010; color: #f5c94c; }
:root[data-theme="dark"] .tag.arroz { color: #9cd067; }
:root[data-theme="dark"] .cap-n { color: #f5c94c; }
:root[data-theme="dark"] .dateblock b { color: var(--ink); }
:root[data-theme="dark"] .event-box .dateblock b { color: var(--ink); }
:root[data-theme="dark"] .fbb.blue, :root[data-theme="dark"] .fb .btn:not(.alt):not(.wa-btn), :root[data-theme="dark"] .fb .btn.hot, :root[data-theme="dark"] .sponsor .btn, :root[data-theme="dark"] .fb-modal .btn:not(.alt) { color: #06121b; }
:root[data-theme="dark"] .vida-pick button[aria-selected="true"] { color: #06121b; }
:root[data-theme="dark"] .tr-id-n, :root[data-theme="dark"] .ag-pn[aria-current="page"], :root[data-theme="dark"] .ag-cd.is-now { color: #0d1a07; }
:root[data-theme="dark"] .ev-infantil { --ev: #ff8fb4; } :root[data-theme="dark"] .ev-plazo { --ev: #f5c94c; } :root[data-theme="dark"] .ev-cultura { --ev: #8fc3f0; }
:root[data-theme="dark"] .tr-b.web { background: #12283a; color: #8fc3f0; } :root[data-theme="dark"] .tr-b.cita { background: #3a2414; color: #f2b27c; } :root[data-theme="dark"] .tr-b.clave { background: #251c3d; color: #c1adf5; }
:root[data-theme="dark"] .bz-cat, :root[data-theme="dark"] .bz-acts .btn.ghost, :root[data-theme="dark"] .tl-num, :root[data-theme="dark"] .ag-kind, :root[data-theme="dark"] .ag-meta svg, :root[data-theme="dark"] .tr-ico, :root[data-theme="dark"] .tr-needs svg, :root[data-theme="dark"] .tr-fam svg { color: color-mix(in srgb, var(--c, var(--k)) 50%, #fff); }
:root[data-theme="dark"] .tr-ico, :root[data-theme="dark"] .tr-fam svg { background: color-mix(in srgb, var(--c) 22%, var(--surface)); }
:root[data-theme="dark"] .ag-kind { color: color-mix(in srgb, var(--k) 50%, #fff); background: color-mix(in srgb, var(--k) 22%, var(--surface)); }
:root[data-theme="dark"] .tl-num { background: color-mix(in srgb, var(--c) 20%, var(--surface)); }
:root[data-theme="dark"] .bz-offer { color: #f5c94c; background: #3a3010; }
:root[data-theme="dark"] .prem-offer, :root[data-theme="dark"] .prem-ribbon { color: #2b1d00; }
:root[data-theme="dark"] .cm-arroz { background: linear-gradient(160deg, #1d2b14, #182014); color: #dbeec9; }
:root[data-theme="dark"] .cm-cangrejo { background: linear-gradient(160deg, #331a12, #241510); color: #f6d7cb; }
:root[data-theme="dark"] .cm-fact, :root[data-theme="dark"] .cm-flavor-head > span { background: rgba(255, 255, 255, .06); }
:root[data-theme="dark"] .tr-help { background: linear-gradient(120deg, #12283a, #16281a); }
:root[data-theme="dark"] .ex-block { background: linear-gradient(160deg, #2a2410, var(--surface)); }
:root[data-theme="dark"] .ag-note { background: #2a2410; }
:root[data-theme="dark"] .ag-note svg { color: #f5c94c; }
:root[data-theme="dark"] .lead { background: var(--surface-2); }
:root[data-theme="dark"] .kpi.money .v { color: #f5c94c; }
/* Modo oscuro (del sistema) */
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) { --flamenco-ink: #f2a160; }
:root:not([data-theme="light"]) .tag.flamenco { background: #3a3010; color: #f5c94c; }
:root:not([data-theme="light"]) .tag.arroz { color: #9cd067; }
:root:not([data-theme="light"]) .cap-n { color: #f5c94c; }
:root:not([data-theme="light"]) .dateblock b { color: var(--ink); }
:root:not([data-theme="light"]) .event-box .dateblock b { color: var(--ink); }
:root:not([data-theme="light"]) .fbb.blue, :root:not([data-theme="light"]) .fb .btn:not(.alt):not(.wa-btn), :root:not([data-theme="light"]) .fb .btn.hot, :root:not([data-theme="light"]) .sponsor .btn, :root:not([data-theme="light"]) .fb-modal .btn:not(.alt) { color: #06121b; }
:root:not([data-theme="light"]) .vida-pick button[aria-selected="true"] { color: #06121b; }
:root:not([data-theme="light"]) .tr-id-n, :root:not([data-theme="light"]) .ag-pn[aria-current="page"], :root:not([data-theme="light"]) .ag-cd.is-now { color: #0d1a07; }
:root:not([data-theme="light"]) .ev-infantil { --ev: #ff8fb4; } :root:not([data-theme="light"]) .ev-plazo { --ev: #f5c94c; } :root:not([data-theme="light"]) .ev-cultura { --ev: #8fc3f0; }
:root:not([data-theme="light"]) .tr-b.web { background: #12283a; color: #8fc3f0; } :root:not([data-theme="light"]) .tr-b.cita { background: #3a2414; color: #f2b27c; } :root:not([data-theme="light"]) .tr-b.clave { background: #251c3d; color: #c1adf5; }
:root:not([data-theme="light"]) .bz-cat, :root:not([data-theme="light"]) .bz-acts .btn.ghost, :root:not([data-theme="light"]) .tl-num, :root:not([data-theme="light"]) .ag-kind, :root:not([data-theme="light"]) .ag-meta svg, :root:not([data-theme="light"]) .tr-ico, :root:not([data-theme="light"]) .tr-needs svg, :root:not([data-theme="light"]) .tr-fam svg { color: color-mix(in srgb, var(--c, var(--k)) 50%, #fff); }
:root:not([data-theme="light"]) .tr-ico, :root:not([data-theme="light"]) .tr-fam svg { background: color-mix(in srgb, var(--c) 22%, var(--surface)); }
:root:not([data-theme="light"]) .ag-kind { color: color-mix(in srgb, var(--k) 50%, #fff); background: color-mix(in srgb, var(--k) 22%, var(--surface)); }
:root:not([data-theme="light"]) .tl-num { background: color-mix(in srgb, var(--c) 20%, var(--surface)); }
:root:not([data-theme="light"]) .bz-offer { color: #f5c94c; background: #3a3010; }
:root:not([data-theme="light"]) .prem-offer, :root:not([data-theme="light"]) .prem-ribbon { color: #2b1d00; }
:root:not([data-theme="light"]) .cm-arroz { background: linear-gradient(160deg, #1d2b14, #182014); color: #dbeec9; }
:root:not([data-theme="light"]) .cm-cangrejo { background: linear-gradient(160deg, #331a12, #241510); color: #f6d7cb; }
:root:not([data-theme="light"]) .cm-fact, :root:not([data-theme="light"]) .cm-flavor-head > span { background: rgba(255, 255, 255, .06); }
:root:not([data-theme="light"]) .tr-help { background: linear-gradient(120deg, #12283a, #16281a); }
:root:not([data-theme="light"]) .ex-block { background: linear-gradient(160deg, #2a2410, var(--surface)); }
:root:not([data-theme="light"]) .ag-note { background: #2a2410; }
:root:not([data-theme="light"]) .ag-note svg { color: #f5c94c; }
:root:not([data-theme="light"]) .lead { background: var(--surface-2); }
:root:not([data-theme="light"]) .kpi.money .v { color: #f5c94c; }
}

/* Encabezados con el aspecto de un subtítulo pero en el nivel correcto */
.h3s, .admin-main h2.ph, .panel > h2.h3s { font-size: 1.18rem; font-weight: 700; }
.fb-topics-head h2.h3s { font-size: 1.0625rem; }
.tr-h2 { font-size: 1.15rem; margin-bottom: .7rem; }
.tr-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 700; margin: 0; }
/* Objetivos táctiles de al menos 24 px (WCAG 2.2) */
.meta-cat, .stat-r .link, .c-acts .link, .post-head .link, .group-main .row > .link { min-height: 28px; display: inline-flex; align-items: center; padding-block: 2px; }
.biz-open { min-height: 28px; padding-block: 2px; }
.cz-cat { position: relative; }
.cz-cat input { inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
body.has-modal { overflow: hidden; }

/* ═════════ Sencillez: menú «Más», volver arriba, accesibilidad en el móvil ═════════ */
.sheet-modal { align-items: end; padding: 0; }
.modal-box.sheet-box { width: 100%; max-width: 640px; border-radius: var(--r-l) var(--r-l) 0 0; padding: 1.1rem 16px calc(1.2rem + env(safe-area-inset-bottom, 0px)); animation: up .28s cubic-bezier(.2, .8, .2, 1); gap: .9rem; }
.sheet-box > .close { position: absolute; right: 12px; top: 12px; }
.sheet-title { font-size: 1.25rem; padding-right: 3rem; }
.sheet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.sheet-grid a, .sheet-grid button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; min-height: 86px; padding: .8rem .4rem; border-radius: 16px; background: var(--surface-2); border: 0; color: var(--ink); text-decoration: none; font: 700 .86rem/1.2 var(--f-body); text-align: center; cursor: pointer; }
.sheet-grid svg { width: 26px; height: 26px; color: var(--marisma); }
.sheet-grid [aria-current="page"] { outline: 2px solid var(--marisma); background: color-mix(in srgb, var(--marisma) 10%, var(--surface)); }
.sheet-legal { display: flex; flex-wrap: wrap; gap: .3rem 1rem; justify-content: center; font-size: .82rem; }
.sheet-legal a { color: var(--ink-2); padding: .3rem 0; }
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 80; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow); cursor: pointer; }
.to-top svg { width: 22px; height: 22px; transform: rotate(180deg); }
.to-top[hidden] { display: none; }
.ev-link { color: inherit; text-decoration: none; }
.ev-link:hover { text-decoration: underline; }
.ev[class*="ag-k-"] .ev-date { background: var(--k); color: #fff; }
.ev[class*="ag-k-"] .ev-kind { color: color-mix(in srgb, var(--k) 78%, #000); }
:root[data-theme="dark"] .ev[class*="ag-k-"] .ev-kind { color: color-mix(in srgb, var(--k) 50%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ev[class*="ag-k-"] .ev-kind { color: color-mix(in srgb, var(--k) 50%, #fff); } }
@media (max-width: 760px) {
  .to-top { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; }
}

/* ═════════ Cabecera común de páginas, Normas ═════════ */
.page-hero { --c1: #0f3550; --c2: #1a73a8; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; padding-block: 2.2rem 2rem; }
.page-hero .wrap { display: flex; gap: 1.2rem; align-items: flex-start; }
.page-hero h1 { color: #fff; }
.page-hero p { margin: .5rem 0 0; max-width: 64ch; opacity: .92; }
.ph-ico { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); flex-shrink: 0; margin-top: .3rem; }
.ph-ico svg { width: 32px; height: 32px; }
.ph-normas { --c1: #1f5a2a; --c2: #2f7d1e; }
.ph-datos { --c1: #3a2a7a; --c2: #6b4bb8; }
.nm-page { gap: 1.6rem; padding-block: 1.8rem 3rem; max-width: 980px; }
.nm-sum { display: flex; gap: .7rem; align-items: flex-start; margin: 0; padding: 1rem 1.2rem; border-radius: 16px; background: color-mix(in srgb, var(--marisma) 10%, var(--surface)); font-size: 1.05rem; }
.nm-sum svg { width: 24px; height: 24px; color: var(--marisma); flex-shrink: 0; margin-top: 2px; }
.nm-rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.nm-rule { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.nm-rule p { margin: .3rem 0 0; }
.nm-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--marisma) 12%, var(--surface)); color: var(--marisma); flex-shrink: 0; }
.nm-ico svg { width: 22px; height: 22px; }
.nm-n { color: var(--marisma); }
footer .foot > div:nth-child(2) { columns: 2; column-gap: 1.6rem; }
footer .foot > div:nth-child(2) h4 { column-span: all; }
footer .foot > div:nth-child(2) a { display: block; break-inside: avoid; }
@media (max-width: 700px) { .nm-rules { grid-template-columns: minmax(0, 1fr); } .page-hero .wrap { flex-direction: column; gap: .8rem; } .ph-ico { width: 48px; height: 48px; } }

/* Ajustes finales de contraste en modo oscuro (2.ª auditoría) */
:root[data-theme="dark"] .fb .chip[aria-pressed="true"] { color: #8fc3f0; }
:root[data-theme="dark"] .hist-nav button .num, :root[data-theme="dark"] .hist-nav .num { color: #06121b; }
:root[data-theme="dark"] .event-box .dateblock, :root[data-theme="dark"] .event-box .dateblock b, :root[data-theme="dark"] .event-box .dateblock span { color: var(--ink); }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .fb .chip[aria-pressed="true"] { color: #8fc3f0; }
:root:not([data-theme="light"]) .hist-nav button .num, :root:not([data-theme="light"]) .hist-nav .num { color: #06121b; }
:root:not([data-theme="light"]) .event-box .dateblock, :root:not([data-theme="light"]) .event-box .dateblock b, :root:not([data-theme="light"]) .event-box .dateblock span { color: var(--ink); }
}
.ev-link { display: inline-block; padding-block: 3px; }
.panel .row > .link, .group-side .link { min-height: 28px; display: inline-flex; align-items: center; }
.switch input { width: 24px; height: 24px; }

/* ═════════ Botón de accesibilidad en el móvil: pestaña al borde derecho, se puede arrastrar ═════════ */
@media (max-width: 760px) {
  .a11y-fab, .a11y-fab:hover {
    left: auto; right: 0; bottom: auto; top: 55%; transform: translateY(-50%);
    width: 40px; height: 52px; border-radius: 14px 0 0 14px; border: 0; border-left: 2px solid rgba(255, 255, 255, .55);
    background: #1f7a5c; box-shadow: -2px 3px 12px rgba(0, 0, 0, .28); touch-action: none; transition: width .15s, box-shadow .15s;
  }
  .a11y-fab svg { width: 24px; height: 24px; margin-left: 2px; }
  .a11y-fab::before { content: ""; position: absolute; left: 5px; top: 50%; width: 3px; height: 18px; transform: translateY(-50%); border-radius: 2px; background: rgba(255, 255, 255, .45); }
  .a11y-fab.dragging { width: 46px; box-shadow: -4px 6px 18px rgba(0, 0, 0, .35); cursor: grabbing; }
  .a11y-panel { left: auto; right: 48px; width: min(300px, calc(100vw - 64px)); max-height: calc(100vh - 160px); }
}
/* Últimos detalles de la auditoría */
:root[data-theme="dark"] .event-box .dateblock span { color: #1d0f00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .event-box .dateblock span { color: #1d0f00; } }

/* ═════════ Plaza · pestaña Información ═════════ */
.pi { display: flex; flex-direction: column; gap: 12px; }
.pi .panel { padding: 18px 20px; }
.pi-hero h2 { font-size: 1.4rem; }
.pi-lead { margin: .6rem 0 1rem; font-size: 1.02rem; }
.pi-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.pi-stats > div { background: var(--surface-2); border-radius: 12px; padding: .7rem .9rem; display: flex; flex-direction: column; }
.pi-stats b { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.1; color: var(--fb-blue, var(--marisma)); }
.pi-stats span { font-size: .8rem; color: var(--ink-2); }
.pi-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.2rem; }
.pi-feat { display: flex; gap: .7rem; align-items: flex-start; }
.pi-feat > svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; color: var(--ink-2); }
.pi-feat p { margin: .15rem 0 0; font-size: .88rem; color: var(--ink-2); }
.pi-acts { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.1rem; }
.pi-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: .8rem; }
.pi-cat { display: flex; gap: .7rem; align-items: flex-start; text-align: left; padding: .75rem .85rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink); font: inherit; }
.pi-cat:hover { background: var(--surface-2); }
.pi-cat > span:last-child { display: flex; flex-direction: column; gap: .15rem; }
.pi-cat-e { font-size: 1.4rem; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); flex-shrink: 0; }
.pi-rules { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.pi-rules li { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem .85rem; border-radius: 12px; background: var(--surface-2); }
.pi-rules p { margin: .2rem 0 0; }
.pi-rule-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--fb-blue, var(--marisma)); flex-shrink: 0; }
.pi-rule-ico svg { width: 19px; height: 19px; }
.pi-n { color: var(--fb-blue, var(--marisma)); }
.pi-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pi-steps { list-style: none; counter-reset: s; margin: .8rem 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.pi-steps li { counter-increment: s; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: .6rem; }
.pi-steps li::before { content: counter(s); grid-row: 1 / 3; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--fb-blue, var(--marisma)); color: #fff; font-weight: 800; font-size: .85rem; }
.pi-alert { display: flex; gap: .55rem; align-items: flex-start; margin: .6rem 0 0; padding: .7rem .8rem; border-radius: 12px; background: color-mix(in srgb, var(--bad) 10%, var(--surface)); font-size: .9rem; }
.pi-alert svg { width: 20px; height: 20px; color: var(--bad); flex-shrink: 0; margin-top: 1px; }
.pi-tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.2rem; margin-top: .8rem; }
.pi-tips > div { display: flex; gap: .7rem; align-items: flex-start; }
.pi-tips > div > svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; color: var(--fb-blue, var(--marisma)); }
.pi-tips p { margin: .15rem 0 0; }
.pi-faq { display: flex; flex-direction: column; margin-top: .6rem; }
.pi-faq details { border-top: 1px solid var(--line); }
.pi-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; cursor: pointer; font-weight: 700; list-style: none; min-height: 44px; }
.pi-faq summary::-webkit-details-marker { display: none; }
.pi-faq .chev { width: 18px; height: 18px; color: var(--ink-2); transition: transform .2s; flex-shrink: 0; }
.pi-faq details[open] .chev { transform: rotate(180deg); }
.pi-faq details p { margin: 0 0 .9rem; }
.pi-contact { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.pi-contact p { margin: .3rem 0 0; }
:root[data-theme="dark"] .pi-steps li::before { color: #06121b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pi-steps li::before { color: #06121b; } }
@media (max-width: 700px) { .pi-feats, .pi-cats, .pi-rules, .pi-two, .pi-tips { grid-template-columns: minmax(0, 1fr); } .pi-stats b { font-size: 1.25rem; } }

/* Aviso al salir a una web externa */
.exit-modal.modal-box { width: min(460px, 100%); }
.exit-box { gap: .8rem; }
.exit-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--cielo) 14%, var(--surface)); color: var(--cielo); }
.exit-ico svg { width: 26px; height: 26px; }
.exit-box .modal-title { margin: 0; }
.exit-box p { margin: 0; }
.exit-steps { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: .35rem; }

/* ═════════ Portada: velo según la hora (de día mucho más luminosa) ═════════ */
.hero[data-phase="dia"]::after {
  background:
    radial-gradient(ellipse 62% 70% at 18% 46%, rgba(4, 30, 40, .42) 0%, rgba(4, 30, 40, .2) 55%, transparent 80%),
    linear-gradient(0deg, rgba(4, 30, 40, .28) 0%, transparent 22%);
}
.hero[data-phase="amanecer"]::after, .hero[data-phase="atardecer"]::after {
  background:
    radial-gradient(ellipse 62% 70% at 18% 46%, rgba(4, 22, 28, .5) 0%, rgba(4, 22, 28, .24) 55%, transparent 80%),
    linear-gradient(0deg, rgba(4, 22, 28, .35) 0%, transparent 25%);
}
.hero[data-phase="dia"] h1, .hero[data-phase="dia"] .hero-lead { text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 2px 18px rgba(0, 25, 35, .55); }
.hero[data-photo][data-phase="dia"]::after { background: radial-gradient(ellipse 65% 75% at 18% 46%, rgba(4, 22, 28, .5), rgba(4, 22, 28, .18) 60%, transparent 85%), linear-gradient(0deg, rgba(4, 22, 28, .3), transparent 25%); }
@media (max-width: 620px) {
  .hero[data-phase="dia"]::after { background: linear-gradient(180deg, rgba(4, 30, 40, .3) 0%, rgba(4, 30, 40, .12) 55%, rgba(4, 30, 40, .3) 100%); }
}

/* ═════════ Fondos elegidos en el panel ═════════ */
body .biz-head.bh2[data-bg], .tl-hero[data-bg], .page-hero[data-bg] {
  background: linear-gradient(90deg, rgba(4, 22, 28, .72), rgba(4, 22, 28, .4)), var(--bg-img) var(--bg-pos, center) / cover no-repeat;
}
.banner[data-photo]::after { background: linear-gradient(0deg, rgba(4, 18, 24, .75), rgba(4, 18, 24, .2) 75%); }

/* ═════════ Panel: Configuración y Fondos ═════════ */
.cfg-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.cfg-plan { border: 1px solid var(--line); border-radius: 14px; padding: .9rem; display: flex; flex-direction: column; gap: .7rem; margin: 0; min-width: 0; }
.cfg-plan legend { font-weight: 800; padding: 0 .3rem; }
.bg-tips ul { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1.4rem; }
.bg-tips li { display: flex; gap: .5rem; align-items: flex-start; font-size: .92rem; }
.bg-tips svg { width: 18px; height: 18px; color: var(--marisma); flex-shrink: 0; margin-top: 3px; }
.bg-group { display: flex; flex-direction: column; gap: .7rem; }
.bg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9rem; }
.bg-slot { display: flex; flex-direction: column; gap: .7rem; padding: .8rem; }
.bg-prev { position: relative; border-radius: 10px; overflow: hidden; background: var(--surface-2); max-height: 190px; width: 100%; }
.bg-prev img, .bg-color { width: 100%; height: 100%; object-fit: cover; display: block; }
.bg-state { position: absolute; top: 6px; left: 6px; font-size: .72rem; font-weight: 800; padding: .15rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #333; }
.bg-state.on { background: var(--marisma); color: #fff; }
.bg-info { display: flex; flex-direction: column; gap: .2rem; }
.bg-size { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--ink-2); }
.bg-size svg { width: 15px; height: 15px; }
.bg-size b { color: var(--ink); }
.warn-t { color: var(--warn); }
.bg-acts { display: flex; gap: .4rem; flex-wrap: wrap; }
.bg-opts { gap: .6rem; }
@media (max-width: 900px) { .cfg-plans, .bg-tips ul { grid-template-columns: minmax(0, 1fr); } }

/* ══ Cambios nov. 2026 ══════════════════════════════════════ */
/* Logotipo: «Isla Mayor» arriba y «& Alfonso XIII» debajo, más pequeño */
.brand > span { display: flex; flex-direction: column; line-height: 1; }
.brand .b1 { display: block; font-size: 1.3rem; line-height: 1.05; }
.brand small, header.top .brand small { display: block; font: 700 .78rem/1.1 var(--f-display); color: var(--espiga); letter-spacing: .01em; margin-top: 3px; }
footer .brand small { color: #ffd45c; opacity: .9; }
.brand svg { background: #fff; }
@media (max-width: 620px) {
  .brand .b1 { font-size: 1.15rem; }
  header.top .brand small { display: block; font-size: .7rem; }
}

/* Pestañas de Explora: ya no se cortan, bajan a otra línea */
.tabs { flex-wrap: wrap; overflow: visible; gap: .45rem; border-bottom: 0; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.tabs button { border: 1.5px solid var(--line); border-radius: 999px; min-height: 42px; padding: .5rem 1rem; background: var(--surface); font-size: .95rem; transition: background .15s, border-color .15s, color .15s; }
.tabs button:hover { border-color: color-mix(in srgb, var(--sol, #f5b700) 60%, var(--line)); }
.tabs button[aria-selected="true"] { background: var(--sol, #f5b700); border-color: var(--sol, #f5b700); color: var(--sol-ink, #111518); }
.tabs button.tab-new { position: relative; }
.tabs button.tab-new::after { content: "Nuevo"; position: absolute; top: -8px; right: -4px; font: 700 .6rem/1 var(--f-body); background: var(--marisma); color: var(--marisma-ink); padding: 3px 6px; border-radius: 999px; }
@media (max-width: 620px) {
  .tabs { gap: .35rem; }
  .tabs button { min-height: 40px; padding: .45rem .8rem; font-size: .9rem; }
}

/* Trámites: cada tarjeta con el fondo de su color */
.tr-fam { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, var(--surface)) 0%, color-mix(in srgb, var(--c) 5%, var(--surface)) 100%); border-color: color-mix(in srgb, var(--c) 22%, var(--line)); }
.tr-fam svg { background: color-mix(in srgb, var(--c) 18%, var(--surface)); }
.tr-fam b { color: var(--c); }
.tr-fam span { color: color-mix(in srgb, var(--c) 45%, var(--ink)); }
.tr-fam[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 30%, transparent); }
.tr-fam[aria-pressed="true"] span, .tr-fam[aria-pressed="true"] b { color: #fff; }
.tr-fam[aria-pressed="true"] svg { background: rgba(255, 255, 255, .2); color: #fff; }
.tr-chip { --c: #2f7d1e; background: color-mix(in srgb, var(--c) 11%, var(--surface)); border-color: color-mix(in srgb, var(--c) 30%, var(--line)); color: color-mix(in srgb, var(--c) 70%, var(--ink)); font-weight: 700; }
.tr-chip:hover { background: color-mix(in srgb, var(--c) 20%, var(--surface)); }

/* Alfonso XIII */
.ax-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.6rem; align-items: center; padding: 1.6rem; border-radius: var(--r-l); background: linear-gradient(135deg, color-mix(in srgb, var(--espiga) 16%, var(--surface)), color-mix(in srgb, var(--marisma) 10%, var(--surface))); border: 1px solid var(--line); }
.ax-hero h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.ax-hero .ax-kicker { font: 700 .8rem/1 var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--espiga); margin-bottom: .5rem; }
.ax-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.ax-facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .8rem .9rem; display: flex; flex-direction: column; gap: .2rem; }
.ax-facts strong { font: 800 1.35rem/1.1 var(--f-display); color: var(--marisma); }
.ax-facts span { font-size: .85rem; color: var(--ink-2); }
.ax-tl { list-style: none; margin: 0; padding: 0 0 0 1.2rem; border-left: 3px solid color-mix(in srgb, var(--espiga) 60%, var(--line)); display: flex; flex-direction: column; gap: 1rem; max-width: 760px; }
.ax-tl li { position: relative; }
.ax-tl li::before { content: ""; position: absolute; left: calc(-1.2rem - 9px); top: .35rem; width: 13px; height: 13px; border-radius: 50%; background: var(--espiga); border: 2px solid var(--surface); }
.ax-tl b { display: block; font: 800 1.05rem/1.2 var(--f-display); color: var(--marisma); }
.ax-fiesta { border-left: 5px solid var(--flamenco); }
.ax-prog { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .45rem; }
.ax-prog li { display: flex; gap: .6rem; align-items: flex-start; }
.ax-prog li svg { width: 18px; height: 18px; color: var(--flamenco); flex-shrink: 0; margin-top: 2px; }
.club-card { --club: #f2c200; border: 2px solid #111518; background: repeating-linear-gradient(90deg, var(--club) 0 18px, #111518 18px 36px); padding: 6px; border-radius: 20px; }
.club-card > div { background: var(--surface); border-radius: 15px; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; height: 100%; }
.club-badge { width: 54px; height: 54px; flex-shrink: 0; }
@media (max-width: 760px) { .ax-hero { grid-template-columns: 1fr; padding: 1.2rem; } }

/* Barra «ahora» de la portada: cada dato con el color de lo que cuenta */
.now-grid { border-top: 0; overflow: hidden; }
.now-item { --c: #1a73a8; position: relative; padding: 1.05rem 1.2rem 1.05rem 4.1rem; background: linear-gradient(150deg, color-mix(in srgb, var(--c) 16%, var(--surface)) 0%, color-mix(in srgb, var(--c) 4%, var(--surface)) 85%); }
.now-item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); }
.now-item + .now-item { border-left: 1px solid color-mix(in srgb, var(--c) 18%, var(--line)); }
.now-item .nw-ico { position: absolute; left: 1.1rem; top: 1.1rem; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--c); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--c) 35%, transparent); }
.now-item .nw-ico svg { width: 22px; height: 22px; }
.now-item .k { color: color-mix(in srgb, var(--c) 75%, var(--ink)); text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.now-item .v { color: var(--ink); }
.now-item a:hover .v { color: color-mix(in srgb, var(--c) 80%, var(--ink)); }
.nw-sol { --c: #e2a100; }     /* sol de la marisma */
.nw-agua { --c: #1a8fc4; }    /* agua de los canales */
.nw-fiesta { --c: #d4561c; }  /* feria y farolillos */
.nw-chat { --c: #2f8a1e; }    /* verde arrozal */
.nw-sol::before { background: linear-gradient(90deg, #f5b700, #ff9f2e); }
.nw-agua::before { background: linear-gradient(90deg, #2d8bd6, #4fc1d9); }
.nw-fiesta::before { background: linear-gradient(90deg, #e0452b, #f5a623); }
.nw-chat::before { background: linear-gradient(90deg, #3f9a26, #9cd067); }
@media (max-width: 620px) {
  .now-item { padding: .9rem .8rem .9rem 3.3rem; }
  .now-item .nw-ico { left: .7rem; top: .95rem; width: 34px; height: 34px; border-radius: 10px; }
  .now-item .nw-ico svg { width: 19px; height: 19px; }
}

/* ═════════ El pueblo en cifras: foto difuminada y tarjetas de cristal ═════════ */
.cifras { position: relative; isolation: isolate; --cf-glass: rgba(255, 255, 255, .42); --cf-edge: rgba(255, 255, 255, .55); }
.cf-bg { position: absolute; inset: 0 0 auto; height: min(1150px, 135vh); z-index: -1; overflow: hidden; pointer-events: none; }
.cf-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(16px) saturate(1.15); transform: scale(1.15); }
.cf-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(58, 42, 122, .88) 0%, rgba(92, 66, 170, .62) 26%, rgba(150, 130, 200, .32) 52%, transparent 78%),
              linear-gradient(180deg, transparent 60%, var(--bg) 100%); }
.cifras .page-hero, .cifras .page-hero[data-bg] { background: transparent; padding-block: 3rem 2.4rem; }
.cifras .page-hero h1 { text-shadow: 0 2px 18px rgba(20, 10, 50, .35); }
.cifras .ph-ico { background: rgba(255, 255, 255, .2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cifras .stats { background: var(--cf-edge); border: 1px solid var(--cf-edge); border-radius: 22px; box-shadow: 0 10px 40px rgba(30, 20, 70, .18); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); }
.cifras .stat { background: var(--cf-glass); }
.cifras .stat:nth-child(4n+1) .v { color: var(--marisma); }
.cifras .stat:nth-child(4n+2) .v { color: var(--cielo); }
.cifras .stat:nth-child(4n+3) .v { color: var(--espiga); }
.cifras .stat:nth-child(4n+4) .v { color: var(--ink-2); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cifras { --cf-glass: rgba(25, 28, 33, .6); --cf-edge: rgba(255, 255, 255, .1); }
}
:root[data-theme="dark"] .cifras { --cf-glass: rgba(25, 28, 33, .6); --cf-edge: rgba(255, 255, 255, .1); }

/* ═════════ Teléfonos: buscador primero, emergencias sólidas, chips en una línea ═════════ */
.tl-hero { padding-block: 1.8rem 1.2rem; }
.tl-hero p { margin-bottom: 0; }
.tl-bar { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); border-bottom: 1px solid var(--line); }
.tl-bar .wrap { display: flex; flex-direction: column; gap: .6rem; padding-block: .75rem .6rem; }
.tl-bar .search-big input { min-height: 54px; font-size: 1.05rem; background: var(--surface); border: 2px solid var(--line); box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.tl-bar .search-big input:focus { border-color: var(--cielo); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--cielo) 22%, transparent); }
.tl-chips { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; margin-inline: -16px; padding-inline: 16px; -webkit-overflow-scrolling: touch; mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent); }
.tl-chips::-webkit-scrollbar { display: none; }
.tl-chips .chip { flex: 0 0 auto; scroll-snap-align: start; display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; text-decoration: none; background: var(--surface); }
.tl-chips .chip svg { width: 16px; height: 16px; color: var(--c); }
.tc-sos { --c: #d92d20; } .tc-salud { --c: #0d6b57; } .tc-ayto { --c: #1a73a8; } .tc-edu { --c: #6b4bb8; } .tc-apoyo { --c: #a3264f; }
.tl-group { scroll-margin-top: calc(var(--header-h) + 150px); }
.tl-page { padding-block: 1.2rem 3rem; gap: 1.8rem; }

/* Tarjetas de emergencia: fondo sólido, número grande y botón de llamada visible */
.tl-sos[hidden] { display: none; }
.tl-sos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.tl-sos-btn { --c: #1a73a8; display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-radius: 18px; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--c) 6%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--c) 30%, var(--line)); box-shadow: 0 2px 8px rgba(0, 0, 0, .05); transition: transform .12s, box-shadow .12s; }
.tl-sos-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 10%, var(--surface)); }
.tl-sos-btn:active { transform: scale(.98); }
.sos-061 { --c: #0d6b57; } .sos-062 { --c: #1f5a2a; } .sos-016 { --c: #6b4bb8; } .sos-024 { --c: #a3264f; }
.tl-sos-ico { display: none; }
.tl-sos-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tl-sos-n { font-family: var(--f-display); font-size: 2.1rem; font-weight: 800; line-height: 1; color: var(--c); letter-spacing: -.02em; }
.tl-sos-l { font-weight: 800; font-size: .92rem; line-height: 1.2; margin-top: .25rem; }
.tl-sos-d { font-size: .76rem; color: var(--ink-2); line-height: 1.25; }
.tl-sos-call { flex-shrink: 0; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: var(--c); color: #fff; }
.tl-sos-call svg { width: 19px; height: 19px; }
.tl-sos-btn.main { --c: #d92d20; grid-column: 1 / -1; background: #d92d20; border-color: #d92d20; color: #fff; padding: 1rem 1.2rem; box-shadow: 0 10px 26px -10px rgba(217, 45, 32, .85); }
.tl-sos-btn.main:hover { background: #c0251a; }
.tl-sos-btn.main .tl-sos-ico { display: grid; width: 52px; height: 52px; border-radius: 14px; place-items: center; background: rgba(255, 255, 255, .2); }
.tl-sos-btn.main .tl-sos-ico svg { width: 28px; height: 28px; }
.tl-sos-btn.main .tl-sos-n { color: #fff; font-size: 3rem; }
.tl-sos-btn.main .tl-sos-l { font-size: 1.05rem; }
.tl-sos-btn.main .tl-sos-d { color: rgba(255, 255, 255, .88); }
.tl-sos-btn.main .tl-sos-call { width: auto; height: 46px; padding-inline: 1rem; gap: .4rem; display: inline-flex; align-items: center; background: #fff; color: #d92d20; font-size: .95rem; }
@media (max-width: 960px) { .tl-sos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .tl-hero { padding-block: 1.2rem 1rem; }
  .tl-hero .h-page { font-size: 1.9rem; }
  .tl-hero p { font-size: .92rem; }
  .tl-sos { gap: .55rem; }
  .tl-sos-btn { padding: .75rem .7rem .75rem .85rem; gap: .5rem; align-items: flex-start; }
  .tl-sos-n { font-size: 1.85rem; }
  .tl-sos-l { font-size: .84rem; }
  .tl-sos-d { display: block; font-size: .72rem; }
  .tl-sos-call { width: 32px; height: 32px; }
  .tl-sos-call svg { width: 16px; height: 16px; }
  .tl-sos-btn.main { align-items: center; padding: .85rem 1rem; }
  .tl-sos-btn.main .tl-sos-n { font-size: 2.5rem; }
  .tl-sos-btn.main .tl-sos-ico { width: 44px; height: 44px; }
}
@media (max-width: 380px) { .tl-sos-btn.main .tl-sos-call b { display: none; } .tl-sos-btn.main .tl-sos-call { width: 46px; padding: 0; justify-content: center; } }

/* Toda la fila de un teléfono llama al pulsarla (el botón de copiar sigue funcionando) */
.tl-row { position: relative; }
.tl-row .tl-num::after { content: ""; position: absolute; inset: 0; }
.tl-row .icon-btn { position: relative; z-index: 1; }
.tl-row:hover { background: color-mix(in srgb, var(--c) 4%, var(--surface)); }
.tl-row:active { background: color-mix(in srgb, var(--c) 9%, var(--surface)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tl-sos-btn:not(.main) .tl-sos-n { color: color-mix(in srgb, var(--c) 45%, #fff); }
  :root:not([data-theme="light"]) .tl-sos-btn:not(.main) { background: color-mix(in srgb, var(--c) 16%, var(--surface)); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
  :root:not([data-theme="light"]) .tl-chips .chip svg { color: color-mix(in srgb, var(--c) 50%, #fff); }
}
:root[data-theme="dark"] .tl-sos-btn:not(.main) .tl-sos-n { color: color-mix(in srgb, var(--c) 45%, #fff); }
:root[data-theme="dark"] .tl-sos-btn:not(.main) { background: color-mix(in srgb, var(--c) 16%, var(--surface)); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
:root[data-theme="dark"] .tl-chips .chip svg { color: color-mix(in srgb, var(--c) 50%, #fff); }

/* ═════════ Trámites: buscador fijo, categorías en una línea y etiquetas claras ═════════ */
.tr-bar { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); border-bottom: 1px solid var(--line); }
.tr-bar .wrap { display: flex; flex-direction: column; gap: .6rem; padding-block: .75rem .6rem; }
.tr-bar .search-big { max-width: 900px; }
.tr-bar .search-big input { min-height: 54px; font-size: 1.05rem; background: var(--surface); border: 2px solid var(--line); box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.tr-bar .search-big input:focus { border-color: var(--marisma); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--marisma) 20%, transparent); }
.tr-fchips { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; margin-inline: -16px; padding-inline: 16px; mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent); }
.tr-fchips::-webkit-scrollbar { display: none; }
.tr-fchip { flex: 0 0 auto; scroll-snap-align: start; display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--c) 28%, var(--line)); color: var(--ink); font-weight: 700; cursor: pointer; }
.tr-fchip svg { width: 16px; height: 16px; color: var(--c); }
.tr-fchip b { font-size: .74rem; min-width: 1.4em; padding: .05rem .4rem; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--c); text-align: center; }
.tr-fchip[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #fff; }
.tr-fchip[aria-pressed="true"] svg { color: #fff; }
.tr-fchip[aria-pressed="true"] b { background: rgba(255, 255, 255, .25); color: #fff; }
.tr-page { padding-top: 1rem; }
.tr-search { gap: .6rem; }
.tr-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .45rem; color: var(--ink-2); margin: 0; }
.tr-legend .tr-b:last-of-type { margin-left: .4rem; }

/* Etiquetas: verde = por internet (ya), ámbar = presencial con cita; requisito aparte, discreto */
.tr-badges { gap: .35rem; margin-top: .4rem; }
.tr-b { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 800; padding: .2rem .55rem; border-radius: 8px; border: 1px solid transparent; }
.tr-b svg { width: 13px; height: 13px; }
.tr-b.web { background: #e6f4ea; color: #1b6b2c; border-color: #b9dfc3; }
.tr-b.cita { background: #fff4e0; color: #8a4b00; border-color: #f2d29b; }
.tr-req { display: flex; align-items: center; gap: .35rem; margin-top: .4rem; font-size: .78rem; color: var(--ink-2); }
.tr-req svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Flecha desplegable más visible */
.tr-chev { flex-shrink: 0; width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, var(--surface)); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 25%, var(--line)); margin-top: .1rem; transition: background .15s; }
.tr-card .tr-chev .chev { margin: 0; color: currentColor; width: 20px; height: 20px; }
.tr-card summary:hover .tr-chev { background: color-mix(in srgb, var(--c) 20%, var(--surface)); }
.tr-card[open] .tr-chev { background: var(--c); color: #fff; border-color: var(--c); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tr-b.web { background: #10291a; color: #8fe0a4; border-color: #1f4a2c; }
  :root:not([data-theme="light"]) .tr-b.cita { background: #33240e; color: #f5c47a; border-color: #5a3f15; }
  :root:not([data-theme="light"]) .tr-fchip svg, :root:not([data-theme="light"]) .tr-fchip b, :root:not([data-theme="light"]) .tr-chev { color: color-mix(in srgb, var(--c) 50%, #fff); }
  :root:not([data-theme="light"]) .tr-fchip[aria-pressed="true"] svg, :root:not([data-theme="light"]) .tr-fchip[aria-pressed="true"] b, :root:not([data-theme="light"]) .tr-card[open] .tr-chev { color: #fff; }
}
:root[data-theme="dark"] .tr-b.web { background: #10291a; color: #8fe0a4; border-color: #1f4a2c; }
:root[data-theme="dark"] .tr-b.cita { background: #33240e; color: #f5c47a; border-color: #5a3f15; }
:root[data-theme="dark"] .tr-fchip svg, :root[data-theme="dark"] .tr-fchip b, :root[data-theme="dark"] .tr-chev { color: color-mix(in srgb, var(--c) 50%, #fff); }
:root[data-theme="dark"] .tr-fchip[aria-pressed="true"] svg, :root[data-theme="dark"] .tr-fchip[aria-pressed="true"] b, :root[data-theme="dark"] .tr-card[open] .tr-chev { color: #fff; }
/* Colores por familia (al final para que ganen a los valores por defecto) */
.tf-todas { --c: #2f7d1e; } .tf-padron { --c: #1e5a96; } .tf-tributos { --c: #9a6b00; } .tf-urbanismo { --c: #c45227; } .tf-social { --c: #0d6b57; }
.tf-empleo { --c: #6b4bb8; } .tf-ayto { --c: #1a73a8; } .tf-junta { --c: #2f7d1e; } .tf-estado { --c: #a3264f; }
@media (max-width: 620px) {
  .tr-pop { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .tr-pop::-webkit-scrollbar { display: none; }
  .tr-pop > * { flex: 0 0 auto; }
}
@media (max-width: 620px) {
  .tr-b { font-size: .7rem; padding: .18rem .42rem; gap: .25rem; }
  .tr-b svg { width: 12px; height: 12px; }
}
.tr-req { align-items: flex-start; }
.tr-req svg { margin-top: 2px; }

/* ═════════ Portada «el país del agua»: cielo de atardecer, título dorado y botones apilados ═════════ */
:root { --f-serif: "Playfair Display", "Georgia", "Times New Roman", serif; --f-serif-text: "Lora", "Georgia", serif; --oro: #f3d58c; }
.hero, .hero[data-phase] { color: #fff; min-height: clamp(620px, 86vh, 820px); }
.hero .wrap { justify-content: flex-start; padding-block: clamp(2.2rem, 7vh, 4.5rem) 6rem; }
.hero::after, .hero[data-phase]::after, .hero[data-photo]::after, .hero[data-photo][data-phase]::after {
  background:
    linear-gradient(180deg, rgba(24, 28, 70, .9) 0%, rgba(40, 44, 96, .72) 22%, rgba(70, 60, 110, .38) 44%, rgba(120, 80, 90, .08) 62%, transparent 72%),
    linear-gradient(0deg, rgba(8, 14, 30, .45) 0%, transparent 22%);
}
.hero h1, .hero[data-phase] h1, .hero[data-photo] h1 {
  font-family: var(--f-serif); font-weight: 700; font-size: clamp(2.9rem, 7vw, 5.2rem); line-height: 1; letter-spacing: -.01em;
  background: linear-gradient(180deg, #fbecc0 0%, #f0cf7f 45%, #c99446 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 2px 10px rgba(10, 10, 40, .45));
}
.hero h1 .line2 { display: block; font-family: var(--f-serif); font-style: italic; font-weight: 500; font-size: .62em; margin-top: .25em; opacity: 1; font-variation-settings: normal;
  background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fff; -webkit-text-fill-color: #fff; }
.hero-lead, .hero[data-phase] .hero-lead {
  font-family: var(--f-serif-text); font-weight: 400; font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.6; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
  max-width: 54ch; margin-top: 1.4rem; padding: .9rem 1.2rem; border-radius: 16px;
  background: linear-gradient(90deg, rgba(30, 60, 80, .62), rgba(40, 70, 90, .38)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-lead .hl { color: var(--oro); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(243, 213, 140, .45); }
.hero-lead .hl:hover { border-bottom-color: var(--oro); }
.hero-cta { flex-direction: column; align-items: flex-start; gap: .8rem; margin-top: 1.6rem; }
.hero-cta .btn { min-height: 54px; padding-inline: 1.5rem; border-radius: 999px; font-size: 1.05rem; font-weight: 700; }
.hero .btn.hot { background: linear-gradient(180deg, #3aa3ad 0%, #227c88 100%); color: #fdf3da; border: 1.5px solid rgba(243, 213, 140, .7);
  box-shadow: 0 0 0 4px rgba(58, 163, 173, .18), 0 8px 26px -6px rgba(34, 124, 136, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.hero .btn.hot:hover { background: linear-gradient(180deg, #44b1bb 0%, #268793 100%); }
.hero .btn.alt { background: linear-gradient(180deg, #fffaf0 0%, #f4e7cd 100%); color: #3a2a14; border: 1.5px solid rgba(201, 148, 70, .55); box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .45); }
.hero .btn.alt:hover { background: #fff; }
.hero-foot { display: none; }

/* Tarjetas «ahora» de cristal sobre la marisma */
.now { margin-top: -4.6rem; }
.now-grid { background: rgba(255, 255, 255, .35); border: 1px solid rgba(255, 255, 255, .6); border-radius: 22px; box-shadow: 0 14px 40px -12px rgba(20, 20, 60, .45); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
.now-item { background: linear-gradient(150deg, color-mix(in srgb, var(--c) 14%, rgba(255, 255, 255, .72)) 0%, rgba(255, 255, 255, .62) 85%); }
.now-item::before { display: none; }
.now-item .nw-ico { border-radius: 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); }
.now-item .k { color: var(--c); letter-spacing: .06em; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .now-grid { background: rgba(20, 24, 30, .4); border-color: rgba(255, 255, 255, .12); }
  :root:not([data-theme="light"]) .now-item { background: linear-gradient(150deg, color-mix(in srgb, var(--c) 22%, rgba(25, 28, 33, .78)) 0%, rgba(25, 28, 33, .7) 85%); }
  :root:not([data-theme="light"]) .now-item .k { color: color-mix(in srgb, var(--c) 50%, #fff); }
}
:root[data-theme="dark"] .now-grid { background: rgba(20, 24, 30, .4); border-color: rgba(255, 255, 255, .12); }
:root[data-theme="dark"] .now-item { background: linear-gradient(150deg, color-mix(in srgb, var(--c) 22%, rgba(25, 28, 33, .78)) 0%, rgba(25, 28, 33, .7) 85%); }
:root[data-theme="dark"] .now-item .k { color: color-mix(in srgb, var(--c) 50%, #fff); }

@media (max-width: 620px) {
  .hero, .hero[data-phase] { min-height: 600px; }
  .hero .wrap { padding-block: 1.6rem 6rem; }
  .hero h1, .hero[data-phase] h1 { font-size: 3.1rem; }
  .hero-lead, .hero[data-phase] .hero-lead { font-size: 1rem; margin-inline: -16px; border-radius: 0; padding: .9rem 16px; max-width: none; }
  .hero-cta .btn { min-height: 52px; font-size: 1rem; }
}
@media (min-width: 621px) { .hero-cta { flex-direction: row; align-items: center; } }
@media (min-width: 621px) { .hero-photo[src*="marisma-atardecer"] { object-position: center 80% !important; } }

/* ═════════ Portada viva: sol, aves, brillo del agua y noche ═════════ */
.hero .wrap { position: relative; z-index: 1; }
.hero-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; --hz: 62%; }
@media (min-width: 621px) { .hero-fx { --hz: 54%; } }
.fx-sun { position: absolute; left: 68%; top: var(--hz); width: 70vmin; height: 34vmin; transform: translate(-50%, -62%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 236, 190, .85), rgba(255, 196, 120, .45) 35%, rgba(255, 150, 90, .14) 65%, transparent);
  mix-blend-mode: screen; animation: fxSun 9s ease-in-out infinite alternate; }
@keyframes fxSun { from { opacity: .75; transform: translate(-50%, -62%) scale(.96); } to { opacity: 1; transform: translate(-50%, -62%) scale(1.04); } }
.fx-shine { position: absolute; left: 0; right: 0; top: calc(var(--hz) + 6%); height: 22%; mix-blend-mode: screen; opacity: .2; filter: blur(.6px);
  background: repeating-linear-gradient(90deg, transparent 0 38px, rgba(255, 225, 170, .55) 38px 52px, transparent 52px 110px), repeating-linear-gradient(90deg, transparent 0 70px, rgba(255, 240, 210, .4) 70px 78px, transparent 78px 150px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 60%, transparent), repeating-linear-gradient(180deg, #000 0 2px, transparent 2px 7px);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 60%, transparent), repeating-linear-gradient(180deg, #000 0 2px, transparent 2px 7px);
  -webkit-mask-composite: source-in; mask-composite: intersect; animation: fxShine 14s linear infinite; }
@keyframes fxShine { to { background-position: 220px 0, -300px 0; } }
.fx-birds { position: absolute; top: 20%; left: 0; width: 120px; height: 40px; fill: none; stroke: #1c1a33; stroke-width: 1.4; stroke-linecap: round; opacity: .75; animation: fxFly 46s linear infinite; }
.fx-birds path { transform-box: fill-box; transform-origin: center; animation: fxFlap .9s ease-in-out infinite alternate; animation-delay: var(--d); }
@keyframes fxFly { from { transform: translate(-140px, 30px); } to { transform: translate(calc(100vw + 40px), -40px); } }
@keyframes fxFlap { from { transform: scaleY(1); } to { transform: scaleY(-.35); } }
.fx-stars { position: absolute; inset: 0 0 45% 0; opacity: 0; transition: opacity 1.5s;
  background-image: radial-gradient(1.4px 1.4px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 8%, #fff, transparent), radial-gradient(1.2px 1.2px at 44% 26%, #fff, transparent), radial-gradient(1px 1px at 63% 12%, #fff, transparent), radial-gradient(1.5px 1.5px at 78% 30%, #fff, transparent), radial-gradient(1px 1px at 90% 6%, #fff, transparent), radial-gradient(1px 1px at 55% 40%, #fff, transparent), radial-gradient(1.2px 1.2px at 6% 42%, #fff, transparent), radial-gradient(1px 1px at 35% 48%, #fff, transparent), radial-gradient(1.3px 1.3px at 84% 52%, #fff, transparent);
  animation: fxTwinkle 4s ease-in-out infinite alternate; }
@keyframes fxTwinkle { from { filter: brightness(.6); } to { filter: brightness(1.3); } }

/* La misma foto según la hora */
.hero[data-photo][data-phase="amanecer"] .hero-photo { filter: saturate(1.05) brightness(1.04) hue-rotate(-6deg); }
.hero[data-photo][data-phase="dia"] .hero-photo { filter: saturate(1.12) brightness(1.06); }
.hero[data-photo][data-phase="noche"] .hero-photo { filter: brightness(.55) saturate(.7) hue-rotate(12deg); }
.hero[data-phase="noche"] .fx-stars { opacity: .9; }
.hero[data-phase="noche"] .fx-sun { background: radial-gradient(closest-side, rgba(220, 230, 255, .35), rgba(150, 170, 220, .12) 50%, transparent); width: 40vmin; height: 20vmin; }
.hero[data-phase="noche"] .fx-shine { opacity: .15; }
.hero[data-phase="noche"] .fx-birds { display: none; }
@media (prefers-reduced-motion: reduce) { .fx-sun, .fx-shine, .fx-birds, .fx-birds path, .fx-stars { animation: none; } .fx-birds { transform: translate(55vw, 0); } }

/* ═════════ Transiciones entre pantallas (View Transitions) ═════════ */
/* La cabecera y la barra de abajo se quedan quietas; solo se mueve el contenido */
header.top { view-transition-name: cabecera; }
#tabbar { view-transition-name: pestanas; }
#view { view-transition-name: pantalla; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-group(cabecera), ::view-transition-group(pestanas) { animation: none; z-index: 2; }
::view-transition-group(pantalla) { animation: none; }
@keyframes vtInRight { from { transform: translateX(28%); opacity: 0; } }
@keyframes vtOutLeft { to { transform: translateX(-14%); opacity: 0; } }
@keyframes vtInLeft { from { transform: translateX(-28%); opacity: 0; } }
@keyframes vtOutRight { to { transform: translateX(14%); opacity: 0; } }
@keyframes vtFadeUp { from { transform: translateY(14px); opacity: 0; } }
@keyframes vtFadeOut { to { opacity: 0; } }
html[data-vt="forward"]::view-transition-new(pantalla) { animation: vtInRight .34s cubic-bezier(.2, .8, .2, 1) both; }
html[data-vt="forward"]::view-transition-old(pantalla) { animation: vtOutLeft .26s ease-in both; }
html[data-vt="back"]::view-transition-new(pantalla) { animation: vtInLeft .34s cubic-bezier(.2, .8, .2, 1) both; }
html[data-vt="back"]::view-transition-old(pantalla) { animation: vtOutRight .26s ease-in both; }
html[data-vt="fade"]::view-transition-new(pantalla) { animation: vtFadeUp .3s cubic-bezier(.2, .8, .2, 1) both; }
html[data-vt="fade"]::view-transition-old(pantalla) { animation: vtFadeOut .18s ease-in both; }

/* Filtros de trámites: cada tarjeta viaja a su nuevo sitio */
html[data-vt="morph"] #view { view-transition-name: none; }
html[data-vt="morph"] .tr-card { view-transition-name: match-element; view-transition-class: tarjeta; }
::view-transition-group(*.tarjeta) { animation-duration: .32s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-new(*.tarjeta):only-child { animation: vtFadeUp .3s ease both; }
::view-transition-old(*.tarjeta):only-child { animation: vtFadeOut .15s ease both; }

/* Tarjetas desplegables que se abren con suavidad (en lugar de saltar) */
:root { interpolate-size: allow-keywords; }
.tr-card::details-content, details.tram::details-content { block-size: 0; overflow: clip; transition: block-size .32s cubic-bezier(.2, .8, .2, 1), content-visibility .32s allow-discrete; }
.tr-card[open]::details-content, details.tram[open]::details-content { block-size: auto; }
.tr-card .chev, .tr-chev { transition: transform .25s, background .15s; }
.tr-card[open] .tr-chev .chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .tr-card::details-content, details.tram::details-content { transition: none; } }

/* ═════════ Sin conexión ═════════ */
.net-bar { background: #2b2f3a; color: #fff; font-size: .88rem; }
.net-bar[hidden] { display: none; }
.net-bar .wrap { display: flex; align-items: center; gap: .6rem; padding-block: .55rem; flex-wrap: wrap; }
.net-bar svg { width: 18px; height: 18px; flex-shrink: 0; color: #ffcf6e; }
.net-bar span { flex: 1; min-width: 200px; }
.net-bar a { display: inline-flex; align-items: center; gap: .35rem; color: #fff; font-weight: 800; text-decoration: none; padding: .3rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.net-bar a svg { color: #fff; width: 15px; height: 15px; }
.tl-offline { display: inline-flex; align-items: center; gap: .4rem; margin-top: .7rem !important; padding: .3rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: .82rem; font-weight: 700; }
.tl-offline[hidden] { display: none; }
.tl-offline svg { width: 15px; height: 15px; }
/* Sin conexión, lo que necesita internet se ve atenuado */
html[data-offline] .hero-cta .btn.hot, html[data-offline] [data-act="pushon"] { opacity: .55; }

/* ═════════ Avisos al móvil ═════════ */
.push-card { margin-top: 1.4rem; }
.pc-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: 20px;
  background: linear-gradient(120deg, color-mix(in srgb, #227c88 14%, var(--surface)), color-mix(in srgb, #f3d58c 18%, var(--surface))); border: 1px solid color-mix(in srgb, #227c88 25%, var(--line)); }
.pc-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(180deg, #3aa3ad, #227c88); color: #fff; flex-shrink: 0; box-shadow: 0 6px 16px -6px rgba(34, 124, 136, .7); }
.pc-ico svg { width: 24px; height: 24px; transform-origin: 50% 10%; }
.push-card .pc-ico svg { animation: bellRing 3.2s ease-in-out 1.2s infinite; }
@keyframes bellRing { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(14deg); } 88% { transform: rotate(-12deg); } 92% { transform: rotate(8deg); } 96% { transform: rotate(-4deg); } }
.pc-t h2 { font-size: 1.1rem; }
.pc-t p { margin: .2rem 0 0; color: var(--ink-2); font-size: .92rem; }
.pc-acts { display: flex; flex-direction: column; gap: .3rem; align-items: stretch; }
.push-card .btn:not(.ghost) { background: linear-gradient(180deg, #3aa3ad, #227c88); color: #fff; border-color: transparent; }
@media (max-width: 620px) {
  .pc-in { grid-template-columns: auto minmax(0, 1fr); }
  .pc-acts { grid-column: 1 / -1; flex-direction: row; }
  .pc-acts .btn:first-child { flex: 1; }
}
.push-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .9rem 1rem; }
.push-row .pc-ico { width: 40px; height: 40px; border-radius: 12px; }
.push-row .pc-ico svg { width: 20px; height: 20px; }
.push-row p { margin: .1rem 0 0; }
@media (prefers-reduced-motion: reduce) { .push-card .pc-ico svg { animation: none; } }

/* Aviso simulado (como llega al móvil) */
.push-banner { position: fixed; z-index: 200; left: 50%; top: calc(10px + env(safe-area-inset-top, 0px)); width: min(440px, calc(100vw - 20px)); transform: translate(-50%, -140%);
  display: flex; gap: .75rem; align-items: flex-start; padding: .8rem .9rem; border-radius: 20px; text-decoration: none; color: #111;
  background: rgba(250, 250, 252, .86); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .05); transition: transform .45s cubic-bezier(.2, .9, .25, 1.15); }
.push-banner.in { transform: translate(-50%, 0); }
.push-banner img { border-radius: 10px; flex-shrink: 0; }
.push-banner > span { display: flex; flex-direction: column; min-width: 0; font-size: .9rem; line-height: 1.35; }
.push-banner small { color: #666; font-size: .74rem; }
.push-banner strong { font-size: .95rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .push-banner { background: rgba(40, 42, 48, .86); color: #f2f2f2; } :root:not([data-theme="light"]) .push-banner small { color: #aaa; } }
:root[data-theme="dark"] .push-banner { background: rgba(40, 42, 48, .86); color: #f2f2f2; }
:root[data-theme="dark"] .push-banner small { color: #aaa; }

/* ═════════ Vivir en Isla Mayor: servicios, ayudas, empleo, avisos, incidencias, contacto ═════════ */
.ph-servicios { --c1: #1f5a2a; --c2: #3f8f2a; } .ph-ayudas { --c1: #0b4d40; --c2: #13866f; } .ph-empleo { --c1: #123d6b; --c2: #2563a8; }
.ph-avisos { --c1: #7a2e12; --c2: #c45227; } .ph-incidencias { --c1: #6d1a35; --c2: #a3264f; } .ph-contacto { --c1: #2a2560; --c2: #4f46a8; }
.vv-page { gap: 1.6rem; padding-block: 1.4rem 3rem; }
.vv-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; background: var(--c, #1a73a8); color: #fff; font-weight: 800; font-size: 1.1rem; box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--c, #1a73a8) 70%, transparent); }
.vv-ico svg { width: 22px; height: 22px; }
.vv-ico.sm { width: 36px; height: 36px; border-radius: 11px; } .vv-ico.sm svg { width: 18px; height: 18px; }
.vv-sec { --c: #1a73a8; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.2rem; scroll-margin-top: calc(var(--header-h) + 70px); display: flex; flex-direction: column; gap: 1rem; }
.vv-sec > header { display: flex; gap: .8rem; align-items: center; }
.vv-sec > header h2 { font-size: 1.3rem; }
.vv-sec > header p { margin: .15rem 0 0; font-size: .92rem; }
.vv-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: .8rem; }
.vv-block { background: color-mix(in srgb, var(--c) 5%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 16%, var(--line)); border-radius: 16px; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.vv-block h3 { font-size: 1.05rem; }
.vv-block p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.vv-rows { margin: 0; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.vv-rows > div { display: flex; justify-content: space-between; gap: .8rem; padding: .55rem .8rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
.vv-rows > div:last-child { border-bottom: 0; }
.vv-rows dt { font-weight: 700; } .vv-rows dd { margin: 0; text-align: right; color: var(--ink-2); }
.vv-rows dd a { font-weight: 800; color: var(--c); text-decoration: none; white-space: nowrap; }
.vv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.vv-list li { display: flex; gap: .5rem; font-size: .92rem; } .vv-list svg { width: 16px; height: 16px; color: var(--c); flex-shrink: 0; margin-top: 3px; }
.vv-bins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.vv-bins > div { display: grid; grid-template-columns: auto 1fr; column-gap: .5rem; align-items: center; padding: .55rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .84rem; }
.vv-bins strong { font-size: .9rem; } .vv-bins > div > span:last-child { grid-column: 2; color: var(--ink-2); line-height: 1.3; }
.vv-bin { grid-row: 1 / 3; width: 22px; height: 30px; border-radius: 4px 4px 6px 6px; background: var(--bin); box-shadow: inset 0 4px 0 rgba(0, 0, 0, .18); }
.vv-acts { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto; }
.vv-note { display: flex; gap: .45rem; font-size: .82rem !important; color: var(--ink-2); }
.vv-note svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }
.btn.danger { background: #d92d20; border-color: #d92d20; color: #fff; }
.vv-nav { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.vv-nav .wrap { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-block: .6rem; }
.vv-nav .wrap::-webkit-scrollbar { display: none; }
.vv-nav a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem; border-radius: 999px; background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--c) 28%, var(--line)); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.vv-nav a svg, .vv-chips .chip svg { width: 16px; height: 16px; color: var(--c); }
.vv-chips .chip { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; background: var(--surface); }
.vv-new { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-radius: 16px; text-decoration: none; color: var(--ink); background: linear-gradient(120deg, color-mix(in srgb, #2f7d1e 12%, var(--surface)), color-mix(in srgb, #f3d58c 22%, var(--surface))); border: 1px solid color-mix(in srgb, #2f7d1e 22%, var(--line)); }
.vv-new > span { width: 42px; height: 42px; border-radius: 12px; background: #2f7d1e; color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.vv-new > div { flex: 1; display: flex; flex-direction: column; } .vv-new small { color: var(--ink-2); }
.vv-new > svg { width: 20px; height: 20px; color: #2f7d1e; }
.vv-first { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem; border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, #0d6b57 14%, var(--surface)), var(--surface)); border: 1.5px solid color-mix(in srgb, #0d6b57 30%, var(--line)); --c: #0d6b57; }
.vv-first h2 { font-size: 1.25rem; } .vv-first p { color: var(--ink-2); margin: .3rem 0 .8rem; }
.vv-aids { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: .7rem; }
.vv-aid { display: flex; flex-direction: column; gap: .4rem; padding: .95rem 1rem; border-radius: 14px; background: color-mix(in srgb, var(--c) 5%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 15%, var(--line)); min-width: 0; }
.vv-aid h3 { font-size: 1rem; } .vv-aid p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.vv-where { display: flex; align-items: center; gap: .35rem; margin-top: auto !important; padding-top: .3rem; font-weight: 700; color: var(--c) !important; font-size: .85rem !important; }
.vv-where svg { width: 15px; height: 15px; flex-shrink: 0; } .vv-where a { color: inherit; }
.vv-posts { display: flex; flex-direction: column; gap: .5rem; }
.vv-post { display: flex; flex-direction: column; gap: .25rem; padding: .8rem .95rem; border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--c) 4%, var(--surface)); text-decoration: none; color: var(--ink); }
.vv-post strong { font-weight: 600; line-height: 1.4; } .vv-post small { color: var(--ink-2); }
.vv-post.aviso { border-left: 4px solid var(--c); }
.vv-post .tag { align-self: flex-start; }
.vv-ev { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vv-ev li { display: flex; gap: .9rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.vv-ev li:last-child { border-bottom: 0; }
.vv-ev time { flex: 0 0 74px; text-align: center; font-weight: 800; font-size: .82rem; text-transform: capitalize; color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--surface)); border-radius: 10px; padding: .35rem .2rem; }
.vv-ev span { display: flex; flex-direction: column; } .vv-ev small { color: var(--ink-2); }
/* Incidencias */
.inc-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .5rem; }
.inc-t { display: flex; align-items: center; gap: .6rem; padding: .75rem .85rem; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 700 .9rem/1.25 var(--f-body); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.inc-t svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--c); }
.inc-t[aria-checked="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--surface)); box-shadow: 0 0 0 1px var(--c) inset; }
.inc-t.urgent { --c: #d92d20; }
.inc-who { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: 1rem; border-radius: 16px; background: color-mix(in srgb, var(--c) 8%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--c) 30%, var(--line)); }
.inc-who > div { flex: 1; display: flex; flex-direction: column; min-width: 140px; } .inc-who small { color: var(--ink-2); font-weight: 700; } .inc-who strong { font-size: 1.1rem; }
.inc-who.urgent { --c: #d92d20; } .inc-who.urgent .vv-ico { background: #d92d20; }
.inc-msg { margin-top: .9rem; display: flex; flex-direction: column; gap: .6rem; }
.inc-msg pre { margin: 0; white-space: pre-wrap; font: .92rem/1.5 var(--f-body); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; }
.inc-page .field { display: flex; flex-direction: column; gap: .3rem; }
/* Contacto */
.vv-contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: .7rem; }
.vv-contact { --c: #4f46a8; display: flex; align-items: center; gap: .8rem; padding: 1rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.vv-contact:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.vv-contact > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; } .vv-contact small { color: var(--ink-2); }
.vv-contact b { display: inline-flex; align-items: center; gap: .2rem; font-size: .85rem; color: var(--c); white-space: nowrap; } .vv-contact b svg { width: 16px; height: 16px; }
/* Portada */
.vv-home { margin-top: 2.2rem; }
.vv-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .7rem; }
.vv-tile { display: flex; flex-direction: column; gap: .35rem; padding: 1rem; border-radius: 18px; text-decoration: none; color: var(--ink); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, var(--surface)), color-mix(in srgb, var(--c) 4%, var(--surface))); border: 1px solid color-mix(in srgb, var(--c) 22%, var(--line)); transition: transform .15s, box-shadow .15s; }
.vv-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--c) 60%, transparent); }
.vv-tile strong { margin-top: .3rem; line-height: 1.2; } .vv-tile small { color: var(--ink-2); font-size: .8rem; line-height: 1.3; }
@media (max-width: 1000px) { .vv-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .vv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .vv-sec { padding: 1rem; border-radius: 18px; }
  .vv-first { flex-direction: column; }
  .vv-bins { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .vv-nav a svg, :root:not([data-theme="light"]) .vv-list svg, :root:not([data-theme="light"]) .vv-where, :root:not([data-theme="light"]) .vv-rows dd a, :root:not([data-theme="light"]) .vv-ev time, :root:not([data-theme="light"]) .inc-t svg, :root:not([data-theme="light"]) .vv-contact b, :root:not([data-theme="light"]) .vv-chips .chip svg { color: color-mix(in srgb, var(--c) 50%, #fff) !important; }
}
:root[data-theme="dark"] .vv-nav a svg, :root[data-theme="dark"] .vv-list svg, :root[data-theme="dark"] .vv-where, :root[data-theme="dark"] .vv-rows dd a, :root[data-theme="dark"] .vv-ev time, :root[data-theme="dark"] .inc-t svg, :root[data-theme="dark"] .vv-contact b, :root[data-theme="dark"] .vv-chips .chip svg { color: color-mix(in srgb, var(--c) 50%, #fff) !important; }

/* ═════════ Cabecera: flecha atrás y botón «Aa» de accesibilidad ═════════ */
.back-btn[hidden], .a11y-btn { display: none; }
.back-btn { flex-shrink: 0; margin-right: .2rem; }
.back-btn svg { width: 22px; height: 22px; }
.a11y-btn span { font: 800 1.02rem/1 var(--f-display); letter-spacing: -.02em; }
.a11y-btn[aria-expanded="true"] { background: var(--marisma); color: #fff; border-color: var(--marisma); }
@media (max-width: 760px) {
  .a11y-btn { display: grid; }
  #themeBtn { display: none; }
  .a11y-fab, .a11y-fab:hover { display: none !important; }
  .a11y-panel { position: fixed; right: 8px !important; left: auto !important; width: min(320px, calc(100vw - 16px)) !important; }
  .back-btn:not([hidden]) { display: grid; }
  .back-btn:not([hidden]) + .brand small { display: none; }
}
@media (min-width: 761px) { .a11y-theme { display: none; } }

/* ═════════ Hoy en Isla Mayor ═════════ */
.hoy { margin-top: 1.6rem; }
.hoy-head { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: .7rem; }
.hoy-head h2 { font-family: var(--f-serif, serif); font-size: 1.5rem; }
.hoy-head span { color: var(--ink-2); font-weight: 700; font-size: .92rem; }
.hoy-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: .6rem; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px 6px; }
.hoy-list::-webkit-scrollbar { display: none; }
.hoy-i { scroll-snap-align: start; display: flex; flex-direction: column; gap: .15rem; padding: .85rem .9rem; border-radius: 16px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid color-mix(in srgb, var(--c) 22%, var(--line)); position: relative; min-height: 118px; transition: transform .15s; }
.hoy-i strong { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hoy-i:active { transform: scale(.98); }
.hoy-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--c); margin-bottom: .3rem; }
.hoy-ico svg { width: 18px; height: 18px; }
.hoy-i small { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--c); }
.hoy-i strong { line-height: 1.25; font-size: .98rem; }
.hoy-s { font-size: .82rem; color: var(--ink-2); }
.hoy-i.hot { background: linear-gradient(150deg, color-mix(in srgb, var(--c) 16%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.hoy-i.ok::after { content: ""; position: absolute; top: .9rem; right: .9rem; width: 10px; height: 10px; border-radius: 50%; background: #2fa84f; box-shadow: 0 0 0 4px rgba(47, 168, 79, .2); }
.now-grid.nw-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.now-grid.nw-2 .now-item:nth-child(n) { border-top: 0; }
.now-grid.nw-2 .now-item:nth-child(2) { border-left: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hoy-i small, :root:not([data-theme="light"]) .hoy-ico { color: color-mix(in srgb, var(--c) 50%, #fff); } }
:root[data-theme="dark"] .hoy-i small, :root[data-theme="dark"] .hoy-ico { color: color-mix(in srgb, var(--c) 50%, #fff); }

/* ═════════ Buscar hablando ═════════ */
.search-big { position: relative; }
.search-big:has(.mic-btn) input { padding-right: 3.4rem; }
.mic-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--marisma) 12%, var(--surface)); color: var(--marisma); cursor: pointer; }
.search-big .mic-btn svg { position: static; transform: none; width: 22px; height: 22px; color: currentColor; }
.mic-btn.on { background: #d92d20; color: #fff; animation: micPulse 1.2s ease-in-out infinite; }
@keyframes micPulse { 50% { box-shadow: 0 0 0 10px rgba(217, 45, 32, .18); } }
.cmdk-in { position: relative; } .cmdk-in .mic-btn { right: 4px; } .cmdk-in:has(.mic-btn) input { padding-right: 3.2rem; }
input[type="search"]::-webkit-search-cancel-button { margin-right: .2rem; }
@media (prefers-reduced-motion: reduce) { .mic-btn.on { animation: none; } }

/* ═════════ Bienvenida ═════════ */
.onb-box { max-width: 440px; }
.onb { display: flex; flex-direction: column; gap: .8rem; text-align: center; align-items: center; padding-top: .4rem; }
.onb-dots { display: flex; gap: .4rem; } .onb-dots span { width: 28px; height: 5px; border-radius: 3px; background: var(--line); } .onb-dots .on { background: var(--marisma); } .onb-dots .done { background: color-mix(in srgb, var(--marisma) 45%, var(--line)); }
.onb-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(180deg, #3aa3ad, #227c88); color: #fff; box-shadow: 0 10px 24px -10px rgba(34, 124, 136, .8); }
.onb-ico svg { width: 32px; height: 32px; }
.onb .modal-title { font-family: var(--f-serif, serif); font-size: 1.5rem; }
.onb p { margin: 0; }
.onb-opts { display: grid; gap: .5rem; width: 100%; }
.onb-opt { display: flex; align-items: center; gap: .7rem; min-height: 56px; padding: .7rem 1rem; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 700 1.05rem var(--f-body); cursor: pointer; text-align: left; }
.onb-opt svg { width: 22px; height: 22px; color: var(--marisma); }
.onb-opt[aria-pressed="true"], .onb-opt:hover { border-color: var(--marisma); background: color-mix(in srgb, var(--marisma) 8%, var(--surface)); }
.onb-main { min-height: 54px; font-size: 1.05rem; background: linear-gradient(180deg, #3aa3ad, #227c88); color: #fff; border-color: transparent; }
.onb-foot { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: .5rem; margin-top: .4rem; }

/* ═════════ Tamaños para tocar con el dedo (mínimo 44 px) ═════════ */
@media (pointer: coarse) {
  .btn, .btn.sm, .chip, .tr-fchip, .vv-nav a, .tl-chips .chip, .inc-t, .onb-opt { min-height: 44px; }
  .btn.sm { padding-inline: .95rem; }
  .icon-btn { width: 44px; height: 44px; }
  .chip { display: inline-flex; align-items: center; }
  .tabbar .tab { min-height: 52px; }
  .vv-rows dd a, .tl-num { min-height: 40px; display: inline-flex; align-items: center; }
}

/* ═════════ Cabeceras de sección unificadas ═════════
   Todas igual que la portada: título serif dorado, entradilla serif, mismo espacio y franja de tablas de arroz abajo.
   Cada sección conserva su color. */
.page-hero, .banner, .tl-hero, body .biz-head.bh2 { position: relative; isolation: isolate; overflow: hidden; }
.page-hero h1, .banner h1, .tl-hero h1, body .biz-head.bh2 h1 {
  font-family: var(--f-serif, Georgia, serif); font-weight: 700; letter-spacing: -.005em; line-height: 1.05; font-size: clamp(2.1rem, 6vw, 3.4rem);
  background: linear-gradient(180deg, #fbecc0 0%, #f0cf7f 50%, #d9a548 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 8px rgba(10, 10, 40, .35)); text-wrap: balance;
}
.page-hero p, .banner p, .tl-hero p:not(.tl-offline), body .biz-head.bh2 p { font-family: var(--f-serif-text, Georgia, serif); font-size: clamp(1rem, 1.5vw, 1.12rem); line-height: 1.6; color: rgba(255, 255, 255, .94); opacity: 1; }
.page-hero { padding-block: 2.4rem 2.6rem; }
.page-hero::after, .tl-hero::after, .banner::before { content: ""; position: absolute; inset: auto 0 0; height: 14px; background: var(--tablas) repeat-x bottom / auto 100%; opacity: .55; z-index: 0; pointer-events: none; }
.page-hero .wrap, .tl-hero .wrap { position: relative; z-index: 1; }
.ph-ico { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fbecc0; }
/* Las cabeceras con paisaje dibujado llevan el mismo velo que la portada, para que el dorado se lea */
.banner::after, .banner[data-phase="dia"]::after { background: linear-gradient(180deg, rgba(24, 28, 70, .55) 0%, rgba(20, 30, 50, .35) 40%, rgba(6, 18, 24, .78) 100%); }
.banner-in { padding-block: 3.2rem 2.4rem; position: relative; z-index: 1; }
.tl-hero { padding-block: 1.8rem 1.6rem; }
/* La de «En cifras» es transparente sobre su foto: sin franja */
.cifras .page-hero::after { display: none; }
@media (max-width: 620px) {
  .page-hero h1, .banner h1, .tl-hero h1, body .biz-head.bh2 h1 { font-size: 2.15rem; }
  .page-hero { padding-block: 1.8rem 2rem; }
  .banner { min-height: 220px; }
  .banner-in { padding-block: 2.4rem 1.8rem; }
}

/* ═════════ Mapa del pueblo ═════════ */
.ph-mapa { --c1: #23304f; --c2: #3d5a8a; }
.mp-page { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.mp-side { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.mp-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
.mp-cats::-webkit-scrollbar { display: none; }
.mp-cats .chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.mp-cats .chip svg { width: 16px; height: 16px; }
.mp-list { display: flex; flex-direction: column; gap: .4rem; max-height: 62vh; overflow-y: auto; padding-right: 2px; }
.mp-item { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; font: inherit; min-height: 56px; }
.mp-item > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mp-item small { color: var(--ink-2); }
.mp-item > svg { width: 18px; height: 18px; color: var(--ink-2); flex-shrink: 0; }
.mp-item[aria-pressed="true"] { border-color: var(--marisma); background: color-mix(in srgb, var(--marisma) 8%, var(--surface)); box-shadow: 0 0 0 1px var(--marisma) inset; }
.mp-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, #3d5a8a 14%, var(--surface)); color: #3d5a8a; flex-shrink: 0; }
.mp-ico svg { width: 19px; height: 19px; }
.mp-map { position: sticky; top: calc(var(--header-h) + 12px); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); min-height: 420px; display: flex; flex-direction: column; scroll-margin-top: calc(var(--header-h) + 10px); }
.mp-map iframe { width: 100%; height: min(70vh, 560px); border: 0; display: block; }
.mp-bar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .7rem .9rem; background: var(--surface); }
.mp-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; text-align: center; padding: 2rem 1.2rem; color: var(--ink-2); }
.mp-empty > svg { width: 44px; height: 44px; color: #3d5a8a; }
.mp-empty p { margin: 0; max-width: 30ch; }
@media (max-width: 860px) {
  .mp-page { grid-template-columns: minmax(0, 1fr); }
  .mp-map { position: relative; top: 0; order: -1; min-height: 0; }
  .mp-map iframe { height: 300px; }
  .mp-empty { padding: 1.2rem; }
  .mp-list { max-height: none; }
}

/* ═════════ ¿Te ha servido? ═════════ */
.fb-box { margin-block: 1rem 2.4rem; display: flex; align-items: center; justify-content: center; gap: .9rem; flex-wrap: wrap; padding: 1rem; border-radius: 18px; border: 1px dashed var(--line); text-align: center; }
.fb-q { margin: 0; font-weight: 700; }
.fb-acts { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.fb-acts .btn svg { width: 18px; height: 18px; }
.fb-thanks { margin: 0; display: inline-flex; align-items: center; gap: .4rem; color: var(--marisma); font-weight: 700; }
.fb-thanks svg { width: 18px; height: 18px; }
.fb-form { display: flex; flex-direction: column; gap: .5rem; width: min(520px, 100%); text-align: left; }
.fb-item { display: flex; flex-direction: column; gap: .2rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; }
.fb-item .tag { align-self: flex-start; } .fb-item p { margin: 0; }

/* ═════════ Panel: Textos y contenidos ═════════ */
.tx-wrap { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.tx-side { position: sticky; top: calc(var(--header-h) + 12px); display: flex; flex-direction: column; gap: .6rem; max-height: calc(100vh - var(--header-h) - 30px); }
.tx-list { overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding-right: 4px; }
.tx-g { margin: .8rem 0 .2rem; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.tx-list button { display: flex; align-items: center; justify-content: space-between; gap: .4rem; text-align: left; padding: .55rem .7rem; border-radius: 10px; border: 0; background: none; color: var(--ink); font: 600 .92rem/1.25 var(--f-body); cursor: pointer; min-height: 40px; }
.tx-list button:hover { background: var(--surface-2); }
.tx-list button[aria-current="true"] { background: color-mix(in srgb, var(--marisma) 12%, var(--surface)); color: var(--marisma); }
.tx-dot { width: 9px; height: 9px; border-radius: 50%; background: #e08a1e; flex-shrink: 0; }
.tx-main { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem; scroll-margin-top: calc(var(--header-h) + 10px); }
.tx-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4rem; padding: 3rem 1rem; color: var(--ink-2); }
.tx-empty > svg { width: 40px; height: 40px; color: var(--marisma); }
.tx-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.tx-head h2 { font-size: 1.35rem; } .tx-head p { margin: .2rem 0 0; }
.tx-form { display: flex; flex-direction: column; gap: .9rem; }
.tx-f { display: flex; flex-direction: column; gap: .25rem; flex: 1; min-width: 0; }
.tx-f label { font-weight: 700; font-size: .85rem; color: var(--ink-2); }
.tx-f textarea { resize: vertical; line-height: 1.5; }
.tx-lock { font-weight: 600; color: #b26a00; }
.tx-check { display: flex; gap: .5rem; align-items: center; font-weight: 700; }
.tx-orig { margin: -.4rem 0 .3rem; font-size: .8rem; color: var(--ink-2); }
.tx-arr { display: flex; flex-direction: column; gap: .5rem; }
.tx-arr-h { display: flex; align-items: baseline; gap: .6rem; }
.tx-row { display: flex; gap: .5rem; align-items: flex-end; }
.tx-add { align-self: flex-start; }
.tx-card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.tx-card > summary, .tx-card-h { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; cursor: pointer; list-style: none; }
.tx-card > summary::-webkit-details-marker { display: none; }
.tx-card-h { cursor: default; }
.tx-card[open] > summary { border-bottom: 1px solid var(--line); background: var(--surface-2); border-radius: 14px 14px 0 0; }
.tx-card > summary .chev { width: 18px; height: 18px; transition: transform .2s; flex-shrink: 0; }
.tx-card[open] > summary .chev { transform: rotate(180deg); }
.tx-n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--marisma) 12%, var(--surface)); color: var(--marisma); font-weight: 800; font-size: .8rem; flex-shrink: 0; }
.tx-t { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-body { padding: .8rem; display: flex; flex-direction: column; gap: .8rem; }
.tx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .6rem; padding: 0 .7rem .7rem; }
.tx-ctrl { display: inline-flex; gap: 2px; flex-shrink: 0; }
.tx-ctrl .icon-btn.sm { width: 32px; height: 32px; min-height: 32px; }
.tx-ctrl .icon-btn svg { width: 16px; height: 16px; }
.tx-ctrl .icon-btn.danger { color: #c0392b; }
.tx-ctrl .icon-btn:disabled { opacity: .3; }
.tx-obj { border: 1px solid var(--line); border-radius: 14px; padding: .8rem .9rem; display: flex; flex-direction: column; gap: .7rem; margin: 0; }
.tx-obj legend { font-weight: 800; padding: 0 .4rem; }
.tx-bar { position: sticky; bottom: 0; margin: 1.2rem -1.2rem -1.2rem; padding: .8rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); border-radius: 0 0 18px 18px; z-index: 3; }
.tx-state { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.tx-state svg { width: 16px; height: 16px; }
.tx-state.dirty { color: #b26a00; }
.tx-bar-acts { display: flex; gap: .4rem; flex-wrap: wrap; }
@media (max-width: 860px) {
  .tx-wrap { grid-template-columns: minmax(0, 1fr); }
  .tx-side { position: static; max-height: none; }
  .tx-list { max-height: 260px; border: 1px solid var(--line); border-radius: 14px; padding: .3rem .5rem; }
  .tx-main { padding: 1rem; }
  .tx-bar { margin: 1rem -1rem -1rem; padding: .7rem 1rem; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .tx-ctrl .icon-btn.sm { width: 36px; height: 36px; }
}
/* Panel en el móvil: el menú de secciones se desliza sin ensanchar la página */
.admin-layout > * { min-width: 0; }
.admin-nav nav { max-width: 100%; }
.admin-layout .grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.admin-layout .grid-2 > * { min-width: 0; }
/* Cabecera del móvil: nunca más ancha que la pantalla (el panel sigue en el menú «Más») */
@media (max-width: 760px) {
  #adminBtn { display: none !important; }
  header.top .brand { flex-shrink: 1; min-width: 0; }
  header.top .brand > span, header.top .brand b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 370px) { .back-btn:not([hidden]) ~ .brand .b1, .back-btn:not([hidden]) ~ .brand .b2 { display: none; } }
/* Pie en pantallas muy estrechas (320 px): las columnas no ensanchan la página */
.foot > * { min-width: 0; }
footer .brand { flex-shrink: 1; min-width: 0; flex-wrap: wrap; }
@media (max-width: 400px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .foot > .stack { grid-column: 1 / -1; } }
/* Franjas deslizables a todo el ancho del móvil, sea cual sea el margen de la pantalla */
@media (max-width: 620px) {
  .hoy-list, .tl-chips, .tr-fchips, .mp-cats, .tr-pop, .vv-nav .wrap { margin-inline: calc(50% - 50vw) !important; padding-inline: calc(50vw - 50%) !important; }
}
.biz-cats a { min-width: 0; overflow-wrap: anywhere; }
.biz-cats a > span { min-width: 0; }
@media (max-width: 360px) { .biz-cats a { padding: .65rem; gap: .5rem; font-size: .86rem; } }
@media (max-width: 760px) { .a11y-panel { z-index: 120 !important; overflow-y: auto; overscroll-behavior: contain; } }
/* 320 px: botones del Chat y portada de Alfonso XIII sin salirse */
.composer-acts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.composer-acts button { min-width: 0; }
@media (max-width: 360px) { .composer-acts button { font-size: .82rem; gap: .3rem; } .composer-acts svg { width: 19px; height: 19px; } }
.ax-hero, .ax-hero > * { min-width: 0; }
.ax-hero h2, .ax-hero p { overflow-wrap: anywhere; }
@media (max-width: 760px) { .ax-hero { grid-template-columns: minmax(0, 1fr) !important; } .ax-hero .row { flex-wrap: wrap; } .ax-hero .btn { white-space: normal; } }
.ax-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ax-facts div { min-width: 0; overflow-wrap: anywhere; } @media (max-width: 360px) { .ax-facts strong { font-size: 1.15rem; } }

/* ═════════ Ordenador: sin flecha atrás (hay menú arriba) y cambio de pantalla con fundido, sin deslizar ═════════ */
@media (min-width: 761px) {
  .back-btn, .back-btn:not([hidden]) { display: none !important; }
  html[data-vt="forward"]::view-transition-new(pantalla), html[data-vt="back"]::view-transition-new(pantalla) { animation: vtFadeIn .22s ease-out both; }
  html[data-vt="forward"]::view-transition-old(pantalla), html[data-vt="back"]::view-transition-old(pantalla) { animation: vtFadeOut .16s ease-in both; }
}
@keyframes vtFadeIn { from { opacity: 0; } }

/* ═════════ Flechas de los menús horizontales ═════════ */
.hs { position: relative; min-width: 0; }
.hs-btn { position: absolute; top: 50%; z-index: 4; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .28); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
.hs-btn svg { width: 18px; height: 18px; }
.hs-prev { left: -4px; transform: translateX(-4px); } .hs-next { right: -4px; transform: translateX(4px); }
.hs.can-prev .hs-prev, .hs.can-next .hs-next { opacity: 1; pointer-events: auto; transform: none; }
.hs-btn:hover { background: var(--marisma); color: #fff; border-color: var(--marisma); }
/* Lo que queda debajo de la flecha se difumina, para que se vea que hay más */
.hs.can-next > :not(.hs-btn) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 64px), transparent); }
.hs.can-prev > :not(.hs-btn) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 64px); mask-image: linear-gradient(90deg, transparent, #000 64px); }
.hs.can-prev.can-next > :not(.hs-btn) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent); }
.hs:not(.can-prev):not(.can-next) > :not(.hs-btn) { -webkit-mask-image: none; mask-image: none; }
.hoy .hs-btn { margin-top: -22px; }
@media (max-width: 620px) { .hs-prev { left: 2px; } .hs-next { right: 2px; } .hs-btn { width: 34px; height: 34px; margin-top: -17px; } }
@media (pointer: coarse) { .hs-btn { width: 40px; height: 40px; margin-top: -20px; } }
.hs > :not(.hs-btn) { scroll-snap-type: none !important; }
/* Móvil con flecha atrás: el nombre del portal cabe entero */
@media (max-width: 430px) { .back-btn:not([hidden]) ~ .brand { gap: .4rem; } .back-btn:not([hidden]) ~ .brand .b1 { font-size: 1.02rem; } .back-btn:not([hidden]) ~ .brand img, .back-btn:not([hidden]) ~ .brand svg { width: 34px; height: 34px; } }

/* Tarjetas «ahora» de la portada: sólidas y legibles (sin cristal sobre el paisaje) */
.now-grid { background: var(--surface) !important; border: 1px solid var(--line) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: 0 16px 40px -14px rgba(10, 20, 40, .45) !important; overflow: hidden; }
.now-item { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 9%, var(--surface)) 0%, var(--surface) 70%) !important; }
.now-item .v { color: var(--ink); }
.now-item .s { color: var(--ink-2); }

/* Chat: «Ordenar» cabe en móviles de 320px aunque la letra del sistema sea ancha */
.fb-topics-head { flex-wrap: wrap; row-gap: 4px; min-width: 0; }
.fb .sort { min-width: 0; max-width: 100%; }
.fb .sort select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
@media (max-width: 360px) { .fb .sort > .muted { display: none; } }
/* Las flechas ‹ › nunca asoman por fuera de la pantalla (antes ensanchaban la página en tableta y ordenador) */
.hs-prev { left: 0; transform: translateX(4px); } .hs-next { right: 0; transform: translateX(-4px); }
@media (max-width: 620px) { .hs-prev { left: 2px; } .hs-next { right: 2px; } }

/* Agenda: cartel de la actividad (las que vienen de Instagram) */
.ag-card .ag-img { grid-column: 1 / -1; display: block; background: var(--k-soft); border-bottom: 1px solid var(--line); }
.ag-card .ag-img img { display: block; width: 100%; height: 240px; object-fit: contain; }
@media (max-width: 520px) { .ag-card .ag-img img { height: 200px; } }

/* Panel → Agenda → Instagram */
.ig-top { gap: .8rem; align-items: flex-start; flex-wrap: nowrap; }
.ig-top > div { min-width: 0; }
.ig-badge { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); }
.ig-badge svg { width: 24px; height: 24px; }
.ig-opts { gap: .6rem 1.2rem; flex-wrap: wrap; align-items: center; }
.ig-help { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; background: var(--surface-2, var(--surface)); }
.ig-help summary { cursor: pointer; font-weight: 700; display: flex; gap: .5rem; align-items: center; }
.ig-help summary svg { width: 18px; height: 18px; flex-shrink: 0; }
.ig-help ol { margin: .7rem 0; padding-left: 1.3rem; display: grid; gap: .5rem; }
.ig-help code { overflow-wrap: anywhere; }
.ig-drafts { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.ig-d { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: .8rem; padding: .7rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ig-d img, .ig-noimg { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; background: var(--line); }
.ig-noimg { display: grid; place-items: center; color: var(--ink-2); }
.ig-d-body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; overflow-wrap: anywhere; }
.ig-d-acts { gap: .4rem; flex-wrap: wrap; margin-top: .2rem; }
.ig-warn { margin: 0; font-size: .85rem; font-weight: 700; color: #b45309; }
.ig-pill { display: inline-flex; align-items: center; gap: .25rem; vertical-align: 1px; }
.ig-pill svg { width: 13px; height: 13px; }
.ig-form-img { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.ig-form-img img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ig-warn { color: #fbbf24; } }
:root[data-theme="dark"] .ig-warn { color: #fbbf24; }

/* Panel → Diseño de la web */
.ds-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin-block: 1rem; }
.ds-card { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.ds-card.is-shown { outline: 3px solid var(--marisma); outline-offset: -1px; }
.ds-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .4rem; }
.ds-acts { gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .3rem; }
.ds-mock { position: relative; height: 150px; background: var(--c4); display: grid; grid-template-rows: 12px 64px 1fr; gap: 0; padding: 0; color: #000; }
.ds-mock > span:not(.ds-head) { display: block; }
.ds-bar { background: var(--c4); border-bottom: 3px solid var(--c1); }
.ds-head { display: flex; align-items: center; padding: 0 14px; }
.ds-head b { font-size: 1.15rem; line-height: 1; }
.ds-line { height: 8px; margin: 12px 14px 0; border-radius: 4px; background: color-mix(in srgb, #000 14%, var(--c4)); width: 70%; }
.ds-line.short { width: 45%; margin-top: 8px; }
.ds-btn { position: absolute; right: 14px; bottom: 14px; width: 74px; height: 24px; border-radius: 999px; background: var(--c2); }
.ds-mock-marisma .ds-bar { border-image: linear-gradient(90deg, #2d8bd6, #5fb82a, #f5b700) 1; }
.ds-mock-marisma .ds-head { background: linear-gradient(180deg, #3a3f7a, #1f4a2a); }
.ds-mock-marisma .ds-head b { font-family: "Playfair Display", Georgia, serif; color: #f0cf7f; font-size: 1.4rem; }
.ds-mock-pueblo .ds-head { background: var(--c1) repeating-conic-gradient(from 45deg, #fff 0 25%, transparent 0 50%) 0 0 / 16px 16px; border-bottom: 5px solid var(--c2); }
.ds-mock-pueblo .ds-head b { background: #fff; color: var(--c1); font-family: "Young Serif", Georgia, serif; font-weight: 400; padding: .3em .6em; border: 2px solid var(--c1); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--c1); border-radius: 6px; }
.ds-mock-pueblo .ds-btn { background: var(--c1); border-radius: 5px; }
.ds-mock-campo .ds-bar { border-bottom: 4px solid #000; }
.ds-mock-campo .ds-head { background: var(--c1); border-bottom: 3px solid #000; }
.ds-mock-campo .ds-head b { font-family: "Big Shoulders Display", "Arial Narrow", sans-serif; font-weight: 900; font-size: 1.9rem; color: #000; }
.ds-mock-campo .ds-btn { background: var(--c1); border: 2.5px solid #000; border-radius: 3px; box-shadow: 3px 3px 0 #000; }
.ds-mock-campo .ds-line { border-radius: 0; background: #000; opacity: .18; }


/* ═════════ Cabeceras de sección · diseño 2026 ═════════
   Panel flotante con el color profundo de cada sección: luz suave a la derecha, grano fino,
   espigas de arroz dibujadas abajo y un sello giratorio «Isla Mayor · Alfonso XIII».
   El texto siempre cae sobre la zona más oscura: blanco sobre azul/verde/teja muy profundos (contraste AAA).
   Solo para el diseño «Marisma»; «Pueblo blanco» y «Señales del campo» siguen con lo suyo. */
.hx { --hx-deep: #0a2440; --hx-mid: #1d6fb0; --hx-acc: #ffd27a; }
.hx-tramites { --hx-deep: #0a2440; --hx-mid: #1f74b8; --hx-acc: #ffd27a; }
.hx-explora { --hx-deep: #052a28; --hx-mid: #128a7b; --hx-acc: #a6ecd0; }
.hx-comer { --hx-deep: #34110a; --hx-mid: #c4521d; --hx-acc: #ffc58e; }
.hx-negocios { --hx-deep: #0c2a0f; --hx-mid: #3d9426; --hx-acc: #f5c842; }
.hx-telefonos { --hx-deep: #081d36; --hx-mid: #2a67b0; --hx-acc: #9ad6ff; }
.hx-normas, .hx-servicios { --hx-deep: #0c2a0f; --hx-mid: #3a8f25; --hx-acc: #c8ec8a; }
.hx-datos, .hx-contacto { --hx-deep: #1c1442; --hx-mid: #6b4bb8; --hx-acc: #d9c8ff; }
.hx-ayudas { --hx-deep: #052a24; --hx-mid: #13866f; --hx-acc: #9ff0d6; }
.hx-empleo { --hx-deep: #0a2140; --hx-mid: #2563a8; --hx-acc: #ffd27a; }
.hx-avisos { --hx-deep: #33130a; --hx-mid: #c45227; --hx-acc: #ffcf9a; }
.hx-incidencias { --hx-deep: #340c1b; --hx-mid: #b3305a; --hx-acc: #ffc2d4; }
.hx-mapa { --hx-deep: #111a30; --hx-mid: #3d5a8a; --hx-acc: #ffd27a; }

/* Fuera los adornos antiguos (franja de tablas, velos, paisaje pintado) */
:root:not([data-design]) .hx::before, :root:not([data-design]) .hx::after { display: none !important; content: none; }
:root:not([data-design]) .banner.hx > img { display: none; }
:root[data-design] :is(.hx-deco, .hx-seal) { display: none !important; }

:root:not([data-design]) .hx {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  min-height: clamp(300px, 34vw, 380px); color: #fff;
  margin: 14px clamp(8px, 1.6vw, 22px) 0; border-radius: 30px; border: 0;
  background:
    radial-gradient(90% 130% at 0% 30%, var(--hx-deep) 38%, transparent 72%),
    radial-gradient(60% 110% at 86% 18%, color-mix(in srgb, var(--hx-mid) 92%, transparent), transparent 68%),
    radial-gradient(45% 80% at 102% 104%, color-mix(in srgb, var(--hx-acc) 38%, transparent), transparent 70%),
    linear-gradient(115deg, var(--hx-deep) 30%, color-mix(in srgb, var(--hx-deep) 55%, var(--hx-mid))) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 24px 60px -32px color-mix(in srgb, var(--hx-deep) 90%, transparent);
  padding-block: 0 !important;
}
:root:not([data-design]) .hx-in { position: relative; z-index: 2; width: 100%; padding-block: clamp(2.4rem, 5vw, 3.6rem) clamp(2.8rem, 5.4vw, 4rem) !important; display: block; }
:root:not([data-design]) .hx-txt { max-width: min(760px, 62%); display: flex; flex-direction: column; align-items: flex-start; }

/* Decoración de fondo */
.hx-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* Foto: ocupa la derecha, en blanco y negro fundido con el color de la sección; a la izquierda desaparece del todo */
.hx-photo { position: absolute; inset: 0 0 0 auto; width: 74%; background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: .5; mix-blend-mode: luminosity; filter: contrast(1.05) saturate(0);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 32%, #000 72%), linear-gradient(0deg, rgba(0, 0, 0, .55), #000 40%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 32%, #000 72%); }
.hx-photo:not([style]) { display: none; }
.hx-glow { position: absolute; width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; right: -8vw; top: -22vw; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--hx-acc) 34%, transparent), transparent 62%); filter: blur(10px); animation: hxDrift 18s ease-in-out infinite alternate; }
@keyframes hxDrift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-6vw, 5vw, 0) scale(1.12); } }
.hx-deco::after { content: ""; position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hx-reeds { position: absolute; right: 0; bottom: 0; width: 50%; height: 60%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.hx-reeds .hx-st { stroke: rgba(255, 255, 255, .13); stroke-width: 1.6; }
.hx-reeds .hx-gr { stroke: color-mix(in srgb, var(--hx-acc) 55%, transparent); stroke-width: 3.2; }
.hx-reeds .hx-water { stroke: rgba(255, 255, 255, .1); stroke-width: 1.2; }

/* Sello giratorio */
.hx-seal { position: absolute; z-index: 1; right: clamp(28px, 7vw, 120px); top: 50%; width: clamp(150px, 15vw, 200px); aspect-ratio: 1; transform: translateY(-50%); display: grid; place-items: center; pointer-events: none; }
.hx-seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: hxSpin 48s linear infinite; overflow: visible; }
.hx-seal text { fill: rgba(255, 255, 255, .62); font: 700 11.5px/1 var(--f-display); letter-spacing: .5px; }
.hx-seal-ico { width: 44%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--hx-acc); color: var(--hx-deep);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .06), 0 0 0 22px rgba(255, 255, 255, .03), 0 18px 50px -8px color-mix(in srgb, var(--hx-acc) 60%, transparent); }
.hx-seal-ico svg { width: 42%; height: 42%; animation: none; position: static; }
@keyframes hxSpin { to { transform: rotate(360deg); } }

/* Texto */
.hx-eyebrow { display: inline-flex; align-items: center; gap: .55rem; padding: .38rem .9rem .38rem .38rem; border-radius: 999px;
  font: 700 .76rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: #fff;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hx-eb-ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--hx-acc); color: var(--hx-deep); }
.hx-eb-ico svg { width: 15px; height: 15px; }
:root:not([data-design]) .hx h1 {
  margin: 1.1rem 0 0; font-family: var(--f-serif, "Playfair Display", Georgia, serif); font-weight: 700;
  font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: .98; letter-spacing: -.025em; text-wrap: balance;
  color: #fff; background: none; -webkit-background-clip: border-box; background-clip: border-box; filter: none; text-shadow: none;
}
:root:not([data-design]) .hx h1 em { font-style: italic; font-weight: 500; color: var(--hx-acc); letter-spacing: -.015em; padding-right: .04em; }
:root:not([data-design]) .hx p:not(.tl-offline) {
  margin: 1.1rem 0 0; max-width: 54ch; font-family: var(--f-serif-text, "Lora", Georgia, serif);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.62; color: rgba(255, 255, 255, .88); text-shadow: none; opacity: 1;
}
:root:not([data-design]) .hx .tl-offline { margin-top: 1.1rem; background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .18); }

/* Entrada: el texto sube suave al abrir la sección */
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-design]) .hx-txt > * { animation: hxUp .7s cubic-bezier(.2, .7, .2, 1) both; }
  :root:not([data-design]) .hx-txt > :nth-child(2) { animation-delay: .06s; }
  :root:not([data-design]) .hx-txt > :nth-child(n+3) { animation-delay: .12s; }
}
@keyframes hxUp { from { transform: translateY(10px); opacity: .001; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hx-glow, .hx-seal svg { animation: none; } }

/* Negocios: buscador y cifras dentro del panel */
:root:not([data-design]) .hx.bh2 .bh2-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
:root:not([data-design]) .hx.bh2 .hx-txt { max-width: 760px; }
:root:not([data-design]) .hx.bh2 .search-big { margin-top: 1.5rem; width: 100%; max-width: 620px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); }
:root:not([data-design]) .hx.bh2 .bh2-stats { position: relative; z-index: 2; padding: 1.1rem 1.2rem; border-radius: 22px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
:root:not([data-design]) .hx.bh2 .bh2-stats b { color: var(--hx-acc); font-size: 2rem; }
:root:not([data-design]) .hx.bh2 .bh2-stats span { color: rgba(255, 255, 255, .8); opacity: 1; }

/* En cifras: el panel va encima de su foto morada */
:root:not([data-design]) .cifras .hx { background-color: transparent; }

@media (max-width: 980px) {
  .hx-seal { display: none; }
  :root:not([data-design]) .hx-txt { max-width: 100%; }
  :root:not([data-design]) .hx.bh2 .bh2-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  :root:not([data-design]) .hx { margin: 10px 8px 0; border-radius: 24px; min-height: 0; }
  :root:not([data-design]) .hx-in { padding-block: 1.8rem 4.2rem !important; }
  :root:not([data-design]) .hx h1 { font-size: clamp(2.1rem, 9.4vw, 2.6rem); margin-top: .9rem; }
  :root:not([data-design]) .hx p:not(.tl-offline) { font-size: 1.02rem; margin-top: .8rem; }
  .hx-reeds { width: 100%; height: 58px; opacity: .8; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
  .hx-photo { width: 100%; opacity: .32; -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .35) 45%, #000); mask-image: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .35) 45%, #000); }
  .hx-eyebrow { font-size: .7rem; }
}

/* Ilustraciones del pueblo: en color, suaves y fundidas hacia la izquierda; el texto queda sobre el fondo liso */
.hx-ilu .hx-photo { mix-blend-mode: normal; filter: saturate(.9); opacity: .62; width: 66%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 22%, rgba(0, 0, 0, .8) 55%, #000 80%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 22%, rgba(0, 0, 0, .8) 55%, #000 80%); }
.hx-ilu .hx-reeds { display: none; }
.hx-ilu .hx-glow { opacity: .5; }
@media (max-width: 620px) {
  .hx-ilu .hx-photo { width: 100%; opacity: .34;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .2) 0%, rgba(0, 0, 0, .45) 50%, #000);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .2) 0%, rgba(0, 0, 0, .45) 50%, #000); }
}
/* Móvil: la ilustración baja a una franja bajo el texto, así no queda nada detrás de las letras */
@media (max-width: 620px) {
  :root:not([data-design]) .hx:has(.hx-ilu):not(.bh2) .hx-in { padding-bottom: 8.6rem !important; }
  :root:not([data-design]) .hx:not(.bh2) .hx-ilu .hx-photo { inset: auto 0 0 0; width: 100%; height: 9.5rem; opacity: .9;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .7) 35%, #000 70%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .7) 35%, #000 70%); }
  :root:not([data-design]) .bh2 .hx-ilu .hx-photo { opacity: .2; }
}

/* ═════════ Pie de página · diseño 2026 ═════════
   Verde marisma de noche con grano y espigas (a juego con las cabeceras), bloque para participar,
   enlaces agrupados por lo que busca la gente y el nombre del pueblo enorme al final.
   En el móvil: cada grupo en su tarjeta y los enlaces como botones grandes y separados. */
:root:not([data-design]) footer.fx {
  --fx-deep: #0a1d14; --fx-mid: #17402a; --fx-acc: #f5c842; --fx-ink: #f2f7ef; --fx-ink-2: rgba(242, 247, 239, .74); --fx-line: rgba(255, 255, 255, .1);
  position: relative; isolation: isolate; overflow: hidden; color: var(--fx-ink); border: 0;
  background: radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, #2f7d1e 45%, transparent), transparent 60%),
              radial-gradient(60% 80% at 0% 100%, color-mix(in srgb, #1a73a8 22%, transparent), transparent 60%),
              linear-gradient(180deg, var(--fx-mid), var(--fx-deep) 55%);
  padding-block: clamp(2.4rem, 5vw, 4rem) 0 !important;
  margin-top: clamp(2rem, 5vw, 4rem); border-radius: 32px 32px 0 0;
}
:root:not([data-design]) footer.fx::before { display: none; }
.fx-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .2; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.fx-wrap { display: flex; flex-direction: column; gap: clamp(2.2rem, 4vw, 3.2rem); position: relative; z-index: 1; }

/* Bloque «participa» */
.fx-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem 2.4rem; flex-wrap: wrap;
  padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 26px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.fx-cta-txt { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.fx-kick { font: 700 .74rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--fx-acc, #f5c842); }
.fx-cta-h { margin: 0; font: 700 clamp(1.5rem, 2.8vw, 2.1rem)/1.12 var(--f-serif, Georgia, serif); color: #fff; text-wrap: balance; letter-spacing: -.01em; }
.fx-cta p { margin: 0; max-width: 58ch; color: rgba(242, 247, 239, .8); font-family: var(--f-serif-text, Georgia, serif); line-height: 1.6; }
.fx-cta-acts { display: flex; gap: .7rem; flex-wrap: wrap; }
.fx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 1.4rem; border-radius: 999px;
  font: 700 1rem/1 var(--f-display); text-decoration: none; color: #fff; border: 1.5px solid rgba(255, 255, 255, .3); transition: background .15s, transform .15s; }
.fx-btn:hover { background: rgba(255, 255, 255, .1); transform: translateY(-1px); }
.fx-btn-main { background: #f5c842; color: #1d1803; border-color: #f5c842; }
.fx-btn-main:hover { background: #ffd65c; }

/* Rejilla de enlaces */
:root:not([data-design]) footer.fx .fx-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 2rem; }
.fx-about { display: flex; flex-direction: column; gap: 1rem; padding-right: 1rem; }
:root:not([data-design]) footer.fx .brand { color: #fff !important; text-decoration: none; }
:root:not([data-design]) footer.fx .brand .v { color: var(--fx-acc); }
:root:not([data-design]) footer.fx .brand small { color: #f5c842; }
.fx-lead { margin: 0; color: rgba(242, 247, 239, .86); font-family: var(--f-serif-text, Georgia, serif); line-height: 1.6; max-width: 40ch; }
.fx-note { margin: 0; font-size: .86rem; line-height: 1.5; color: rgba(242, 247, 239, .62); max-width: 44ch; }
:root:not([data-design]) footer.fx h4 { margin: 0 0 .9rem; font: 700 .76rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--fx-acc) !important; }
.fx-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
:root:not([data-design]) footer.fx .fx-col a { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem 0; color: rgba(242, 247, 239, .9);
  text-decoration: none; font-size: .98rem; line-height: 1.3; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .2s, color .15s; }
:root:not([data-design]) footer.fx .fx-col a:hover { color: #fff; background-size: 100% 1px; }
footer.fx a:focus-visible { outline: 2px solid #f5c842; outline-offset: 3px; border-radius: 6px; }
.fx-ext { width: 14px; height: 14px; opacity: .7; flex-shrink: 0; }

/* Barra legal */
.fx-bottom { display: flex; justify-content: space-between; align-items: center; gap: .8rem 2rem; flex-wrap: wrap; padding-block: 1.3rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.fx-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
:root:not([data-design]) footer.fx .fx-legal a { color: rgba(242, 247, 239, .82); text-decoration: none; font-size: .9rem; padding: .2rem 0; }
:root:not([data-design]) footer.fx .fx-legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.fx-src { margin: 0; font-size: .8rem; color: rgba(242, 247, 239, .55); }

/* El nombre del pueblo, enorme y tenue, cerrando la página */
.fx-word { position: relative; z-index: 0; text-align: center; white-space: nowrap; pointer-events: none; user-select: none;
  font: 700 clamp(4.5rem, 17vw, 15rem)/.8 var(--f-serif, Georgia, serif); letter-spacing: -.04em; margin-top: .4rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: -.12em; }
:root[data-design] .fx-word, :root[data-design] .fx-bg { display: none; }

@media (max-width: 1100px) {
  :root:not([data-design]) footer.fx .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .fx-about { grid-column: 1 / -1; padding: 0 0 .6rem; }
}
/* Móvil: tarjetas con botones grandes, uno al lado de otro y bien separados */
@media (max-width: 760px) {
  :root:not([data-design]) footer.fx { border-radius: 26px 26px 0 0; padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important; }
  :root:not([data-design]) footer.fx .fx-grid { grid-template-columns: minmax(0, 1fr); gap: .9rem; }
  .fx-col { padding: 1.1rem 1rem 1rem; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
  .fx-col ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .fx-official ul { grid-template-columns: minmax(0, 1fr); }
  :root:not([data-design]) footer.fx .fx-col a { display: flex; justify-content: space-between; min-height: 52px; height: 100%; padding: .65rem .85rem; border-radius: 14px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); font-size: 1rem; font-weight: 600; color: #fff; }
  :root:not([data-design]) footer.fx .fx-col a:hover, :root:not([data-design]) footer.fx .fx-col a:active { background: rgba(255, 255, 255, .14); }
  .fx-cta-acts { width: 100%; } .fx-btn { flex: 1 1 160px; }
  .fx-bottom { flex-direction: column; align-items: flex-start; }
  .fx-legal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; width: 100%; }
  :root:not([data-design]) footer.fx .fx-legal a { display: flex; align-items: center; min-height: 46px; padding: 0 .85rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); }
  .fx-word { font-size: 24vw; }
}
@media (max-width: 340px) { .fx-col ul { grid-template-columns: minmax(0, 1fr); } }
/* Ajustes del pie: la regla antigua de 2 columnas en móvil no debe aplicarse; flecha externa pegada al texto */
:root:not([data-design]) footer.fx .fx-official a { display: inline; }
:root:not([data-design]) footer.fx .fx-official .fx-ext { display: inline-block; vertical-align: -1px; margin-left: .3rem; }
@media (max-width: 760px) {
  :root:not([data-design]) footer.fx .foot.fx-grid { grid-template-columns: minmax(0, 1fr) !important; }
  :root:not([data-design]) footer.fx .fx-official a { display: flex; }
  :root:not([data-design]) footer.fx .fx-official .fx-ext { margin-left: .5rem; width: 16px; height: 16px; }
}

/* Logotipo: la espiga de arroz */
.brand .brand-ico { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; box-shadow: 0 1px 3px rgba(16, 24, 40, .16), inset 0 0 0 1px rgba(0, 0, 0, .04); background: #fff; }
footer .brand .brand-ico { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5); }
@media (max-width: 430px) { .brand .brand-ico { width: 36px; height: 36px; } }
/* Logotipo sin fondo: solo la espiga */
.brand .brand-ico, footer .brand .brand-ico { background: none !important; box-shadow: none !important; border-radius: 0; }
/* Chat: la cabecera ya lleva el título; abajo quedan miembros y botones */
.fb .group-title .group-name { display: none; }
.fb > .banner.hx { margin-bottom: .4rem; }
/* Negocios: cifras en caja sólida, se leen sobre cualquier foto */
:root:not([data-design]) .hx.bh2 .bh2-stats { background: color-mix(in srgb, var(--hx-deep) 92%, #000); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); }
:root:not([data-design]) .hx.bh2 .bh2-stats b { color: #ffd65c; }
:root:not([data-design]) .hx.bh2 .bh2-stats span { color: rgba(255, 255, 255, .85); }

/* ═════════ Portada · diseño 2026 ═════════
   Foto real según la hora, velo oscuro solo a la izquierda (donde va el texto), título blanco con
   «el país del agua» en cursiva dorada, buscador grande, búsquedas frecuentes y accesos rápidos.
   Más baja que antes: las tarjetas de «ahora» asoman sin hacer scroll. */
:root:not([data-design]) .hero, :root:not([data-design]) .hero[data-phase] { min-height: clamp(560px, 70vh, 700px); }
:root:not([data-design]) .hero .wrap { display: flex; flex-direction: column; justify-content: center; gap: 2rem; padding-block: clamp(2.4rem, 6vh, 4rem) 6.4rem; }
:root:not([data-design]) .hero[data-photo]::after, :root:not([data-design]) .hero[data-photo][data-phase]::after {
  background:
    linear-gradient(90deg, rgba(6, 14, 24, .86) 0%, rgba(6, 14, 24, .7) 30%, rgba(6, 14, 24, .28) 58%, rgba(6, 14, 24, .05) 80%),
    linear-gradient(0deg, rgba(6, 14, 24, .55) 0%, transparent 32%), linear-gradient(180deg, rgba(6, 14, 24, .35), transparent 20%);
}
:root:not([data-design]) .hero[data-photo] canvas { display: none; }
:root:not([data-design]) .hero h1, :root:not([data-design]) .hero[data-phase] h1, :root:not([data-design]) .hero[data-photo] h1 {
  background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fff; -webkit-text-fill-color: #fff; filter: none;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35); font-size: clamp(3rem, 7vw, 5.4rem); letter-spacing: -.025em; line-height: .95;
}
:root:not([data-design]) .hero h1 .line2 { color: #f6d27a; -webkit-text-fill-color: #f6d27a; font-size: .6em; margin-top: .2em; letter-spacing: -.01em; }
:root:not([data-design]) .hero-lead, :root:not([data-design]) .hero[data-phase] .hero-lead {
  background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; border-radius: 0; margin: 1.3rem 0 0;
  color: rgba(255, 255, 255, .92); text-shadow: 0 1px 12px rgba(0, 0, 0, .5); max-width: 52ch; font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}
:root:not([data-design]) .hero-lead .hl { color: #f6d27a; }

/* Buscador grande */
.hs-box { display: flex; align-items: center; gap: .8rem; width: min(620px, 100%); min-height: 62px; margin-top: 1.8rem; padding: .4rem .45rem .4rem 1.2rem;
  border-radius: 999px; border: 0; background: #fff; color: #5d6670; font: 500 1.05rem/1.2 var(--f-body, system-ui); text-align: left; cursor: text;
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .6), 0 0 0 6px rgba(255, 255, 255, .12); transition: box-shadow .15s, transform .15s; }
.hs-box:hover { transform: translateY(-1px); box-shadow: 0 24px 56px -18px rgba(0, 0, 0, .65), 0 0 0 6px rgba(255, 255, 255, .2); }
.hs-box > svg { width: 22px; height: 22px; color: #2f7d1e; flex-shrink: 0; }
.hs-box span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-box kbd { font: 700 .95rem/1 var(--f-display); color: #1d1803; background: #f5c842; border-radius: 999px; padding: .95rem 1.3rem; flex-shrink: 0; }
.hs-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.hs-tags button { min-height: 36px; padding: 0 .9rem; border-radius: 999px; cursor: pointer; font: 600 .9rem/1 var(--f-body, system-ui); color: #fff;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hs-tags button:hover { background: rgba(255, 255, 255, .22); }

/* Accesos rápidos */
.hq { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .7rem; max-width: 980px; }
.hq-i { display: flex; align-items: center; gap: .7rem; min-height: 64px; padding: .6rem .8rem; border-radius: 18px; text-decoration: none; color: #fff;
  background: rgba(8, 18, 28, .62); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .15s, transform .15s; min-width: 0; }
.hq-i:hover { background: rgba(8, 18, 28, .8); transform: translateY(-2px); }
.hq-i b { display: block; font: 800 1rem/1.1 var(--f-display); }
.hq-i small { display: block; font-size: .8rem; color: rgba(255, 255, 255, .78); margin-top: 2px; }
.hq-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: rgba(255, 255, 255, .14); color: #f6d27a; }
.hq-ico svg { width: 20px; height: 20px; }
.hq-sos { background: #c62828; border-color: #e35a50; }
.hq-sos:hover { background: #b71c1c; }
.hq-sos .hq-ico { background: rgba(255, 255, 255, .2); color: #fff; }
:root[data-design] .hq, :root[data-design] .hs-tags { display: none; }

/* Las tarjetas «ahora» suben y se ven sin hacer scroll */
:root:not([data-design]) .now { margin-top: -3.6rem; }

/* Botón de accesibilidad a la derecha, encima de «subir» (ya no tapa nada) */
.a11y-fab { left: auto !important; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; width: 52px !important; height: 52px !important; }
@media (max-width: 960px) { .a11y-fab { bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important; width: 48px !important; height: 48px !important; } }

@media (max-width: 1000px) { .hq { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  :root:not([data-design]) .hero, :root:not([data-design]) .hero[data-phase] { min-height: 0; }
  :root:not([data-design]) .hero .wrap { padding-block: 1.8rem 5.6rem; gap: 1.4rem; }
  :root:not([data-design]) .hero[data-photo]::after, :root:not([data-design]) .hero[data-photo][data-phase]::after {
    background: linear-gradient(180deg, rgba(6, 14, 24, .78) 0%, rgba(6, 14, 24, .66) 50%, rgba(6, 14, 24, .8) 100%); }
  :root:not([data-design]) .hero h1, :root:not([data-design]) .hero[data-phase] h1 { font-size: 3rem; }
  :root:not([data-design]) .hero-lead, :root:not([data-design]) .hero[data-phase] .hero-lead { margin-inline: 0; padding: 0; font-size: 1.02rem; }
  .hs-box { min-height: 56px; margin-top: 1.4rem; font-size: .98rem; }
  .hs-box kbd { padding: .8rem 1rem; }
  .hq { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .hq-i { min-height: 60px; padding: .55rem .65rem; }
}
.hq { max-width: none; }
.hs-short { display: none; }
@media (max-width: 620px) { .hs-long { display: none; } .hs-short { display: block; } }

/* ═════════ Barra superior: color de navegación, subtítulo y botones distinguibles ═════════ */
:root { --nav-on: #0f4c5c; --nav-on-ink: #ffffff; --sub-ink: #9a5a00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --nav-on: #7fd0dc; --nav-on-ink: #06262d; --sub-ink: #f5c842; } }
:root[data-theme="dark"] { --nav-on: #7fd0dc; --nav-on-ink: #06262d; --sub-ink: #f5c842; }
/* Sección activa: azul petróleo de los caños (el verde se queda para el logotipo y los botones de acción) */
:root:not([data-design]) .nav a[aria-current="page"] { background: var(--nav-on); color: var(--nav-on-ink); box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--nav-on) 60%, transparent); }
:root:not([data-design]) .nav a:hover:not([aria-current="page"]) { color: var(--nav-on); background: color-mix(in srgb, var(--nav-on) 9%, var(--surface)); }
:root:not([data-design]) .tab[aria-current="page"] { color: var(--nav-on); }
/* «& Alfonso XIII» más grande y con más contraste */
:root:not([data-design]) header.top .brand small { color: var(--sub-ink); font: 800 .84rem/1.1 var(--f-display); letter-spacing: .01em; margin-top: 3px; }
@media (max-width: 620px) { :root:not([data-design]) header.top .brand small { font-size: .74rem; } }
/* Botones de arriba: cada uno con su color para reconocerlos de un vistazo */
:root:not([data-design]) .top-tools .icon-btn { --ib: #5d6670; color: var(--ib); border-color: color-mix(in srgb, var(--ib) 28%, var(--line));
  background: color-mix(in srgb, var(--ib) 10%, var(--surface)); transition: background .15s, transform .15s; }
:root:not([data-design]) .top-tools .icon-btn:hover { background: color-mix(in srgb, var(--ib) 18%, var(--surface)); transform: translateY(-1px); }
:root:not([data-design]) .top-tools .icon-btn svg { color: var(--ib); }
:root:not([data-design]) #searchBtn { --ib: #1a6fa0; }
:root:not([data-design]) #a11yBtn { --ib: #6b4bb8; }
:root:not([data-design]) #a11yBtn span { color: var(--ib); }
:root:not([data-design]) #themeBtn { --ib: #b56d00; }
:root:not([data-design]) #userBtn { --ib: #2f7d1e; }
:root:not([data-design]) #adminBtn { --ib: #a3264f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-design]) .top-tools .icon-btn { --ib-l: 1; }
  :root:not([data-theme="light"]):not([data-design]) #searchBtn { --ib: #6fb8e6; } :root:not([data-theme="light"]):not([data-design]) #a11yBtn { --ib: #b9a2f0; }
  :root:not([data-theme="light"]):not([data-design]) #themeBtn { --ib: #f5c842; } :root:not([data-theme="light"]):not([data-design]) #userBtn { --ib: #8acb52; }
  :root:not([data-theme="light"]):not([data-design]) #adminBtn { --ib: #f08aa8; } }
:root[data-theme="dark"]:not([data-design]) #searchBtn { --ib: #6fb8e6; } :root[data-theme="dark"]:not([data-design]) #a11yBtn { --ib: #b9a2f0; }
:root[data-theme="dark"]:not([data-design]) #themeBtn { --ib: #f5c842; } :root[data-theme="dark"]:not([data-design]) #userBtn { --ib: #8acb52; }
:root[data-theme="dark"]:not([data-design]) #adminBtn { --ib: #f08aa8; }

/* Alfonso XIII: fotos del poblado */
.ax-photo { margin: 0; position: relative; overflow: hidden; border-radius: 22px; background: var(--surface-2); }
.ax-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ax-photo figcaption { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: .4rem .8rem; border-radius: 999px;
  background: rgba(8, 18, 28, .72); color: #fff; font: 600 .85rem/1.3 var(--f-body, system-ui); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ax-hero .ax-photo-main { grid-column: 1 / -1; aspect-ratio: 21 / 8; }
.ax-hero .ax-photo-main img { object-position: 50% 40%; }
.ax-photo-wide { aspect-ratio: 21 / 7; margin-bottom: 1.2rem; }
@media (max-width: 760px) {
  .ax-hero .ax-photo-main { aspect-ratio: 4 / 3; }
  .ax-photo-wide { aspect-ratio: 16 / 8; }
  .ax-photo figcaption { font-size: .78rem; border-radius: 12px; }
}

/* ═════════ Villafranco C.F. y Manu González ═════════ */
.vcf { --vy: #f5c400; --vk: #111518; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; border-radius: 28px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .45); }
.vcf-head { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.4rem, 3vw, 2.2rem); min-width: 0;
  background: linear-gradient(90deg, transparent 0 calc(100% - 10px), var(--vy) 0) , var(--surface); }
.vcf-head::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 10px; background: repeating-linear-gradient(90deg, var(--vy) 0 22px, var(--vk) 22px 44px); }
.vcf-id { display: flex; align-items: center; gap: 1rem; margin-top: .4rem; }
.vcf .club-badge { width: 64px; height: 64px; flex-shrink: 0; }
.vcf-kick, .vcf-star-kick { font: 700 .74rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: #8a6d00; }
.vcf h2 { margin: .35rem 0 0; font: 700 clamp(1.7rem, 3.4vw, 2.4rem)/1.05 var(--f-serif, Georgia, serif); letter-spacing: -.02em; }
.vcf-lead { margin: 0; color: var(--ink-2); line-height: 1.6; max-width: 60ch; }
.vcf-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.vcf-facts div { padding: .75rem .9rem; border-radius: 14px; background: color-mix(in srgb, var(--vy) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--vy) 35%, var(--line)); min-width: 0; }
.vcf-facts b { display: block; font: 800 1.15rem/1.15 var(--f-display); color: var(--ink); }
.vcf-facts span { font-size: .84rem; color: var(--ink-2); }
.vcf-btn { background: var(--vk); color: var(--vy); border-color: var(--vk); }
.vcf-where { margin: 0; color: var(--ink-2); }

.vcf-star { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: clamp(1.4rem, 3vw, 2.2rem);
  background: radial-gradient(80% 70% at 100% 0%, rgba(245, 196, 0, .28), transparent 60%), linear-gradient(160deg, #1b1d22, #0b0c0f); }
.vcf-star-num { position: absolute; right: -.08em; bottom: -.22em; z-index: -1; font: 900 clamp(10rem, 20vw, 16rem)/1 var(--f-display); color: transparent;
  -webkit-text-stroke: 2px rgba(245, 196, 0, .22); letter-spacing: -.05em; }
.vcf-star-body { display: flex; flex-direction: column; gap: .7rem; max-width: 52ch; }
.vcf-star-kick { display: inline-flex; align-items: center; gap: .4rem; color: var(--vy); }
.vcf-star-kick svg { width: 15px; height: 15px; }
.vcf-star h3 { margin: 0; font: 800 clamp(2rem, 4.4vw, 3rem)/1 var(--f-display); letter-spacing: -.02em; color: #fff; }
.vcf-star-sub { margin: 0; font-weight: 700; color: var(--vy); }
.vcf-star p { margin: 0; color: rgba(255, 255, 255, .86); line-height: 1.6; }
.vcf-tl { list-style: none; margin: .3rem 0 0; padding: 0 0 0 1.1rem; border-left: 2px solid rgba(245, 196, 0, .5); display: flex; flex-direction: column; gap: .65rem; }
.vcf-tl li { position: relative; display: flex; flex-direction: column; }
.vcf-tl li::before { content: ""; position: absolute; left: calc(-1.1rem - 6px); top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--vy); }
.vcf-tl b { color: #fff; font: 800 .98rem/1.2 var(--f-display); }
.vcf-tl span { font-size: .92rem; color: rgba(255, 255, 255, .78); }
.vcf-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.vcf-chips span { padding: .3rem .7rem; border-radius: 999px; font: 700 .8rem/1.2 var(--f-display); background: rgba(245, 196, 0, .14); color: var(--vy); border: 1px solid rgba(245, 196, 0, .35); }
.vcf-quote { font-family: var(--f-serif, Georgia, serif) !important; font-style: italic; font-size: 1.08rem; color: #fff !important; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: .8rem; }
.vcf-quote small { display: block; font: 600 .78rem/1.4 var(--f-body, system-ui); font-style: normal; color: rgba(255, 255, 255, .6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vcf-kick { color: #f5c400; } }
:root[data-theme="dark"] .vcf-kick { color: #f5c400; }
@media (max-width: 860px) { .vcf { grid-template-columns: minmax(0, 1fr); } .vcf-head { background: var(--surface); } }
.vcf .club-badge { width: 72px; height: auto; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .18)); }

/* ═════════ Hermandad del Rocío de Isla Mayor ═════════ */
.rc { --rc: #1f6a8a; --rc-g: #c9a24a; position: relative; overflow: hidden; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--rc-g) 14%, transparent), transparent 60%), var(--surface); box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .4); }
.rc-band { height: 10px; background: linear-gradient(90deg, #2e7bb0 0 50%, var(--rc-g) 50%); }
.rc-in { display: flex; flex-direction: column; gap: 1.1rem; padding: clamp(1.4rem, 3vw, 2.2rem); }
.rc-head { display: flex; gap: 1rem; align-items: center; }
.rc-seal { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; color: #fff;
  background: linear-gradient(160deg, #2e7bb0, #164a68); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rc-g) 55%, transparent), 0 10px 24px -8px rgba(22, 74, 104, .6); }
.rc-seal svg { width: 30px; height: 30px; }
.rc-kick { font: 700 .74rem/1.2 var(--f-display); letter-spacing: .09em; text-transform: uppercase; color: #8a6a1c; }
.rc h2 { margin: .3rem 0 0; font: 700 clamp(1.5rem, 3vw, 2.2rem)/1.08 var(--f-serif, Georgia, serif); letter-spacing: -.015em; text-wrap: balance; }
.rc-motto { margin: .3rem 0 0; font: italic 500 1.05rem/1.3 var(--f-serif, Georgia, serif); color: var(--rc); }
.rc-lead { margin: 0; max-width: 70ch; color: var(--ink-2); line-height: 1.65; }
.rc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.rc-item { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem .9rem; border-radius: 16px; text-decoration: none; color: var(--ink); min-width: 0;
  background: color-mix(in srgb, var(--rc) 6%, var(--surface)); border: 1px solid color-mix(in srgb, var(--rc) 18%, var(--line)); transition: transform .15s, border-color .15s; }
.rc-item:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--rc) 45%, var(--line)); }
.rc-item > span { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; background: color-mix(in srgb, var(--rc) 14%, var(--surface)); color: var(--rc); }
.rc-item > span svg { width: 19px; height: 19px; }
.rc-item b { display: block; font: 800 .96rem/1.2 var(--f-display); }
.rc-item small { display: block; margin-top: 2px; font-size: .84rem; color: var(--ink-2); line-height: 1.4; }
.rc-join { background: color-mix(in srgb, var(--rc-g) 16%, var(--surface)); border-color: color-mix(in srgb, var(--rc-g) 45%, var(--line)); }
.rc-join > span { background: var(--rc-g); color: #fff; }
.rc-contact { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; }
.rc-btn { background: var(--rc); border-color: var(--rc); color: #fff; }
.rc-mail { display: inline-flex; align-items: center; gap: .4rem; font-size: .92rem; color: var(--ink-2); user-select: all; word-break: break-all; }
.rc-mail svg { width: 16px; height: 16px; flex-shrink: 0; }
.rc-src { margin: 0; font-size: .84rem; color: var(--ink-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rc { --rc: #7cc3ea; } :root:not([data-theme="light"]) .rc-kick { color: #e6c46e; } }
:root[data-theme="dark"] .rc { --rc: #7cc3ea; } :root[data-theme="dark"] .rc-kick { color: #e6c46e; }
@media (max-width: 860px) { .rc-grid { grid-template-columns: minmax(0, 1fr); } .rc-head { align-items: flex-start; } .rc-seal { width: 52px; height: 52px; } }
.hoy-empty { margin: 0; padding: 1rem 1.2rem; border-radius: 16px; border: 1px dashed var(--line); color: var(--ink-2); }
.hoy-empty a { color: var(--nav-on, var(--marisma)); font-weight: 700; }

/* Platos típicos con «Ver receta» */
.cm-dish-t { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.cm-dish-go { display: inline-flex; align-items: center; gap: .45rem; margin-top: .7rem; min-height: 40px; padding: 0 .95rem; border-radius: 999px; cursor: pointer;
  font: 700 .9rem/1 var(--f-display); color: #fff; background: #c4521d; border: 0; box-shadow: 0 6px 14px -8px rgba(196, 82, 29, .8); transition: transform .15s, background .15s; }
.cm-dish-go:hover { background: #a9431a; transform: translateY(-1px); }
.cm-dish-go svg { width: 16px; height: 16px; }
.cm-dish-meta { font: 600 .78rem/1 var(--f-body, system-ui); opacity: .85; padding-left: .45rem; border-left: 1px solid rgba(255, 255, 255, .4); }
.rx-box.modal-box { width: min(760px, 100%); }
.rx { display: flex; flex-direction: column; gap: 1.2rem; }
.rx-head { display: flex; gap: 1rem; align-items: center; }
.rx-emo { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 2.2rem; background: color-mix(in srgb, #c4521d 12%, var(--surface)); flex-shrink: 0; }
.rx-head .modal-title { margin: 0; font-family: var(--f-serif, Georgia, serif); font-size: clamp(1.4rem, 3vw, 1.9rem); }
.rx-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: .4rem 0 0; color: var(--ink-2); font-size: .9rem; }
.rx-meta span { display: inline-flex; align-items: center; gap: .3rem; } .rx-meta svg { width: 15px; height: 15px; }
.rx-body { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 1.4rem; }
.rx h3 { margin: 0 0 .6rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: #c4521d; }
.rx-ing { padding: 1rem 1.1rem; border-radius: 16px; background: color-mix(in srgb, #c4521d 6%, var(--surface)); border: 1px solid color-mix(in srgb, #c4521d 18%, var(--line)); }
.rx-ing ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
.rx-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: p; display: grid; gap: .8rem; }
.rx-steps li { counter-increment: p; position: relative; padding-left: 2.4rem; line-height: 1.55; }
.rx-steps li::before { content: counter(p); position: absolute; left: 0; top: -.1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; background: #c4521d; color: #fff; font: 800 .9rem/1 var(--f-display); }
@media (max-width: 680px) { .rx-body { grid-template-columns: minmax(0, 1fr); } }
.cm-missing { display: flex; align-items: center; gap: .9rem; margin-top: 1rem; padding: 1rem 1.2rem; border-radius: 18px; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, #c4521d 7%, var(--surface)); border: 1.5px dashed color-mix(in srgb, #c4521d 45%, var(--line)); transition: background .15s; }
.cm-missing:hover { background: color-mix(in srgb, #c4521d 13%, var(--surface)); }
.cm-missing > span { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: #c4521d; color: #fff; }
.cm-missing > span svg { width: 22px; height: 22px; }
.cm-missing div { flex: 1; min-width: 0; } .cm-missing b { display: block; font: 800 1.05rem/1.2 var(--f-display); } .cm-missing small { color: var(--ink-2); font-size: .92rem; }
.cm-missing > svg { width: 20px; height: 20px; color: #c4521d; flex-shrink: 0; }
.fb-badge { background: #1877f2 !important; color: #fff; font: 900 1.5rem/1 Georgia, serif; }
.fb-pill { background: color-mix(in srgb, #1877f2 14%, var(--surface)); color: #1458b8; }

/* Inicio: cuadro de Alfonso XIII */
.axh { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); border-radius: 28px; overflow: hidden; text-decoration: none; color: var(--ink);
  background: linear-gradient(135deg, color-mix(in srgb, #0d6b57 9%, var(--surface)), var(--surface) 60%); border: 1px solid color-mix(in srgb, #0d6b57 20%, var(--line));
  box-shadow: 0 20px 50px -32px rgba(0, 0, 0, .45); transition: transform .2s, box-shadow .2s; }
.axh:hover { transform: translateY(-3px); box-shadow: 0 26px 60px -30px rgba(0, 0, 0, .5); }
.axh-img { margin: 0; min-height: 300px; position: relative; }
.axh-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.axh-txt { display: flex; flex-direction: column; gap: .8rem; padding: clamp(1.4rem, 3vw, 2.4rem); min-width: 0; }
.axh-kick { font: 700 .74rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: #0d6b57; }
.axh h2 { margin: 0; font: 700 clamp(1.6rem, 3.2vw, 2.4rem)/1.08 var(--f-serif, Georgia, serif); letter-spacing: -.015em; text-wrap: balance; }
.axh p { margin: 0; color: var(--ink-2); line-height: 1.65; max-width: 60ch; }
.axh-facts { display: flex; flex-wrap: wrap; gap: .5rem; }
.axh-facts div { padding: .55rem .85rem; border-radius: 14px; background: var(--surface); border: 1px solid color-mix(in srgb, #0d6b57 22%, var(--line)); }
.axh-facts b { display: block; font: 800 1.05rem/1.15 var(--f-display); color: #0d6b57; }
.axh-facts span { font-size: .8rem; color: var(--ink-2); }
.axh-go { align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem; margin-top: .3rem; padding: .7rem 1.2rem; border-radius: 999px; background: #0d6b57; color: #fff; font: 700 .98rem/1 var(--f-display); }
.axh-go svg { width: 18px; height: 18px; transition: transform .2s; }
.axh:hover .axh-go svg { transform: translateX(3px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .axh-kick, :root:not([data-theme="light"]) .axh-facts b { color: #6fd3b8; } }
:root[data-theme="dark"] .axh-kick, :root[data-theme="dark"] .axh-facts b { color: #6fd3b8; }
@media (max-width: 760px) { .axh { grid-template-columns: minmax(0, 1fr); } .axh-img { min-height: 220px; } }

/* Cada sección con su color: Chat azul, Trámites fucsia, Teléfonos rojo (urgencias) */
.hx-plaza { --hx-deep: #0a2440; --hx-mid: #1f74b8; --hx-acc: #ffd27a; }
.hx-tramites { --hx-deep: #350d2e; --hx-mid: #b0287c; --hx-acc: #ffc3e6; }
.hx-telefonos { --hx-deep: #3a0b0e; --hx-mid: #c62828; --hx-acc: #ffc4b8; }
/* Panel de accesibilidad: se abre junto a su botón (abajo a la derecha), no en la otra punta */
.a11y-panel { left: auto !important; right: max(16px, env(safe-area-inset-right, 0px)) !important; bottom: calc(148px + env(safe-area-inset-bottom, 0px)) !important; max-height: calc(100vh - 180px) !important; }
@media (max-width: 960px) { .a11y-panel { right: 8px !important; bottom: calc(196px + env(safe-area-inset-bottom, 0px)) !important; max-height: calc(100vh - 230px) !important; } }
/* Portada: «Isla Mayor, el país del agua» en una sola línea */
:root:not([data-design]) .hero h1 .line2 { display: inline; margin: 0 0 0 .22em; font-size: .62em; white-space: nowrap; }
@media (max-width: 620px) { :root:not([data-design]) .hero h1 .line2 { display: block; margin: .15em 0 0; } }
@media (min-width: 621px) {
  :root:not([data-design]) .hero-copy { max-width: none; }
  :root:not([data-design]) .hero h1, :root:not([data-design]) .hero[data-phase] h1 { white-space: nowrap; font-size: clamp(2.8rem, 5.6vw, 4.8rem); }
  :root:not([data-design]) .hero-lead, :root:not([data-design]) .hs-box { max-width: 620px; }
}

/* ═════════ Portada «de quitar el hipo» ═════════ */
:root:not([data-design]) .hero { min-height: clamp(600px, 82vh, 780px); }
.hz-grain { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
:root:not([data-design]) .hero .wrap { position: relative; z-index: 1; }
/* Viñeta de cine: oscuro a la izquierda y abajo, la foto respira a la derecha */
:root:not([data-design]) .hero[data-photo]::after, :root:not([data-design]) .hero[data-photo][data-phase]::after {
  background: radial-gradient(120% 90% at 85% 30%, transparent 30%, rgba(4, 10, 18, .35) 70%),
    linear-gradient(90deg, rgba(4, 10, 18, .88) 0%, rgba(4, 10, 18, .66) 32%, rgba(4, 10, 18, .2) 62%, transparent 82%),
    linear-gradient(0deg, rgba(4, 10, 18, .7) 0%, transparent 34%), linear-gradient(180deg, rgba(4, 10, 18, .45), transparent 22%); }

/* Etiqueta superior con la hora en directo */
.hz-eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.3rem; padding: .45rem .95rem .45rem .75rem; border-radius: 999px;
  font: 700 .8rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: #fff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hz-live { width: 8px; height: 8px; border-radius: 50%; background: #5ee08a; box-shadow: 0 0 0 0 rgba(94, 224, 138, .7); animation: hzPulse 2s infinite; }
@keyframes hzPulse { 0% { box-shadow: 0 0 0 0 rgba(94, 224, 138, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(94, 224, 138, 0); } }
.hz-sep { width: 1px; height: 12px; background: rgba(255, 255, 255, .35); }
#hzClock { color: #f6d27a; letter-spacing: .04em; }

/* Título: palabras que suben una a una y trazo dorado bajo «el país del agua» */
:root:not([data-design]) .hero h1 { font-size: clamp(3rem, 6.4vw, 5.8rem) !important; letter-spacing: -.035em; line-height: .92; text-shadow: 0 4px 40px rgba(0, 0, 0, .45); }
:root:not([data-design]) .hero h1 .line2 { position: relative; display: inline-block; }
.hw { display: inline-block; }
.hz-stroke { position: absolute; left: 0; right: 0; bottom: -.18em; width: 100%; height: .22em; overflow: visible; }
.hz-stroke path { fill: none; stroke: #f6d27a; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 0; opacity: .85; }
@media (prefers-reduced-motion: no-preference) {
  .hero .hw { animation: hzWord .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * .12s + .1s); }
  .hz-stroke path { stroke-dasharray: 320; stroke-dashoffset: 320; animation: hzDraw 1.2s .75s cubic-bezier(.6, 0, .2, 1) forwards; }
  .hero-lead, .hs-box, .hs-tags, .hz-facts, .hz-eyebrow { animation: hzUp .8s cubic-bezier(.2, .8, .2, 1) both; }
  .hz-eyebrow { animation-delay: 0s; } .hero-lead { animation-delay: .45s; } .hs-box { animation-delay: .6s; } .hs-tags { animation-delay: .7s; } .hz-facts { animation-delay: .85s; }
}
@keyframes hzWord { from { opacity: .001; transform: translateY(.45em) rotate(2deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hzDraw { to { stroke-dashoffset: 0; } }
@keyframes hzUp { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Buscador con palabra que va cambiando */
.hs-box { min-height: 66px !important; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7), 0 0 0 7px rgba(255, 255, 255, .1) !important; }
.hs-rot { display: inline-block; color: #1b2a20; font-weight: 700; border-bottom: 2px solid #f5c842; transition: opacity .26s, transform .26s; }
.hs-rot.out { opacity: 0; transform: translateY(-6px); }

/* Cifras del pueblo */
.hz-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 2rem 0 0; padding: 0; max-width: 720px; }
.hz-facts > div { display: flex; flex-direction: column-reverse; gap: .2rem; padding: .2rem 1.6rem .2rem 0; margin-right: 1.6rem; border-right: 1px solid rgba(255, 255, 255, .22); }
.hz-facts > div:last-child { border-right: 0; margin-right: 0; }
.hz-facts dd { margin: 0; font: 700 clamp(1.5rem, 2.4vw, 2rem)/1 var(--f-serif, Georgia, serif); color: #fff; letter-spacing: -.01em; }
.hz-facts dt { font: 600 .78rem/1.2 var(--f-body, system-ui); color: rgba(255, 255, 255, .72); text-transform: uppercase; letter-spacing: .08em; }

/* Pie de foto */
:root:not([data-design]) .hz-foot { display: flex !important; position: absolute; right: max(16px, 3vw); bottom: 5.6rem; z-index: 2; }
:root:not([data-design]) .hz-foot .hero-credit { display: inline-flex; align-items: center; gap: .4rem; margin: 0; font: 600 .78rem/1 var(--f-body, system-ui);
  background: rgba(4, 10, 18, .5); border: 1px solid rgba(255, 255, 255, .15); padding: .45rem .8rem; border-radius: 999px; }
.hz-foot .hero-credit svg { width: 14px; height: 14px; color: #f6d27a; }

@media (max-width: 620px) {
  :root:not([data-design]) .hero { min-height: 0; }
  .hz-eyebrow { font-size: .68rem; margin-bottom: 1rem; letter-spacing: .08em; }
  :root:not([data-design]) .hero h1 { font-size: 3.1rem !important; }
  .hz-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 0; margin-top: 1.4rem; }
  .hz-facts > div { border-right: 0; margin-right: 0; padding: 0 0 0 .8rem; border-left: 2px solid rgba(246, 210, 122, .6); }
  :root:not([data-design]) .hz-foot { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .hz-live { animation: none; } }
@media (max-width: 620px) {
  :root:not([data-design]) .hero[data-photo]::after, :root:not([data-design]) .hero[data-photo][data-phase]::after {
    background: linear-gradient(180deg, rgba(4, 10, 18, .82) 0%, rgba(4, 10, 18, .74) 55%, rgba(4, 10, 18, .86) 100%); }
  .hz-hide-m { display: none; }
  .hz-eyebrow { white-space: nowrap; }
  .hz-facts { align-items: start; }
  .hz-facts > div { min-height: 3.2rem; justify-content: flex-end; }
  .hz-facts dd { font-size: 1.5rem; }
  .hz-facts dt { font-size: .68rem; }
}

/* ═════════ Portada · tecnología 2026 ═════════ */
/* 1. Profundidad: la foto se desplaza levemente con el ratón */
:root:not([data-design]) .hero { --px: 0; --py: 0; }
:root:not([data-design]) .hero-photo.on { animation: none; transform: scale(1.08) translate3d(calc(var(--px) * -18px), calc(var(--py) * -12px), 0); transition: transform .2s linear; }
/* 2. Luz que sigue al puntero */
.hz-spot { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 220, 160, .14), transparent 60%); mix-blend-mode: screen; }
.hero:hover .hz-spot { opacity: 1; }
/* 3. Buscador con borde de luz que gira (propiedad CSS animable, Houdini) */
@property --hz-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
:root:not([data-design]) .hs-box { position: relative; isolation: isolate; }
:root:not([data-design]) .hs-box::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--hz-a), transparent 0 60%, #f5c842 72%, #ffe9a8 78%, #f5c842 84%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: hzSpin 4.5s linear infinite; opacity: .95; }
@keyframes hzSpin { to { --hz-a: 360deg; } }
/* 4. Texto que se escribe solo con cursor */
.hs-rot { border-bottom: 0 !important; transition: none !important; opacity: 1 !important; transform: none !important; vertical-align: baseline; }
.hs-caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 2px; vertical-align: -.2em; background: #2f7d1e; animation: hzBlink 1s steps(1) infinite; }
@keyframes hzBlink { 50% { opacity: 0; } }
/* 5. Cifras en una barra de cristal */
:root:not([data-design]) .hz-facts { padding: 1rem 1.4rem; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); width: fit-content; max-width: 100%; }
/* 6. Animaciones ligadas al scroll (sin JavaScript): al bajar, la foto se acerca y el texto se aleja suave */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    :root:not([data-design]) .hero .hero-copy { animation: hzAway linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
    :root:not([data-design]) .hero-photo.on { scale: 1; animation: hzZoom linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
}
@keyframes hzAway { to { opacity: .15; transform: translateY(-60px) scale(.97); filter: blur(2px); } }
@keyframes hzZoom { to { scale: 1.12; } }
@keyframes hzRise { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
/* 7. El título viaja de una página a otra (View Transitions con elemento compartido) */
:root:not([data-design]) .hero h1, :root:not([data-design]) .hx h1 { view-transition-name: page-title; }
::view-transition-group(page-title) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
@media (max-width: 620px) {
  :root:not([data-design]) .hz-facts { padding: .9rem 1rem; width: auto; }
  :root:not([data-design]) .hs-box::before { animation-duration: 6s; }
}
@media (prefers-reduced-motion: reduce) { .hs-box::before, .hs-caret { animation: none !important; } }

/* ═════════ Cabecera y logotipo · 2026 ═════════ */
/* Barra de cristal limpia, sin franja de colores; sombra suave */
:root:not([data-design]) .top { background: color-mix(in srgb, var(--surface) 82%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  box-shadow: 0 8px 30px -22px rgba(16, 24, 40, .35); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); }
:root:not([data-design]) .top::after { display: none; }
:root:not([data-design]) { --header-h: 70px; }

/* Logotipo: «Isla Mayor» en la letra de los titulares; «& Alfonso XIII» en versalitas */
:root:not([data-design]) .brand { gap: .6rem; font-family: var(--f-serif, "Playfair Display", Georgia, serif); }
:root:not([data-design]) .brand .b1 { font: 700 1.5rem/1 var(--f-serif, "Playfair Display", Georgia, serif) !important; letter-spacing: -.02em; color: var(--ink); }
:root:not([data-design]) .brand .v { color: #2f7d1e; font-style: italic; font-weight: 600; }
:root:not([data-design]) header.top .brand small, :root:not([data-design]) .brand small {
  font: 700 .62rem/1 var(--f-body, system-ui) !important; letter-spacing: .22em; text-transform: uppercase; color: var(--sub-ink, #9a5a00); margin-top: 5px; }
:root:not([data-design]) footer .brand .b1 { color: #fff; }
:root:not([data-design]) footer .brand .v { color: #f5c842; }

/* Menú: control segmentado (la sección activa es una píldora blanca que «flota») */
:root:not([data-design]) .nav { gap: 2px; margin-left: 1.2rem; padding: 4px; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 5%, var(--surface)); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
:root:not([data-design]) .nav a { padding: .5rem 1rem; font: 600 .92rem/1 var(--f-body, system-ui); letter-spacing: -.005em; color: var(--ink-2); border-radius: 999px;
  background: transparent; box-shadow: none; transition: color .2s, background .2s, box-shadow .2s; }
:root:not([data-design]) .nav a:hover:not([aria-current="page"]) { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
:root:not([data-design]) .nav a[aria-current="page"] { color: var(--ink); background: var(--surface); font-weight: 700;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 4px 14px -6px rgba(16, 24, 40, .22), inset 0 0 0 1px color-mix(in srgb, var(--line) 60%, transparent); }
:root:not([data-design]) .nav a[aria-current="page"]::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: .45rem; vertical-align: .12em; border-radius: 50%; background: #2f7d1e; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-design]) .nav { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .08); }
  :root:not([data-theme="light"]):not([data-design]) .nav a[aria-current="page"] { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
  :root:not([data-theme="light"]):not([data-design]) .nav a[aria-current="page"]::before { background: #8acb52; }
  :root:not([data-theme="light"]):not([data-design]) .brand .v { color: #8acb52; }
}
:root[data-theme="dark"]:not([data-design]) .nav { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .08); }
:root[data-theme="dark"]:not([data-design]) .nav a[aria-current="page"] { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
:root[data-theme="dark"]:not([data-design]) .nav a[aria-current="page"]::before { background: #8acb52; }
:root[data-theme="dark"]:not([data-design]) .brand .v { color: #8acb52; }
/* Botones de la derecha: mismo lenguaje, más finos */
:root:not([data-design]) .top-tools { gap: .4rem; }
:root:not([data-design]) .top-tools .icon-btn { width: 40px; height: 40px; }
@media (max-width: 620px) {
  :root:not([data-design]) { --header-h: 62px; }
  :root:not([data-design]) .brand .b1 { font-size: 1.3rem !important; }
  :root:not([data-design]) header.top .brand small { font-size: .56rem !important; letter-spacing: .18em; }
}
/* Barra «ahora»: tiempo, humedad y próxima fiesta (3 columnas); si no hay tiempo, solo la fiesta a lo ancho */
:root:not([data-design]) .now-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
:root:not([data-design]) .now-grid.nw-2 { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 620px) {
  :root:not([data-design]) .now-grid { grid-template-columns: 1fr 1fr; }
  :root:not([data-design]) .now-grid .nw-fiesta { grid-column: 1 / -1; }
}

/* Portada: la barra «ahora» queda dentro de la foto; debajo, la orilla de la marisma como separación */
:root:not([data-design]) .hero .wrap { padding-bottom: 4.6rem !important; justify-content: flex-start; }
:root:not([data-design]) .hz-now { margin: 0; width: 100%; }
:root:not([data-design]) .hz-foot { position: static !important; justify-content: flex-end; margin-top: auto; padding-top: 1.4rem; }
.hz-shore { position: relative; z-index: 3; height: clamp(70px, 8vw, 120px); margin-top: calc(clamp(70px, 8vw, 120px) * -1 + 2px); pointer-events: none; line-height: 0; }
.hz-shore-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hz-shore .s1 { fill: color-mix(in srgb, #2f7d1e 55%, var(--bg)); opacity: .55; }
.hz-shore .s2 { fill: color-mix(in srgb, #2d8bd6 35%, var(--bg)); opacity: .7; }
.hz-shore .s3 { fill: var(--bg); }
.hz-shore .s-reeds { stroke: color-mix(in srgb, #2f7d1e 70%, var(--bg)); stroke-width: 2; }
.hz-shore .s-ears { stroke: #d9a548; stroke-width: 3; }
.hz-shore .s-birds { stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: 1.6; }
@media (prefers-reduced-motion: no-preference) { .hz-shore .s-birds { animation: hzFly 14s ease-in-out infinite alternate; } }
@keyframes hzFly { to { transform: translate(-60px, -8px); } }
:root:not([data-design]) .hz-now + * { display: none; }
@media (max-width: 620px) { :root:not([data-design]) .hero .wrap { padding-bottom: 3.6rem !important; } .hz-shore .s-reeds { stroke-width: 2.6; } }
:root:not([data-design]) .hero .wrap { padding-bottom: calc(clamp(70px, 8vw, 120px) + 1.2rem) !important; }
.hz-shore .s-birds { stroke: rgba(255, 255, 255, .7); }
@media (max-width: 620px) { :root:not([data-design]) .hero .wrap { padding-bottom: calc(70px + .8rem) !important; } }

/* ═════════ Qué hay esta semana ═════════ */
.wk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1.2rem; align-items: stretch; }
.wk-top { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; min-height: 320px;
  padding: 1.6rem; border-radius: 26px; color: #fff; text-decoration: none;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c) 55%, #fff) 0%, transparent 55%), linear-gradient(150deg, var(--c), color-mix(in srgb, var(--c) 55%, #000));
  box-shadow: 0 24px 50px -28px color-mix(in srgb, var(--c) 80%, #000); transition: transform .25s; }
.wk-top:hover { transform: translateY(-3px); }
.wk-top-bg { position: absolute; right: -40px; bottom: -40px; z-index: -1; width: 240px; height: 240px; opacity: .14; transform: rotate(-12deg); }
.wk-top-bg svg { width: 100%; height: 100%; }
.wk-top .wk-chip { position: absolute; top: 1.4rem; right: 1.4rem; background: rgba(255, 255, 255, .2); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.wk-top .wk-chip.hot { background: #fff; color: var(--c); }
.wk-top-date .wk-d { width: 74px; height: 80px; background: rgba(255, 255, 255, .16); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.wk-top-date .wk-d b { font-size: 2.2rem; }
.wk-top .wk-kind { margin-top: auto; color: rgba(255, 255, 255, .85); }
.wk-top h3 { margin: 0; font: 700 clamp(1.5rem, 2.6vw, 2.1rem)/1.1 var(--f-serif, Georgia, serif); letter-spacing: -.015em; text-wrap: balance; }
.wk-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: 0; font-size: .95rem; color: rgba(255, 255, 255, .9); }
.wk-meta, .wk-meta span { align-items: center; } .wk-meta span { display: inline-flex; gap: .3rem; }
.wk-meta svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: .25rem; }
.wk-go { display: inline-flex; align-items: center; gap: .35rem; margin-top: .4rem; font: 700 .92rem/1 var(--f-display); }
.wk-go svg { width: 16px; height: 16px; transition: transform .2s; } .wk-top:hover .wk-go svg { transform: translateX(3px); }

.wk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.wk-row { display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem; border-radius: 18px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.wk-row::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c); }
.wk-row:hover { transform: translateX(4px); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); box-shadow: 0 10px 24px -18px color-mix(in srgb, var(--c) 80%, #000); }
.wk-d { flex-shrink: 0; width: 58px; height: 62px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: color-mix(in srgb, var(--c) 12%, var(--surface)); color: var(--c); }
.wk-d b { font: 800 1.6rem/1 var(--f-display); } .wk-d small { font: 700 .7rem/1 var(--f-body, system-ui); text-transform: uppercase; letter-spacing: .06em; }
.wk-d.w b { font-size: .95rem; text-align: center; line-height: 1.05; } .wk-d b svg { width: 24px; height: 24px; }
.wk-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wk-row-t strong { font: 800 1.02rem/1.25 var(--f-display); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wk-row-t small { color: var(--ink-2); font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-kind { font: 700 .7rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .09em; color: var(--c); }
.wk-chip { flex-shrink: 0; padding: .35rem .7rem; border-radius: 999px; font: 700 .78rem/1 var(--f-display); white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.wk-chip.hot { background: var(--c); color: #fff; border-color: transparent; }
.wk-chip.open { background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--c); border-color: color-mix(in srgb, var(--c) 35%, var(--line)); }
@media (max-width: 860px) { .wk { grid-template-columns: minmax(0, 1fr); } .wk-top { min-height: 260px; } }
@media (max-width: 480px) { .wk-row { gap: .75rem; padding: .75rem; } .wk-row .wk-chip { display: none; } .wk-d { width: 52px; height: 56px; } }
.wk-d.w b { font-size: .82rem; letter-spacing: -.01em; }

/* Inicio · Alfonso XIII como portada de revista */
.axh2 { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(460px, 48vw, 600px); border-radius: 36px; overflow: hidden;
  text-decoration: none; color: #fff; box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .7); }
.axh2-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.04); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.axh2:hover .axh2-img { transform: scale(1.1); }
.axh2::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(5, 32, 26, .95) 0%, rgba(5, 32, 26, .72) 34%, rgba(5, 32, 26, .1) 66%, transparent 80%),
              linear-gradient(90deg, rgba(5, 32, 26, .55), transparent 55%); }
.axh2-year { position: absolute; right: -.04em; top: -.18em; z-index: -1; font: 900 clamp(8rem, 22vw, 18rem)/1 var(--f-serif, Georgia, serif); letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .55); opacity: .55; }
.axh2-stamp { position: absolute; top: clamp(18px, 3vw, 32px); left: clamp(18px, 3vw, 32px); width: 118px; height: 118px; display: grid; place-items: center; }
.axh2-stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: hxSpin 30s linear infinite; }
.axh2-stamp text { fill: #fff; font: 700 12px/1 var(--f-display); letter-spacing: 1px; }
.axh2-stamp > span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #f5c842; color: #0b3b30; box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .5); }
.axh2-stamp > span svg { width: 26px; height: 26px; position: static; animation: none; }
.axh2-txt { width: 100%; padding: clamp(1.4rem, 4vw, 3rem); display: flex; flex-direction: column; gap: .9rem; }
.axh2-kick { align-self: flex-start; padding: .4rem .85rem; border-radius: 999px; font: 700 .72rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.axh2 h2 { margin: 0; max-width: 16ch; font: 700 clamp(2.2rem, 5vw, 4rem)/.98 var(--f-serif, Georgia, serif); letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.axh2 h2 em { display: block; font-weight: 500; font-size: .58em; letter-spacing: -.01em; color: #f6d27a; margin-top: .25em; }
.axh2 p { margin: 0; max-width: 58ch; font: 400 clamp(1rem, 1.3vw, 1.12rem)/1.6 var(--f-serif-text, Georgia, serif); color: rgba(255, 255, 255, .88); }
.axh2-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: .6rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .18); }
.axh2-facts { display: flex; gap: 2rem; margin: 0; }
.axh2-facts div { display: flex; flex-direction: column; gap: .2rem; }
.axh2-facts dd { margin: 0; font: 700 1.6rem/1 var(--f-serif, Georgia, serif); color: #fff; }
.axh2-facts dt { font: 600 .74rem/1.2 var(--f-body, system-ui); text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .7); }
.axh2-go { display: inline-flex; align-items: center; gap: .5rem; padding: .95rem 1.4rem; border-radius: 999px; background: #fff; color: #0b3b30; font: 800 1rem/1 var(--f-display);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6); transition: gap .2s, background .2s; }
.axh2:hover .axh2-go { gap: .8rem; background: #f5c842; }
.axh2-go svg { width: 18px; height: 18px; }
@media (max-width: 620px) {
  .axh2 { border-radius: 26px; min-height: 560px; }
  .axh2-stamp { width: 92px; height: 92px; } .axh2-stamp > span { width: 42px; height: 42px; }
  .axh2-facts { gap: 1.3rem; } .axh2-facts dd { font-size: 1.3rem; }
  .axh2-go { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .axh2-stamp svg { animation: none; } .axh2-img { transition: none; } }
.axh2::before { background: linear-gradient(0deg, rgba(5, 32, 26, .94) 0%, rgba(5, 32, 26, .7) 30%, rgba(5, 32, 26, .15) 55%, transparent 70%),
  linear-gradient(90deg, rgba(5, 32, 26, .35), transparent 45%) !important; }
.axh2-img { filter: saturate(1.08) contrast(1.04); }
@media (max-width: 620px) {
  .axh2 { min-height: 640px; }
  .axh2-stamp { left: auto; right: 16px; }
  .axh2-year { top: auto; bottom: 46%; right: -.05em; font-size: 7rem; }
}

/* ═════════ Próxima fiesta: entrada de feria en cristal ═════════ */
:root:not([data-design]) .hz-now .now-grid { background: transparent !important; border: 0 !important; box-shadow: none !important; overflow: visible; gap: .8rem; }
:root:not([data-design]) .hz-now .now-item { background: rgba(8, 14, 22, .55) !important; border: 1px solid rgba(255, 255, 255, .16) !important; border-radius: 22px; color: #fff;
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
:root:not([data-design]) .hz-now .now-item .k { color: rgba(255, 255, 255, .7); } :root:not([data-design]) .hz-now .now-item .v { color: #fff; } :root:not([data-design]) .hz-now .now-item .s { color: rgba(255, 255, 255, .75); }
:root:not([data-design]) .hz-now .nw-fiesta { padding: 0 !important; background: transparent !important; border: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
:root:not([data-design]) .hz-now .nw-fiesta::before, :root:not([data-design]) .hz-now .now-item::before { display: none; }
.tk { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: stretch; min-height: 104px; border-radius: 22px; text-decoration: none; color: #fff;
  background: linear-gradient(110deg, rgba(196, 82, 29, .9), rgba(224, 69, 43, .78) 45%, rgba(245, 166, 35, .7));
  border: 1px solid rgba(255, 220, 180, .45); box-shadow: 0 24px 50px -24px rgba(224, 69, 43, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); transition: transform .25s, box-shadow .25s; }
.tk:hover { transform: translateY(-3px) rotate(-.3deg); box-shadow: 0 30px 60px -24px rgba(224, 69, 43, .95), inset 0 1px 0 rgba(255, 255, 255, .25); }
.tk-count { flex-shrink: 0; width: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: .8rem; background: rgba(0, 0, 0, .18); }
.tk-count b { font: 800 2.7rem/1 var(--f-serif, Georgia, serif); letter-spacing: -.03em; text-transform: capitalize; }
.tk-count small { font: 700 .68rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
/* Troquel de entrada: semicírculos y línea de puntos */
.tk-cut { position: relative; width: 0; border-left: 2px dashed rgba(255, 255, 255, .45); margin: 14px 0; }
.tk-cut::before, .tk-cut::after { content: ""; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: rgba(8, 14, 22, .55); }
.tk-cut::before { top: -26px; } .tk-cut::after { bottom: -26px; }
.tk-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: .3rem; padding: 1rem 1.4rem; }
.tk-kick { display: inline-flex; align-items: center; gap: .4rem; font: 700 .72rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: #ffe2b8; }
.tk-kick svg { width: 14px; height: 14px; }
.tk-body strong { font: 700 clamp(1.4rem, 2.4vw, 1.9rem)/1.05 var(--f-serif, Georgia, serif); letter-spacing: -.015em; }
.tk-sub { font-size: .92rem; color: rgba(255, 255, 255, .88); text-transform: capitalize; }
.tk-go { align-self: center; margin-right: 1.3rem; display: inline-flex; align-items: center; gap: .4rem; padding: .75rem 1.15rem; border-radius: 999px;
  background: #fff; color: #b8401f; font: 800 .92rem/1 var(--f-display); white-space: nowrap; transition: gap .2s; }
.tk:hover .tk-go { gap: .7rem; } .tk-go svg { width: 16px; height: 16px; }
/* Confeti suave que cae dentro de la entrada */
.tk-confetti { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.tk-confetti i { position: absolute; top: -12px; left: calc(var(--i) * 7.3% + 2%); width: 6px; height: 10px; border-radius: 2px; opacity: .55;
  background: hsl(calc(var(--i) * 47), 95%, 75%); transform: rotate(calc(var(--i) * 33deg)); }
@media (prefers-reduced-motion: no-preference) {
  .tk-confetti i { animation: tkFall calc(5s + var(--i) * .37s) linear infinite; animation-delay: calc(var(--i) * -.6s); }
  .tk-count b { animation: tkBeat 2.4s ease-in-out infinite; }
}
@keyframes tkFall { to { transform: translateY(140px) rotate(540deg); } }
@keyframes tkBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (max-width: 620px) {
  .tk { min-height: 0; }
  .tk-count { width: 92px; } .tk-count b { font-size: 2rem; }
  .tk-body { padding: .9rem 1rem; } .tk-body strong { font-size: 1.25rem; }
  .tk-go { display: none; }
}
:root:not([data-design]) .hz-now .now-item a.tk { display: flex !important; flex-direction: row !important; align-items: stretch !important; gap: 0 !important; padding: 0 !important; height: auto; }
:root:not([data-design]) .hz-now .now-item a.tk > .tk-count, :root:not([data-design]) .hz-now .now-item a.tk > .tk-body { display: flex !important; flex-direction: column !important; }
:root:not([data-design]) .hz-now .now-item a.tk > .tk-go { display: inline-flex !important; flex-direction: row !important; }
:root:not([data-design]) .hz-now .now-item a.tk > .tk-cut { display: block !important; }
@media (max-width: 620px) { :root:not([data-design]) .hz-now .now-item a.tk > .tk-go { display: none !important; } }
:root:not([data-design]) .hz-now .now-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2.3fr); }
:root:not([data-design]) .hz-now .now-grid.nw-2 { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { :root:not([data-design]) .hz-now .now-grid { grid-template-columns: 1fr 1fr; } :root:not([data-design]) .hz-now .nw-fiesta { grid-column: 1 / -1; } }

/* ═════════ Menos cajas: formas orgánicas ═════════ */
/* Alfonso XIII a todo el ancho, con bordes de agua ondulados arriba y abajo */
.ax-bleed { padding-block: 0 !important; }
.ax-bleed .axh2 { border-radius: 0; min-height: clamp(520px, 52vw, 680px); box-shadow: none; }
.ax-bleed .axh2-txt { padding-inline: max(16px, calc((100% - var(--maxw, 1200px)) / 2 + 16px)); padding-block: 5rem clamp(4.5rem, 7vw, 6.5rem); }
.ax-bleed .axh2-stamp { top: clamp(70px, 8vw, 110px); left: auto; right: max(16px, calc((100% - var(--maxw, 1200px)) / 2 + 16px)); }
.ax-bleed .axh2-year { top: auto; bottom: 30%; }
.axh2-wave { position: absolute; left: 0; right: 0; height: clamp(40px, 5vw, 70px); background: var(--bg); z-index: 1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V22C1200 60 960 6 720 30S240 64 0 26Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V22C1200 60 960 6 720 30S240 64 0 26Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.axh2-wave.t { top: -1px; }
.axh2-wave.b { bottom: -1px; transform: scale(-1, -1); }

/* Qué hay esta semana: sin cajas, una lista limpia con fechas redondas */
.wk-list { gap: 0; }
.wk-row { background: transparent; border: 0; border-radius: 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent); padding: 1rem .2rem; box-shadow: none !important; }
.wk-list li:last-child .wk-row { border-bottom: 0; }
.wk-row::before { display: none; }
.wk-row:hover { transform: none; background: transparent; }
.wk-row:hover strong { color: var(--c); }
.wk-d { border-radius: 50%; width: 62px; height: 62px; background: transparent; border: 2px solid var(--c); }
.wk-d.w b { font-size: .7rem; }
.wk-chip { background: transparent; border: 0; padding: 0; color: var(--ink-2); font-weight: 700; }
.wk-chip.hot { background: transparent; color: var(--c); }
.wk-chip.open { background: transparent; border: 0; }
.wk-chip.hot::before, .wk-chip.open::before { content: "●"; margin-right: .35rem; font-size: .7em; vertical-align: .15em; }
/* Destacada: forma suave con esquina en curva y fecha en círculo */
.wk-top { border-radius: 40px 40px 40px 120px; }
.wk-top-date .wk-d { border-radius: 50%; width: 84px; height: 84px; background: rgba(255, 255, 255, .14); border: 2px solid rgba(255, 255, 255, .5); }
@media (max-width: 860px) { .wk-top { border-radius: 32px 32px 32px 90px; } }
.wk-top .wk-chip, .wk-top .wk-chip.hot { background: #fff; color: var(--c); padding: .4rem .8rem; border-radius: 999px; }
.wk-top .wk-chip::before { display: none; }
.wk-top { border-radius: 40px 40px 40px 80px; padding: 1.8rem 1.8rem 2rem 2.4rem; }
@media (max-width: 620px) {
  .ax-bleed .axh2-stamp { display: none; }
  .ax-bleed .axh2::before { background: linear-gradient(0deg, rgba(5, 32, 26, .96) 0%, rgba(5, 32, 26, .86) 50%, rgba(5, 32, 26, .35) 75%, transparent 92%) !important; }
  .ax-bleed .axh2-year { display: none; }
  .wk-top { border-radius: 32px 32px 32px 64px; padding: 1.5rem 1.4rem 1.6rem 1.8rem; }
}
@media (max-width: 620px) { .ax-bleed .axh2 { min-height: 780px; } .ax-bleed .axh2-img { object-position: 50% 0%; height: 55%; } .ax-bleed .axh2 { background: #05201a; } }

/* ═════════ El año del arroz · escena + rueda del año ═════════ */
.cw { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.6rem); align-items: center; }
.cw-stage { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(420px, 40vw, 540px); border-radius: 36px 36px 36px 110px; display: flex; align-items: flex-end;
  box-shadow: 0 40px 80px -46px color-mix(in srgb, var(--c) 70%, #000); }
.cw-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; animation: cwIn .8s cubic-bezier(.2, .8, .2, 1); }
@keyframes cwIn { from { opacity: 0; transform: scale(1.08); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.cw-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6, 16, 22, .92) 0%, rgba(6, 16, 22, .55) 42%, transparent 72%); }
.cw-now { position: absolute; top: 20px; left: 20px; display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .95rem; border-radius: 999px; font: 700 .82rem/1 var(--f-display);
  color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.cw-now i { width: 8px; height: 8px; border-radius: 50%; background: #5ee08a; animation: hzPulse 2s infinite; }
.cw-txt { padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.4rem) clamp(1.6rem, 3vw, 2.4rem) clamp(1.8rem, 4vw, 3rem); color: #fff; display: flex; flex-direction: column; gap: .6rem; animation: hzUp .7s .1s cubic-bezier(.2, .8, .2, 1) both; }
.cw-when { align-self: flex-start; padding: .35rem .8rem; border-radius: 999px; font: 700 .76rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; background: var(--c); color: #10200e; }
.cw-txt h3 { margin: 0; font: 700 clamp(2rem, 4vw, 3.2rem)/1 var(--f-serif, Georgia, serif); letter-spacing: -.03em; color: #fff; }
.cw-txt p { margin: 0; max-width: 56ch; font: 400 1.05rem/1.6 var(--f-serif-text, Georgia, serif); color: rgba(255, 255, 255, .88); }
.cw-ver { list-style: none; margin: .3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.cw-ver li { display: inline-flex; align-items: center; gap: .45rem; font: 600 .92rem/1.2 var(--f-body, system-ui); color: #fff; }
.cw-ver li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent); }

.cw-wheel { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.cw-wheel svg { width: min(100%, 420px); height: auto; overflow: visible; }
.cw-m { cursor: pointer; outline: none; }
.cw-m path { fill: color-mix(in srgb, var(--c) 30%, var(--surface)); stroke: var(--bg); stroke-width: 2; transition: fill .3s, transform .3s; transform-origin: 200px 200px; }
.cw-m text { font: 700 13px/1 var(--f-display); fill: color-mix(in srgb, var(--c) 45%, var(--ink)); text-anchor: middle; pointer-events: none; transition: fill .3s; }
.cw-m.on path { fill: var(--c); transform: scale(1.05); }
.cw-m.on text { fill: #10200e; }
.cw-m:hover path, .cw-m:focus-visible path { fill: color-mix(in srgb, var(--c) 70%, var(--surface)); transform: scale(1.04); }
.cw-m:focus-visible path { stroke: var(--ink); stroke-width: 3; }
.cw-glow { fill: color-mix(in srgb, var(--c) 18%, transparent); }
.cw-hub { fill: var(--surface); stroke: color-mix(in srgb, var(--c) 50%, var(--line)); stroke-width: 2; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .12)); }
.cw-hub-k { font: 700 11px/1 var(--f-display); letter-spacing: 2.5px; fill: var(--ink-2); text-anchor: middle; }
.cw-hub-v { font: 700 26px/1 var(--f-serif, Georgia, serif); fill: var(--ink); text-anchor: middle; }
.cw-needle { transform-origin: 200px 200px; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); }
.cw-needle line { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; } .cw-needle circle { fill: var(--ink); }
.cw-today { fill: #e0452b; stroke: var(--bg); stroke-width: 3; }
@media (prefers-reduced-motion: no-preference) { .cw-today { animation: cwBlink 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; } }
@keyframes cwBlink { 50% { transform: scale(1.4); } }
.cw-hint { margin: 0; font-size: .88rem; color: var(--ink-2); } .cw-hint b { color: #e0452b; }
@media (max-width: 860px) {
  .cw { grid-template-columns: minmax(0, 1fr); }
  .cw-wheel { order: -1; } .cw-wheel svg { width: min(100%, 340px); }
  .cw-stage { border-radius: 30px 30px 30px 80px; min-height: 460px; }
}
@media (prefers-reduced-motion: reduce) { .cw-img, .cw-txt { animation: none; } .cw-needle { transition: none; } }
@media (max-width: 860px) { .cw-stage::before { background: linear-gradient(0deg, rgba(6,16,22,.95) 0%, rgba(6,16,22,.78) 60%, rgba(6,16,22,.2) 90%); } }
/* Año del arroz: escena más luminosa; solo se oscurece la franja del texto */
canvas.cw-img { display: block; animation: cwIn .8s cubic-bezier(.2, .8, .2, 1); }
.cw-stage::before { background: linear-gradient(0deg, rgba(6, 16, 22, .78) 0%, rgba(6, 16, 22, .42) 32%, rgba(6, 16, 22, .08) 52%, transparent 62%) !important; }
.cw-txt h3, .cw-txt p, .cw-ver li { text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 4px 20px rgba(0, 0, 0, .45); }
.cw-stage { min-height: clamp(460px, 42vw, 580px); }
@media (max-width: 860px) { .cw-stage::before { background: linear-gradient(0deg, rgba(6, 16, 22, .85) 0%, rgba(6, 16, 22, .55) 45%, transparent 75%) !important; } }
/* Año del arroz: imagen más pequeña y el texto fuera, sobre el fondo */
.cw { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; }
.cw-left { display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }
.cw-stage { min-height: 0 !important; aspect-ratio: 16 / 8; border-radius: 30px 30px 30px 80px; }
.cw-stage::before { display: none; }
.cw-txt { padding: 0 0 0 .4rem !important; color: var(--ink); }
.cw-txt h3 { color: var(--ink); font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.cw-txt p { color: var(--ink-2); }
.cw-ver li { color: var(--ink); }
.cw-txt h3, .cw-txt p, .cw-ver li { text-shadow: none !important; }
.cw-when { color: #10200e; }
@media (max-width: 860px) { .cw-stage { aspect-ratio: 16 / 10; border-radius: 26px 26px 26px 60px; } }
/* Rueda a la izquierda; foto y texto a la derecha */
@media (min-width: 861px) {
  .cw { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .cw-wheel { order: -1; }
  .cw-stage { border-radius: 30px 30px 80px 30px; }
}
/* Tractor que cruza el menú al subir */
.tractor { position: absolute; z-index: 60; width: 40px; height: 25px; pointer-events: none; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .25)); }
.tractor svg { width: 100%; height: 100%; overflow: visible; }
.tractor .tr-w { transform-box: fill-box; transform-origin: center; animation: trSpin .6s linear infinite; }
.tractor .tr-w.s { animation-duration: .4s; }
.tractor .tr-smoke circle { fill: rgba(120, 120, 120, .55); animation: trPuff 1s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.tractor .tr-smoke circle:nth-child(2) { animation-delay: .33s; } .tractor .tr-smoke circle:nth-child(3) { animation-delay: .66s; }
.tractor > svg { animation: trBump .35s ease-in-out infinite alternate; }
@keyframes trSpin { to { transform: rotate(360deg); } }
@keyframes trPuff { from { opacity: .9; transform: translate(0, 0) scale(.6); } to { opacity: 0; transform: translate(-8px, -6px) scale(1.6); } }
@keyframes trBump { to { transform: translateY(-1px); } }
@media (max-width: 960px) { .tractor { display: none; } }
/* Tractor ligado al scroll */
.tractor { left: 0; transition: opacity .35s, transform .12s linear; will-change: transform; }
.tractor .tr-w { animation: none !important; transform: rotate(var(--rot, 0deg)); }
.tractor > svg { animation: none; }
.tractor .tr-smoke { opacity: 0; transition: opacity .3s; }
.tractor.moving .tr-smoke { opacity: 1; }
.tractor.moving > svg { animation: trBump .2s ease-in-out infinite alternate; }
.tractor { width: 74px; height: 26px; }
.tractor .tr-flip .tr-w { transform: rotate(calc(var(--rot, 0deg) * -1)); }
/* Menú: el hover ya no se confunde con la sección activa */
:root:not([data-design]) .nav a { position: relative; }
:root:not([data-design]) .nav a:not([aria-current="page"])::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .32rem; height: 2px; border-radius: 2px;
  background: #2f7d1e; transform: scaleX(0); transform-origin: left; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
:root:not([data-design]) .nav a:hover:not([aria-current="page"]), :root:not([data-design]) .nav a:focus-visible:not([aria-current="page"]) { background: transparent !important; color: #2f7d1e !important; }
:root:not([data-design]) .nav a:hover:not([aria-current="page"])::after, :root:not([data-design]) .nav a:focus-visible:not([aria-current="page"])::after { transform: scaleX(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-design]) .nav a:hover:not([aria-current="page"]) { color: #8acb52 !important; } :root:not([data-theme="light"]):not([data-design]) .nav a::after { background: #8acb52; } }
:root[data-theme="dark"]:not([data-design]) .nav a:hover:not([aria-current="page"]) { color: #8acb52 !important; } :root[data-theme="dark"]:not([data-design]) .nav a::after { background: #8acb52; }
.tractor { width: 54px !important; height: 19px !important; }

/* ═════════ Menú «Más» del móvil ═════════ */
.sm-box.modal-box { max-height: 88vh; overflow-y: auto; overscroll-behavior: contain; padding-top: .6rem !important; border-radius: 30px 30px 0 0 !important;
  background: radial-gradient(120% 50% at 50% 0%, color-mix(in srgb, #2f7d1e 10%, var(--surface)), var(--surface) 60%); }
.sm-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; margin-bottom: 1rem; }
.sm-grab { width: 44px; height: 5px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 18%, transparent); margin-bottom: .7rem; }
.sm-box .sheet-title { padding: 0; font: 700 1.7rem/1.1 var(--f-serif, Georgia, serif); letter-spacing: -.02em; }
.sm-box .sheet-title em { color: #2f7d1e; font-weight: 600; }
.sm-head p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.sm-search { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 54px; padding: 0 1.1rem; margin-bottom: 1.2rem; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1.5px solid color-mix(in srgb, #2f7d1e 30%, var(--line)); color: var(--ink-2); font: 500 1rem/1 var(--f-body, system-ui); text-align: left;
  box-shadow: 0 10px 24px -16px rgba(16, 24, 40, .35); }
.sm-search svg { width: 20px; height: 20px; color: #2f7d1e; flex-shrink: 0; }
.sm-nav { display: flex; flex-direction: column; gap: 1.1rem; }
.sm-g h3 { margin: 0 0 .5rem .2rem; font: 700 .72rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.sm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.sm-i, .sm-a11y { display: flex; align-items: center; gap: .7rem; min-height: 64px; padding: .6rem .7rem; border-radius: 18px; text-decoration: none; color: var(--ink); min-width: 0;
  background: color-mix(in srgb, var(--c, #2f7d1e) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c, #2f7d1e) 16%, var(--line)); transition: transform .15s, background .15s; }
.sm-i:active, .sm-a11y:active { transform: scale(.97); }
.sm-i[aria-current="page"] { background: var(--c); color: #fff; border-color: transparent; }
.sm-i[aria-current="page"] small { color: rgba(255, 255, 255, .85); }
.sm-i[aria-current="page"] .sm-ico { background: rgba(255, 255, 255, .2); color: #fff; box-shadow: none; }
.sm-ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 75%, #fff), var(--c)); box-shadow: 0 6px 14px -6px var(--c); }
.sm-ico svg { width: 21px; height: 21px; }
.sm-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sm-t b, .sm-a11y b { font: 800 .95rem/1.15 var(--f-display); }
.sm-t small, .sm-a11y small { font-size: .74rem; line-height: 1.25; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sm-a11y { --c: #6b4bb8; width: 100%; cursor: pointer; text-align: left; font: inherit; }
.sm-a11y > svg { width: 40px; height: 40px; padding: 9px; border-radius: 13px; color: #fff; background: linear-gradient(160deg, #9a82d6, #6b4bb8); flex-shrink: 0; }
.sm-a11y span { display: flex; flex-direction: column; gap: 2px; }
.sm-box .sheet-legal { margin-top: 1.2rem; }
@media (prefers-reduced-motion: no-preference) {
  .sm-i, .sm-a11y { animation: smIn .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 28ms + 80ms); }
  .sm-head, .sm-search { animation: smIn .4s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes smIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

/* Barra de abajo: cristal con la sección activa en píldora */
:root:not([data-design]) .tabbar { background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); padding-inline: 6px; }
:root:not([data-design]) .tab { position: relative; color: var(--ink-2); transition: color .2s; }
:root:not([data-design]) .tab svg { padding: 3px 14px; width: 52px; height: 30px; box-sizing: border-box; border-radius: 999px; transition: background .25s, color .25s; }
:root:not([data-design]) .tab[aria-current="page"] { color: #1d5212; }
:root:not([data-design]) .tab[aria-current="page"] svg { background: color-mix(in srgb, #2f7d1e 16%, var(--surface)); color: #2f7d1e; transform: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-design]) .tab[aria-current="page"] { color: #8acb52; } :root:not([data-theme="light"]):not([data-design]) .tab[aria-current="page"] svg { color: #8acb52; background: rgba(138, 203, 82, .16); } }
:root[data-theme="dark"]:not([data-design]) .tab[aria-current="page"] { color: #8acb52; } :root[data-theme="dark"]:not([data-design]) .tab[aria-current="page"] svg { color: #8acb52; background: rgba(138, 203, 82, .16); }
.sm-grid > .sm-i:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sm-t small { -webkit-line-clamp: 1; white-space: nowrap; display: block; }
.sm-search span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) { .sm-grid > .sm-i:not(:last-child:nth-child(odd)) small { display: none; } .sm-i { min-height: 58px; } }

/* ═════════ Barra de abajo: isla flotante ═════════ */
@media (max-width: 960px) {
  :root:not([data-design]) .tabbar { left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    padding: 6px; gap: 2px; border-radius: 26px; border: 1px solid rgba(255, 255, 255, .12); position: fixed; isolation: isolate;
    background: rgba(14, 24, 19, .86); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
    transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s; animation: tbIn .7s cubic-bezier(.2, 1.2, .3, 1) both .2s; }
  :root:not([data-design]) .tabbar.tb-hide { transform: translateY(calc(100% + 24px)); opacity: 0; }
  :root:not([data-design]) .tab { position: relative; z-index: 1; min-height: 54px !important; gap: 3px; color: rgba(255, 255, 255, .62); font: 700 .66rem/1 var(--f-display); letter-spacing: .01em; border-radius: 20px; transition: color .3s, transform .15s; }
  :root:not([data-design]) .tab:active { transform: scale(.92); }
  :root:not([data-design]) .tab .tab-ico { display: grid; place-items: center; height: 26px; }
  :root:not([data-design]) .tab svg { width: 22px !important; height: 22px !important; padding: 0 !important; background: none !important; color: inherit !important; transition: transform .35s cubic-bezier(.2, 1.4, .4, 1); }
  :root:not([data-design]) .tab[aria-current="page"] { color: #fff !important; }
  :root:not([data-design]) .tab[aria-current="page"] svg { transform: translateY(-1px) scale(1.12); }
  :root:not([data-design]) .tab-l { white-space: nowrap; }
  .tb-blob { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 20px; pointer-events: none;
    background: linear-gradient(160deg, #4aa52e, #2f7d1e 60%, #1d5212); box-shadow: 0 8px 20px -6px rgba(47, 125, 30, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: transform .5s cubic-bezier(.3, 1.35, .45, 1), width .5s cubic-bezier(.3, 1.35, .45, 1), opacity .3s; }
  .tb-blob::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #f5c842; box-shadow: 0 0 8px #f5c842; }
}
@keyframes tbIn { from { transform: translateY(120%) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { :root:not([data-design]) .tabbar { animation: none; } .tb-blob { transition: none; } }

/* ═════════ El Chat · diseño 2026 ═════════ */
:root:not([data-design]) .fb { --fb-blue: #2f7d1e; --fb-blue-soft: color-mix(in srgb, #2f7d1e 12%, var(--surface)); }
/* Ficha del grupo flotando sobre la cabecera */
:root:not([data-design]) .fb > .banner.hx + .group-head { position: relative; z-index: 3; margin: -52px auto 0; max-width: min(1100px, calc(100% - 32px)); width: auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 1.5rem; padding: 1rem 1.3rem; border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); box-shadow: 0 24px 50px -28px rgba(10, 30, 60, .5); }
:root:not([data-design]) .fb > .banner.hx { padding-bottom: 40px !important; }
:root:not([data-design]) .fb > .banner.hx .hx-in { padding-bottom: 5rem !important; }
:root:not([data-design]) .fb .group-title { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
:root:not([data-design]) .fb .group-title p { margin: 0; order: 2; font-weight: 600; color: var(--ink-2); }
:root:not([data-design]) .fb .faces { order: 1; display: flex; }
:root:not([data-design]) .fb .faces .avatar { margin-left: -9px; box-shadow: 0 0 0 3px var(--surface); }
:root:not([data-design]) .fb .faces .avatar:first-child { margin-left: 0; }
:root:not([data-design]) .fbb { height: 44px; padding: 0 1.15rem; border-radius: 999px; font: 700 .95rem/1 var(--f-display); transition: transform .15s, box-shadow .2s, background .2s; }
:root:not([data-design]) .fbb:active { transform: scale(.96); }
:root:not([data-design]) .fbb.blue { background: linear-gradient(160deg, #4aa52e, #2f7d1e); box-shadow: 0 10px 22px -10px rgba(47, 125, 30, .8); }
:root:not([data-design]) .fbb.grey { background: color-mix(in srgb, var(--ink) 6%, var(--surface)); }
:root:not([data-design]) .fbb.sq { width: 44px; padding: 0; }
/* Pestañas: cápsula segmentada, fija al bajar */
:root:not([data-design]) .fb .group-tabs { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 20; border: 0 !important; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: .9rem 0 .7rem; margin-top: .6rem; gap: 4px; justify-content: center; }
:root:not([data-design]) .fb .group-tabs button { height: 42px !important; margin: 0 !important; padding: 0 1.1rem; border: 0 !important; border-radius: 999px !important; font: 700 .92rem/1 var(--f-display);
  color: var(--ink-2); background: transparent; transition: background .2s, color .2s; }
:root:not([data-design]) .fb .group-tabs button:hover { background: color-mix(in srgb, var(--ink) 6%, transparent) !important; color: var(--ink); height: 42px; }
:root:not([data-design]) .fb .group-tabs button[aria-selected="true"], :root:not([data-design]) .fb .group-tabs button[aria-selected="true"]:hover {
  background: var(--ink) !important; color: var(--bg) !important; height: 42px; }
/* Historias */
:root:not([data-design]) .fb .stories { gap: .7rem; padding-block: .4rem 1rem; }
:root:not([data-design]) .fb .story { border-radius: 22px; overflow: hidden; box-shadow: 0 14px 28px -18px rgba(0, 0, 0, .55); transition: transform .25s; border: 0; }
:root:not([data-design]) .fb .story:hover { transform: translateY(-4px) rotate(-1deg); }
:root:not([data-design]) .fb .story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .65), transparent 50%); pointer-events: none; }
:root:not([data-design]) .fb .story-cap { z-index: 2; font-weight: 800; }
:root:not([data-design]) .fb .story-ring { z-index: 2; padding: 3px; border-radius: 50%; background: conic-gradient(#f5c842, #e0452b, #2f7d1e, #1a8fc4, #f5c842); }
:root:not([data-design]) .fb .story-ring .avatar { box-shadow: 0 0 0 2px var(--surface); }
:root:not([data-design]) .fb .story.create { background: linear-gradient(165deg, #4aa52e, #1d5212) !important; color: #fff; }
:root:not([data-design]) .fb .story.create::after { display: none; }
:root:not([data-design]) .fb .story.create .story-bg { background: transparent !important; display: grid; place-items: center; }
:root:not([data-design]) .fb .story.create .story-bg svg { width: 46px; height: 46px; color: rgba(255, 255, 255, .9); }
:root:not([data-design]) .fb .story.create .story-plus { background: #f5c842; color: #1d1803; box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); }
:root:not([data-design]) .fb .story.create, :root:not([data-design]) .fb .story.create * { color: #fff; }
:root:not([data-design]) .fb .story.create .story-plus svg { color: #1d1803; }
@media (max-width: 620px) {
  :root:not([data-design]) .fb > .banner.hx + .group-head { margin-top: -44px; padding: .9rem 1rem; border-radius: 20px; }
  :root:not([data-design]) .fb .group-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr 44px; gap: .5rem; }
  :root:not([data-design]) .fb .group-tabs { justify-content: flex-start; padding-inline: 12px; }
}
@media (max-width: 620px) {
  :root:not([data-design]) .fb > .banner.hx + .group-head { display: grid !important; grid-template-columns: minmax(0, 1fr); }
  :root:not([data-design]) .fb .group-actions { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px !important; width: 100% !important; }
  :root:not([data-design]) .fb .group-actions .fbb { width: 100% !important; min-width: 0; padding: 0 .6rem; }
  :root:not([data-design]) .fb .group-actions .fbb.sq { width: 44px !important; }
}

/* ═════════ Negocios: lista de directorio en vez de rejilla de cajas ═════════ */
:root:not([data-design]) body:not([data-route="comer"]) .biz-grid:not(.bz-showcase) { display: flex; flex-direction: column; gap: 0; background: var(--surface); border-radius: 26px; padding: .4rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); box-shadow: 0 20px 50px -40px rgba(16, 24, 40, .5); }
:root:not([data-design]) body:not([data-route="comer"]) .biz-grid .bz { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "ico body acts"; align-items: center; gap: 1.1rem;
  background: transparent; border: 0; border-radius: 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); padding: 1.05rem .2rem; box-shadow: none; overflow: visible; }
:root:not([data-design]) body:not([data-route="comer"]) .biz-grid .bz:last-child { border-bottom: 0; }
:root:not([data-design]) body:not([data-route="comer"]) .biz-grid .bz:hover { transform: none; box-shadow: none; background: color-mix(in srgb, var(--c) 4%, transparent); border-radius: 18px; border-bottom-color: transparent; }
:root:not([data-design]) body:not([data-route="comer"]) .biz-grid .bz-cover { grid-area: ico; width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); box-shadow: 0 8px 18px -8px var(--c); }
:root:not([data-design]) body:not([data-route="comer"]) .biz-grid .bz-pattern { position: static; display: grid; place-items: center; width: 100%; height: 100%; opacity: 1; transform: none; }
:root:not([data-design]) body:not([data-route="comer"]) .biz-grid .bz-pattern svg { width: 24px; height: 24px; color: #fff; opacity: 1; }
:root:not([data-design]) body:not([data-route="comer"]) .biz-grid .bz-cover img { width: 100%; height: 100%; object-fit: cover; }
:root:not([data-design]) body:not([data-route="comer"]) .biz-grid .bz-tag { display: none; }
:root:not([data-design]) body:not([data-route="comer"]) .biz-grid .bz-body { grid-area: body; padding: 0; gap: .2rem; min-width: 0; }
:root:not([data-design]) body:not([data-route="comer"]) .biz-grid .bz-cat { font-size: .7rem; letter-spacing: .08em; }
:root:not([data-design]) body:not([data-route="comer"]) .biz-grid h3 { margin: 0; font: 700 1.15rem/1.2 var(--f-serif, Georgia, serif); letter-spacing: -.01em; }
:root:not([data-design]) body:not([data-route="comer"]) .biz-grid .bz-desc { margin: 0; font-size: .9rem; color: var(--ink-2); -webkit-line-clamp: 1; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
:root:not([data-design]) body:not([data-route="comer"]) .biz-grid .bz-info { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin: 0; }
:root:not([data-design]) body:not([data-route="comer"]) .biz-grid .bz-info li { font-size: .84rem; color: var(--ink-2); }
:root:not([data-design]) body:not([data-route="comer"]) .biz-grid .bz-acts { grid-area: acts; padding: 0; border: 0; background: none; display: flex; align-items: center; gap: .4rem; flex-wrap: nowrap; }
:root:not([data-design]) body:not([data-route="comer"]) .biz-grid .bz-acts .btn { border-radius: 999px; min-height: 40px; }
:root:not([data-design]) body:not([data-route="comer"]) .biz-grid .bz-acts .btn.ghost { width: 40px; padding: 0; justify-content: center; font-size: 0; gap: 0; border: 1px solid var(--line); }
:root:not([data-design]) body:not([data-route="comer"]) .biz-grid .bz-acts .btn.ghost svg { width: 18px; height: 18px; }
:root:not([data-design]) body:not([data-route="comer"]) .biz-grid .bz.is-prem, :root:not([data-design]) body:not([data-route="comer"]) .biz-grid .bz.is-paid { background: linear-gradient(90deg, color-mix(in srgb, #f5c842 12%, transparent), transparent 60%); border-radius: 18px; }
@media (max-width: 760px) {
  :root:not([data-design]) body:not([data-route="comer"]) .biz-grid:not(.bz-showcase) { padding: .2rem .8rem; border-radius: 22px; }
  :root:not([data-design]) body:not([data-route="comer"]) .biz-grid .bz { grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: "ico body" ". acts"; gap: .4rem .9rem; }
  :root:not([data-design]) body:not([data-route="comer"]) .biz-grid .bz-cover { width: 48px; height: 48px; }
  :root:not([data-design]) body:not([data-route="comer"]) .biz-grid .bz-acts { flex-wrap: wrap; }
}

/* Explora · Asociaciones: lista con icono de color, sin cajas */
.as-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.4rem; }
.as-i { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem 0; border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.as-ico { flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); box-shadow: 0 8px 18px -8px var(--c); }
.as-ico svg { width: 22px; height: 22px; }
.as-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.as-k { font: 700 .7rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.as-t h3 { margin: 0; font: 700 1.2rem/1.2 var(--f-serif, Georgia, serif); }
.as-t p { margin: 0; color: var(--ink-2); line-height: 1.55; font-size: .95rem; }
.as-w { display: flex; gap: .35rem; align-items: center; font-size: .88rem !important; } .as-w svg { width: 15px; height: 15px; flex-shrink: 0; }
.as-go { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--c); transition: background .2s; }
.as-go:hover { background: color-mix(in srgb, var(--c) 10%, transparent); } .as-go svg { width: 17px; height: 17px; }
@media (max-width: 760px) { .as-list { grid-template-columns: minmax(0, 1fr); } }

/* ═════════ Vivir en Isla Mayor · editorial, sin cuadraditos ═════════ */
:root:not([data-design]) .vv-page { gap: 0 !important; }
:root:not([data-design]) .vv-sec { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 2.4rem; padding: 3rem 0; border: 0 !important; background: none !important; box-shadow: none !important;
  border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent) !important; border-radius: 0 !important; }
:root:not([data-design]) .vv-sec > header { position: sticky; top: calc(var(--header-h) + 80px); align-self: start; display: flex; flex-direction: column; gap: .9rem; padding: 0; background: none; border: 0; }
:root:not([data-design]) .vv-sec .vv-ico { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 65%, #fff), var(--c)); box-shadow: 0 14px 28px -14px var(--c); }
:root:not([data-design]) .vv-sec .vv-ico svg { width: 30px; height: 30px; }
:root:not([data-design]) .vv-sec header h2 { margin: 0; font: 700 clamp(1.6rem, 2.6vw, 2.2rem)/1.08 var(--f-serif, Georgia, serif); letter-spacing: -.02em; }
:root:not([data-design]) .vv-sec header p { margin: 0; font-size: 1rem; line-height: 1.55; }
:root:not([data-design]) .vv-blocks { display: flex !important; flex-direction: column; gap: 0 !important; }
:root:not([data-design]) .vv-block { background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 1.4rem 0 !important;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent) !important; position: relative; }
:root:not([data-design]) .vv-block:last-child { border-bottom: 0 !important; }
:root:not([data-design]) .vv-block h3 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .5rem; font: 800 1.12rem/1.25 var(--f-display); }
:root:not([data-design]) .vv-block h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 20%, transparent); flex-shrink: 0; }
:root:not([data-design]) .vv-block > p { color: var(--ink-2); line-height: 1.65; max-width: 68ch; margin: 0 0 .6rem; }
:root:not([data-design]) .vv-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .1rem 2rem; margin: .4rem 0 0; }
:root:not([data-design]) .vv-rows > div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed color-mix(in srgb, var(--line) 90%, transparent); background: none; border-radius: 0; }
:root:not([data-design]) .vv-rows dt { color: var(--ink); font-weight: 600; } :root:not([data-design]) .vv-rows dd { margin: 0; color: var(--ink-2); text-align: right; }
:root:not([data-design]) .vv-rows dd a.tel { color: var(--c); font-weight: 800; white-space: nowrap; }
:root:not([data-design]) .vv-list li svg { color: var(--c); }
:root:not([data-design]) .vv-note { background: color-mix(in srgb, var(--c) 7%, transparent) !important; border: 0 !important; border-left: 3px solid var(--c) !important; border-radius: 0 12px 12px 0 !important; }
:root:not([data-design]) .vv-acts .btn { border-radius: 999px; }
/* Menú de secciones: cápsula fija al bajar */
:root:not([data-design]) .vv-nav { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 15; background: color-mix(in srgb, var(--bg) 85%, transparent); border: 0;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: .7rem; }
:root:not([data-design]) .vv-nav a { border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 25%, var(--line)); background: var(--surface); }
:root:not([data-design]) .vv-nav a:hover { background: color-mix(in srgb, var(--c) 10%, var(--surface)); }
:root:not([data-design]) .vv-nav a svg { color: var(--c); }
:root:not([data-design]) .vv-new { border-radius: 24px; margin-block: 1.6rem .6rem; }
@media (max-width: 860px) {
  :root:not([data-design]) .vv-sec { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 2.2rem 0; }
  :root:not([data-design]) .vv-sec > header { position: static; flex-direction: row; align-items: center; }
  :root:not([data-design]) .vv-sec .vv-ico { width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0; }
  :root:not([data-design]) .vv-rows { grid-template-columns: minmax(0, 1fr); }
}
:root:not([data-design]) .vv-rows { border: 0 !important; background: none !important; border-radius: 0 !important; padding: 0 !important; box-shadow: none !important; } :root:not([data-design]) .vv-sec > header { align-items: flex-start; }
/* Móvil: el pie sin los bloques de enlaces (ya están en la barra y en «Más») */
@media (max-width: 760px) { :root:not([data-design]) footer.fx .fx-col { display: none !important; } :root:not([data-design]) footer.fx .fx-grid { gap: 0; } }
.modal-box > .close { z-index: 10; } .sm-box > .close { position: sticky; float: right; top: 0; margin: 0 0 -44px auto; }
/* Año del arroz en móvil: una sola columna, rueda grande arriba y escena + texto a lo ancho */
@media (max-width: 860px) {
  .cw { grid-template-columns: minmax(0, 1fr) !important; gap: 1.4rem; }
  .cw-wheel { order: -1; }
  .cw-wheel svg { width: min(100%, 360px) !important; }
  .cw-left { gap: 1.1rem; }
  .cw-stage { aspect-ratio: 16 / 10; width: 100%; }
  .cw-txt { padding: 0 !important; }
  .cw-txt h3 { font-size: 1.9rem; }
  .cw-txt p { font-size: 1rem; max-width: none; }
}
@media (max-width: 860px) { .cw-wheel { order: 2 !important; } .cw-left { order: 1; } }
@media (max-width: 860px) { .cw-ver { display: none !important; } }
@media (max-width: 1024px) { .cw .cw-ver { display: none !important; } }

/* Teléfonos: las urgencias del pueblo, en rojo y lo primero */
.tl-local { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.tl-loc { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.1rem; border-radius: 22px; text-decoration: none; color: #fff;
  background: linear-gradient(150deg, #e2382b, #b3261e); box-shadow: 0 16px 34px -16px rgba(179, 38, 30, .9), inset 0 1px 0 rgba(255, 255, 255, .2); transition: transform .15s, box-shadow .2s; }
.tl-loc:hover { transform: translateY(-2px); } .tl-loc:active { transform: scale(.98); }
.tl-loc-ico { flex-shrink: 0; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.tl-loc-ico svg { width: 26px; height: 26px; }
.tl-loc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tl-loc-t b { font: 800 1.08rem/1.2 var(--f-display); } .tl-loc-t small { font-size: .82rem; opacity: .85; }
.tl-loc-n { font: 800 1.35rem/1.1 var(--f-display); letter-spacing: .01em; margin-top: .2rem; white-space: nowrap; }
.tl-loc-call { flex-shrink: 0; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 58px; height: 58px; border-radius: 50%; background: #fff; color: #b3261e; }
.tl-loc-call svg { width: 22px; height: 22px; } .tl-loc-call em { font: 800 .62rem/1 var(--f-display); font-style: normal; text-transform: uppercase; letter-spacing: .04em; }
.tl-sos-h { margin: .6rem 0 0; font: 800 .8rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 960px) { .tl-local { grid-template-columns: minmax(0, 1fr); gap: .6rem; } }

/* ═════════ Buscador · diseño 2026 ═════════ */
.modal:has(.cmdk-box) { background: rgba(6, 14, 20, .55); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); }
.modal-box.cmdk-box { width: min(720px, 100%); border-radius: 30px !important; margin-top: 7vh; border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06);
  animation: ckIn .35s cubic-bezier(.2, 1.1, .3, 1); }
@keyframes ckIn { from { opacity: 0; transform: translateY(-12px) scale(.97); } to { opacity: 1; transform: none; } }
.cmdk-in { position: relative; margin: 14px; padding: .4rem .5rem .4rem 1.1rem !important; border: 0 !important; border-radius: 999px; background: var(--surface); isolation: isolate; }
.cmdk-in::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--hz-a, 0deg), #2f7d1e, #f5c842, #1a8fc4, #e0452b, #2f7d1e);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: hzSpin 6s linear infinite; }
.cmdk-in > svg { color: #2f7d1e !important; width: 24px !important; height: 24px !important; }
.cmdk-in input { font: 600 1.25rem/1.2 var(--f-display) !important; min-height: 50px; }
.cmdk-in input::placeholder { color: var(--ink-2); font-weight: 500; }
.cmdk-in kbd { display: none; }
.cmdk-list { max-height: min(66vh, 600px) !important; padding: 0 14px 16px !important; }
.cmdk-h { font: 700 .7rem/1 var(--f-display) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding: 1rem .3rem .6rem !important; }
/* Urgencias */
.ck-urg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.ck-u { display: flex; align-items: center; gap: .55rem; padding: .65rem .75rem; border-radius: 16px; text-decoration: none; color: #fff; background: linear-gradient(150deg, #e2382b, #b3261e); box-shadow: 0 10px 20px -12px rgba(179, 38, 30, .9); min-width: 0; }
.ck-u svg { width: 18px; height: 18px; flex-shrink: 0; }
.ck-u span { display: flex; flex-direction: column; min-width: 0; } .ck-u b { font: 800 .86rem/1.1 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ck-u small { font-size: .74rem; opacity: .9; white-space: nowrap; }
/* Accesos */
.ck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .5rem; }
.ck-tile { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding: .85rem .8rem; border-radius: 18px; cursor: pointer; text-align: left; font: inherit; color: var(--ink);
  background: color-mix(in srgb, var(--c) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 18%, var(--line)); transition: transform .2s, background .2s, border-color .2s; }
.ck-tile:hover, .ck-tile:focus-visible { transform: translateY(-3px); background: color-mix(in srgb, var(--c) 14%, var(--surface)); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); outline: none; }
.ck-tile b { font: 800 .92rem/1.15 var(--f-display); }
.ck-ico, .ck-ri { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); box-shadow: 0 6px 14px -6px var(--c); flex-shrink: 0; }
.ck-ico svg, .ck-ri svg { width: 20px !important; height: 20px !important; color: #fff !important; }
@media (prefers-reduced-motion: no-preference) { .ck-tile { animation: smIn .4s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 22ms); } }
/* Búsquedas frecuentes */
.ck-pop { display: flex; flex-wrap: wrap; gap: .4rem; }
.ck-pop button { display: inline-flex; align-items: center; gap: .35rem; min-height: 38px; padding: 0 .9rem; border-radius: 999px; cursor: pointer; font: 600 .9rem/1 var(--f-body, system-ui);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); transition: background .15s; }
.ck-pop button:hover { background: color-mix(in srgb, #2f7d1e 10%, var(--surface)); border-color: color-mix(in srgb, #2f7d1e 35%, var(--line)); }
.ck-pop svg { width: 14px; height: 14px; color: var(--ink-2); }
/* Resultados */
.cmdk-item { padding: .55rem .6rem !important; border-radius: 16px !important; gap: .85rem !important; }
.cmdk-item[aria-selected="true"], .cmdk-item:hover { background: color-mix(in srgb, #2f7d1e 8%, var(--surface-2)) !important; }
.cmdk-item .ck-ri { width: 40px; height: 40px; }
.cmdk-t { font: 700 1rem/1.25 var(--f-display); }
.cmdk-empty { padding: 3rem 1rem !important; font-size: 1.05rem; }
@media (max-width: 620px) {
  .modal-box.cmdk-box { margin-top: 0; border-radius: 0 0 26px 26px !important; }
  .cmdk-in { margin: 10px; } .cmdk-in input { font-size: 1.1rem !important; }
  .ck-urg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ck-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ck-tile { padding: .7rem .6rem; } .ck-tile b { font-size: .82rem; }
}

/* ═════════ Trámites · diseño 2026 ═════════ */
:root:not([data-design]) .tr-bar { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 15; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 0; padding-block: 1rem .7rem; }
:root:not([data-design]) .tr-bar .search-big { border-radius: 999px; box-shadow: 0 14px 30px -18px rgba(16, 24, 40, .45); border: 1.5px solid color-mix(in srgb, #b0287c 25%, var(--line)); }
:root:not([data-design]) .tr-fchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: .4rem; padding-bottom: 2px; }
:root:not([data-design]) .tr-fchips::-webkit-scrollbar { display: none; }
:root:not([data-design]) .tr-fchip { border-radius: 999px; flex-shrink: 0; }
:root:not([data-design]) .tr-page { gap: 3rem !important; padding-top: 1.4rem; }
/* Lista de trámites: filas limpias, sin cajas */
:root:not([data-design]) .tr-grid { display: flex !important; flex-direction: column; gap: 0 !important; background: var(--surface); border-radius: 26px; padding: .3rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); box-shadow: 0 20px 50px -40px rgba(16, 24, 40, .5); }
:root:not([data-design]) .tr-card { background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent) !important; }
:root:not([data-design]) .tr-card:last-of-type { border-bottom: 0 !important; }
:root:not([data-design]) .tr-card::before { display: none !important; }
:root:not([data-design]) .tr-card > summary { padding: 1rem .2rem !important; gap: 1rem; }
:root:not([data-design]) .tr-card .tr-ico { width: 46px; height: 46px; border-radius: 50%; color: #fff !important; background: linear-gradient(160deg, color-mix(in srgb, var(--c, #b0287c) 70%, #fff), var(--c, #b0287c)) !important;
  box-shadow: 0 8px 16px -8px var(--c, #b0287c); }
:root:not([data-design]) .tr-card .tr-ico svg { color: #fff !important; }
:root:not([data-design]) .tr-card strong { font: 800 1.05rem/1.25 var(--f-display); }
:root:not([data-design]) .tr-card[open] { background: color-mix(in srgb, var(--c, #b0287c) 5%, transparent) !important; border-radius: 20px !important; }
:root:not([data-design]) .tr-b { border-radius: 999px; } :root:not([data-design]) .tr-req { font-size: .78rem; }
:root:not([data-design]) .tr-more { border-radius: 999px; margin: .6rem 0 .4rem; }
/* Ayuda Guadalinfo */
:root:not([data-design]) .tr-help { border-radius: 28px; border: 0; padding: 1.6rem 1.8rem; background: linear-gradient(120deg, #0f3a2b, #1d5a3a); color: #fff; box-shadow: 0 24px 50px -30px rgba(15, 58, 43, .9); }
:root:not([data-design]) .tr-help h3 { color: #fff; font: 700 1.4rem/1.2 var(--f-serif, Georgia, serif); }
:root:not([data-design]) .tr-help p { color: rgba(255, 255, 255, .85); }
:root:not([data-design]) .tr-help-ico { background: rgba(255, 255, 255, .14); color: #f5c842; border-radius: 18px; }
:root:not([data-design]) .tr-help .btn { border-radius: 999px; }
:root:not([data-design]) .tr-help .btn:not(.alt) { background: #f5c842; color: #1d1803; border-color: #f5c842; }
:root:not([data-design]) .tr-help .btn.alt { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
/* ¿Qué te está pasando? */
:root:not([data-design]) .vida-pick { display: flex !important; flex-wrap: wrap; gap: .45rem; }
:root:not([data-design]) .vida-pick button { border-radius: 999px !important; min-height: 44px; padding: 0 1rem !important; flex-direction: row !important; gap: .45rem; font-weight: 700; }
:root:not([data-design]) .vida-pick button[aria-selected="true"] { background: var(--ink) !important; color: var(--bg) !important; border-color: var(--ink) !important; }
:root:not([data-design]) .vida-pick button svg { width: 18px; height: 18px; }
:root:not([data-design]) .vida-steps { border: 0 !important; background: none !important; padding: 0 !important; margin-top: 1.2rem; counter-reset: v; }
:root:not([data-design]) .vida-steps li { position: relative; border: 0 !important; background: none !important; padding: 0 0 1.4rem 3.2rem !important; }
:root:not([data-design]) .vida-steps li::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 4px; width: 2px; background: color-mix(in srgb, #b0287c 25%, var(--line)); }
:root:not([data-design]) .vida-steps li:last-child::after { display: none; }
/* Identificación */
.tr-id2 h2, .tr-links h2 { font: 700 clamp(1.4rem, 2.4vw, 1.8rem)/1.15 var(--f-serif, Georgia, serif); margin: 0 0 1rem; }
.tr-id2-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.tr-id2-row a { display: flex; flex-direction: column; gap: .2rem; padding: 1.1rem 1.2rem; text-decoration: none; color: var(--ink); background: var(--surface); position: relative; transition: background .2s; }
.tr-id2-row a + a { border-left: 1px solid var(--line); }
.tr-id2-row a:hover { background: color-mix(in srgb, #b0287c 6%, var(--surface)); }
.tr-id2-row b { font: 800 1.05rem/1.2 var(--f-display); } .tr-id2-row span { font-size: .88rem; color: var(--ink-2); }
.tr-id2-row svg { position: absolute; right: 1rem; top: 1.1rem; width: 16px; height: 16px; color: var(--ink-2); }
/* Enlaces oficiales */
.tr-links-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.tr-links-grid a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem .2rem; border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent); text-decoration: none; color: var(--ink); }
.tr-links-grid a:hover b { color: #b0287c; }
.tr-links-grid span { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .tr-links-grid b { font: 700 .98rem/1.25 var(--f-display); transition: color .2s; } .tr-links-grid small { color: var(--ink-2); font-size: .84rem; }
.tr-links-grid svg { width: 16px; height: 16px; color: var(--ink-2); flex-shrink: 0; }
/* Preguntas frecuentes */
:root:not([data-design]) .tr-page details.tram { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
@media (max-width: 760px) {
  .tr-id2-row { grid-template-columns: minmax(0, 1fr); } .tr-id2-row a + a { border-left: 0; border-top: 1px solid var(--line); }
  .tr-links-grid { grid-template-columns: minmax(0, 1fr); }
  :root:not([data-design]) .tr-grid { padding: .2rem .8rem; border-radius: 22px; }
  :root:not([data-design]) .tr-help { padding: 1.3rem; }
}

/* ═════════ Agenda · diseño 2026 ═════════ */
:root:not([data-design]) .agenda2 { display: block !important; max-width: 920px; margin-inline: auto; }
:root:not([data-design]) .ag-head h2 { font: 700 clamp(1.8rem, 3.2vw, 2.4rem)/1.05 var(--f-serif, Georgia, serif); letter-spacing: -.02em; }
:root:not([data-design]) .ag-head .btn { border-radius: 999px; }
:root:not([data-design]) .ag-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
:root:not([data-design]) .ag-tools .search-mini { flex: 1 1 260px; border-radius: 999px; }
:root:not([data-design]) .ag-filters .chip { border-radius: 999px; min-height: 40px; }
:root:not([data-design]) .ag-filters .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ag-weekly { display: flex; gap: .6rem; overflow-x: auto; scrollbar-width: none; margin: 1rem 0 .4rem; }
.ag-wk { flex: 1 0 auto; display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: 18px; background: color-mix(in srgb, #2f7d1e 7%, var(--surface)); border: 1px dashed color-mix(in srgb, #2f7d1e 35%, var(--line)); }
.ag-wk-d { padding: .35rem .6rem; border-radius: 999px; background: #2f7d1e; color: #fff; font: 800 .74rem/1 var(--f-display); white-space: nowrap; }
.ag-wk span:last-child { display: flex; flex-direction: column; } .ag-wk b { font: 800 .95rem/1.2 var(--f-display); } .ag-wk small { color: var(--ink-2); font-size: .8rem; }
:root:not([data-design]) .ag-month { font: 700 .74rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 1.8rem 0 .6rem; }
/* Tarjeta: fecha redonda, sin bloque de color, cartel pequeño a la derecha */
:root:not([data-design]) .ag-card { display: grid !important; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 1.1rem; align-items: start; padding: 1.3rem .2rem !important;
  background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent) !important; overflow: visible !important; }
:root:not([data-design]) .ag-card .ag-date { grid-column: 1; grid-row: 1; width: 72px; height: 72px; min-height: 0 !important; border-radius: 50% !important; padding: 0 !important;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; color: #fff; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .5); }
:root:not([data-design]) .ag-card .ag-day { font-size: 1.7rem !important; line-height: 1 !important; }
:root:not([data-design]) .ag-card .ag-day.sm { font-size: .82rem !important; }
:root:not([data-design]) .ag-card .ag-wd, :root:not([data-design]) .ag-card .ag-mo { font-size: .62rem !important; letter-spacing: .08em; }
:root:not([data-design]) .ag-card .ag-body { grid-column: 2; grid-row: 1; padding: 0 !important; gap: .45rem; }
:root:not([data-design]) .ag-card h3 { font: 700 1.3rem/1.2 var(--f-serif, Georgia, serif); letter-spacing: -.01em; margin: 0; }
:root:not([data-design]) .ag-card .ag-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-2); margin: 0; }
:root:not([data-design]) .ag-card .ag-meta { display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
:root:not([data-design]) .ag-card .ag-note { border-radius: 12px; font-size: .86rem; }
:root:not([data-design]) .ag-card .ag-img { grid-column: 3; grid-row: 1; width: 110px; height: 140px; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .5); margin: 0 !important; }
:root:not([data-design]) .ag-card .ag-img img { width: 100%; height: 100%; object-fit: cover; }
:root:not([data-design]) .ag-card .ag-acts { gap: .4rem; }
:root:not([data-design]) .ag-card .ag-acts .btn { border-radius: 999px; min-height: 38px; }
:root:not([data-design]) .ag-pages .btn, :root:not([data-design]) .ag-pn { border-radius: 999px; }
@media (max-width: 620px) {
  :root:not([data-design]) .ag-card { grid-template-columns: 56px minmax(0, 1fr); gap: .8rem; }
  :root:not([data-design]) .ag-card .ag-date { width: 56px; height: 56px; } :root:not([data-design]) .ag-card .ag-day { font-size: 1.3rem !important; }
  :root:not([data-design]) .ag-card .ag-img { grid-column: 2; grid-row: 2; width: 100%; height: 180px; }
  :root:not([data-design]) .ag-card .ag-acts .btn span { display: none; }
  :root:not([data-design]) .ag-card .ag-acts .btn { width: 40px; padding: 0; justify-content: center; }
  :root:not([data-design]) .ag-card .ag-acts .btn.ghost[target] { width: auto; padding: 0 .9rem; }
}
.ag-tools .search-mini { display: block; flex: 1 1 280px !important; max-width: none !important; } .ag-tools .search-mini .input { width: 100%; }

/* ═════════ Negocios · menú de categorías ═════════ */
.bz-todo { --c: #1f2937; }
:root:not([data-design]) #bizCats { display: flex; flex-direction: column; gap: 3px; padding: .5rem; border-radius: 24px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  box-shadow: 0 20px 40px -32px rgba(16, 24, 40, .5); }
:root:not([data-design]) #bizCats button { position: relative; display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 48px; padding: .35rem .55rem; border: 0; border-radius: 16px;
  background: transparent; color: var(--ink); font: 700 .92rem/1.2 var(--f-display); text-align: left; cursor: pointer; transition: background .2s, transform .15s; }
:root:not([data-design]) #bizCats button:hover:not(:disabled) { background: color-mix(in srgb, var(--c) 8%, transparent); transform: translateX(2px); }
:root:not([data-design]) #bizCats button:disabled { opacity: .4; cursor: default; }
:root:not([data-design]) #bizCats .bc-ico { flex-shrink: 0; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface)); transition: background .2s, color .2s; }
:root:not([data-design]) #bizCats .bc-ico svg { width: 18px; height: 18px; }
:root:not([data-design]) #bizCats .bc-l { flex: 1; min-width: 0; }
:root:not([data-design]) #bizCats .n { flex-shrink: 0; min-width: 28px; padding: .2rem .45rem; border-radius: 999px; text-align: center; font: 800 .74rem/1.2 var(--f-display); background: var(--surface-2); color: var(--ink-2); }
:root:not([data-design]) #bizCats button[aria-pressed="true"] { background: var(--c); color: #fff; box-shadow: 0 10px 20px -10px var(--c); }
:root:not([data-design]) #bizCats button[aria-pressed="true"] .bc-ico { background: rgba(255, 255, 255, .2); color: #fff; }
:root:not([data-design]) #bizCats button[aria-pressed="true"] .n { background: rgba(255, 255, 255, .25); color: #fff; }
/* Tarjeta «¿Tienes un negocio?» */
:root:not([data-design]) .bc-cta { border: 0 !important; border-radius: 24px !important; padding: 1.3rem !important; color: #fff;
  background: radial-gradient(90% 80% at 100% 0%, rgba(245, 200, 66, .35), transparent 60%), linear-gradient(160deg, #1d5212, #0c2a0f) !important; box-shadow: 0 20px 40px -24px rgba(12, 42, 15, .9); }
:root:not([data-design]) .bc-cta h2 { color: #fff; font: 700 1.3rem/1.15 var(--f-serif, Georgia, serif); }
:root:not([data-design]) .bc-cta p { color: rgba(255, 255, 255, .8) !important; }
:root:not([data-design]) .bc-cta .btn { border-radius: 999px; }
:root:not([data-design]) .bc-cta .btn.hot { background: #f5c842; color: #1d1803; border-color: #f5c842; }
:root:not([data-design]) .bc-cta .btn:not(.hot) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
/* Móvil: categorías en cápsulas deslizables */
@media (max-width: 960px) {
  :root:not([data-design]) #bizCats { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 0; background: none; border: 0; box-shadow: none; gap: .4rem; }
  :root:not([data-design]) #bizCats::-webkit-scrollbar { display: none; }
  :root:not([data-design]) #bizCats button { width: auto; flex-shrink: 0; min-height: 44px; padding: .3rem .8rem .3rem .35rem; border-radius: 999px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--c) 25%, var(--line)); }
  :root:not([data-design]) #bizCats .bc-ico { width: 32px; height: 32px; border-radius: 50%; }
  :root:not([data-design]) #bizCats .bc-l { white-space: nowrap; }
}
:root:not([data-design]) #bizCats .bc-ico { flex: 0 0 34px !important; }
:root:not([data-design]) #bizCats .bc-l { flex: 1 1 auto !important; }
@media (max-width: 960px) { :root:not([data-design]) #bizCats .bc-ico { flex: 0 0 32px !important; } :root:not([data-design]) #bizCats .bc-l { flex: 0 0 auto !important; } }
:root:not([data-design]) .ag-tools { flex-direction: row !important; }

/* ═══ Cabeceras de sección a todo el ancho (v57) ═══ */
:root:not([data-design]) .hx {
  margin: 0 !important; border-radius: 0 !important; width: 100%;
  min-height: clamp(360px, 40vw, 520px); box-shadow: none;
  padding-bottom: clamp(40px, 5vw, 70px) !important;
}
:root:not([data-design]) .hx-in { padding-block: clamp(3rem, 6vw, 5rem) clamp(3.4rem, 6.5vw, 5.4rem) !important; }
:root:not([data-design]) .hx h1 { font-size: clamp(2.7rem, 6.4vw, 5.6rem); }
/* La foto ocupa toda la cabecera y se funde con el color de la sección hacia la izquierda */
:root:not([data-design]) .hx-deco .hx-photo { width: 82%; }
:root:not([data-design]) .hx-ilu .hx-photo { width: 78%; opacity: .78;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.45) 26%, #000 62%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.45) 26%, #000 62%); }
/* Zoom lento tipo documental + paralaje al bajar */
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-design]) .hx .hx-photo { animation: hxKen 26s ease-in-out infinite alternate; transform-origin: 70% 50%; }
  @keyframes hxKen { from { transform: scale(1.02); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
  @supports (animation-timeline: scroll()) {
    :root:not([data-design]) .hx .hx-deco { animation: hxPar linear both; animation-timeline: scroll(root); animation-range: 0 520px; }
    :root:not([data-design]) .hx .hx-in { animation: hxFade linear both; animation-timeline: scroll(root); animation-range: 0 460px; }
    @keyframes hxPar { to { transform: translate3d(0, 110px, 0); } }
    @keyframes hxFade { to { opacity: .15; transform: translate3d(0, 60px, 0); } }
  }
}
/* Rayo de luz que cruza la cabecera al entrar */
.hx-beam { position: absolute; inset: -20% -10%; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.13) 48%, rgba(255,255,255,.04) 52%, transparent 60%);
  transform: translateX(-70%); pointer-events: none; mix-blend-mode: soft-light; }
@media (prefers-reduced-motion: no-preference) { .hx-beam { animation: hxBeam 2.4s .25s cubic-bezier(.3,.6,.2,1) both; } }
@keyframes hxBeam { to { transform: translateX(70%); } }
/* Palabra en cursiva con trazo de pincel que se dibuja */
:root:not([data-design]) .hx h1 em { position: relative; display: inline-block; }
:root:not([data-design]) .hx h1 em::after { content: ""; position: absolute; left: .02em; right: .04em; bottom: -.06em; height: .16em;
  background: var(--hx-acc); opacity: .9; border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C40 3 90 2 130 5 S185 9 198 4' stroke='%23000' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C40 3 90 2 130 5 S185 9 198 4' stroke='%23000' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  border-radius: 0; }
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-design]) .hx h1 em::after { clip-path: inset(0 100% 0 0); animation: hxInk .9s .55s cubic-bezier(.6,.1,.2,1) forwards; }
  @keyframes hxInk { to { clip-path: inset(0 0 0 0); } }
}
/* Orilla ondulada del color de la página */
.hx-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(34px, 5.5vw, 78px); z-index: 3; pointer-events: none; display: block; }
.hx-wave .hx-w1 { fill: color-mix(in srgb, var(--bg) 35%, transparent); }
.hx-wave .hx-w2 { fill: var(--bg); }
@media (prefers-reduced-motion: no-preference) {
  .hx-wave .hx-w1 { animation: hxSwell 9s ease-in-out infinite alternate; }
  @keyframes hxSwell { from { transform: translateX(0); } to { transform: translateX(-40px); } }
}
:root[data-design] .hx-wave, :root[data-design] .hx-beam { display: none; }
/* Juncos y sello encima de la ola */
:root:not([data-design]) .hx .hx-reeds { bottom: clamp(18px, 3vw, 40px); }
/* Las tarjetas que montan sobre la cabecera siguen montando sobre la ola */
:root:not([data-design]) .fb > .banner.hx { padding-bottom: clamp(60px, 7vw, 96px) !important; }
@media (max-width: 760px) {
  :root:not([data-design]) .hx { min-height: 0; padding-bottom: 34px !important; }
  :root:not([data-design]) .hx-in { padding-block: 2.2rem 3.4rem !important; }
  :root:not([data-design]) .hx h1 { font-size: clamp(2.3rem, 10.5vw, 3rem); }
  :root:not([data-design]) .hx-ilu .hx-photo, :root:not([data-design]) .hx-deco .hx-photo { width: 100%; }
}
/* La orilla recorta la propia cabecera: debajo se ve el fondo que toque, sea cual sea */
:root:not([data-design]) .hx {
  --hx-wh: clamp(30px, 5vw, 70px);
  -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - var(--hx-wh) + 1px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V58C1390 60 1320 52 1200 64C1000 84 820 44 600 66C380 88 200 44 0 66Z'/%3E%3C/svg%3E") bottom / 100% var(--hx-wh) no-repeat;
  mask: linear-gradient(#000, #000) top / 100% calc(100% - var(--hx-wh) + 1px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V58C1390 60 1320 52 1200 64C1000 84 820 44 600 66C380 88 200 44 0 66Z'/%3E%3C/svg%3E") bottom / 100% var(--hx-wh) no-repeat;
}
.hx-wave { height: var(--hx-wh, 60px); }
.hx-wave .hx-w2 { display: none; }
.hx-wave .hx-w1 { fill: rgba(255, 255, 255, .16); }

/* ═══ Explora → Instalaciones ═══ */
.in-head { display: flex; flex-direction: column; gap: 1rem; }
.in-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.in-chips { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.in-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem .5rem .55rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .9rem;
  color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); transition: transform .2s, background .2s, color .2s; }
.in-chip svg { width: 18px; height: 18px; }
.in-chip:hover { background: var(--c); color: #fff; transform: translateY(-2px); }
.in-total { margin-left: auto; font-weight: 700; color: var(--ink-2); font-size: .9rem; }
.in-grid { columns: 3 320px; column-gap: 1.1rem; }
.in-g { break-inside: avoid; margin: 0 0 1.1rem; border-radius: 26px; overflow: hidden; scroll-margin-top: 110px;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--c) 18%, var(--line));
  box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 18px 40px -30px color-mix(in srgb, var(--c) 70%, transparent); }
.in-g header { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; color: #fff;
  background: radial-gradient(120% 160% at 100% 0%, color-mix(in srgb, var(--c) 55%, #fff) 0%, transparent 55%), linear-gradient(120deg, color-mix(in srgb, var(--c) 82%, #000), var(--c)); }
.in-g h3 { flex: 1; font-size: 1.12rem; color: #fff; margin: 0; }
.in-ico { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); }
.in-ico svg { width: 21px; height: 21px; }
.in-n { min-width: 30px; height: 30px; padding: 0 .5rem; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,.95); color: color-mix(in srgb, var(--c) 85%, #000); font-weight: 800; font-size: .88rem; }
.in-g ul { list-style: none; margin: 0; padding: .35rem .5rem .55rem; }
.in-g li + li { border-top: 1px dashed color-mix(in srgb, var(--c) 20%, var(--line)); }
.in-g a { display: grid; grid-template-columns: minmax(0, 1fr) auto 30px; align-items: center; gap: .6rem; padding: .7rem .6rem; border-radius: 14px; text-decoration: none; color: var(--ink); transition: background .18s; }
.in-t { font-weight: 600; font-size: .98rem; line-height: 1.3; }
.in-w { font-size: .76rem; font-weight: 700; padding: .22rem .55rem; border-radius: 999px; white-space: nowrap; color: color-mix(in srgb, var(--c) 80%, var(--ink)); background: color-mix(in srgb, var(--c) 9%, transparent); }
.in-go { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); transition: background .18s, color .18s, transform .18s; }
.in-go svg { width: 15px; height: 15px; }
.in-g a:hover { background: color-mix(in srgb, var(--c) 6%, transparent); }
.in-g a:hover .in-go { background: var(--c); color: #fff; transform: scale(1.1); }
.in-g a:focus-visible { outline: 3px solid var(--c); outline-offset: -3px; }
@media (max-width: 620px) {
  .in-total { margin-left: 0; width: 100%; }
  .in-g a { grid-template-columns: minmax(0, 1fr) 30px; }
  .in-w { grid-column: 1; grid-row: 2; justify-self: start; margin-top: -.2rem; }
  .in-go { grid-row: 1 / 3; grid-column: 2; }
}
/* Todas las cabeceras de sección con la misma altura (menos Inicio) */
:root:not([data-design]) .hx { height: clamp(420px, 34vw, 520px); min-height: 0; }
:root:not([data-design]) .hx-txt { max-width: min(980px, 72%); }
:root:not([data-design]) .hx h1 { font-size: clamp(2.6rem, 5vw, 4.7rem); }
:root:not([data-design]) .hx-in { padding-block: 2rem 2.6rem !important; }
@media (max-width: 960px) { :root:not([data-design]) .hx-txt { max-width: 100%; } }
@media (max-width: 760px) {
  :root:not([data-design]) .hx { height: auto; min-height: 470px; }
  :root:not([data-design]) .hx-in { padding-block: 1.8rem 3rem !important; }
}
@media (max-width: 760px) {
  :root:not([data-design]) .hx { min-height: 540px; }
  :root:not([data-design]) .hx.bh2 .bh2-stats { padding: 0; background: none !important; border: 0 !important; backdrop-filter: none; box-shadow: none; display: block; }
  :root:not([data-design]) .hx.bh2 .bh2-stats > div { display: none; }
  :root:not([data-design]) .hx.bh2 .bh2-stats .btn { width: 100%; margin: 0; }
  :root:not([data-design]) .hx.bh2 .bh2-in { gap: .8rem; }
  :root:not([data-design]) .hx.bh2 .search-big { margin-top: 1.1rem; }
}

/* Teléfonos: Guardia Civil y Policía Local en amarillo con letras negras */
.tl-loc.tl-loc-pol { background: linear-gradient(135deg, #ffd43b, #f5b700) !important; color: #111 !important; box-shadow: 0 16px 34px -18px rgba(180, 130, 0, .75) !important; }
.tl-loc.tl-loc-pol .tl-loc-ico { background: rgba(0, 0, 0, .1); color: #111; }
.tl-loc.tl-loc-pol .tl-loc-t small { opacity: .75; }
.tl-loc.tl-loc-pol .tl-loc-call { background: #111; color: #ffd43b; }

/* ═══ Planes: así se vería tu negocio (Destacado y Escaparate) ═══ */
.ex2 { margin-top: 2.6rem; display: flex; flex-direction: column; gap: 1.4rem; }
.ex2-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -.02em; }
.ex2-head h2 em { font-family: var(--f-serif, Georgia, serif); font-style: italic; font-weight: 600; color: #c88a00; }
.ex-plan { --c: #1f6fb0; --c2: #e8f1fa; display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.6rem); align-items: center;
  padding: clamp(1.2rem, 3vw, 2.2rem); border-radius: 32px; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%), linear-gradient(160deg, var(--c2), var(--surface) 70%);
  border: 1px solid color-mix(in srgb, var(--c) 22%, var(--line)); }
.ex-prem { --c: #e0a000; --c2: #fff6dc; }
:root:not([data-theme="light"]) .ex-plan { --c2: color-mix(in srgb, var(--c) 10%, var(--surface)); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .ex-dest { --c2: #e8f1fa; } :root:not([data-theme="dark"]) .ex-prem { --c2: #fff6dc; } }
:root[data-theme="light"] .ex-dest { --c2: #e8f1fa; } :root[data-theme="light"] .ex-prem { --c2: #fff6dc; }
.ex-info { display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; }
.ex-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem .4rem .45rem; border-radius: 999px; font: 800 .8rem/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--c); }
.ex-pill svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(255,255,255,.25); }
.ex-prem .ex-pill { color: #2a1d00; } .ex-prem .ex-pill svg { background: rgba(0,0,0,.1); }
.ex-price { margin: 0; font: 800 clamp(2.2rem, 4vw, 3rem)/1 var(--f-display); letter-spacing: -.03em; color: var(--ink); }
.ex-price small { font-size: .9rem; font-weight: 600; color: var(--ink-2); margin-left: .2rem; letter-spacing: 0; }
.ex-info h3 { font-size: 1.35rem; margin: 0; }
.ex-info > p.muted { margin: 0; line-height: 1.55; }
.ex-plan .ex-list { gap: .55rem; margin: .2rem 0 .3rem; }
.ex-plan .ex-list li { align-items: flex-start; font-weight: 600; }
.ex-plan .ex-list svg { color: #fff; background: var(--c); border-radius: 50%; padding: 3px; width: 20px; height: 20px; margin-top: 1px; }
.ex-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.ex-dest .ex-btns .btn:not(.alt) { background: var(--c); border-color: var(--c); color: #fff; }
/* Escenario de la derecha */
.ex-stage { position: relative; min-width: 0; }
.ex-screen { border-radius: 24px; background: var(--bg-alt, #f5f6f8); border: 1px solid var(--line); padding: 0 1rem 1rem; box-shadow: 0 30px 60px -36px rgba(10, 30, 60, .5); transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); transition: transform .5s; }
.ex-plan:hover .ex-screen { transform: none; }
.ex-bar { display: flex; align-items: center; gap: 6px; padding: .8rem .2rem; font-weight: 700; font-size: .85rem; color: var(--ink-2); }
.ex-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e5ea; } .ex-bar i:nth-child(1) { background: #ff6159; } .ex-bar i:nth-child(2) { background: #ffbd2e; } .ex-bar i:nth-child(3) { background: #28c941; }
.ex-bar span { margin-left: .6rem; display: inline-flex; align-items: center; gap: .35rem; } .ex-bar svg { width: 15px; height: 15px; }
.ex-first { position: relative; border-radius: 22px; box-shadow: 0 0 0 3px var(--c), 0 20px 40px -20px color-mix(in srgb, var(--c) 70%, transparent); }
.ex-first .bz { margin: 0; }
.ex-flag { position: absolute; z-index: 3; top: -12px; right: 16px; display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border-radius: 999px; background: var(--c); color: #fff; font: 800 .74rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .05em; }
.ex-flag svg { width: 13px; height: 13px; }
.ex-ghost { display: flex; align-items: center; gap: .8rem; margin-top: .6rem; padding: .8rem 1rem; border-radius: 16px; background: var(--surface); border: 1px dashed var(--line); opacity: .55; filter: grayscale(1); }
.ex-ghost b { display: block; font-size: .95rem; } .ex-ghost small { color: var(--ink-2); font-size: .8rem; }
.ex-gi { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-alt, #eee); } .ex-gi svg { width: 18px; height: 18px; }
.ex-trio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.ex-col2 { display: flex; flex-direction: column; gap: 1rem; }
.ex-shot { margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.ex-shot figcaption { display: flex; align-items: center; gap: .45rem; font: 700 .85rem/1 var(--f-display); color: var(--ink-2); }
.ex-shot figcaption b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #2a1d00; font-size: .75rem; }
.ex-shot .bz { margin: 0; box-shadow: 0 0 0 2px var(--c), 0 24px 50px -28px rgba(120, 80, 0, .6); }
.ex-ad { display: grid; grid-template-columns: 120px minmax(0, 1fr); border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid color-mix(in srgb, var(--c) 35%, var(--line)); box-shadow: 0 18px 40px -26px rgba(120, 80, 0, .55); }
.ex-ad img { width: 100%; height: 100%; object-fit: cover; min-height: 130px; }
.ex-ad > div { display: flex; flex-direction: column; gap: .35rem; padding: .8rem .9rem; align-items: flex-start; }
.ex-ad strong { font-size: 1.02rem; } .ex-ad > div > span:last-child { font-size: .86rem; color: var(--ink-2); line-height: 1.4; }
.ex-post { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); padding: .8rem; display: flex; flex-direction: column; gap: .55rem; align-items: flex-start; box-shadow: 0 18px 40px -26px rgba(10, 30, 60, .4); }
.ex-post-h { display: flex; align-items: center; gap: .55rem; }
.ex-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #1d5fa3, #2b7fd0); color: #fff; font: 800 .8rem/1 var(--f-display); }
.ex-post-h b { display: block; font-size: .92rem; } .ex-post-h small { display: inline-flex; align-items: center; gap: .25rem; color: var(--ink-2); font-size: .76rem; } .ex-post-h small svg { width: 12px; height: 12px; }
.ex-post p { margin: 0; font-size: .9rem; line-height: 1.45; }
.ex-post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
@media (max-width: 1060px) { .ex-plan { grid-template-columns: minmax(0, 1fr); } .ex-screen { transform: none; } }
@media (max-width: 620px) { .ex-trio { grid-template-columns: minmax(0, 1fr); } .ex-plan { border-radius: 24px; padding: 1.1rem; } .ex-ad { grid-template-columns: 100px minmax(0, 1fr); } }
/* Escaparate: texto arriba y las tres vistas en fila */
.ex2 { container-type: inline-size; }
.ex-prem { grid-template-columns: minmax(0, 1fr); align-items: start; }
.ex-prem .ex-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2rem; row-gap: .6rem; align-items: start; }
.ex-prem .ex-info > .ex-pill, .ex-prem .ex-info > .ex-price, .ex-prem .ex-info > h3, .ex-prem .ex-info > p.muted { grid-column: 1; }
.ex-prem .ex-info > .ex-list { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
.ex-prem .ex-info > .ex-btns { grid-column: 2; grid-row: 4; }
.ex-prem .ex-info > .ex-pill { justify-self: start; }
.ex-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ex-col2 { display: contents; }
.ex-ad { grid-template-columns: minmax(0, 1fr); }
.ex-ad img { aspect-ratio: 16 / 10; min-height: 0; height: auto; }
@container (max-width: 820px) {
  .ex-dest { grid-template-columns: minmax(0, 1fr); }
  .ex-prem .ex-info { grid-template-columns: minmax(0, 1fr); }
  .ex-prem .ex-info > * { grid-column: 1 !important; grid-row: auto !important; }
}
@container (max-width: 640px) { .ex-trio { grid-template-columns: minmax(0, 1fr); } .ex-screen { transform: none; } }
.ex-first .bz-cover img { object-position: 50% 22%; }

/* ═══ Explora → La Isla Mínima: cartel de cine + ruta como tira de película ═══ */
.cn { display: flex; flex-direction: column; gap: 2rem; }
.cn-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; color: #f3ead8; background: #0b0f12; min-height: 380px; display: flex; align-items: flex-end; }
.cn-hero::before, .cn-hero::after { content: ""; position: absolute; left: 0; right: 0; height: 26px; background: #000; z-index: 2; }
.cn-hero::before { top: 0; } .cn-hero::after { bottom: 0; }
.cn-bg { position: absolute; inset: 0; background-size: cover; background-position: 40% 60%; filter: grayscale(.55) sepia(.35) contrast(1.15) brightness(.55); transform: scale(1.06); z-index: -2; }
@media (prefers-reduced-motion: no-preference) { .cn-bg { animation: hxKen 30s ease-in-out infinite alternate; } }
.cn-hero > .cn-bg + .cn-grain { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 20% 100%, rgba(8, 10, 12, .92) 20%, transparent 70%), linear-gradient(0deg, rgba(8,10,12,.85), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E"); }
.cn-in { position: relative; z-index: 3; padding: clamp(3rem, 6vw, 4.5rem) clamp(1.3rem, 4vw, 3rem) clamp(2.6rem, 5vw, 3.6rem); max-width: 820px; display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; }
.cn-kicker { display: inline-flex; align-items: center; gap: .45rem; font: 800 .74rem/1 var(--f-display); letter-spacing: .22em; text-transform: uppercase; color: #e8c37a; }
.cn-kicker svg { width: 16px; height: 16px; }
.cn-hero h2 { margin: 0; color: #fff; font-family: var(--f-serif, Georgia, serif); font-weight: 700; font-size: clamp(2.6rem, 6.5vw, 4.8rem); line-height: .95; letter-spacing: -.02em; text-transform: uppercase; }
.cn-hero h2 em { color: #e8c37a; font-style: italic; text-transform: none; font-weight: 600; }
.cn-meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.cn-meta span { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .7rem; border-radius: 6px; border: 1px solid rgba(243, 234, 216, .28); font: 700 .8rem/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: #f3ead8; }
.cn-meta .cn-goya { background: #e8c37a; border-color: #e8c37a; color: #1a1306; } .cn-goya svg { width: 14px; height: 14px; }
.cn-in > p { margin: .2rem 0 0; max-width: 60ch; font-family: var(--f-serif-text, Georgia, serif); font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.65; color: rgba(243, 234, 216, .9); }
.cn-route header h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0; }
.cn-route header p { margin: .3rem 0 0; }
/* Tira de película */
.cn-strip { list-style: none; margin: 1.2rem 0 0; padding: 18px 0; position: relative; border-radius: 18px; background: #14171b; counter-reset: none;
  --holes: repeating-linear-gradient(90deg, transparent 0 14px, rgba(255,255,255,.85) 14px 26px, transparent 26px 40px); }
.cn-strip::before, .cn-strip::after { content: ""; position: absolute; left: 12px; right: 12px; height: 8px; border-radius: 2px; background: var(--holes); opacity: .9; }
.cn-strip::before { top: 5px; } .cn-strip::after { bottom: 5px; }
.cn-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; padding-inline: 8px; }
.cn-strip a { height: 100%; display: flex; flex-direction: column; gap: .7rem; padding: 1rem 1rem 1.1rem; border-radius: 10px; text-decoration: none; color: #f3ead8; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #23292f, #181c20); border: 1px solid rgba(255,255,255,.06); transition: transform .25s, background .25s, box-shadow .25s; }
.cn-strip a:hover { transform: translateY(-3px); background: linear-gradient(160deg, #2f3740, #1d2227); box-shadow: 0 16px 30px -16px rgba(0,0,0,.8); }
.cn-strip a:focus-visible { outline: 3px solid #e8c37a; outline-offset: 2px; }
.cn-sc { font: 800 .72rem/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; color: #e8c37a; }
.cn-t { display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.cn-t b { font: 800 1.08rem/1.25 var(--f-display); color: #fff; }
.cn-t small { font-size: .9rem; line-height: 1.45; color: rgba(243, 234, 216, .75); }
.cn-go { align-self: flex-start; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(232, 195, 122, .15); color: #e8c37a; transition: background .2s, color .2s; }
.cn-go svg { width: 16px; height: 16px; }
.cn-strip a:hover .cn-go { background: #e8c37a; color: #1a1306; }
.cn-note { display: flex; gap: .6rem; align-items: flex-start; margin: 0; padding: .9rem 1.1rem; border-radius: 16px; background: color-mix(in srgb, #e8c37a 14%, var(--surface)); border: 1px solid color-mix(in srgb, #e8c37a 40%, var(--line)); font-size: .95rem; }
.cn-note svg { width: 20px; height: 20px; flex-shrink: 0; color: #a07418; margin-top: 2px; }
@media (max-width: 620px) {
  .cn-hero { min-height: 0; border-radius: 22px; }
  .cn-hero::before, .cn-hero::after { height: 16px; }
  .cn-strip { grid-template-columns: minmax(0, 1fr); }
  .cn-strip a { flex-direction: row; align-items: center; gap: .8rem; }
  .cn-sc { writing-mode: vertical-rl; transform: rotate(180deg); }
  .cn-go { align-self: center; }
}
/* La tira se desliza en horizontal, como un rollo de película */
@media (min-width: 621px) {
  .cn-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #e8c37a #14171b; padding-bottom: 22px; }
  .cn-strip li { flex: 0 0 240px; scroll-snap-align: start; }
  .cn-strip a { min-height: 220px; }
}

/* ═══ Explora: títulos editoriales comunes ═══ */
:is(.vs-head, .rt-head) h2, .fs-h { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.02em; margin: 0; }
:is(.vs-head, .rt-head) h2 em, .nt-hero h2 em { font-family: var(--f-serif, Georgia, serif); font-style: italic; font-weight: 600; }
.vs-head h2 em { color: #a85c12; } .rt-head h2 em { color: #2f7d1e; }
:is(.vs-head, .rt-head) p { margin: .35rem 0 0; max-width: 62ch; }

/* ═══ Qué ver: mosaico ═══ */
.vs { display: flex; flex-direction: column; gap: 1.4rem; }
.vs-bento { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); grid-auto-flow: dense; gap: 14px; }
.vs-t { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: .55rem; padding: 1.2rem 1.2rem 3.4rem; min-height: 210px; border-radius: 24px; text-decoration: none; color: var(--ink);
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 60%), color-mix(in srgb, var(--c) 5%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c) 18%, var(--line)); transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.vs-t:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -26px color-mix(in srgb, var(--c) 80%, transparent); }
.vs-t:focus-visible { outline: 3px solid var(--c); outline-offset: 3px; }
.vs-wm { position: absolute; right: -18px; bottom: -22px; z-index: -1; color: var(--c); opacity: .09; transition: transform .5s, opacity .3s; }
.vs-wm svg { width: 150px; height: 150px; stroke-width: 1.4; }
.vs-t:hover .vs-wm { transform: rotate(-8deg) scale(1.08); opacity: .15; }
.vs-kind { display: inline-flex; align-items: center; gap: .35rem; align-self: flex-start; font: 800 .72rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.vs-kind svg { width: 15px; height: 15px; }
.vs-name { font: 800 1.2rem/1.2 var(--f-display); }
.vs-txt { font-size: .93rem; line-height: 1.5; color: var(--ink-2); }
.vs-go { position: absolute; left: 1.2rem; bottom: 1rem; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--c); transform: scale(.9); transition: transform .25s; }
.vs-go svg { width: 16px; height: 16px; } .vs-t:hover .vs-go { transform: scale(1.05); }
/* Con foto: ocupan dos columnas y dos filas */
.vs-ph { grid-column: span 2; grid-row: span 2; min-height: 434px; justify-content: flex-end; color: #fff; border: 0; background: #111; }
.vs-img { position: absolute; inset: 0; z-index: -2; background-size: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.vs-ph::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 50%, transparent 75%); }
.vs-ph:hover .vs-img { transform: scale(1.06); }
.vs-ph .vs-kind { color: #fff; background: color-mix(in srgb, var(--c) 85%, #000); padding: .4rem .7rem; border-radius: 999px; }
.vs-ph .vs-name { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-family: var(--f-serif, Georgia, serif); }
.vs-ph .vs-txt { color: rgba(255,255,255,.85); max-width: 52ch; font-size: 1rem; }
.vs-ph .vs-go { left: auto; right: 1.2rem; top: 1.2rem; bottom: auto; background: #fff; color: var(--c); }
.vs-ph { padding-bottom: 1.4rem; }
.vs-cta { display: flex; align-items: center; gap: 1.2rem; padding: 1.4rem 1.6rem; border-radius: 26px; color: #fff; background: radial-gradient(80% 140% at 100% 0%, #f5c842 0%, transparent 55%), linear-gradient(120deg, #1d4f16, #3a8f25); }
.vs-cta h3 { color: #fff; margin: 0 0 .3rem; font-size: 1.3rem; } .vs-cta p { margin: 0; color: rgba(255,255,255,.88); line-height: 1.5; }
.vs-cta-ic { flex: 0 0 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: rgba(255,255,255,.16); } .vs-cta-ic svg { width: 32px; height: 32px; }
.vs-cta .btn { flex-shrink: 0; }
@media (max-width: 760px) {
  .vs-ph { grid-column: auto; grid-row: auto; min-height: 340px; }
  .vs-cta { flex-direction: column; align-items: flex-start; }
}

/* ═══ Doñana y naturaleza ═══ */
.nt { display: flex; flex-direction: column; gap: 2rem; }
.nt-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; min-height: 340px; display: flex; align-items: flex-end; color: #fff; background: #08302b; }
.nt-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: 70% 20%; }
@media (prefers-reduced-motion: no-preference) { .nt-bg { animation: hxKen 28s ease-in-out infinite alternate; } }
.nt-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 38, 33, .95) 0%, rgba(4, 38, 33, .7) 45%, rgba(4, 38, 33, .1) 100%), linear-gradient(0deg, rgba(4,38,33,.6), transparent 50%); }
.nt-in { padding: clamp(1.6rem, 4vw, 3rem); max-width: 640px; display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.nt-k { display: inline-flex; align-items: center; gap: .4rem; font: 800 .74rem/1 var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: #a6ecd0; } .nt-k svg { width: 16px; height: 16px; }
.nt-hero h2 { margin: 0; color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.02em; }
.nt-hero h2 em { color: #a6ecd0; }
.nt-in > p { margin: 0; font-family: var(--f-serif-text, Georgia, serif); font-size: 1.08rem; line-height: 1.6; color: rgba(255,255,255,.88); }
.nt-stats { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: .4rem; }
.nt-stats span { display: flex; flex-direction: column; font-size: .82rem; color: rgba(255,255,255,.75); }
.nt-stats b { font: 800 1.8rem/1 var(--f-display); color: #fff; }
.nt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nt-i { display: grid; grid-template-columns: 110px minmax(0, 1fr) 72px; gap: 1.4rem; align-items: start; padding: 2rem 0; border-top: 1px solid var(--line); }
.nt-i:last-child { border-bottom: 1px solid var(--line); }
.nt-num { font: 700 clamp(3.4rem, 7vw, 5.4rem)/.85 var(--f-serif, Georgia, serif); color: transparent; -webkit-text-stroke: 1.6px #128a7b; letter-spacing: -.04em; }
.nt-body { display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.nt-where { display: inline-flex; align-items: center; gap: .35rem; font-size: .84rem; font-weight: 700; color: #0f7f78; } .nt-where svg { width: 15px; height: 15px; }
.nt-body h3 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.15; }
.nt-body > p { margin: 0; max-width: 70ch; font-size: 1.02rem; line-height: 1.65; color: var(--ink-2); }
.nt-trails { margin-top: .4rem; padding: 1rem 1.1rem; border-radius: 18px; background: color-mix(in srgb, #128a7b 7%, var(--surface)); display: flex; flex-direction: column; gap: .55rem; max-width: 680px; }
.nt-tt { display: inline-flex; align-items: center; gap: .35rem; font: 800 .72rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: #0f7f78; margin-bottom: .2rem; } .nt-tt svg { width: 15px; height: 15px; }
.nt-tr { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 64px; gap: .8rem; align-items: center; font-size: .92rem; }
.nt-tn { font-weight: 600; }
.nt-bar { height: 8px; border-radius: 9px; background: color-mix(in srgb, #128a7b 14%, transparent); overflow: hidden; }
.nt-bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #128a7b, #6fd3ae); }
@media (prefers-reduced-motion: no-preference) { .nt-bar i { animation: ntGrow 1.2s cubic-bezier(.2,.7,.2,1) both; } @keyframes ntGrow { from { width: 0; } } }
.nt-tk { text-align: right; font-weight: 800; color: #0f7f78; }
.nt-acts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; }
.nt-acts .btn:not(.alt) { background: #0f7f78; border-color: #0f7f78; color: #fff; }
.nt-badge { width: 72px; height: 72px; border-radius: 24px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #128a7b, #0a4f47); box-shadow: 0 16px 30px -16px #0a4f47; transform: rotate(-6deg); }
.nt-badge svg { width: 32px; height: 32px; }
@media (max-width: 760px) {
  .nt-i { grid-template-columns: minmax(0, 1fr); gap: .6rem; padding: 1.6rem 0; }
  .nt-badge { display: none; }
  .nt-num { font-size: 3rem; }
  .nt-tr { grid-template-columns: minmax(0, 1fr) 60px; } .nt-bar { grid-column: 1 / -1; grid-row: 2; }
  .nt-hero::after { background: linear-gradient(0deg, rgba(4,38,33,.95) 30%, rgba(4,38,33,.4)); }
}

/* ═══ Rutas: camino con paradas ═══ */
.rt { display: flex; flex-direction: column; gap: 1.6rem; }
.rt-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.rt-legend { display: flex; flex-wrap: wrap; gap: .4rem; }
.rt-legend span { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.rt-legend svg { width: 14px; height: 14px; }
.rt-path { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem 3.4rem; }
.rt-path::before { content: ""; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 4px; transform: translateX(-50%); border-radius: 4px;
  background: repeating-linear-gradient(180deg, #c9a46b 0 14px, transparent 14px 26px); opacity: .7; }
.rt-i { position: relative; }
.rt-i:nth-child(even) { margin-top: 4.5rem; }
.rt-dot { position: absolute; top: 20px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--c); border: 4px solid var(--bg); box-shadow: 0 6px 16px -6px var(--c); z-index: 2; }
.rt-i:nth-child(odd) .rt-dot { right: calc(-1.7rem - 22px); } .rt-i:nth-child(even) .rt-dot { left: calc(-1.7rem - 22px); }
.rt-dot svg { width: 20px; height: 20px; }
.rt-card { position: relative; padding: 1.3rem 1.4rem; border-radius: 24px; background: var(--surface); border-top: 5px solid var(--c); box-shadow: 0 1px 0 var(--line), 0 20px 44px -30px rgba(20, 40, 20, .45); display: flex; flex-direction: column; gap: .6rem; transition: transform .3s; }
.rt-card:hover { transform: translateY(-3px); }
.rt-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.rt-type { font: 800 .72rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.rt-time { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); white-space: nowrap; }
.rt-time svg { width: 14px; height: 14px; }
.rt-card h3 { margin: 0; font-size: 1.3rem; line-height: 1.2; }
.rt-card p { margin: 0; font-size: .96rem; line-height: 1.55; color: var(--ink-2); }
.rt-stops { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.rt-stops span { padding: .3rem .6rem; border-radius: 8px; font-size: .82rem; font-weight: 700; background: var(--bg-alt, #f3f4f6); }
.rt-stops i { display: inline-grid; color: var(--c); } .rt-stops i svg { width: 14px; height: 14px; }
.rt-go { align-self: flex-start; display: inline-flex; align-items: center; gap: .35rem; margin-top: .2rem; font-weight: 800; font-size: .9rem; color: var(--c); text-decoration: none; }
.rt-go svg { width: 16px; height: 16px; } .rt-go:hover { text-decoration: underline; }
.rt-tips { padding: 1.5rem; border-radius: 26px; background: color-mix(in srgb, #c9a46b 13%, var(--surface)); border: 1px solid color-mix(in srgb, #c9a46b 35%, var(--line)); }
.rt-tips h3 { display: flex; align-items: center; gap: .45rem; margin: 0 0 1rem; } .rt-tips h3 svg { width: 22px; height: 22px; color: #a07418; }
.rt-tips ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.rt-tips li { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; border-radius: 18px; background: var(--surface); font-size: .93rem; line-height: 1.45; }
.rt-tips li span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #a07418; color: #fff; } .rt-tips li span svg { width: 19px; height: 19px; }
.rt-tips > p { margin: 1rem 0 0; color: var(--ink-2); font-size: .93rem; }
@media (max-width: 860px) {
  .rt-path { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding-left: 34px; }
  .rt-path::before { left: 15px; transform: none; }
  .rt-i:nth-child(even) { margin-top: 0; }
  .rt-i .rt-dot, .rt-i:nth-child(odd) .rt-dot, .rt-i:nth-child(even) .rt-dot { left: -42px; right: auto; width: 36px; height: 36px; top: 16px; }
  .rt-dot svg { width: 16px; height: 16px; }
}

/* ═══ Fiestas ═══ */
.fs { display: flex; flex-direction: column; gap: 2rem; }
.fs-year { padding: 1.2rem .4rem .4rem; }
.fs-line { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.fs-line::before { content: ""; position: absolute; left: 4%; right: 4%; top: 13px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #f5b700, #e0457b, #7a3ec8, #1f6fb0, #2f9a5a, #f5b700); opacity: .35; }
.fs-m { position: relative; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.fs-pt { width: 12px; height: 12px; margin-top: 8px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); display: grid; place-items: center; font: 800 .65rem/1 var(--f-display); color: #fff; transition: transform .3s; }
.fs-m.on .fs-pt { width: 26px; height: 26px; margin-top: 1px; border: 0; background: linear-gradient(135deg, #ff7a45, #e0457b); box-shadow: 0 0 0 6px color-mix(in srgb, #e0457b 16%, transparent); }
.fs-m.on:hover .fs-pt { transform: scale(1.15); }
.fs-m b { font: 700 .82rem/1 var(--f-display); color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.fs-m.on b { color: var(--ink); }
.fs-m.fs-now b { color: #fff; background: var(--ink); padding: .3rem .5rem; border-radius: 999px; }
.fs-m em { position: absolute; top: -18px; font: 800 .62rem/1 var(--f-display); font-style: normal; text-transform: uppercase; letter-spacing: .1em; color: #e0457b; }
.fs-next { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: 30px; color: #fff;
  background: radial-gradient(60% 120% at 100% 0%, #ffb347 0%, transparent 60%), radial-gradient(70% 120% at 0% 100%, #7a3ec8 0%, transparent 60%), linear-gradient(120deg, #b8245e, #e0457b); }
.fs-next::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .25;
  background-image: radial-gradient(circle at 20% 30%, #fff 2px, transparent 3px), radial-gradient(circle at 70% 60%, #ffe08a 2px, transparent 3px), radial-gradient(circle at 40% 80%, #fff 1.5px, transparent 2.5px);
  background-size: 120px 90px, 160px 120px, 90px 70px; }
.fs-k { display: inline-flex; align-items: center; gap: .4rem; font: 800 .74rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: #ffe08a; } .fs-k svg { width: 16px; height: 16px; }
.fs-next h2 { margin: .6rem 0 .5rem; color: #fff; font-family: var(--f-serif, Georgia, serif); font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1; letter-spacing: -.02em; }
.fs-next p { margin: 0; max-width: 60ch; color: rgba(255,255,255,.9); line-height: 1.6; font-size: 1.02rem; }
.fs-count { min-width: 190px; padding: 1.3rem 1.5rem; border-radius: 26px; text-align: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; flex-direction: column; align-items: center; }
.fs-count b { font: 800 clamp(3.6rem, 7vw, 5rem)/.9 var(--f-display); letter-spacing: -.04em; }
.fs-count .fs-word { font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -.01em; }
.fs-count span { font: 800 1rem/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .14em; color: #ffe08a; }
.fs-count small { margin-top: .5rem; font-size: .86rem; color: rgba(255,255,255,.85); }
.fs-h { margin-bottom: .6rem !important; }
.fs-cal { list-style: none; margin: 0; padding: 0; }
.fs-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 1.3rem; align-items: center; padding: 1.2rem .4rem; border-bottom: 1px solid var(--line); transition: background .2s; border-radius: 0; }
.fs-row:hover { background: color-mix(in srgb, #e0457b 4%, transparent); }
.fs-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 22px; color: #b8245e; background: color-mix(in srgb, #e0457b 10%, var(--surface)); }
.fs-date b { font: 800 1.9rem/1 var(--f-display); letter-spacing: -.03em; }
.fs-date small { font: 800 .72rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
.fs-date.w b { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; }
.fs-txt h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.fs-txt p { margin: 0; color: var(--ink-2); line-height: 1.55; font-size: .95rem; max-width: 72ch; }
.fs-when { font-size: .85rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; text-align: right; }
.fs-when b { font-size: 1.15rem; color: #b8245e; }
.fs-note { display: flex; gap: .5rem; align-items: center; margin: 0; color: var(--ink-2); font-size: .92rem; } .fs-note svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (max-width: 760px) {
  .fs-next { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .fs-count { flex-direction: row; gap: .6rem; align-items: baseline; justify-content: center; flex-wrap: wrap; }
  .fs-count small { width: 100%; margin-top: 0; }
  .fs-row { grid-template-columns: 64px minmax(0, 1fr); gap: .9rem; align-items: start; }
  .fs-date { width: 60px; height: 60px; border-radius: 18px; } .fs-date b { font-size: 1.5rem; }
  .fs-when { grid-column: 2; text-align: left; }
  .fs-m b { font-size: .62rem; } .fs-m.fs-now b { padding: .25rem .3rem; }
  .fs-m.on .fs-pt { width: 18px; height: 18px; margin-top: 5px; box-shadow: 0 0 0 4px color-mix(in srgb, #e0457b 16%, transparent); font-size: .55rem; }
}
.nt-tr { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; } .nt-tk { white-space: nowrap; }

/* ═══ Explora → Costumbres y cocina ═══ */
.kc { display: flex; flex-direction: column; gap: 2.6rem; }
.kc-h h2, .kc-hero h2 { margin: 0; letter-spacing: -.02em; }
.kc-h h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.kc-h h2 em, .kc-hero h2 em { font-family: var(--f-serif, Georgia, serif); font-style: italic; font-weight: 600; color: #c4521d; }
.kc-h p { margin: .3rem 0 1.1rem; }
.kc-hero { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 380px); align-items: center; gap: 1.5rem; padding: clamp(1.6rem, 4vw, 3rem); border-radius: 30px; color: #fff;
  background: radial-gradient(70% 120% at 100% 50%, #e0882a 0%, transparent 60%), linear-gradient(120deg, #3a140a, #7a2c12 60%, #b8521d); }
.kc-k { display: inline-flex; align-items: center; gap: .4rem; font: 800 .74rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: #ffd08a; } .kc-k svg { width: 16px; height: 16px; }
.kc-hero h2 { margin: .7rem 0 .6rem; color: #fff; font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: .98; }
.kc-hero h2 em { color: #ffd08a; }
.kc-hero-t > p { margin: 0; max-width: 54ch; font-family: var(--f-serif-text, Georgia, serif); font-size: 1.1rem; line-height: 1.6; color: rgba(255,255,255,.9); }
.kc-tags { display: flex; gap: .5rem; margin-top: 1.1rem; }
.kc-tags span { padding: .4rem .9rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); font: 700 .85rem/1 var(--f-display); letter-spacing: .04em; }
.kc-plate { position: relative; aspect-ratio: 1; }
.kc-plate img { position: absolute; inset: -14%; width: 128%; height: 128%; object-fit: cover; border-radius: 50%; clip-path: circle(39% at 50% 50%); filter: drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
@media (prefers-reduced-motion: no-preference) { .kc-plate img { animation: kcSpin 60s linear infinite; } @keyframes kcSpin { to { transform: rotate(360deg); } } }
.kc-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; }
.kc-side { --c: #2f7d1e; border-radius: 28px; overflow: hidden; background: color-mix(in srgb, var(--c) 6%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 18%, var(--line)); }
.kc-crab { --c: #c62828; }
.kc-side header { display: flex; align-items: center; gap: 1rem; padding: 1.4rem 1.5rem; color: #fff; background: radial-gradient(90% 140% at 100% 0%, color-mix(in srgb, var(--c) 50%, #fff) 0%, transparent 60%), linear-gradient(120deg, color-mix(in srgb, var(--c) 70%, #000), var(--c)); }
.kc-emo { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 20px; display: grid; place-items: center; font-size: 2.2rem; background: rgba(255,255,255,.18); }
.kc-side h3 { margin: 0; color: #fff; font-size: 1.7rem; letter-spacing: -.01em; } .kc-side header p { margin: .15rem 0 0; color: rgba(255,255,255,.85); }
.kc-side ol { list-style: none; margin: 0; padding: .4rem 1.5rem 1rem; }
.kc-side li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: .8rem; padding: 1rem 0; border-bottom: 1px dashed color-mix(in srgb, var(--c) 25%, var(--line)); }
.kc-side li:last-child { border-bottom: 0; }
.kc-n { font: 700 2.1rem/1 var(--f-serif, Georgia, serif); color: transparent; -webkit-text-stroke: 1.3px var(--c); }
.kc-side b { display: block; font-size: 1.04rem; margin-bottom: .25rem; } .kc-side li p { margin: 0; color: var(--ink-2); line-height: 1.55; font-size: .95rem; }
.kc-dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.kc-dish { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 4.4rem 1.2rem 1.2rem; margin-top: 2.2rem; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 20px 40px -32px rgba(90, 40, 10, .6); transition: transform .3s; }
.kc-dish:hover { transform: translateY(-4px); }
.kc-de { position: absolute; top: -2.2rem; left: 1.2rem; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; font-size: 2.8rem; background: radial-gradient(circle at 35% 30%, #fff, #fbe3c8); box-shadow: 0 0 0 6px var(--bg), 0 14px 30px -12px rgba(140, 60, 10, .55); transition: transform .4s; }
.kc-dish:hover .kc-de { transform: rotate(-10deg) scale(1.06); }
.kc-dish h3 { margin: 0; font-size: 1.15rem; } .kc-dish p { margin: 0; color: var(--ink-2); font-size: .93rem; line-height: 1.5; flex: 1; }
.kc-rec { align-self: flex-start; display: inline-flex; align-items: center; gap: .55rem; margin-top: .4rem; padding: .55rem .9rem .55rem .6rem; border-radius: 16px; border: 0; cursor: pointer; font: 800 .9rem/1.1 var(--f-display); color: #fff; background: linear-gradient(120deg, #b8521d, #e0882a); text-align: left; }
.kc-rec svg { width: 20px; height: 20px; } .kc-rec small { display: block; font-weight: 600; font-size: .74rem; opacity: .85; }
.kc-rec:hover { filter: brightness(1.08); }
.kc-cos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.6rem 2rem; }
.kc-cos li { position: relative; padding-top: 1rem; border-top: 3px solid #c4521d; }
.kc-q { position: absolute; top: -1.05rem; right: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #c4521d; color: #fff; font: 800 .9rem/1 var(--f-display); }
.kc-cos h3 { margin: 0 0 .35rem; font-size: 1.15rem; } .kc-cos p { margin: 0; color: var(--ink-2); line-height: 1.6; font-size: .96rem; }
.kc-dic { padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 28px; background: color-mix(in srgb, #c9a46b 12%, var(--surface)); border: 1px solid color-mix(in srgb, #c9a46b 30%, var(--line)); }
.kc-dic dl { margin: 0; columns: 3 240px; column-gap: 2rem; }
.kc-dic dl > div { break-inside: avoid; padding: .7rem 0; border-bottom: 1px solid color-mix(in srgb, #c9a46b 30%, transparent); }
.kc-dic dt { font: 700 1.2rem/1.2 var(--f-serif, Georgia, serif); font-style: italic; color: #7a2c12; }
.kc-dic dt::after { content: " s."; font-style: normal; font-size: .75rem; font-family: var(--f-display); color: var(--ink-2); }
.kc-dic dd { margin: .25rem 0 0; font-size: .93rem; line-height: 1.5; color: var(--ink-2); }
.kc-near { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
.kc-near h3 { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: 1.35rem; } .kc-near h3 svg { width: 22px; height: 22px; color: #c4521d; }
.kc-near > div > p { margin: .2rem 0 .8rem; }
.kc-near ul { list-style: none; margin: 0; padding: 0; }
.kc-near li { display: flex; gap: .8rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.kc-ni { flex: 0 0 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; color: #c4521d; background: color-mix(in srgb, #c4521d 10%, transparent); } .kc-ni svg { width: 19px; height: 19px; }
.kc-near b { display: block; } .kc-near small { display: inline-flex; align-items: center; gap: .25rem; font-size: .8rem; color: var(--ink-2); } .kc-near small svg { width: 12px; height: 12px; }
.kc-near li p { margin: .25rem 0 0; font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.kc-note { display: flex; gap: .55rem; align-items: flex-start; margin: 0; padding: 1rem 1.2rem; border-radius: 18px; background: color-mix(in srgb, #1f6fb0 8%, var(--surface)); } .kc-note svg { width: 20px; height: 20px; flex-shrink: 0; color: #1f6fb0; }
@media (max-width: 860px) {
  .kc-hero { grid-template-columns: minmax(0, 1fr); } .kc-plate { width: 70%; margin: 0 auto; }
  .kc-duo, .kc-near { grid-template-columns: minmax(0, 1fr); }
}

/* ═══ Logotipos de negocio (Destacado y Escaparate) ═══ */
.has-logo { background: #fff !important; padding: 0; overflow: hidden; }
.has-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.prem-logo.has-logo { width: 92px; height: 92px; border-radius: 24px; box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 10px 26px rgba(0,0,0,.35); }
.bz-logo { position: absolute; z-index: 2; right: .7rem; bottom: .6rem; width: 54px; height: 54px; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 3px #fff, 0 8px 20px -6px rgba(0,0,0,.45); }
.bz-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bz:hover .bz-cover .bz-logo img { transform: none; }
.bzd-cover { margin: -.4rem -.4rem 0; height: 170px; border-radius: 20px; overflow: hidden; }
.bzd-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.bzd-head.on-cover { margin-top: -3.4rem; padding-left: 1rem; align-items: flex-end; position: relative; z-index: 1; }
.bzd-head.on-cover .bzd-ico { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 0 0 4px var(--surface), 0 10px 24px -8px rgba(0,0,0,.4); }
.bzd-head.on-cover h2 { margin-bottom: .1rem; }
.ab-logo img { object-fit: contain !important; background: #fff; }
.bzd-head.on-cover { flex-direction: column; align-items: flex-start; gap: .6rem; margin-top: -3.2rem; }
.fs-date.w svg { width: 26px; height: 26px; }

/* Publicidad apagada desde el panel: fuera planes, escaparates y patrocinados */
html.no-ads :is(#planes, .ex2, .showcase, #homeShow, #cmShow, #plazaSponsor, .sponsor, .bzd-up, [data-act="plan"]) { display: none !important; }
html.no-ads .ad-only { display: none !important; }

/* ═══ Anuncios: tablón entre vecinos (v2) ═══ */
.hx-anuncios { --hx-deep: #3a1405; --hx-mid: #e8590c; --hx-acc: #ffd08a; }
.an { --o: #e8590c; display: flex; flex-direction: column; gap: 1.3rem; padding-block: 0 3rem; position: relative; }
/* Buscador + «¿Qué quieres hacer?» montado sobre la cabecera */
.an-hero { position: relative; z-index: 4; margin-top: -78px; padding: clamp(1rem, 2.4vw, 1.6rem); border-radius: 30px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--o) 16%, var(--line)); box-shadow: 0 30px 70px -40px rgba(80, 30, 0, .55); display: flex; flex-direction: column; gap: 1.1rem; }
.an-q { position: relative; display: flex; align-items: center; }
.an-q > svg { position: absolute; left: 1.2rem; width: 22px; height: 22px; color: var(--o); pointer-events: none; }
.an-q input { width: 100%; height: 62px; padding: 0 7.5rem 0 3.4rem; border-radius: 20px; border: 2px solid transparent; background: var(--bg); font: 600 1.1rem/1 var(--f-body, inherit); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.an-q input::placeholder { color: color-mix(in srgb, var(--ink-2) 80%, transparent); font-weight: 500; }
.an-q input:focus { outline: none; border-color: var(--o); box-shadow: 0 0 0 5px color-mix(in srgb, var(--o) 16%, transparent); }
.an-q-n { position: absolute; right: 1rem; padding: .35rem .7rem; border-radius: 999px; background: color-mix(in srgb, var(--o) 12%, transparent); color: #b8410a; font: 800 .8rem/1 var(--f-display); white-space: nowrap; }
.an-q-n:empty { display: none; }
.an-go-t { margin: 0 0 .6rem; font: 800 .78rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.an-go-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.an-go-b { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .8rem; align-items: center; text-align: left; padding: 1rem 1.1rem; border-radius: 22px; border: 0; cursor: pointer; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--c) 55%, #fff) 0%, transparent 55%), linear-gradient(135deg, color-mix(in srgb, var(--c) 82%, #000), var(--c));
  box-shadow: 0 16px 30px -18px var(--c); transition: transform .3s cubic-bezier(.2,.8,.2,1.3), box-shadow .3s; }
.an-go-b:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 24px 40px -18px var(--c); }
.an-go-b:active { transform: scale(.97); }
.an-go-b:focus-visible { outline: 3px solid var(--c); outline-offset: 3px; }
.an-go-e { grid-row: 1 / 3; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; background: rgba(255,255,255,.22); transition: transform .4s cubic-bezier(.2,.8,.2,1.4); }
.an-go-b:hover .an-go-e { transform: rotate(-12deg) scale(1.12); }
.an-go-b b { font: 800 1.2rem/1.1 var(--f-display); } .an-go-b small { font-size: .82rem; opacity: .9; line-height: 1.25; }
.an-go-plus { position: absolute; right: .7rem; top: .7rem; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.25); } .an-go-plus svg { width: 15px; height: 15px; }
@media (prefers-reduced-motion: no-preference) { .an-go-b { animation: anUp .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 70ms + 100ms); } }
@keyframes anUp { from { opacity: 0; transform: translateY(14px); } }
/* Categorías como iconos de app */
.an-cats { display: flex; gap: .4rem; overflow-x: auto; padding: .3rem .2rem .5rem; scrollbar-width: none; scroll-snap-type: x proximity; }
.an-cats::-webkit-scrollbar { display: none; }
.an-cat { flex: 0 0 auto; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: .4rem; width: 86px; padding: .5rem .2rem; border: 0; background: none; cursor: pointer; border-radius: 18px; transition: background .2s; }
.an-cat-e { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; font-size: 1.75rem; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 22px -16px rgba(80, 30, 0, .5); transition: transform .3s cubic-bezier(.2,.8,.2,1.4), background .2s, border-color .2s, box-shadow .2s; }
.an-cat-l { font: 700 .8rem/1.15 var(--f-display); color: var(--ink-2); text-align: center; }
.an-cat:hover .an-cat-e { transform: translateY(-3px) scale(1.06); }
.an-cat.on .an-cat-e { background: linear-gradient(135deg, #ff8a3d, var(--o)); border-color: transparent; box-shadow: 0 14px 26px -12px var(--o); transform: scale(1.06); }
.an-cat.on .an-cat-l { color: #b8410a; }
.an-cat:focus-visible { outline: 3px solid var(--o); outline-offset: 2px; }
/* Filtros */
.an-tools { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; justify-content: space-between; }
.an-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-alt, #f1f2f4); gap: 2px; }
.an-ty { padding: .55rem 1rem; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 800 .9rem/1 var(--f-display); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.an-ty:hover { color: var(--c); }
.an-ty.on { background: var(--surface); color: var(--c); box-shadow: 0 4px 12px -4px rgba(0,0,0,.25); }
.an-tools-r { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; }
.an-pill, .an-sort { display: inline-flex; align-items: center; gap: .35rem; height: 40px; padding: 0 .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 .88rem/1 var(--f-display); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.an-pill svg, .an-sort svg { width: 16px; height: 16px; }
.an-pill.on { background: #1d2a20; color: #fff; border-color: #1d2a20; }
.an-pill[data-v="fav"].on { background: #e0245e; border-color: #e0245e; }
.an-sort select { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding-right: .2rem; }
.an-sort select:focus { outline: none; } .an-sort:focus-within { border-color: var(--o); }
/* Rejilla de anuncios */
.an-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem 1rem; }
.an-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
@media (prefers-reduced-motion: no-preference) { .an-card { animation: anUp .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 45ms); } }
.an-card.off { opacity: .55; filter: grayscale(.7); }
.an-ph { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; border: 0; padding: 0; cursor: pointer; overflow: hidden; border-radius: 24px;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 14%, #fff), color-mix(in srgb, var(--c) 26%, #f6efe4)); box-shadow: 0 18px 36px -26px rgba(60, 20, 0, .6); transition: box-shadow .3s, transform .3s cubic-bezier(.2,.8,.2,1); }
.an-card:hover .an-ph { transform: translateY(-4px); box-shadow: 0 28px 44px -24px color-mix(in srgb, var(--c) 70%, transparent); }
.an-ph:focus-visible { outline: 3px solid var(--c); outline-offset: 3px; }
.an-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.an-card:hover .an-ph img { transform: scale(1.07); }
.an-emo { font-size: 4.6rem; filter: drop-shadow(0 14px 14px rgba(0,0,0,.18)); transition: transform .5s cubic-bezier(.2,.8,.2,1.4); }
.an-card:hover .an-emo { transform: scale(1.12) rotate(-8deg); }
.an-type { position: absolute; top: .75rem; left: .75rem; padding: .35rem .7rem; border-radius: 999px; background: var(--c); color: #fff; font: 800 .7rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 4px 10px -4px var(--c); }
.an-st { position: absolute; top: .75rem; right: 3.4rem; padding: .35rem .6rem; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--ink); font: 800 .7rem/1 var(--f-display); }
.an-st.new { background: #ffd43b; color: #3a2a00; } .an-st.sold { background: #1d2a20; color: #fff; } .an-st.exp { background: #b3261e; color: #fff; }
.an-price { position: absolute; left: .7rem; bottom: .7rem; padding: .45rem .8rem; border-radius: 14px; background: rgba(255,255,255,.94); color: var(--ink); font: 800 1.25rem/1 var(--f-display); letter-spacing: -.02em; box-shadow: 0 8px 20px -10px rgba(0,0,0,.4); backdrop-filter: blur(6px); }
.an-n { position: absolute; right: .7rem; bottom: .75rem; display: inline-flex; align-items: center; gap: .25rem; padding: .3rem .55rem; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; font-weight: 800; } .an-n svg { width: 13px; height: 13px; }
.an-fav { position: absolute; top: .6rem; right: .6rem; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255,255,255,.94); color: #7a7f87; box-shadow: 0 6px 14px -6px rgba(0,0,0,.35); transition: color .2s, transform .2s; }
.an-fav svg { width: 20px; height: 20px; } .an-fav:hover { color: #e0245e; transform: scale(1.08); }
.an-fav.on { color: #e0245e; } .an-fav.on svg { fill: currentColor; }
.an-fav.pop { animation: anPop .45s cubic-bezier(.2,.8,.2,1.6); } @keyframes anPop { 40% { transform: scale(1.35); } }
.an-body { display: flex; flex-direction: column; gap: .2rem; padding: .75rem .3rem 0; }
.an-body h3 { margin: 0; font-size: 1.02rem; line-height: 1.3; }
.an-body h3 button { all: unset; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.an-body h3 button:hover { color: var(--c); } .an-body h3 button:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; border-radius: 4px; }
.an-meta { font-size: .8rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-sk { display: flex; flex-direction: column; gap: .5rem; } .an-sk i { aspect-ratio: 1; border-radius: 24px; } .an-sk b { height: 14px; border-radius: 8px; width: 80%; } .an-sk b + b { width: 50%; }
.an-sk i, .an-sk b { background: linear-gradient(90deg, var(--bg-alt, #eee) 25%, color-mix(in srgb, var(--bg-alt, #eee) 50%, #fff) 50%, var(--bg-alt, #eee) 75%); background-size: 200% 100%; animation: anSh 1.2s linear infinite; }
@keyframes anSh { to { background-position: -200% 0; } }
.an-empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; border-radius: 30px; background: color-mix(in srgb, var(--o) 5%, var(--surface)); border: 2px dashed color-mix(in srgb, var(--o) 25%, var(--line)); display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.an-empty-e { font-size: 3.6rem; animation: anBob 3s ease-in-out infinite; } @keyframes anBob { 50% { transform: translateY(-8px) rotate(-6deg); } }
.an-empty h3 { margin: 0; } .an-empty p { margin: 0; }
.an-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: .8rem; }
.an-tip { display: flex; gap: .7rem; align-items: center; padding: .9rem 1rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.an-tip > span { font-size: 1.6rem; } .an-tip b { display: block; font-size: .95rem; } .an-tip small { color: var(--ink-2); font-size: .82rem; }
/* Botón flotante en el móvil */
.an-fab { display: none; }
/* Ficha */
.modal-box.an-modal { max-width: min(980px, 94vw) !important; width: 980px; }
.an-d { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.8rem; }
.an-d-g { display: flex; flex-direction: column; gap: .6rem; }
.an-d-big { border-radius: 24px; overflow: hidden; background: #f3f0ea; } .an-d-big img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.an-d-emo { aspect-ratio: 1; border-radius: 24px; display: grid; place-items: center; font-size: 7rem; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 14%, #fff), color-mix(in srgb, var(--c) 26%, #f6efe4)); }
.an-d-th { display: flex; gap: .5rem; } .an-d-th button { width: 78px; height: 78px; padding: 0; border-radius: 16px; overflow: hidden; border: 3px solid transparent; cursor: pointer; opacity: .65; transition: opacity .2s, border-color .2s; }
.an-d-th button[aria-current] { border-color: var(--c); opacity: 1; } .an-d-th img { width: 100%; height: 100%; object-fit: cover; }
.an-d-i { display: flex; flex-direction: column; gap: .7rem; min-width: 0; padding-top: .4rem; }
.an-d-top { display: flex; align-items: center; gap: .6rem; } .an-d-top .an-type { position: static; }
.an-d-cat { font-size: .9rem; font-weight: 700; color: var(--ink-2); flex: 1; }
.an-fav.in { position: static; box-shadow: none; border: 1px solid var(--line); }
.an-d-price { margin: 0; font: 800 clamp(2.4rem, 5vw, 3rem)/1 var(--f-display); letter-spacing: -.03em; color: var(--c); }
.an-d-i .modal-title { margin: 0; font-size: 1.55rem; line-height: 1.2; }
.an-d-who { display: flex; align-items: center; gap: .7rem; padding: .7rem 0; border-block: 1px solid var(--line); }
.an-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #ff8a3d, #e8590c); color: #fff; font: 800 1.1rem/1 var(--f-display); }
.an-d-who b { display: block; } .an-d-who small { display: inline-flex; align-items: center; gap: .25rem; color: var(--ink-2); font-size: .84rem; } .an-d-who small svg { width: 13px; height: 13px; }
.an-d-sold { display: flex; align-items: center; gap: .4rem; margin: 0; padding: .7rem .9rem; border-radius: 14px; background: var(--bg-alt, #f3f4f6); font-weight: 700; } .an-d-sold svg { width: 18px; height: 18px; }
.an-d-txt { margin: 0; line-height: 1.65; font-size: 1.02rem; }
.an-d-cta { display: grid; grid-template-columns: 1fr auto; gap: .5rem; margin-top: .3rem; } .an-d-cta .btn { justify-content: center; height: 52px; font-size: 1.02rem; }
.btn.wa { background: #1ea952; border-color: #1ea952; color: #fff; } .btn.wa:hover { background: #17924a; }
.an-d-own { padding: 1rem; border-radius: 18px; background: color-mix(in srgb, #e8590c 7%, var(--surface)); border: 1px solid color-mix(in srgb, #e8590c 20%, var(--line)); display: flex; flex-direction: column; gap: .6rem; } .an-d-own p { margin: 0; }
.an-own-b { display: flex; flex-wrap: wrap; gap: .4rem; } .an-del { color: #b3261e !important; }
.an-d-foot { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: auto; padding-top: .4rem; }
.linkish { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; font-size: .86rem; color: var(--ink-2); } .linkish svg { width: 15px; height: 15px; } .linkish:hover { color: var(--ink); text-decoration: underline; }
.linkish:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.linkish.danger { color: #b3261e; }
/* Formulario con vista previa */
.modal-box.an-form-m { max-width: min(1000px, 96vw) !important; width: 1000px; }
.an-fw { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2rem; align-items: start; }
.an-f { display: flex; flex-direction: column; gap: 1.2rem; }
.an-f .modal-title { margin: 0; }
.an-f fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.an-f legend, .an-f-lg { display: block; margin-bottom: .55rem; font: 800 .82rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.an-f legend small { text-transform: none; letter-spacing: 0; font-weight: 600; }
.an-f-ty { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.an-f-ty legend { grid-column: 1 / -1; }
.an-f-ty label, .an-f-cat label { position: relative; cursor: pointer; }
.an-f-ty input, .an-f-cat input { position: absolute; opacity: 0; pointer-events: none; }
.an-f-ty span { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .8rem .3rem; border-radius: 18px; border: 2px solid color-mix(in srgb, var(--c) 25%, var(--line)); color: var(--c); font: 800 .95rem/1 var(--f-display); transition: background .2s, color .2s, transform .2s, border-color .2s; }
.an-f-ty i { font-style: normal; font-size: 1.6rem; }
.an-f-ty label:hover span { transform: translateY(-2px); }
.an-f-ty input:checked + span { background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 12px 22px -12px var(--c); }
.an-f-ty input:focus-visible + span, .an-f-cat input:focus-visible + span { outline: 3px solid var(--o, #e8590c); outline-offset: 2px; }
.an-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; transition: opacity .2s; }
.an-slots.busy { opacity: .6; pointer-events: none; }
.an-slot { position: relative; aspect-ratio: 1; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; border: 2px dashed var(--line); color: var(--ink-2); font: 700 .85rem/1.1 var(--f-display); overflow: hidden; background: var(--bg); }
.an-slot.next { cursor: pointer; border-color: #e8590c; color: #b8410a; background: color-mix(in srgb, #e8590c 7%, var(--surface)); transition: background .2s, transform .2s; }
.an-slot.next:hover { background: color-mix(in srgb, #e8590c 13%, var(--surface)); transform: translateY(-2px); }
.an-slot.next svg { width: 30px; height: 30px; }
.an-slot-n { font-size: 1.6rem; opacity: .35; }
.an-slot.has { border: 0; } .an-slot.has img { width: 100%; height: 100%; object-fit: cover; }
.an-slot-c { position: absolute; left: .45rem; bottom: .45rem; padding: .25rem .5rem; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; }
.an-slot-x { position: absolute; top: .4rem; right: .4rem; width: 30px; height: 30px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; } .an-slot-x svg { width: 15px; height: 15px; }
.an-f-sec { display: flex; flex-direction: column; gap: .8rem; }
.an-f-sec .field { margin: 0; }
.an-eur { position: relative; } .an-eur input { padding-right: 2.6rem; font-weight: 800; font-size: 1.1rem; }
.an-eur span { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--ink-2); }
.an-f-cat > div { display: flex; flex-wrap: wrap; gap: .4rem; }
.an-f-cat span { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .8rem; border-radius: 999px; border: 1px solid var(--line); font: 700 .88rem/1 var(--f-display); transition: background .2s, border-color .2s, color .2s; }
.an-f-cat i { font-style: normal; }
.an-f-cat input:checked + span { background: color-mix(in srgb, #e8590c 12%, var(--surface)); border-color: #e8590c; color: #b8410a; }
.an-f-tel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: end; }
.an-wa-sw { display: inline-flex; align-items: center; gap: .55rem; padding-bottom: .75rem; cursor: pointer; font-weight: 700; font-size: .92rem; }
.an-wa-sw input { position: absolute; opacity: 0; }
.an-wa-sw > span:last-child { display: inline-flex; align-items: center; gap: .3rem; } .an-wa-sw > span:last-child svg { width: 18px; height: 18px; color: #1ea952; }
.an-sw { width: 44px; height: 26px; border-radius: 999px; background: #c9ccd1; position: relative; transition: background .2s; flex-shrink: 0; }
.an-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.25); transition: transform .25s cubic-bezier(.2,.8,.2,1.3); }
.an-wa-sw input:checked + .an-sw { background: #1ea952; } .an-wa-sw input:checked + .an-sw::after { transform: translateX(18px); }
.an-wa-sw input:focus-visible + .an-sw { outline: 3px solid #1ea952; outline-offset: 2px; }
.an-pub { height: 58px; font-size: 1.1rem; justify-content: center; border-radius: 18px; }
.an-live { position: sticky; top: 0; display: flex; flex-direction: column; gap: .7rem; padding: 1.1rem; border-radius: 26px; background: color-mix(in srgb, #e8590c 6%, var(--bg)); border: 1px dashed color-mix(in srgb, #e8590c 30%, var(--line)); }
.an-live-t { display: inline-flex; align-items: center; gap: .35rem; font: 800 .76rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: #b8410a; } .an-live-t svg { width: 15px; height: 15px; }
.an-live .an-card { animation: none; } .an-live .an-ph { cursor: default; } .an-live .an-st { right: .75rem; }
.cz-an { display: flex; align-items: center; gap: .5rem; padding: .6rem .8rem; border-radius: 12px; background: color-mix(in srgb, #e8590c 9%, transparent); color: var(--ink); text-decoration: none; font-size: .88rem; }
.cz-an span { flex: 1; } .cz-an svg { width: 16px; height: 16px; color: #e8590c; } .cz-an:hover { background: color-mix(in srgb, #e8590c 15%, transparent); }
@media (max-width: 960px) { .an-go-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .an-fw { grid-template-columns: minmax(0, 1fr); } .an-live { display: none; } }
@media (max-width: 760px) {
  .an-hero { margin-top: -54px; border-radius: 24px; }
  .an-q input { height: 54px; font-size: 1rem; padding-right: 1rem; } .an-q-n { display: none; }
  .an-go-b { grid-template-columns: 1fr; padding: .85rem; row-gap: .25rem; } .an-go-e { grid-row: auto; width: 42px; height: 42px; font-size: 1.4rem; margin-bottom: .2rem; } .an-go-b small { display: none; }
  .an-cat { width: 72px; } .an-cat-e { width: 52px; height: 52px; font-size: 1.5rem; }
  .an-tools { flex-direction: column; align-items: stretch; } .an-seg { overflow-x: auto; } .an-ty { flex: 1; padding-inline: .6rem; }
  .an-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .7rem; }
  .an-price { font-size: 1.05rem; padding: .35rem .6rem; } .an-emo { font-size: 3.4rem; } .an-st { right: auto; left: .75rem; top: 2.5rem; }
  .an-fav { width: 34px; height: 34px; } .an-fav svg { width: 17px; height: 17px; }
  .an-body h3 { font-size: .94rem; }
  .an-tips { grid-template-columns: minmax(0, 1fr); }
  .an-d { grid-template-columns: minmax(0, 1fr); gap: 1rem; } .an-d-cta { grid-template-columns: minmax(0, 1fr); }
  .an-f-ty { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-f-tel { grid-template-columns: minmax(0, 1fr); }
  .an-fab { display: inline-flex; position: fixed; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 40; align-items: center; gap: .4rem; height: 54px; padding: 0 1.2rem 0 1rem; border: 0; border-radius: 999px; background: linear-gradient(135deg, #ff8a3d, #e8590c); color: #fff; font: 800 1rem/1 var(--f-display); box-shadow: 0 16px 30px -10px rgba(232, 89, 12, .7); cursor: pointer; }
  .an-fab svg { width: 22px; height: 22px; }
}
@media (max-width: 760px) { .an-seg { display: flex; } .an-ty { flex: 1 1 auto; padding: .55rem .5rem; font-size: .84rem; } }

/* ═══ Cabeceras más bajas en el móvil (todas menos Inicio) ═══ */
@media (max-width: 760px) {
  :root:not([data-design]) .hx { height: auto !important; min-height: 330px !important; padding-bottom: 26px !important; }
  :root:not([data-design]) .hx-in { padding-block: 1.25rem 2.4rem !important; }
  :root:not([data-design]) .hx-eyebrow { font-size: .66rem; padding: .3rem .7rem .3rem .3rem; margin-bottom: .6rem; }
  :root:not([data-design]) .hx-eyebrow .hx-eb-ico { width: 22px; height: 22px; }
  :root:not([data-design]) .hx h1 { font-size: clamp(1.95rem, 8.6vw, 2.4rem) !important; line-height: 1.02; margin-bottom: .5rem; }
  :root:not([data-design]) .hx .hx-txt > p { font-size: .97rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
  /* La foto ocupa toda la cabecera, por detrás del texto, con velo para leer bien */
  :root:not([data-design]) .hx-deco .hx-photo, :root:not([data-design]) .hx-ilu .hx-photo { inset: 0 !important; width: 100% !important; height: 100% !important; top: 0 !important; opacity: .55 !important;
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.25) 0%, #000 75%) !important; mask-image: linear-gradient(180deg, rgba(0,0,0,.25) 0%, #000 75%) !important; }
  :root:not([data-design]) .hx .hx-reeds { display: none; }
}
@media (max-width: 760px) {
  :root:not([data-design]) .hx, :root:not([data-design]) .fb > .banner.hx { min-height: 0 !important; padding-bottom: 30px !important; }
  :root:not([data-design]) .hx .hx-in { min-height: 270px; display: flex; align-items: flex-end; }
}
@media (max-width: 760px) { :root:not([data-design]) .hx > .wrap.hx-in { padding-block: 1.25rem 2.4rem !important; } }
@media (max-width: 760px) { :root:not([data-design]) .hx:has(.hx-ilu):not(.bh2) > .wrap.hx-in, :root:not([data-design]) .fb > .banner.hx > .wrap.hx-in { padding-bottom: 2.4rem !important; } }
.nt-bg { background-position: 70% 60% !important; }
.nt-hero { background: #1a1426; }
.nt-hero::after { background: linear-gradient(90deg, rgba(20, 14, 36, .92) 0%, rgba(20, 14, 36, .55) 45%, rgba(20, 14, 36, 0) 80%), linear-gradient(0deg, rgba(20,14,36,.5), transparent 45%) !important; }
.nt-bg { background-position: 75% 70% !important; }
.nt-k, .nt-hero h2 em { color: #ffc9a6 !important; }
@media (max-width: 760px) { .nt-hero::after { background: linear-gradient(0deg, rgba(20,14,36,.95) 35%, rgba(20,14,36,.35)) !important; } }
/* Barra de abajo con 6 botones: textos algo más pequeños para que quepan */
@media (max-width: 760px) { #tabbar .tab { font-size: .68rem; letter-spacing: -.01em; } #tabbar .tab-ico svg { width: 21px; height: 21px; } }

/* ═══ Menú de arriba (ordenador): iconos de color por sección ═══ */
:root:not([data-design]) #nav { gap: 4px; margin-left: 1.4rem; padding: 0; border: 0 !important; background: none !important; box-shadow: none !important; }
:root:not([data-design]) #nav a.nv { --c: #2f7d1e; display: inline-flex; align-items: center; gap: .5rem; padding: .38rem .9rem .38rem .38rem; border-radius: 999px; background: transparent !important; color: var(--ink-2) !important;
  font: 700 .92rem/1 var(--f-display, system-ui); letter-spacing: -.01em; box-shadow: none !important; transition: background .25s, color .25s, transform .25s cubic-bezier(.2,.8,.2,1.3), box-shadow .25s; }
:root:not([data-design]) #nav a.nv::before, :root:not([data-design]) #nav a.nv::after { display: none !important; content: none !important; }
:root:not([data-design]) #nav .nv-i { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); transition: background .25s, color .25s, transform .35s cubic-bezier(.2,.8,.2,1.5); }
:root:not([data-design]) #nav .nv-i svg { width: 17px; height: 17px; }
:root:not([data-design]) #nav a.nv:hover:not([aria-current="page"]) { color: var(--c) !important; background: color-mix(in srgb, var(--c) 7%, transparent) !important; }
:root:not([data-design]) #nav a.nv:hover .nv-i { transform: rotate(-10deg) scale(1.1); background: var(--c); color: #fff; }
:root:not([data-design]) #nav a.nv:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }
:root:not([data-design]) #nav a.nv[aria-current="page"] { color: #fff !important; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 75%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 80%, #000)) !important;
  box-shadow: 0 10px 22px -10px var(--c), inset 0 1px 0 rgba(255,255,255,.3) !important; }
:root:not([data-design]) #nav a.nv[aria-current="page"] .nv-i { background: rgba(255,255,255,.22); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-design]) #nav .nv-i { background: color-mix(in srgb, var(--c) 25%, transparent); color: color-mix(in srgb, var(--c) 55%, #fff); } }
:root[data-theme="dark"]:not([data-design]) #nav .nv-i { background: color-mix(in srgb, var(--c) 25%, transparent); color: color-mix(in srgb, var(--c) 55%, #fff); }
/* Pantallas medianas: solo iconos, menos la sección en la que estás */
@media (max-width: 1240px) {
  :root:not([data-design]) #nav a.nv:not([aria-current="page"]) { padding: .38rem; }
  :root:not([data-design]) #nav a.nv:not([aria-current="page"]) .nv-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
:root:not([data-design]) #nav { gap: 2px; margin-left: .8rem; min-width: 0; }
:root:not([data-design]) #nav a.nv { gap: .4rem; padding: .3rem .72rem .3rem .3rem; font-size: .88rem; }
:root:not([data-design]) #nav .nv-i { width: 28px; height: 28px; flex-basis: 28px; } :root:not([data-design]) #nav .nv-i svg { width: 15px; height: 15px; }
@media (max-width: 1240px) { :root:not([data-design]) #nav a.nv:not([aria-current="page"]) { padding: .3rem; } }
/* Menú de arriba: sin iconos, con el color de cada sección */
:root:not([data-design]) #nav .nv-i { display: none !important; }
:root:not([data-design]) #nav a.nv, :root:not([data-design]) #nav a.nv:not([aria-current="page"]) { padding: .55rem 1rem !important; color: color-mix(in srgb, var(--c) 82%, #000) !important; font-size: .92rem; }
:root:not([data-design]) #nav a.nv:not([aria-current="page"]) .nv-l { position: static !important; width: auto !important; height: auto !important; overflow: visible !important; clip: auto !important; }
:root:not([data-design]) #nav a.nv:hover:not([aria-current="page"]) { background: color-mix(in srgb, var(--c) 11%, transparent) !important; transform: translateY(-1px); }
:root:not([data-design]) #nav a.nv[aria-current="page"] { color: #fff !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-design]) #nav a.nv:not([aria-current="page"]) { color: color-mix(in srgb, var(--c) 55%, #fff) !important; } }
:root[data-theme="dark"]:not([data-design]) #nav a.nv:not([aria-current="page"]) { color: color-mix(in srgb, var(--c) 55%, #fff) !important; }
@media (max-width: 1240px) { :root:not([data-design]) #nav a.nv, :root:not([data-design]) #nav a.nv:not([aria-current="page"]) { padding: .5rem .7rem !important; font-size: .86rem; } }

/* ═══ Cabeceras más bajas en ordenador (todas menos Inicio) ═══ */
@media (min-width: 761px) {
  :root:not([data-design]) .hx { height: clamp(330px, 24vw, 400px) !important; min-height: 0 !important; padding-bottom: 0 !important; }
  :root:not([data-design]) .hx > .wrap.hx-in, :root:not([data-design]) .hx:has(.hx-ilu):not(.bh2) > .wrap.hx-in, :root:not([data-design]) .fb > .banner.hx > .wrap.hx-in { padding-block: 1.6rem 3.2rem !important; height: 100%; display: flex; align-items: center; }
  :root:not([data-design]) .hx h1 { font-size: clamp(2.3rem, 3.6vw, 3.5rem) !important; margin-bottom: .55rem; }
  :root:not([data-design]) .hx .hx-txt > p { font-size: 1.05rem; line-height: 1.5; max-width: 58ch; }
  :root:not([data-design]) .hx-eyebrow { margin-bottom: .8rem; }
  :root:not([data-design]) .hx .search-big { margin-top: 1rem; }
  :root:not([data-design]) .fb > .banner.hx { padding-bottom: 0 !important; }
}
/* Cabecera móvil: «Isla Mayor» siempre entero (la cursiva no se corta) */
@media (max-width: 760px) {
  header.top .brand > span, header.top .brand b { overflow: visible !important; text-overflow: clip !important; }
  header.top .brand .b1, header.top .brand b { padding-right: .18em; }
  .back-btn:not([hidden]) ~ .brand { gap: .35rem !important; flex-shrink: 0; }
  .back-btn:not([hidden]) ~ .brand .b1 { font-size: clamp(.98rem, 4.6vw, 1.15rem) !important; }
  .back-btn:not([hidden]) ~ .brand img, .back-btn:not([hidden]) ~ .brand .brand-ico { width: 30px !important; height: 30px !important; }
  header.top .top-actions, header.top .actions { gap: .35rem; }
}
@media (max-width: 350px) { .back-btn:not([hidden]) ~ .brand img, .back-btn:not([hidden]) ~ .brand .brand-ico { display: none; } }
/* Móvil: texto arriba, completo y bien legible sobre la foto */
@media (max-width: 760px) {
  :root:not([data-design]) .hx .hx-in { min-height: 0 !important; align-items: flex-start !important; }
  :root:not([data-design]) .hx > .wrap.hx-in, :root:not([data-design]) .hx:has(.hx-ilu):not(.bh2) > .wrap.hx-in, :root:not([data-design]) .fb > .banner.hx > .wrap.hx-in { padding-top: .9rem !important; padding-bottom: 2.2rem !important; }
  :root:not([data-design]) .hx .hx-txt > p { -webkit-line-clamp: unset !important; display: block !important; overflow: visible !important; color: #fff !important; font-weight: 500; text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 0 18px rgba(0,0,0,.45); }
  :root:not([data-design]) .hx h1 { text-shadow: 0 2px 14px rgba(0,0,0,.45); }
  :root:not([data-design]) .hx-deco .hx-photo, :root:not([data-design]) .hx-ilu .hx-photo { opacity: .38 !important; }
  :root:not([data-design]) .hx-eyebrow { margin-bottom: .5rem !important; }
  :root:not([data-design]) .fb > .banner.hx { padding-bottom: 48px !important; }
}
.hs > .hs-btn { z-index: 6 !important; } .hs > .group-tabs { position: relative; z-index: 1; }
/* Flechas encima de las pestañas del Chat; la barra sigue fija al bajar */
.hs > .hs-btn { z-index: 30 !important; }
:root:not([data-design]) .hs:has(> .group-tabs) { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 20; }
:root:not([data-design]) .hs > .group-tabs { position: relative !important; top: auto !important; z-index: 1 !important; }

/* Móvil: TODAS las cabeceras exactamente del mismo alto */
@media (max-width: 760px) {
  :root:not([data-design]) .hx, :root:not([data-design]) .fb > .banner.hx { height: 360px !important; min-height: 360px !important; max-height: 360px !important; padding-bottom: 0 !important; overflow: hidden; }
  :root:not([data-design]) .hx > .wrap.hx-in, :root:not([data-design]) .hx:has(.hx-ilu):not(.bh2) > .wrap.hx-in, :root:not([data-design]) .fb > .banner.hx > .wrap.hx-in { padding-top: .9rem !important; padding-bottom: 2rem !important; }
  :root:not([data-design]) .hx .hx-txt > p { font-size: .95rem !important; line-height: 1.42 !important; }
  /* Negocios: buscador y botón en una fila compacta para caber en el mismo alto */
  :root:not([data-design]) .hx.bh2 .search-big { margin-top: .8rem !important; }
  :root:not([data-design]) .hx.bh2 .search-big input { height: 48px; }
  :root:not([data-design]) .hx.bh2 .bh2-stats .btn { height: 46px; margin-top: .6rem; }
  /* Lo que monta sobre la cabecera (Chat, Anuncios) baja un poco para no tapar el texto */
  :root:not([data-design]) .fb > .banner.hx + * , :root:not([data-design]) .an-hero { margin-top: -28px !important; }
}
@media (max-width: 760px) { :root:not([data-design]) .hx.bh2 .hx-txt > p { -webkit-line-clamp: 2 !important; display: -webkit-box !important; -webkit-box-orient: vertical; overflow: hidden !important; } }
@media (max-width: 760px) {
  :root:not([data-design]) .hx { display: block !important; }
  :root:not([data-design]) .hx > .wrap.hx-in { display: block !important; height: auto !important; margin: 0 auto !important; padding-top: 1rem !important; }
}

/* Barra de abajo (móvil): cada botón con el color de su sección */
@media (max-width: 760px) {
  :root:not([data-design]) .tb-blob { background: linear-gradient(160deg, color-mix(in srgb, var(--c, #2f7d1e) 70%, #fff), var(--c, #2f7d1e) 60%, color-mix(in srgb, var(--c, #2f7d1e) 75%, #000)) !important;
    box-shadow: 0 8px 22px -6px var(--c, #2f7d1e), inset 0 1px 0 rgba(255,255,255,.3) !important; transition: transform .45s cubic-bezier(.2,.8,.2,1.15), width .45s, background .35s, box-shadow .35s; }
  :root:not([data-design]) #tabbar .tab:not([aria-current="page"]) .tab-ico { color: color-mix(in srgb, var(--c, #8a9) 65%, #fff); }
  :root:not([data-design]) #tabbar .tab:not([aria-current="page"]):hover .tab-ico, :root:not([data-design]) #tabbar .tab:not([aria-current="page"]):active .tab-ico { color: var(--c); transform: translateY(-2px) scale(1.08); }
  :root:not([data-design]) #tabbar .tab:not([aria-current="page"]):hover, :root:not([data-design]) #tabbar .tab:not([aria-current="page"]):active { color: color-mix(in srgb, var(--c) 55%, #fff); background: color-mix(in srgb, var(--c) 18%, transparent); }
  :root:not([data-design]) #tabbar .tab .tab-ico { transition: color .2s, transform .25s cubic-bezier(.2,.8,.2,1.4); }
}
/* Móvil: cabeceras más pequeñas, todas iguales (240 px) */
@media (max-width: 760px) {
  :root:not([data-design]) .hx, :root:not([data-design]) .fb > .banner.hx { height: 240px !important; min-height: 240px !important; max-height: 240px !important; }
  :root:not([data-design]) .hx > .wrap.hx-in { padding-top: 1rem !important; padding-bottom: 1.6rem !important; }
  :root:not([data-design]) .hx-eyebrow { display: none !important; }
  :root:not([data-design]) .hx h1 { font-size: clamp(1.75rem, 7.8vw, 2.1rem) !important; margin-bottom: .4rem !important; }
  :root:not([data-design]) .hx .hx-txt > p { font-size: .9rem !important; line-height: 1.4 !important; display: -webkit-box !important; -webkit-box-orient: vertical !important; -webkit-line-clamp: 3 !important; overflow: hidden !important; }
  :root:not([data-design]) .hx-wave { height: 22px; }
  :root:not([data-design]) .hx .tl-saved, :root:not([data-design]) .hx .tl-offline, :root:not([data-design]) .hx .hx-note { display: none !important; }
  /* Negocios: título + buscador + botón */
  :root:not([data-design]) .hx.bh2 .hx-txt > p { display: none !important; }
  :root:not([data-design]) .hx.bh2 .search-big { margin-top: .6rem !important; }
  :root:not([data-design]) .hx.bh2 .search-big input { height: 44px; }
  :root:not([data-design]) .hx.bh2 .bh2-stats .btn { height: 42px; margin-top: .5rem; }
}
@media (max-width: 760px) { :root:not([data-design]) .hx .tl-offline { display: none !important; } }
@media (max-width: 760px) { html body #telOffline, html body #telOffline:not([hidden]) { display: none !important; } }
/* Portada: «País del agua» como título principal */
.hero h1.h1-solo .line2 { font-size: clamp(3.2rem, 8vw, 6.4rem) !important; line-height: 1 !important; display: inline-block; padding-bottom: .15em; }
@media (max-width: 760px) { .hero h1.h1-solo .line2 { font-size: clamp(2.8rem, 13vw, 3.6rem) !important; } }
.hero h1.h1-solo .line2 { font-size: clamp(2.8rem, 6.2vw, 5.2rem) !important; }
@media (max-width: 760px) { .hero h1.h1-solo .line2 { font-size: clamp(2.3rem, 10.5vw, 2.9rem) !important; } }
.hero h1.h1-solo { margin-bottom: 1.6rem !important; }
.hero h1.h1-solo + .hero-lead, .hero .hero-lead { margin-top: 0; }
@media (max-width: 760px) { .hero h1.h1-solo { margin-bottom: 1.1rem !important; } }
html:root body .hero h1.h1-solo { margin-bottom: 2rem !important; }
html:root body .hero h1.h1-solo + .hero-lead { margin-top: 0 !important; }
@media (max-width: 760px) { html:root body .hero h1.h1-solo { margin-bottom: 1.3rem !important; } }
html:root body .hero h1.h1-solo { margin-bottom: 3.2rem !important; }
@media (max-width: 760px) { html:root body .hero h1.h1-solo { margin-bottom: 2.1rem !important; } }
/* Ordenador: texto de las cabeceras bien legible sobre la foto */
@media (min-width: 761px) {
  :root:not([data-design]) .hx .hx-txt > p { color: #fff !important; font-weight: 500; text-shadow: 0 1px 2px rgba(0,0,0,.6), 0 0 22px rgba(0,0,0,.5); }
  :root:not([data-design]) .hx h1 { text-shadow: 0 2px 16px rgba(0,0,0,.45); }
  :root:not([data-design]) .hx-deco::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.28) 45%, rgba(0,0,0,0) 75%); }
  /* Anuncios: separar el texto del buscador, como en el Chat */
  :root:not([data-design]) .hx-anuncios > .wrap.hx-in { align-items: flex-start !important; padding-top: 1.4rem !important; }
  .an-hero { margin-top: -46px !important; }
}

/* Barra de abajo: colores por sección en cualquier tamaño en que se vea */
:root:not([data-design]) .tb-blob { background: linear-gradient(160deg, color-mix(in srgb, var(--c, #2f7d1e) 70%, #fff), var(--c, #2f7d1e) 60%, color-mix(in srgb, var(--c, #2f7d1e) 75%, #000)) !important;
  box-shadow: 0 8px 22px -6px var(--c, #2f7d1e), inset 0 1px 0 rgba(255,255,255,.3) !important; transition: transform .45s cubic-bezier(.2,.8,.2,1.15), width .45s, background .35s, box-shadow .35s; }
:root:not([data-design]) #tabbar .tab:not([aria-current="page"]) .tab-ico { color: color-mix(in srgb, var(--c, #8a9) 65%, #fff); }
:root:not([data-design]) #tabbar .tab:not([aria-current="page"]):hover .tab-ico, :root:not([data-design]) #tabbar .tab:not([aria-current="page"]):active .tab-ico { color: var(--c); transform: translateY(-2px) scale(1.08); }
:root:not([data-design]) #tabbar .tab:not([aria-current="page"]):hover, :root:not([data-design]) #tabbar .tab:not([aria-current="page"]):active { color: color-mix(in srgb, var(--c) 55%, #fff); background: color-mix(in srgb, var(--c) 18%, transparent); }
:root:not([data-design]) #tabbar .tab .tab-ico { transition: color .2s, transform .25s cubic-bezier(.2,.8,.2,1.4); }
/* Ordenador: el contenido de todas las cabeceras empieza a la misma distancia de arriba */
@media (min-width: 761px) {
  :root:not([data-design]) .hx > .wrap.hx-in, :root:not([data-design]) .hx:has(.hx-ilu):not(.bh2) > .wrap.hx-in, :root:not([data-design]) .fb > .banner.hx > .wrap.hx-in, :root:not([data-design]) .hx-anuncios > .wrap.hx-in { align-items: flex-start !important; padding-top: 2.4rem !important; }
}
/* Portada en ordenador: sin el pie de foto y con menos hueco */
@media (min-width: 761px) { .hero-credit, #heroCredit { display: none !important; } }
@media (min-width: 761px) {
  :root:not([data-design]) .hero .hero-foot { display: none !important; }
  :root:not([data-design]) .hero > .wrap { padding-bottom: 88px !important; padding-top: 52px !important; }
  :root:not([data-design]) .hero .hz-now { margin-top: 1.8rem !important; }
}
/* Tractor: también en móvil, y da la vuelta al subir */
@media (max-width: 960px) { .tractor { display: block !important; width: 48px !important; height: 17px !important; } }
.tractor .tr-dir { display: block; width: 100%; height: 100%; transition: transform .35s cubic-bezier(.2,.8,.2,1.2); }
.tractor.back .tr-dir { transform: scaleX(-1); }
.tractor.moving .tr-dir > svg { animation: trBump .2s ease-in-out infinite alternate; }
.tractor .tr-dir > svg { width: 100%; height: 100%; overflow: visible; }
@media (prefers-reduced-motion: reduce) { .tractor .tr-dir { transition: none; } }
/* «Así está ahora la marisma»: etiqueta oscura y bien legible sobre el dibujo */
html:root body .cw-now { background: rgba(15, 30, 20, .78) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.18) !important;
  backdrop-filter: blur(8px) !important; -webkit-backdrop-filter: blur(8px) !important; text-shadow: none !important; font-weight: 700 !important;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.5) !important; }
html:root body .cw-now i { background: #5fe08a !important; box-shadow: 0 0 0 4px rgba(95,224,138,.25) !important; }
/* Portada en ordenador: cifras a la derecha para que la primera pantalla termine en la orilla */
@media (min-width: 1000px) {
  :root:not([data-design]) .hero .hero-copy { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(2rem, 5vw, 5rem); max-width: none !important; align-items: end; }
  :root:not([data-design]) .hero .hero-copy > * { grid-column: 1; max-width: 680px; }
  :root:not([data-design]) .hero .hero-copy > .hz-facts { grid-column: 2; grid-row: 1 / span 4; align-self: end; margin: 0 !important;
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: .4rem !important; max-width: 420px; }
  :root:not([data-design]) .hero .hz-facts > div { padding: 1rem 1.3rem !important; border: 0 !important; }
  :root:not([data-design]) .hero .hz-facts > div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.12) !important; }
  :root:not([data-design]) .hero .hz-facts > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12) !important; }
  :root:not([data-design]) .hero { min-height: 0 !important; }
  :root:not([data-design]) .hero > .wrap { padding-top: 40px !important; padding-bottom: 80px !important; }
  :root:not([data-design]) .hero .hz-now { margin-top: 1.6rem !important; }
}
/* Avisa de un problema: campos ordenados y teléfono al final */
.inc-page .vv-sec .inc-fields { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.inc-page .inc-fields .field { margin: 0; }
.inc-where { display: flex; gap: .5rem; align-items: stretch; }
.inc-where .input { flex: 1; min-width: 0; }
.inc-where .btn { flex-shrink: 0; white-space: nowrap; }
.inc-page .inc-msg { margin-bottom: 1rem; }
.inc-page .inc-msg .vv-acts { flex-wrap: wrap; gap: .5rem; align-items: center; }
.inc-page .inc-who small { font-weight: 700; }
@media (max-width: 620px) { .inc-where { flex-direction: column; } .inc-where .btn { align-self: flex-start; } }
/* Avisa de un problema: título encima de cada paso, sin columna vacía a la izquierda */
:root:not([data-design]) .inc-page .vv-sec { grid-template-columns: minmax(0, 1fr) !important; gap: 1.1rem !important; padding: 1.8rem 0 !important; max-width: 900px; margin-inline: auto; width: 100%; }
:root:not([data-design]) .inc-page .vv-sec > header { position: static !important; flex-direction: row !important; align-items: center !important; gap: .9rem !important; }
:root:not([data-design]) .inc-page .vv-sec .vv-ico { width: 46px !important; height: 46px !important; border-radius: 16px !important; font-size: 1.1rem; flex-shrink: 0; }
:root:not([data-design]) .inc-page .vv-sec header h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem) !important; }
:root:not([data-design]) .inc-page .vv-sec header p { font-size: .92rem; margin-top: .15rem !important; }

/* ═══ Avisa de un problema: diseño en tarjetas ═══ */
:root:not([data-design]) .inc-page { gap: 1.2rem !important; padding-block: 1.6rem 3rem; }
:root:not([data-design]) .inc-page .vv-sec { padding: clamp(1.2rem, 2.6vw, 1.8rem) !important; border-radius: 28px !important; background: var(--surface) !important;
  border: 1px solid color-mix(in srgb, var(--c) 18%, var(--line)) !important; box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 24px 50px -40px color-mix(in srgb, var(--c) 80%, transparent) !important; position: relative; overflow: hidden; }
:root:not([data-design]) .inc-page .vv-sec::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
/* Tipos de problema: tarjetas con icono de color */
.inc-page .inc-types { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important; gap: .6rem !important; }
.inc-page .inc-t { display: flex !important; align-items: center; gap: .7rem; text-align: left; padding: .75rem .9rem !important; border-radius: 18px !important; background: var(--bg) !important; border: 2px solid transparent !important;
  font-weight: 700; font-size: .9rem; line-height: 1.25; cursor: pointer; transition: transform .2s cubic-bezier(.2,.8,.2,1.3), border-color .2s, background .2s, box-shadow .2s; }
.inc-page .inc-t > svg { width: 40px !important; height: 40px !important; flex: 0 0 40px; padding: 9px; border-radius: 13px; color: #c45227; background: color-mix(in srgb, #c45227 12%, var(--surface)); transition: background .2s, color .2s, transform .3s; }
.inc-page .inc-t:hover { transform: translateY(-2px); background: color-mix(in srgb, #c45227 6%, var(--surface)) !important; }
.inc-page .inc-t:hover > svg { transform: rotate(-8deg) scale(1.06); }
.inc-page .inc-t[aria-checked="true"] { border-color: #c45227 !important; background: color-mix(in srgb, #c45227 9%, var(--surface)) !important; box-shadow: 0 12px 24px -16px #c45227; }
.inc-page .inc-t[aria-checked="true"] > svg { background: #c45227; color: #fff; }
.inc-page .inc-t.urgent > svg { color: #c62828; background: color-mix(in srgb, #c62828 12%, var(--surface)); }
.inc-page .inc-t.urgent { border: 2px dashed color-mix(in srgb, #c62828 40%, transparent) !important; }
.inc-page .inc-t.urgent[aria-checked="true"] { border-style: solid !important; border-color: #c62828 !important; } .inc-page .inc-t.urgent[aria-checked="true"] > svg { background: #c62828; color: #fff; }
/* Campos */
.inc-page .inc-fields .input { border-radius: 16px; background: var(--bg); border: 2px solid transparent; transition: border-color .2s, background .2s; }
.inc-page .inc-fields .input:focus { border-color: #1e5a96; background: var(--surface); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, #1e5a96 14%, transparent); }
.inc-page .inc-where .btn { border-radius: 16px; }
/* Mensaje como una nota */
.inc-page .inc-msg pre#incMsg { margin: 0 0 .9rem; padding: 1rem 1.1rem; border-radius: 18px; background: color-mix(in srgb, #2f7d1e 6%, var(--bg)); border: 1px dashed color-mix(in srgb, #2f7d1e 35%, var(--line));
  font: 500 .98rem/1.55 var(--f-body, system-ui); white-space: pre-wrap; color: var(--ink); }
.inc-page #incForm { font-size: 1rem; padding: .8rem 1.3rem; border-radius: 999px; box-shadow: 0 14px 26px -14px #2f7d1e; }
.inc-how { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.inc-how li { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem .9rem; border-radius: 16px; background: var(--bg); font-size: .88rem; line-height: 1.45; color: var(--ink-2); }
.inc-how b { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #2f7d1e; color: #fff; font-size: .8rem; }
.inc-how strong { color: var(--ink); }
.inc-page .inc-who { margin-top: 1rem; border-radius: 20px !important; }
@media (max-width: 760px) { .inc-how { grid-template-columns: minmax(0, 1fr); } .inc-page .inc-types { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .inc-page .inc-t > svg { width: 34px !important; height: 34px !important; flex-basis: 34px; padding: 7px; } }
.inc-page pre#incMsg { -webkit-user-select: text; user-select: text; }
/* Campos de texto: borde visible siempre, no solo al escribir */
.inc-page .inc-fields .input { background: var(--surface) !important; border: 2px solid color-mix(in srgb, #1e5a96 28%, var(--line)) !important; box-shadow: inset 0 1px 2px rgba(0,0,0,.04); }
.inc-page .inc-fields .input:hover { border-color: color-mix(in srgb, #1e5a96 50%, var(--line)) !important; }
.inc-page .inc-fields .input:focus { border-color: #1e5a96 !important; box-shadow: 0 0 0 4px color-mix(in srgb, #1e5a96 14%, transparent) !important; }
/* Instrucción de pegar: móvil (mantén pulsado) u ordenador (botón derecho) */
.inc-how .inc-mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .inc-how .inc-touch { display: none; } .inc-how .inc-mouse { display: inline; } }
.inc-how kbd { font: 700 .78rem/1 var(--f-body, system-ui); padding: .15rem .4rem; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
/* Botón de accesibilidad: se arrastra arriba o abajo en cualquier pantalla */
.a11y-fab { touch-action: none; cursor: grab; transform: translateY(-50%); }
.a11y-fab.dragging { cursor: grabbing; transition: none !important; }

/* ═══ Normas: lista editorial, sin cajas ═══ */
:root:not([data-design]) .nm-rules { list-style: none; margin: 0; padding: 0; display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem !important; }
:root:not([data-design]) .nm-rule { display: grid !important; grid-template-columns: 64px minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.3rem 0 !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
:root:not([data-design]) .nm-rule .nm-ico { width: 56px !important; height: 56px !important; border-radius: 50% !important; display: grid; place-items: center; color: #fff !important;
  background: radial-gradient(circle at 30% 25%, #6fc24a, #2f7d1e) !important; box-shadow: 0 10px 20px -10px #2f7d1e; transition: transform .35s cubic-bezier(.2,.8,.2,1.4); }
:root:not([data-design]) .nm-rule .nm-ico svg { width: 24px; height: 24px; }
:root:not([data-design]) .nm-rule:hover .nm-ico { transform: rotate(-10deg) scale(1.08); }
:root:not([data-design]) .nm-rule h2 { font-size: 1.12rem !important; margin: .15rem 0 .3rem; }
:root:not([data-design]) .nm-rule .nm-n { font: 700 1rem/1 var(--f-serif, Georgia, serif); font-style: italic; color: #2f7d1e; margin-right: .2rem; }
:root:not([data-design]) .nm-rule p { margin: 0; line-height: 1.55; }
:root:not([data-design]) .nm-sum { border-radius: 999px !important; padding: .9rem 1.3rem !important; }
:root:not([data-design]) .nm-info { gap: 1.2rem !important; margin-top: 1rem; }
:root:not([data-design]) .nm-info .panel { position: relative; overflow: hidden; border: 0 !important; border-radius: 30px !important; padding: 1.6rem 1.6rem 1.6rem 1.6rem !important; color: #fff; }
:root:not([data-design]) .nm-info .panel h2 { color: #fff; font-size: 1.3rem !important; }
:root:not([data-design]) .nm-info .panel p.muted { color: rgba(255,255,255,.88) !important; }
:root:not([data-design]) .nm-info .panel a.tel { color: #fff; font-weight: 800; }
:root:not([data-design]) .nm-filter { background: radial-gradient(90% 120% at 100% 0%, #3f9a2a 0%, transparent 60%), linear-gradient(135deg, #133d0d, #2f7d1e) !important; }
:root:not([data-design]) .nm-report { background: radial-gradient(90% 120% at 100% 0%, #3a86d0 0%, transparent 60%), linear-gradient(135deg, #0f2f52, #1f6fb0) !important; }
:root:not([data-design]) .nm-big-ico { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.16); }
:root:not([data-design]) .nm-big-ico svg { width: 24px; height: 24px; }
:root:not([data-design]) .nm-report .btn { background: #fff !important; color: #0f2f52 !important; border-color: #fff !important; }
@media (max-width: 760px) { :root:not([data-design]) .nm-rules { grid-template-columns: minmax(0, 1fr); } :root:not([data-design]) .nm-rule { grid-template-columns: 48px minmax(0, 1fr); } :root:not([data-design]) .nm-rule .nm-ico { width: 46px !important; height: 46px !important; } :root:not([data-design]) .nm-sum { border-radius: 20px !important; } }

/* Botón de accesibilidad más pequeño */
html:root body .a11y-fab { width: 40px !important; height: 40px !important; }
html:root body .a11y-fab svg { width: 20px !important; height: 20px !important; }
/* Instrucción de pegar: por tamaño de pantalla */
.inc-how .inc-mouse { display: none !important; } .inc-how .inc-touch { display: inline !important; }
@media (min-width: 761px) { .inc-how .inc-touch { display: none !important; } .inc-how .inc-mouse { display: inline !important; } }
/* Casilla de edad en el registro */
.age-ok { display: flex; gap: .65rem; align-items: flex-start; padding: .8rem .9rem; border-radius: 14px; background: color-mix(in srgb, #f5b700 12%, var(--surface)); border: 1.5px solid color-mix(in srgb, #f5b700 45%, var(--line)); font-size: .9rem; line-height: 1.4; cursor: pointer; }
.age-ok input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; accent-color: #2f7d1e; }
.age-ok.shake { animation: ageShake .5s; border-color: #c62828; }
@keyframes ageShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
/* Pie de foto de la portada: fuera en todas las pantallas */
.hero-credit, #heroCredit { display: none !important; }

/* ═══ Trámites: rejilla compacta en varias columnas ═══ */
:root:not([data-design]) #tlist.tr-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)) !important; gap: .6rem !important; align-items: start; }
:root:not([data-design]) #tlist .tr-card { margin: 0 !important; border-radius: 18px !important; border: 1px solid var(--line) !important; background: var(--surface) !important; box-shadow: none !important; transition: border-color .2s, box-shadow .2s, transform .2s; }
:root:not([data-design]) #tlist .tr-card:hover { border-color: color-mix(in srgb, var(--tf, #1f6fb0) 40%, var(--line)) !important; transform: translateY(-1px); box-shadow: 0 10px 22px -18px rgba(0,0,0,.4) !important; }
:root:not([data-design]) #tlist .tr-card[open] { grid-column: 1 / -1; box-shadow: 0 18px 36px -24px rgba(0,0,0,.35) !important; }
:root:not([data-design]) #tlist .tr-card > summary { display: grid !important; grid-template-columns: 36px minmax(0, 1fr) 24px; gap: .65rem; align-items: center; padding: .7rem .8rem !important; min-height: 0 !important; }
:root:not([data-design]) #tlist .tr-ico { width: 36px !important; height: 36px !important; border-radius: 12px !important; }
:root:not([data-design]) #tlist .tr-ico svg { width: 18px; height: 18px; }
:root:not([data-design]) #tlist .tr-t { display: flex !important; flex-direction: column; gap: .2rem; min-width: 0; }
:root:not([data-design]) #tlist .tr-t strong { font-size: .92rem !important; line-height: 1.25; }
:root:not([data-design]) #tlist .tr-t > .small { font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root:not([data-design]) #tlist .tr-badges { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .15rem !important; }
:root:not([data-design]) #tlist .tr-b { font-size: .66rem !important; padding: .15rem .45rem !important; gap: .2rem; }
:root:not([data-design]) #tlist .tr-b svg { width: 11px !important; height: 11px !important; }
:root:not([data-design]) #tlist .tr-b.clave { color: #6b4bb8; background: color-mix(in srgb, #6b4bb8 10%, transparent); border: 1px solid color-mix(in srgb, #6b4bb8 25%, transparent); border-radius: 999px; display: inline-flex; align-items: center; font-weight: 700; }
:root:not([data-design]) #tlist .tr-chev { width: 24px !important; height: 24px !important; }
:root:not([data-design]) #tlist .tr-more { grid-column: 1 / -1; }
@media (max-width: 620px) { :root:not([data-design]) #tlist.tr-grid { grid-template-columns: minmax(0, 1fr) !important; gap: .45rem !important; } }
@media (max-width: 620px) {
  :root:not([data-design]) #tlist .tr-t > .small { display: none !important; }
  :root:not([data-design]) #tlist .tr-card > summary { padding: .55rem .7rem !important; grid-template-columns: 32px minmax(0, 1fr) 22px; }
  :root:not([data-design]) #tlist .tr-ico { width: 32px !important; height: 32px !important; }
}
/* Instalaciones: lista simple, sin enlaces · Qué ver sin enlaces */
:root:not([data-design]) .in-g li.in-li { padding: .6rem .6rem; font-size: .98rem; font-weight: 400; line-height: 1.35; color: var(--ink); }
:root:not([data-design]) .vs-t { cursor: default; padding-bottom: 1.3rem; }
:root:not([data-design]) .vs-t:hover { transform: none; }
/* Vivir/Empleo: todo lo que no es el título va en la columna derecha (no se mete bajo el título fijo) */
@media (min-width: 861px) { :root:not([data-design]) .vv-page.emp-page .vv-sec { row-gap: 0; } :root:not([data-design]) .vv-page.emp-page .vv-sec > :not(header) { grid-column: 2; margin-block: 0; } :root:not([data-design]) .vv-page.emp-page .vv-sec > :not(header) + :not(header) { margin-top: 1.1rem; } :root:not([data-design]) .vv-page.emp-page .vv-sec > header { grid-row: 1 / span 20; } }
/* Botón de cerrar (X) de las ventanas: bien visible en móvil y ordenador */
:root:not([data-design]) .modal-box:not(.story-box):not(.prem-modal):not(.fb-modal) > .close { width: 44px !important; height: 44px !important; min-width: 44px; min-height: 44px; padding: 0 !important; display: grid; place-items: center; flex-shrink: 0; border-radius: 50% !important; border: 0; background: var(--ink, #16202a); color: var(--bg, #fff); box-shadow: 0 6px 16px -6px rgba(0,0,0,.45); opacity: 1; }
:root:not([data-design]) .modal-box:not(.story-box):not(.prem-modal):not(.fb-modal) > .close svg { width: 22px; height: 22px; stroke-width: 2.6; }
:root:not([data-design]) .modal-box:not(.story-box):not(.prem-modal):not(.fb-modal) > .close:hover { transform: scale(1.06); background: #c62828; color: #fff; }
:root:not([data-design]) .sm-box > .close { top: 6px; margin: 6px 0 -50px auto; }
:root:not([data-design]) .sm-box .sm-head { padding-right: 56px; }
/* Eliminar cuenta */
.del-zone { border: 1px solid color-mix(in srgb, #d92d20 30%, var(--line)) !important; background: color-mix(in srgb, #d92d20 4%, var(--surface)) !important; gap: .6rem; display: flex; flex-direction: column; }
.del-zone h2 { display: flex; align-items: center; gap: .5rem; color: #b42318; margin: 0; } .del-zone h2 svg { width: 20px; height: 20px; }
.del-zone p { margin: 0; }
.btn.danger-out { align-self: flex-start; background: transparent; color: #b42318; border: 1.5px solid #d92d20; }
.btn.danger-out:hover { background: #d92d20; color: #fff; }
.del-modal { max-width: 480px; }
.del-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, #d92d20 12%, transparent); color: #d92d20; }
.del-ico svg { width: 28px; height: 28px; } .del-ico.ok { background: color-mix(in srgb, #2f7d1e 14%, transparent); color: #2f7d1e; }
.del-box p, .del-bye p { margin: 0; }
.del-list { margin: 0; padding-left: 1.2rem; display: grid; gap: .25rem; color: var(--ink-2); }
.del-warn { font-weight: 800; color: #b42318; }
.del-box #delTxt { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.del-box .btn.danger:disabled { opacity: .45; cursor: not-allowed; }
.del-bye { text-align: center; align-items: center; } .del-adios { font: 700 1.6rem/1.1 var(--f-serif, Georgia, serif); color: var(--brand, #2f7d1e); }
.del-wrap { margin-top: 2.4rem; margin-bottom: 2rem; } .del-wrap .del-zone { max-width: 640px; }

/* ═════════ Juegos de la Isla ═════════ */
.hx-juegos { --hx-deep: #2a1a00; --hx-mid: #b8860b; --hx-acc: #ffe08a; }
.jg { padding-block: 1.6rem 3rem; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.6rem 2rem; align-items: start; }
.jg-week { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; }
.jg-wk { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; color: var(--ink); } .jg-wk svg { width: 18px; height: 18px; color: #b8860b; }
.jg-nx { font-size: .86rem; font-weight: 700; padding: .3rem .75rem; border-radius: 999px; background: color-mix(in srgb, #b8860b 14%, transparent); color: color-mix(in srgb, #b8860b 70%, var(--ink)); }
.jg-cards { display: grid; gap: 1.2rem; }
.jg-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); border-radius: 26px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px -30px rgba(0, 0, 0, .45); }
.jg-art { position: relative; min-height: 210px; overflow: hidden; }
.jg-quiz .jg-art { background: radial-gradient(120% 90% at 30% 20%, #ffe08a, #e2a10f 45%, #8a5a00); display: grid; place-items: center; }
.jg-quiz .jg-art span { font: 900 7rem/1 var(--f-serif, Georgia, serif); color: #fff; text-shadow: 0 8px 24px rgba(90, 50, 0, .45); transform: rotate(-8deg); animation: jgBob 3s ease-in-out infinite; }
.jg-quiz .jg-art i { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.jg-quiz .jg-art i:nth-of-type(1) { top: 18%; left: 16%; } .jg-quiz .jg-art i:nth-of-type(2) { bottom: 20%; right: 18%; width: 22px; height: 22px; } .jg-quiz .jg-art i:nth-of-type(3) { top: 26%; right: 22%; width: 8px; height: 8px; }
@keyframes jgBob { 50% { transform: rotate(6deg) translateY(-6px); } }
.jg-peek { background-repeat: no-repeat; aspect-ratio: auto !important; filter: saturate(1.1); }
.jg-peek::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 999px rgba(15, 127, 120, .12); }
.jg-lupa { position: absolute; right: 12px; bottom: 12px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0f7f78; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); z-index: 1; }
.jg-lupa svg { width: 22px; height: 22px; }
.jg-body { padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .55rem; align-items: flex-start; }
.jg-k { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #a06d00; }
.jg-sitio .jg-k { color: #0f7f78; } .jg-k svg { width: 15px; height: 15px; }
.jg-body h2 { margin: 0; font: 700 clamp(1.45rem, 2.4vw, 1.9rem)/1.1 var(--f-serif, Georgia, serif); }
.jg-body p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.jg-go { margin-top: .4rem; border-radius: 999px; padding-inline: 1.4rem; font-size: 1.05rem; }
.jg-quiz .jg-go { background: #b8860b; border-color: #b8860b; } .jg-sitio .jg-go { background: #0f7f78; border-color: #0f7f78; }
.jg-go svg { width: 16px; height: 16px; fill: currentColor; }
.jg-done { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin-top: .3rem; padding: .5rem .85rem; border-radius: 14px; background: color-mix(in srgb, #2f7d1e 10%, transparent); color: #2f6a1e; font-weight: 600; }
.jg-done svg { width: 16px; height: 16px; }
.jg-stars { display: inline-flex; gap: 2px; font-size: 1.05rem; } .jg-stars i { font-style: normal; color: color-mix(in srgb, var(--ink) 18%, transparent); } .jg-stars i.on { color: #e2a10f; }
/* Clasificación */
.jg-side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: calc(var(--header-h, 70px) + 16px); }
.jg-last { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: 20px; background: linear-gradient(135deg, #fff4cf, #ffe08a); color: #4a3200; box-shadow: 0 14px 30px -22px #8a5a00; }
.jg-cup { font-size: 2.2rem; } .jg-last div { display: flex; flex-direction: column; } .jg-last small { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.jg-last b { font-size: 1.15rem; } .jg-last .num { font-size: .9rem; }
.jg-board { padding: 1.2rem 1.2rem 1rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.jg-board h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .7rem; font: 800 1.1rem/1.2 var(--f-display); } .jg-board h2 svg { width: 18px; height: 18px; color: #b8860b; }
.jg-board ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.jg-board li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 34px; align-items: center; gap: .5rem; padding: .55rem .4rem; border-bottom: 1px dashed var(--line); border-radius: 10px; }
.jg-board li:last-child { border-bottom: 0; }
.jg-board li.me { background: color-mix(in srgb, #b8860b 14%, transparent); font-weight: 800; }
.jg-board li.jg-gap { display: block; text-align: center; color: var(--ink-2); padding: .2rem; border: 0; }
.jg-pos { font-weight: 800; text-align: center; font-size: 1rem; }
.jg-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jg-det { display: inline-flex; align-items: center; gap: .15rem; font-size: .8rem; color: var(--ink-2); } .jg-det svg { width: 12px; height: 12px; }
.jg-pts { text-align: right; font-size: 1.15rem; color: #a06d00; }
.jg-rules { margin: .8rem 0 0; } .jg-priv { margin: 0; }
.jg-login { display: flex; gap: .55rem; align-items: flex-start; margin: 0; padding: .8rem 1rem; border-radius: 16px; background: color-mix(in srgb, var(--ink) 5%, transparent); font-size: .92rem; } .jg-login svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: .1rem; }
/* Partida */
.jg-stage { min-width: 0; }
.jg-play { border-radius: 28px; padding: 1.3rem 1.4rem 1.6rem; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 50px -36px rgba(0, 0, 0, .5); display: flex; flex-direction: column; gap: .9rem; }
.jg-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.jg-dots { display: flex; gap: 6px; } .jg-dots i { width: 28px; height: 8px; border-radius: 9px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.jg-dots i.done { background: #e2a10f; } .jg-dots i.now { background: #b8860b; box-shadow: 0 0 0 3px color-mix(in srgb, #b8860b 25%, transparent); }
.jg-sc { display: inline-flex; align-items: center; gap: .25rem; font-weight: 800; font-size: 1.1rem; color: #a06d00; } .jg-sc svg { width: 18px; height: 18px; }
.jg-n { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.jg-qt { margin: 0; font: 700 clamp(1.35rem, 2.6vw, 1.9rem)/1.2 var(--f-serif, Georgia, serif); }
.jg-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.jg-opt { display: flex; align-items: center; gap: .7rem; text-align: left; padding: .85rem 1rem; min-height: 64px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: 600 1rem/1.3 var(--f-body, inherit); cursor: pointer; transition: transform .15s, border-color .15s, background .15s; }
.jg-opt:hover:not(:disabled) { border-color: #b8860b; transform: translateY(-2px); }
.jg-s .jg-opt:hover:not(:disabled) { border-color: #0f7f78; }
.jg-l { flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.jg-opt.ok { border-color: #2f7d1e; background: color-mix(in srgb, #2f7d1e 12%, var(--surface)); } .jg-opt.ok .jg-l { background: #2f7d1e; color: #fff; }
.jg-opt.bad { border-color: #c62828; background: color-mix(in srgb, #c62828 10%, var(--surface)); animation: jgShake .4s; } .jg-opt.bad .jg-l { background: #c62828; color: #fff; }
.jg-opt.off { opacity: .55; } .jg-opt:disabled { cursor: default; }
@keyframes jgShake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.jg-why { padding: .9rem 1rem; border-radius: 16px; line-height: 1.5; border-left: 4px solid; }
.jg-why.ok { background: color-mix(in srgb, #2f7d1e 9%, transparent); border-color: #2f7d1e; } .jg-why.bad { background: color-mix(in srgb, #c62828 7%, transparent); border-color: #c62828; }
.jg-next { align-self: flex-end; border-radius: 999px; background: #b8860b; border-color: #b8860b; } .jg-next svg { width: 16px; height: 16px; }
.jg-end { align-items: center; text-align: center; padding-block: 2rem; }
.jg-big { font: 800 5rem/1 var(--f-serif, Georgia, serif); color: #b8860b; } .jg-big small { font-size: 2rem; color: var(--ink-2); }
.jg-end .jg-stars { font-size: 2rem; gap: 6px; } .jg-end h2 { margin: .3rem 0 0; font: 700 1.5rem/1.2 var(--f-serif, Georgia, serif); } .jg-end p { margin: 0; }
.jg-end-acts { gap: .5rem; flex-wrap: wrap; justify-content: center; } .jg-end-acts svg { width: 16px; height: 16px; }
.jg-photo { width: 100%; max-height: 62vh; border-radius: 20px; background-repeat: no-repeat; background-color: #0f2a28; transition: background-size .9s cubic-bezier(.2, .8, .2, 1), background-position .9s cubic-bezier(.2, .8, .2, 1); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.jg-photo.open { box-shadow: 0 0 0 4px #2f7d1e; }
.jg-zoom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; color: var(--ink-2); }
.jg-zoom svg { width: 15px; height: 15px; }
/* Portada */
.jg-home { margin-block: 1.4rem; }
.jg-hcard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.1rem; padding: 1rem 1.2rem; border-radius: 24px; text-decoration: none; color: #3a2600;
  background: linear-gradient(120deg, #fff4cf, #ffe08a 60%, #f6c445); box-shadow: 0 18px 40px -28px #8a5a00; transition: transform .2s; }
.jg-hcard:hover { transform: translateY(-3px); }
.jg-hart { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 20%, #ffe08a, #e2a10f 50%, #8a5a00); }
.jg-hart b { font: 900 2.6rem/1 var(--f-serif, Georgia, serif); color: #fff; transform: rotate(-8deg); text-shadow: 0 4px 10px rgba(90, 50, 0, .4); }
.jg-htxt { display: flex; flex-direction: column; gap: .15rem; }
.jg-htxt small { display: inline-flex; align-items: center; gap: .3rem; font-weight: 800; font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: #8a5a00; } .jg-htxt small svg { width: 13px; height: 13px; }
.jg-htxt strong { font: 700 1.35rem/1.15 var(--f-serif, Georgia, serif); color: #2a1a00; } .jg-htxt > span { color: #5a4100; line-height: 1.4; }
.jg-hgo { border-radius: 999px; background: #2a1a00; border-color: #2a1a00; color: #ffe08a; } .jg-hgo svg { width: 16px; height: 16px; }
/* Panel */
.jg-alist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.jg-ai { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .5rem; border: 1px solid var(--line); border-radius: 14px; }
.jg-ai div { display: flex; flex-direction: column; gap: .1rem; } .jg-ai small { font-size: .8rem; }
.jg-ath { display: block; width: 90px; border-radius: 10px; background-repeat: no-repeat; background-color: #ddd; }
.jg-ath.big { width: 220px; }
.jg-pick { position: relative; width: 100%; max-width: 560px; border-radius: 14px; background-size: 100% 100%; cursor: crosshair; }
.jg-pick i { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px #c62828, 0 4px 10px rgba(0, 0, 0, .4); pointer-events: none; }
.jg-pv { display: flex; flex-direction: column; gap: .3rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .jg-done { color: #9fd98a; } }
:root[data-theme="dark"] .jg-done { color: #9fd98a; }
@media (max-width: 980px) {
  .jg { grid-template-columns: minmax(0, 1fr); }
  .jg-side { position: static; }
}
@media (max-width: 600px) {
  .jg-card { grid-template-columns: minmax(0, 1fr); }
  .jg-art { min-height: 150px; } .jg-quiz .jg-art span { font-size: 5rem; }
  .jg-peek { min-height: 170px; }
  .jg-opts { grid-template-columns: minmax(0, 1fr); }
  .jg-opt { min-height: 54px; padding: .7rem .85rem; }
  .jg-play { padding: 1rem 1rem 1.3rem; border-radius: 22px; }
  .jg-hcard { grid-template-columns: auto minmax(0, 1fr); } .jg-hgo { grid-column: 1 / -1; justify-self: stretch; justify-content: center; }
  .jg-dots i { width: 18px; }
}
.jg-photo { max-width: 680px; margin-inline: auto; image-rendering: auto; }
.jg-next, .jg-quiz .jg-go, .jg-sitio .jg-go { color: #fff !important; }
.jg-play .jg-next { background: #b8860b !important; border-color: #b8860b !important; color: #fff !important; }
.jg-nx { color: #5a3d00 !important; background: #ffe7a3 !important; }
.jg-stage { scroll-margin-top: calc(var(--header-h, 70px) + 12px); }
.fx-by { margin: 0; font-size: .8rem; letter-spacing: .04em; color: rgba(242, 247, 239, .6); } .fx-by b { color: #f2c14e; font-weight: 800; }
.vcf .vcf-ball { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #16202a; filter: none;
  background: repeating-linear-gradient(90deg, #f5c518 0 10px, #16202a 10px 20px); box-shadow: inset 0 0 0 4px #f5c518, 0 6px 14px -6px rgba(0, 0, 0, .4); }
.vcf .vcf-ball svg { width: 34px; height: 34px; padding: 5px; border-radius: 50%; background: #fff; box-sizing: content-box; }
/* Negocios: buscador más arriba, separado de la onda de abajo */
@media (min-width: 761px) { :root:not([data-design]) .bh2 .search-big { margin-top: .7rem !important; } :root:not([data-design]) .bh2 .hx-in { padding-top: 1.6rem !important; } }
@media (min-width: 761px) { :root:not([data-design]) .biz-head.bh2 .wrap.bh2-in.hx-in { padding-top: 1.4rem !important; } :root:not([data-design]) .biz-head.bh2 .hx-txt h1.h-page { margin-top: .4rem !important; } }
:root:not([data-design]) .vv-sec > .stack { align-self: start; align-content: start; }
/* Publicaciones del equipo: logo de la web como foto */
.avatar img[src$="brand.png"] { object-fit: contain; background: #fff; padding: 4px; box-sizing: border-box; }
.an-tips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .an-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .an-tips { grid-template-columns: minmax(0, 1fr); } }
/* Botón de cuenta: la foto o la inicial ocupa el círculo entero, centrada */
.top-tools #userBtn:has(.avatar) { padding: 0 !important; overflow: hidden; display: grid; place-items: center; }
.top-tools #userBtn .avatar { width: 100% !important; height: 100% !important; margin: 0 !important; border-radius: 50%; font-size: 1rem; box-shadow: none; border: 0; }
.top-tools #userBtn .avatar img { width: 100%; height: 100%; object-fit: cover; }
