/* Yacanto Hoy — estilos públicos. Mobile first. */
:root {
  --pino: #0F3B2E;
  --pino-2: #1A5442;
  --acento: #7DD3EA;      /* celeste arroyo, sobre verde */
  --acento-osc: #1A7FAA;  /* celeste intenso, sobre blanco */
  --grad: linear-gradient(90deg, #08291F 0%, #0F4535 52%, #18705C 100%);
  --grad-d: linear-gradient(140deg, #08291F 0%, #0F4535 55%, #1B7A64 100%);
  --tinta: #131A17;
  --granito: #5B666B;
  --linea: #DEE3DF;
  --niebla: #EEF2EE;
  --papel: #FFFFFF;
  --on-pino: #F3F7F4;

  --f-sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Newsreader", Georgia, "Times New Roman", serif;

  --r: 14px;
  --r-sm: 8px;
  --gut: 16px;
  --tabbar: 64px;
  --main-pt: 30px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --tinta: #E8EEEA;
    --granito: #9AA6A0;
    --linea: #26302C;
    --niebla: #0C1210;
    --papel: #141C19;
    --acento-osc: #5EC4E3;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body {
  margin: 0;
  background: var(--niebla);
  color: var(--tinta);
  font: 400 16px/1.5 var(--f-sans);
  padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
a, button, input, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
svg { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 3px solid var(--acento-osc); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { width: 100%; max-width: 720px; margin-inline: auto; padding-inline: var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--acento); color: #08291F; padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 8px; }
.muted { color: var(--granito); }

/* ---------- Cabecera: verde pino con borde de sierra ---------- */
.top {
  position: sticky;
  top: -30px; /* la franja de fecha/clima se va al hacer scroll; logo y secciones quedan */
  z-index: 40;
  background: var(--grad);
  color: var(--on-pino);
}
.top-bar {
  height: 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 12px; font-variation-settings: "wdth" 90;
  color: color-mix(in srgb, var(--on-pino) 75%, transparent);
}
.top-fecha { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 600; color: var(--on-pino); }
.wx-ico { font-size: 14px; line-height: 1; }
.wx-t b { color: var(--acento); font-weight: 700; }

.mast { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 56px; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 12px; cursor: pointer; color: inherit;
  transition: background-color 150ms ease, transform 120ms var(--ease-out);
}
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: rgb(255 255 255 / 0.1); } }

.logo { justify-self: center; display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.logo-word {
  font-family: var(--f-sans); font-weight: 900; font-size: 28px; letter-spacing: -0.02em;
  font-variation-settings: "wdth" 112;
}
.logo-hoy {
  font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em;
  background: var(--acento); color: var(--pino); padding: 5px 6px 4px; border-radius: 5px;
  transform: translateY(-1px);
}

.secs { position: relative; }
.secs-in {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  padding-block: 2px 8px; scroll-snap-type: x proximity;
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.secs-in::-webkit-scrollbar { display: none; }
.secs a {
  flex: none; scroll-snap-align: start;
  font-size: 14px; font-weight: 600; font-variation-settings: "wdth" 92;
  padding: 7px 12px; border-radius: 999px;
  color: color-mix(in srgb, var(--on-pino) 82%, transparent);
  transition: background-color 150ms ease, color 150ms ease;
}
.secs a[aria-current="page"] { background: var(--on-pino); color: var(--pino); }
@media (hover: hover) and (pointer: fine) { .secs a:hover:not([aria-current]) { background: rgb(255 255 255 / 0.1); color: #fff; } }

/* El borde inferior de la cabecera dibuja la línea de la sierra */
.ridge { position: absolute; left: 0; top: calc(100% - 1px); width: 100%; height: 18px; pointer-events: none; }
.ridge path { fill: url(#ridge-grad); }

/* ---------- Píldoras de sección ---------- */
.pill {
  display: inline-block; align-self: flex-start;
  background: var(--c, var(--pino)); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; line-height: 1;
  padding: 5px 8px 4px; border-radius: 6px;
}
.pill--lg { font-size: 14px; padding: 9px 13px 8px; border-radius: 999px; }

/* ---------- Placeholder sin foto ---------- */
.ph { position: relative; background: color-mix(in srgb, var(--c) 18%, var(--papel)); overflow: hidden; }
.ph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph path { fill: color-mix(in srgb, var(--c) 45%, var(--papel)); }
.ph path.ph-b { fill: color-mix(in srgb, var(--c) 70%, var(--papel)); }

/* ---------- Tarjetas ---------- */
main { padding-top: var(--main-pt); }
.lead { display: grid; gap: 14px; margin-bottom: 26px; }
.lead-side { display: grid; gap: 14px; }

.hero-link { display: block; position: relative; border-radius: var(--r); overflow: hidden; background: var(--pino); color: #fff; isolation: isolate; }
.hero-media > img, .hero-media > .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgb(8 22 17 / 0.55) 55%, rgb(8 22 17 / 0.92));
}
.hero-body { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 18px 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.hero-title { margin: 0; font-size: clamp(26px, 7.4vw, 44px); line-height: 1.04; font-weight: 800; letter-spacing: -0.015em; font-variation-settings: "wdth" 88; text-wrap: balance; }
.hero-copete { margin: 0; font-family: var(--f-serif); font-size: 17px; line-height: 1.4; color: rgb(255 255 255 / 0.86); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero .meta { color: rgb(255 255 255 / 0.7); }

.card-link { display: flex; flex-direction: column; height: 100%; background: var(--papel); border-radius: var(--r); overflow: hidden; }
.card-media { position: relative; }
.card-media > img, .card-media > .ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.card-title { margin: 0; font-size: 21px; line-height: 1.15; font-weight: 750; letter-spacing: -0.01em; font-variation-settings: "wdth" 92; text-wrap: balance; }
.card-copete { margin: 0; font-family: var(--f-serif); font-size: 16px; line-height: 1.45; color: var(--granito); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-body .meta { margin-top: auto; }

.row-link { display: grid; grid-template-columns: 1fr 112px; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.row-media { order: 2; position: relative; }
.row-media > img, .row-media > .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); }
.row-body { display: flex; flex-direction: column; gap: 7px; }
.row-title { margin: 0; font-size: 17.5px; line-height: 1.2; font-weight: 700; font-variation-settings: "wdth" 94; text-wrap: pretty; }

.meta { font-size: 12.5px; color: var(--granito); font-variation-settings: "wdth" 92; }
.play {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(0 0 0 / 0.55); color: #fff; backdrop-filter: blur(6px);
}
.play svg { width: 16px; height: 16px; margin-left: 2px; }
.hero .play { left: auto; right: 14px; top: 14px; bottom: auto; }

.hero-link, .card-link, .row-link, .esc { transition: transform 160ms var(--ease-out); }
.hero-link:active, .card-link:active, .esc:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) {
  .card-title, .row-title, .hero-title { transition: color 150ms ease; }
  .card-link:hover .card-title, .row-link:hover .row-title { color: var(--pino-2); }
  .hero-link:hover .hero-title { color: #DDF4FA; }
}

/* ---------- Encabezados de bloque ---------- */
.kicker {
  margin: 0 0 4px; display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-variation-settings: "wdth" 100;
}
.kicker::before { content: ""; width: 14px; height: 10px; background: var(--c, var(--acento-osc)); clip-path: polygon(0 100%, 35% 20%, 55% 55%, 75% 0, 100% 100%); }
.kicker--light { color: var(--on-pino); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--pino-2); }
.more svg { width: 16px; height: 16px; transition: transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .more:hover svg { transform: translateX(3px); } }
.more--light { color: var(--acento); }

.cols { display: grid; gap: 28px; }
.feed { background: var(--papel); border-radius: var(--r); padding: 16px 16px 4px; }
.feed .row:last-child .row-link { border-bottom: 0; }
.feed--search { margin-top: 8px; }
.side { display: grid; gap: 18px; align-content: start; }
.box { background: var(--papel); border-radius: var(--r); padding: 16px; }

.rank { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: r; }
.rank li { counter-increment: r; display: grid; grid-template-columns: 40px 1fr; gap: 6px; padding: 12px 0; border-top: 1px solid var(--linea); }
.rank li:first-child { border-top: 0; }
.rank li::before { content: counter(r); font-size: 32px; font-weight: 900; line-height: 0.9; color: var(--acento-osc); font-variation-settings: "wdth" 70; }
.rank a { font-weight: 650; line-height: 1.25; font-variation-settings: "wdth" 94; }
@media (hover: hover) and (pointer: fine) { .rank a:hover { color: var(--pino-2); text-decoration: underline; text-underline-offset: 3px; } }

.tels { list-style: none; margin: 8px 0 0; padding: 0; }
.tels a { display: grid; grid-template-columns: 1fr auto 20px; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--linea); }
.tels li:first-child a { border-top: 0; }
.tels span { font-size: 15px; }
.tels b { font-variant-numeric: tabular-nums; font-size: 15px; }
.tels svg { width: 18px; height: 18px; color: var(--pino-2); }

.block { margin-top: 34px; }
.grid3 { display: grid; gap: 14px; }

/* ---------- Escapadas (franja turística) ---------- */
.escapadas { background: var(--grad-d); color: var(--on-pino); margin-top: 36px; padding: 26px 0 30px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-padding-inline: var(--gut); }
.strip::-webkit-scrollbar { display: none; }
.esc { scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; }
.esc .esc-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); --c: var(--acento); }
.esc-name { font-weight: 800; font-size: 18px; margin-top: 4px; font-variation-settings: "wdth" 94; }
.esc-desc { font-family: var(--f-serif); font-size: 15px; color: rgb(243 247 244 / 0.75); line-height: 1.4; }

/* ---------- Publicidad ---------- */
.ad { position: relative; display: grid; place-items: center; margin: 0 0 22px; }
.ad img { border-radius: var(--r-sm); max-height: 420px; width: auto; }
.ad-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--granito); margin-bottom: 4px; }
.ad--feed { margin: 14px 0; }
.ad--nota { margin: 28px 0; }

/* ---------- Nota ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--acento-osc), var(--acento)); transform-origin: 0 50%; transform: scaleX(0); }
.art { background: var(--papel); padding: 8px 0 30px; margin-top: calc(-1 * var(--main-pt)); padding-top: 34px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--granito); margin-bottom: 14px; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--linea); }
.art-title { margin: 12px 0 12px; font-size: clamp(30px, 8.4vw, 52px); line-height: 1.03; font-weight: 850; letter-spacing: -0.02em; font-variation-settings: "wdth" 86; text-wrap: balance; }
.art-copete { margin: 0 0 16px; font-family: var(--f-serif); font-size: 21px; line-height: 1.38; color: color-mix(in srgb, var(--tinta) 80%, var(--papel)); }
.art-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--granito); padding-bottom: 18px; }
.art-meta b { color: var(--tinta); }
.wrap-media { margin: 0 auto; max-width: 960px; }
.art-media .art-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.art-media figcaption { padding: 8px var(--gut) 0; font-size: 13.5px; color: var(--granito); max-width: 720px; margin-inline: auto; }

.share { display: flex; gap: 8px; margin: 20px 0 6px; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; min-width: 42px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--linea); background: var(--papel); cursor: pointer; font-weight: 700; font-size: 14px;
  transition: transform 120ms var(--ease-out), background-color 150ms ease;
}
.share-btn svg { width: 19px; height: 19px; }
.share-btn:active { transform: scale(0.95); }
.share-btn--wa { background: #1FAF55; color: #fff; border-color: transparent; }
@media (hover: hover) and (pointer: fine) { .share-btn:hover { background: var(--niebla); } .share-btn--wa:hover, .btn--wa:hover { background: #18994A; } .btn:hover { background: var(--pino-2); } .btn--ghost:hover { background: var(--niebla); } .chip:hover:not([aria-pressed="true"]) { background: var(--niebla); } }
.share-btn[data-copied]::after { content: "Copiado"; font-size: 13px; }

.art-body { font-family: var(--f-serif); font-size: 19.5px; line-height: 1.62; overflow-wrap: anywhere; }
.art-body > * { margin: 0 0 1.05em; }
.art-body h2, .art-body h3 { font-family: var(--f-sans); line-height: 1.15; font-variation-settings: "wdth" 90; letter-spacing: -0.01em; margin-top: 1.6em; }
.art-body h2 { font-size: 26px; font-weight: 800; }
.art-body h3 { font-size: 21px; font-weight: 750; }
.art-body a { color: var(--pino-2); text-decoration: underline; text-decoration-color: var(--acento); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.art-body blockquote { margin-inline: 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--c, var(--acento-osc)); font-size: 23px; font-style: italic; line-height: 1.4; }
.art-body img { width: 100%; height: auto; border-radius: var(--r-sm); }
.art-body figcaption { font-family: var(--f-sans); font-size: 13.5px; color: var(--granito); margin-top: 6px; }
.art-body ul, .art-body ol { padding-left: 1.2em; }
.art-body li { margin-bottom: 0.4em; }
.art-body > p:first-child::first-letter { float: left; font-family: var(--f-sans); font-weight: 900; font-size: 3.6em; line-height: 0.82; padding: 6px 8px 0 0; color: var(--c, var(--pino)); font-variation-settings: "wdth" 80; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: #000; margin: 24px 0; }
.art-media .video { border-radius: 0; margin: 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.tip { display: flex; gap: 12px; align-items: flex-start; margin-top: 26px; padding: 16px; border-radius: var(--r); background: color-mix(in srgb, #1FAF55 10%, var(--papel)); border: 1px solid color-mix(in srgb, #1FAF55 30%, var(--papel)); font-size: 15px; line-height: 1.4; }
.tip svg { width: 26px; height: 26px; color: #1FAF55; }

/* ---------- Páginas ---------- */
.page-head { padding: 6px 0 18px; }
.page-head h1 { margin: 0; font-size: clamp(34px, 9vw, 56px); font-weight: 900; letter-spacing: -0.02em; line-height: 1; font-variation-settings: "wdth" 84; color: var(--c, var(--tinta)); }
.page-head p { margin: 6px 0 0; }
.lead--sec { grid-template-columns: 1fr; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 28px 0; }
.empty { text-align: center; padding: 50px 10px; color: var(--granito); }
.empty h1 { color: var(--tinta); font-size: 28px; line-height: 1.1; }

.search-big { display: flex; align-items: center; gap: 8px; margin-top: 14px; background: var(--papel); border: 2px solid var(--linea); border-radius: 999px; padding: 4px 4px 4px 16px; transition: border-color 150ms ease; }
.search-big:focus-within { border-color: var(--pino-2); }
.search-big > svg { width: 20px; height: 20px; color: var(--granito); }
.search-big input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 17px; color: inherit; padding: 10px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.chip { border: 1px solid var(--linea); background: var(--papel); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 650; cursor: pointer; transition: background-color 150ms ease, color 150ms ease, transform 120ms var(--ease-out); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--pino); color: var(--on-pino); border-color: var(--pino); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--pino); color: var(--on-pino); font-weight: 700; font-size: 15px;
  transition: transform 120ms var(--ease-out), background-color 150ms ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(0.97); }
.btn--ghost { background: transparent; color: var(--tinta); border: 1px solid var(--linea); }
.btn--wa { background: #1FAF55; color: #fff; }
.btn--sm { min-height: 38px; padding: 0 13px; font-size: 14px; }

/* ---------- Turismo ---------- */
.tur-hero { background: var(--grad-d); color: var(--on-pino); margin-top: calc(-1 * var(--main-pt)); padding: 40px 0 34px; }
.tur-eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--acento); }
.tur-title { margin: 0; font-size: clamp(38px, 11vw, 76px); line-height: 0.96; font-weight: 900; letter-spacing: -0.025em; font-variation-settings: "wdth" 80; }
.tur-lead { font-family: var(--f-serif); font-size: 19px; line-height: 1.45; max-width: 36ch; color: rgb(243 247 244 / 0.82); }
.tur-clima { margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tur-clima .muted { grid-column: 1 / -1; color: rgb(243 247 244 / 0.6); }
.dia { background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.1); border-radius: 12px; padding: 10px 8px; text-align: center; }
.dia-n { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: rgb(243 247 244 / 0.7); }
.dia-i { font-size: 24px; margin: 4px 0; }
.dia-t { font-weight: 700; font-variant-numeric: tabular-nums; }
.dia-t span { color: rgb(243 247 244 / 0.6); font-weight: 500; }
.place .card-title { font-size: 20px; }
.dir { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.dir-item { display: flex; gap: 14px; background: var(--papel); border-radius: var(--r); padding: 14px; }
.dir-item[hidden] { display: none; }
.dir-img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-sm); flex: none; }
.dir-body { min-width: 0; }
.dir-body h3 { margin: 2px 0 4px; font-size: 18px; font-variation-settings: "wdth" 94; }
.dir-body p { margin: 0 0 6px; font-size: 15px; }
.dir-rubro { font-size: 12px !important; text-transform: uppercase; letter-spacing: 0.08em; color: var(--granito); }
.dir-rubro b { color: var(--acento-osc); }
.dir-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dir-cta { margin-top: 16px; }
.dir-cta a { color: var(--pino-2); font-weight: 700; text-decoration: underline; }

/* ---------- Pie ---------- */
.foot { background: var(--grad-d); color: var(--on-pino); margin-top: 48px; padding: 34px 0 28px; }
.foot-in { display: grid; gap: 26px; }
.logo--foot { justify-self: start; }
.foot-lema { font-family: var(--f-serif); font-size: 17px; color: rgb(243 247 244 / 0.75); max-width: 30ch; }
.foot-secs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-weight: 600; font-size: 15px; }
.foot-contact { font-size: 14px; color: rgb(243 247 244 / 0.8); }
.social { display: flex; gap: 8px; margin: 12px 0; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / 0.1); }
.social svg { width: 20px; height: 20px; }
.foot-legal { font-size: 12.5px; color: rgb(243 247 244 / 0.55); }

/* ---------- Barra inferior (celular) ---------- */
.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--papel) 88%, transparent); backdrop-filter: blur(14px) saturate(1.4);
  border-top: 1px solid var(--linea);
}
.tabbar a, .tabbar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: none; border: 0; cursor: pointer; font-size: 11.5px; font-weight: 650; color: var(--granito);
  -webkit-tap-highlight-color: transparent; transition: transform 120ms var(--ease-out);
}
.tabbar svg { width: 24px; height: 24px; }
.tabbar [aria-current="page"] { color: var(--pino); }
.tabbar [aria-current="page"] svg { color: var(--pino); filter: drop-shadow(0 2px 0 var(--acento)); }
.tabbar a:active, .tabbar button:active { transform: scale(0.92); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabbar [aria-current="page"] { color: var(--acento); } :root:not([data-theme="light"]) .tabbar [aria-current="page"] svg { color: var(--acento); } }

/* ---------- Menú lateral ---------- */
.drawer {
  margin: 0; padding: 0 0 30px; border: 0; height: 100dvh; max-height: none; width: min(86vw, 360px);
  background: var(--papel); color: var(--tinta); overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(-100%); transition: transform 280ms var(--ease-drawer), overlay 280ms allow-discrete, display 280ms allow-discrete;
}
.drawer[open] { transform: none; }
@starting-style { .drawer[open] { transform: translateX(-100%); } }
.drawer::backdrop { background: rgb(5 15 11 / 0.5); opacity: 0; transition: opacity 280ms ease, overlay 280ms allow-discrete, display 280ms allow-discrete; }
.drawer[open]::backdrop { opacity: 1; }
@starting-style { .drawer[open]::backdrop { opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 18px; background: var(--grad); color: var(--on-pino); }
.logo--sm .logo-word { font-size: 22px; }
.drawer-search { display: flex; align-items: center; gap: 8px; margin: 16px; padding: 0 14px; border-radius: 12px; background: var(--niebla); }
.drawer-search svg { width: 18px; height: 18px; color: var(--granito); }
.drawer-search input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font: inherit; color: inherit; padding: 12px 0; font-size: 16px; }
.drawer-label { margin: 18px 18px 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--granito); }
.drawer-secs { list-style: none; margin: 0; padding: 0 8px; }
.drawer-secs a { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 10px; font-size: 17px; font-weight: 650; }
.drawer-secs i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
@media (hover: hover) and (pointer: fine) { .drawer-secs a:hover { background: var(--niebla); } }

/* ---------- Tablet y escritorio ---------- */
@media (min-width: 640px) {
  :root { --gut: 24px; }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .lead-side { grid-template-columns: 1fr 1fr; }
  .hero-media > img, .hero-media > .ph { aspect-ratio: 16 / 10; }
  .hero-body { padding: 26px; }
  .strip { grid-auto-columns: 40%; }
  .row-link { grid-template-columns: 1fr 180px; }
  .row-media > img, .row-media > .ph { aspect-ratio: 16 / 10; }
  .row-title { font-size: 20px; }
  .foot-in { grid-template-columns: 1.3fr 1fr 1fr; }
  .art-media figcaption { padding-inline: var(--gut); }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .top { top: -30px; }
  .mast { height: 72px; }
  .logo-word { font-size: 38px; }
  .logo-hoy { font-size: 14px; padding: 6px 8px 5px; }
  .secs-in { justify-content: center; mask-image: none; padding-bottom: 10px; }
  .ridge { height: 28px; }
  :root { --main-pt: 38px; }
  .lead { grid-template-columns: 1.65fr 1fr; align-items: stretch; }
  .lead-side { grid-template-columns: 1fr; }
  .lead .hero-link, .lead .hero-media { height: 100%; }
  .lead .hero-media > img, .lead .hero-media > .ph { height: 100%; aspect-ratio: auto; min-height: 520px; }
  .lead-side .card-copete { display: none; }
  .lead-side .card-media > img, .lead-side .card-media > .ph { aspect-ratio: 2 / 1; }
  .lead-side .card-title { font-size: 22px; }
  .hero-body { padding: 32px; }
  .lead--sec { grid-template-columns: 1fr; }
  .lead--sec .hero-media > img, .lead--sec .hero-media > .ph { min-height: 0; aspect-ratio: 21 / 9; }
  .cols { grid-template-columns: 1fr 340px; align-items: start; }
  .side { position: sticky; top: 130px; }
  .feed { padding: 20px 24px 6px; }
  .grid3 { grid-template-columns: repeat(3, 1fr); }
  .strip { grid-auto-columns: calc((100% - 36px) / 4); overflow: visible; }
  .art { padding-top: 46px; }
  .art-media .art-img { border-radius: var(--r); }
  .art-media .video { border-radius: var(--r); }
  .dir { grid-template-columns: 1fr 1fr; }
  .tur-hero { padding: 64px 0 56px; }
  .tur-clima { max-width: 560px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Logo subido ---------- */
.logo-img { display: block; height: 36px; width: auto; max-width: 70vw; object-fit: contain; }
.logo--foot .logo-img { height: 44px; }
.logo--sm .logo-img { height: 30px; }
@media (min-width: 960px) { .mast .logo-img { height: 50px; } }

/* ---------- Vista previa ---------- */
.preview-bar { position: sticky; top: 0; z-index: 70; background: #13465C; color: #E6F6FB; text-align: center; font-size: 14px; padding: 10px 16px; }
.preview-bar b { color: var(--acento); }

/* ---------- Etiquetas ---------- */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 26px 0 0; }
.tags a { display: inline-block; padding: 7px 12px; border-radius: 999px; background: var(--niebla); font-size: 14px; font-weight: 650; color: var(--pino-2); transition: background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .tags a:hover { background: color-mix(in srgb, var(--acento) 30%, var(--niebla)); } }

/* ---------- Farmacia de turno ---------- */
.box--farmacia { border: 2px solid color-mix(in srgb, var(--acento-osc) 35%, transparent); }
.farm-name { margin: 8px 0 2px; font-size: 21px; font-weight: 800; line-height: 1.15; font-variation-settings: "wdth" 92; }
.farm-dir { margin: 0; font-size: 15px; }
.box--farmacia .dir-actions { margin: 12px 0 6px; }
.small { font-size: 13px; }
.side-pair { display: grid; gap: 18px; }
@media (min-width: 640px) { .side-pair { grid-template-columns: 1fr 1fr; align-items: start; } }

.turnos { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.turno { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; background: var(--papel); border-radius: var(--r); padding: 12px 14px; }
.turno--hoy { outline: 2px solid var(--acento-osc); }
.turno-dia { font-weight: 800; font-variation-settings: "wdth" 92; }
.turno-dia small { display: block; font-weight: 500; color: var(--granito); }
.turno-farm { display: grid; gap: 2px; min-width: 0; }
.turno-farm .muted { font-size: 14px; }
