/*
Theme Name: Lienzo
Author: TLO CMS
Description: Tema de noticias mobile first (2026) para Teleovalle: barra de navegación inferior tipo app, hojas deslizables, Última hora, mosaico destacado, Lo más leído, carga progresiva, lectura en voz alta, accesibilidad, modo oscuro y transiciones entre páginas. Sin fuentes ni librerías externas; optimizado para Core Web Vitals y SEO.
Version: 3.7.0
Text Domain: lienzo
*/

/* ============================================================ Tokens */
:root {
  --brand: #01796f;
  --brand-700: #015a52;
  --brand-900: #013d38;
  --cream: #ffefcc;
  --brand-cream: #ffefcc;
  --live: #e3262c;

  --bg: #f5f5f1;
  --surface: #ebeae4;
  --card: #ffffff;
  --text: #101314;
  --muted: #5a5f63;
  --line: rgba(16, 19, 20, .09);
  --line-strong: rgba(16, 19, 20, .18);
  --accent: #01796f;
  --accent-soft: #dff0ec;
  --btn-bg: #01796f;
  --btn-text: #ffffff;
  --glass: rgba(255, 255, 255, .78);

  --chrome: #01796f;
  --chrome-2: #016a61;
  --chrome-text: #ffffff;
  --chrome-muted: #cfe6e2;
  --chrome-line: rgba(255, 255, 255, .18);

  --radius: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --gutter: 16px;
  --wrap: 1240px;
  --read: 680px;
  --header-h: 56px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);

  --font: "Segoe UI Variable Text", "SF Pro Text", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow-sm: 0 1px 2px rgba(16, 19, 20, .06);
  --shadow: 0 1px 2px rgba(16, 19, 20, .05), 0 10px 30px -10px rgba(16, 19, 20, .18);
  --shadow-lg: 0 24px 60px -20px rgba(16, 19, 20, .35);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0d0e; --surface: #151819; --card: #16191b; --text: #eef0f1; --muted: #9aa1a6;
  --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .16);
  --accent: #4fd1c1; --accent-soft: rgba(79, 209, 193, .13); --btn-bg: #ffefcc; --btn-text: #101314;
  --glass: rgba(22, 25, 27, .78); --chrome: #013d38; --chrome-2: #01332f;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d0e; --surface: #151819; --card: #16191b; --text: #eef0f1; --muted: #9aa1a6;
    --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .16);
    --accent: #4fd1c1; --accent-soft: rgba(79, 209, 193, .13); --btn-bg: #ffefcc; --btn-text: #101314;
    --glass: rgba(22, 25, 27, .78); --chrome: #013d38; --chrome-2: #01332f;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

/* Transiciones suaves entre páginas (navegadores compatibles) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

/* ============================================================ Base (móvil) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(var(--tabbar-h) + 24px + var(--safe-b));
}
img, video, iframe, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.022em; margin: 0; font-weight: 800; text-wrap: balance; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.icon { display: block; flex: none; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--card); padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); }
.only-desktop { display: none !important; }
kbd { font: 600 .75rem/1 var(--font); padding: 3px 6px; border: 1px solid var(--line-strong); border-radius: 6px; }

/* ============================================================ Barra superior (solo escritorio) */
.topbar { display: none; }

/* ============================================================ Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--chrome) 94%, transparent);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  color: var(--chrome-text); transition: transform .3s var(--ease);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; flex: none; }
.site-logo { display: block; height: 26px; width: auto; max-width: none; }
.primary-nav { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .14); display: grid; place-items: center; cursor: pointer; color: var(--chrome-text); transition: background .2s; }
.icon-btn:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.icon-btn-soft { background: var(--surface); color: var(--text); }
.icon-btn-soft:hover { background: var(--line-strong); color: var(--text); }
[data-theme-toggle] .sun, [data-theme-toggle] .moon { display: inline-flex; align-items: center; gap: 6px; }
[data-theme-toggle] .moon { display: none; }
:root[data-theme="dark"] [data-theme-toggle] .sun { display: none; }
:root[data-theme="dark"] [data-theme-toggle] .moon { display: inline-flex; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--live); color: #fff; font: 800 .75rem/1 var(--font-display); letter-spacing: .06em; }
.live-pill:hover { color: #fff; filter: brightness(1.08); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.8); } 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

/* ============================================================ Barra de pestañas inferior (app) */
.tabbar {
  position: fixed; z-index: 60; left: 10px; right: 10px; bottom: calc(10px + var(--safe-b));
  height: var(--tabbar-h); display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--glass); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg);
}
.tabbar a, .tabbar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; background: none; cursor: pointer; color: var(--muted); font: 600 .6875rem/1 var(--font); min-height: 48px;
}
.tabbar .is-active, .tabbar [aria-expanded="true"] { color: var(--accent); }
.tabbar .icon { transition: transform .2s var(--ease); }
.tabbar .is-active .icon, .tabbar [aria-expanded="true"] .icon { transform: translateY(-1px) scale(1.06); }

/* ============================================================ Hojas deslizables (bottom sheets) */
.sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(8, 10, 11, .45); backdrop-filter: blur(2px); opacity: 0; transition: opacity .25s; }
.sheet-backdrop.is-open { opacity: 1; }
.sheet, .a11y-panel {
  position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; max-height: 88dvh; overflow: auto; overscroll-behavior: contain;
  background: var(--card); color: var(--text); border-radius: 28px 28px 0 0; box-shadow: var(--shadow-lg);
  padding: 8px 20px calc(24px + var(--safe-b)); transform: translateY(100%); transition: transform .32s var(--ease);
}
.sheet.is-open, .a11y-panel.is-open { transform: none; }
.sheet[hidden], .a11y-panel[hidden] { display: none; }
.sheet-grabber { width: 44px; height: 5px; border-radius: 99px; background: var(--line-strong); margin: 6px auto 10px; cursor: grab; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet-head strong { font: 800 1.25rem/1 var(--font-display); letter-spacing: -.02em; }
.sheet-body { display: flex; flex-direction: column; }
.sheet-block { padding: 16px 0; border-top: 1px solid var(--line); }
.sheet-block h2 { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 12px; font-family: var(--font); }
.sheet-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet-chips .chip span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.sheet-menu, .sheet .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sheet-menu a, .sheet .menu a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 14px; font: 700 1.125rem/1.2 var(--font-display); letter-spacing: -.01em; }
.sheet-menu a:hover, .sheet .menu a:hover, .sheet-menu [aria-current] { background: var(--surface); color: var(--text); }
.sheet-menu .sub-menu, .sheet .menu .children { list-style: none; padding-left: 14px; margin: 0; }
.sheet-menu .sub-menu a { font-size: 1rem; font-weight: 600; min-height: 42px; }
.sheet-phones { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sheet-phones a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: 14px; background: var(--surface); }
.sheet-phones strong { font-variant-numeric: tabular-nums; }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
body.sheet-open { overflow: hidden; }

/* ============================================================ Búsqueda */
.search-overlay { position: fixed; inset: 0; z-index: 95; background: rgba(8, 10, 11, .55); backdrop-filter: blur(6px); display: none; align-items: flex-start; justify-content: center; padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 12px; }
.search-overlay.open { display: flex; }
.search-panel { width: min(680px, 100%); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; min-width: 0; }
.search-field, .field { width: 100%; height: 52px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); color: var(--text); font: 500 1.0625rem var(--font); }
.search-field:focus, .field:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.search-hint { margin: 10px 6px 2px; font-size: .8125rem; color: var(--muted); display: none; }
.search-inline { margin-top: 18px; max-width: 560px; }

/* ============================================================ Botones, píldoras, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--btn-bg); color: var(--btn-text); font: 700 1rem/1 var(--font); cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease), filter .2s; }
.btn:hover { color: var(--btn-text); filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn-ghost { background: var(--surface); color: var(--text); }
.btn-ghost:hover { color: var(--text); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .9375rem; }
.btn-block { display: flex; width: 100%; }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 700 .75rem/1 var(--font); letter-spacing: .02em; }
.pill-cream { background: var(--cream); color: #1b1b1b; }
.pill:hover { filter: brightness(.97); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); font-size: .9375rem; font-weight: 600; color: var(--text); }
.chip:hover { border-color: var(--text); color: var(--text); }
.chip.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }

/* ============================================================ Última hora */
.ticker { background: var(--card); border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker-inner { display: flex; align-items: center; gap: 12px; height: 46px; }
.ticker-label { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--live); color: #fff; font: 800 .6875rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.ticker-viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-track a { display: inline-flex; gap: 10px; align-items: baseline; font-size: .9375rem; font-weight: 600; white-space: nowrap; }
.ticker-track time { color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============================================================ Tarjetas */
.meta, .kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .8125rem; color: var(--muted); }
.meta .dot, .kicker .dot { opacity: .5; }
.meta .icon { opacity: .75; }
.kicker-cat { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .6875rem; }
.kicker-cat + time::before { content: "·"; margin-right: 6px; opacity: .5; }
.views { font-variant-numeric: tabular-nums; }
.thumb { display: block; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface); }
.thumb img, .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.thumb-fallback { width: 100%; height: 100%; min-height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-900)); }
.thumb-fallback span { font: 900 3rem/1 var(--font-display); color: var(--cream); }
.card { position: relative; }
.card h2 a::after, .card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card a.pill, .card .kicker-cat { position: relative; z-index: 2; }
.card:hover .thumb img, .card:hover .media img { transform: scale(1.04); }

/* Principal: foto a sangre con titular encima */
.card-hero { margin: 0 calc(var(--gutter) * -1); min-height: 78svh; display: grid; align-items: end; overflow: hidden; background: #111; color: #fff; isolation: isolate; }
.card-hero .media { position: absolute; inset: 0; z-index: -1; }
.card-hero .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.88) 100%); }
.card-hero .overlay { padding: 24px var(--gutter) 28px; display: grid; gap: 12px; justify-items: start; }
.card-hero h2 { font-size: clamp(1.75rem, 7.5vw, 3.25rem); line-height: 1.05; letter-spacing: -.03em; }
.card-hero h2 a:hover { color: #fff; }
.card-hero .excerpt { margin: 0; color: rgba(255,255,255,.86); font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-hero .meta { color: rgba(255,255,255,.8); }

/* Mosaico / carrusel */
.card-tile { display: grid; gap: 10px; align-content: start; }
.card-tile .thumb { aspect-ratio: 16 / 10; }
.card-tile h3 { font-size: 1.0625rem; line-height: 1.25; letter-spacing: -.012em; font-weight: 750; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Lista estilo app */
.card-list { display: grid; grid-template-columns: 1fr 104px; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.card-list .body { display: grid; gap: 6px; align-content: start; min-width: 0; }
.card-list h3 { font-size: 1.0625rem; line-height: 1.25; font-weight: 750; letter-spacing: -.012em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-list .excerpt { display: none; margin: 0; color: var(--muted); font-size: .9375rem; }
.card-list .thumb { aspect-ratio: 1; border-radius: 14px; align-self: start; }

/* Ranking */
.card-rank { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 14px 0; }
.rank-num { font: 900 2.25rem/1 var(--font-display); color: transparent; -webkit-text-stroke: 1.5px var(--accent); letter-spacing: -.04em; }
.card-rank h3 { font-size: 1rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px; }

/* ============================================================ Portada */
.bento { display: grid; gap: 20px; margin-bottom: 8px; }
.bento > .card-tile { display: none; }
.home-columns { display: grid; gap: 32px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 4px; }
.section-head h2 { display: inline-flex; align-items: center; gap: 8px; font-size: 1.375rem; letter-spacing: -.02em; }
.section-head h2::before { content: ""; width: 4px; height: 1.1em; border-radius: 4px; background: var(--accent); }
.section-head h2 .icon { color: var(--live); }
.most-read .section-head h2::before { background: var(--live); }
.section-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9375rem; color: var(--accent); }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li + li .card-rank { border-top: 1px solid var(--line); }
.home-columns > .most-read { order: -1; }
.most-read { background: var(--card); border-radius: var(--radius); padding: 4px 18px 8px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); align-self: start; }
.most-read .section-head { margin-top: 16px; }

/* Cargar más y paginación */
.load-more { margin: 24px 0 8px; }
.load-more[aria-busy="true"] { opacity: .7; pointer-events: none; }
.pagination { margin: 20px 0 8px; }
.pagination .nav-links { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-numbers { min-width: 44px; height: 44px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 999px; font-weight: 600; color: var(--text); }
.page-numbers:hover { background: var(--surface); color: var(--text); }
.page-numbers.current { background: var(--text); color: var(--bg); }
.js-load-more .pagination { display: none; }

/* ============================================================ Cabeceras de página */
.page-hero { padding: 28px 0 8px; }
.eyebrow { display: inline-block; font-size: .75rem; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.page-hero h1 { font-size: clamp(2rem, 8vw, 3.5rem); letter-spacing: -.035em; }
.page-hero h1 small { font-size: .5em; color: var(--muted); font-weight: 600; }
.page-hero .lead { margin: 12px 0 0; max-width: 640px; font-size: 1.125rem; color: var(--muted); }
.count { margin: 10px 0 0; font-size: .875rem; color: var(--muted); font-weight: 600; }
.bento-single { margin-top: 12px; }

/* ============================================================ Artículo */
.breadcrumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: nowrap; overflow: hidden; gap: 6px; font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.breadcrumbs li:last-child { overflow: hidden; text-overflow: ellipsis; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.breadcrumbs a:hover { color: var(--accent); }
.article-head { padding: 22px 0 18px; }
.article-head .kicker { gap: 10px; margin-bottom: 14px; font-weight: 600; }
.article-head h1 { font-size: clamp(1.875rem, 7.4vw, 3.5rem); line-height: 1.08; letter-spacing: -.032em; max-width: 900px; }
.article-head .lead { font-size: 1.1875rem; line-height: 1.5; color: var(--muted); margin: 14px 0 0; max-width: 760px; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: .875rem; }
.byline img { border-radius: 50%; }
.byline strong { display: block; font-weight: 700; }
.byline .meta { margin-top: 2px; }
.article-media { margin: 0 0 4px; }
.article-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.article-media figcaption { font-size: .8125rem; color: var(--muted); padding: 8px 0 0; }

.action-bar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 14px var(--gutter); margin: 0 calc(var(--gutter) * -1); border-bottom: 1px solid var(--line); }
.action-bar::-webkit-scrollbar { display: none; }
.action { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--text); font-size: .9375rem; font-weight: 600; cursor: pointer; }
.action:hover { border-color: var(--accent); color: var(--accent); }
.action[aria-pressed="true"] { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }
.action .stop { display: none; }
.action[aria-pressed="true"] .play { display: none; }
.action[aria-pressed="true"] .stop { display: inline-flex; }
.action-wa { color: #128c4a; }

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 8px; }
.toc { display: none; }
.article-body { min-width: 0; max-width: var(--read); }

/* Tipografía de lectura */
.prose { font-size: 1.125rem; line-height: 1.72; }
.prose > * { margin: 0 0 1.15em; }
.prose > p:first-child { font-size: 1.1875rem; }
.prose h2 { font-size: 1.5rem; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.25rem; margin: 1.4em 0 .4em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.6em 0; padding: 18px 20px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 16px 16px 0; font: 600 1.25rem/1.45 var(--font-display); letter-spacing: -.01em; }
.prose blockquote p { margin: 0; }
.prose figure { margin: 1.6em 0; }
.prose img { border-radius: var(--radius-sm); }
.prose figcaption, .prose .wp-caption-text { font-size: .875rem; color: var(--muted); margin-top: 8px; }
.prose pre { background: var(--surface); border-radius: var(--radius-sm); padding: 16px; overflow: auto; font-size: .9rem; }
.prose code { background: var(--surface); padding: 2px 6px; border-radius: 6px; font-size: .88em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose .alignleft, .prose .alignright { float: none; margin: 1em 0; }
.prose .aligncenter { margin-inline: auto; }
.prose .fuente { font-size: .9375rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.prose .button, .prose .wp-block-button__link { display: inline-flex; min-height: 48px; align-items: center; padding: 0 22px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-text); text-decoration: none; font-weight: 700; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

.share { margin-top: 32px; padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.share-label { display: block; font: 800 1rem/1.2 var(--font-display); margin-bottom: 12px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-row a, .share-row button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 48px; height: 48px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 0; cursor: pointer; color: var(--text); font-weight: 600; }
.share-row a:hover, .share-row button:hover { background: var(--accent); color: #fff; }
.author-card { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); margin: 16px 0 8px; }
.author-card img { border-radius: 50%; flex: none; }
.author-card .label { font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.author-card h2 { font-size: 1.125rem; margin: 2px 0 6px; }
.author-card p { margin: 0; color: var(--muted); font-size: .9375rem; }
.edit-link { font-size: .875rem; }

/* Carrusel "Sigue leyendo" */
.band { background: var(--surface); padding: 8px 0 28px; margin-top: 40px; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin: 12px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter) 12px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; background: var(--card); border-radius: var(--radius-md); padding: 8px 8px 14px; border: 1px solid var(--line); }
.scroller .card-tile .body { padding: 0 6px; display: grid; gap: 6px; }

/* ============================================================ Comentarios */
.comments { max-width: var(--read); margin: 32px 0 16px; }
.comments h2 { font-size: 1.375rem; margin-bottom: 16px; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 20px; border-left: 2px solid var(--line); }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-meta { display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; flex-wrap: wrap; }
.comment-author { display: flex; align-items: center; gap: 10px; }
.comment-author img { border-radius: 50%; }
.comment-metadata a { color: var(--muted); }
.comment-reply-link { font-size: .875rem; font-weight: 700; color: var(--accent); }
.comment-respond { margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.comment-reply-title { font-size: 1.25rem; margin-bottom: 6px; }
.comment-form p { margin: 0 0 14px; }
.comment-form label { display: block; font-size: .875rem; font-weight: 700; margin-bottom: 6px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--bg); color: var(--text); font: inherit; }
.comment-form button { min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--btn-bg); color: var(--btn-text); font-weight: 700; cursor: pointer; width: 100%; }
.comment-notes { font-size: .875rem; color: var(--muted); }
.notice-soft { padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); }

/* ============================================================ Boletín */
.newsletter { padding: 40px 0; background: var(--card); border-top: 1px solid var(--line); margin-top: 40px; }
.newsletter .wrap { display: grid; gap: 20px; }
.newsletter h2 { font-size: 1.625rem; }
.newsletter p { color: var(--muted); margin: 8px 0 0; }
.newsletter label { display: block; font-size: .875rem; font-weight: 700; margin-bottom: 8px; }
.newsletter .row { display: grid; gap: 10px; }
.newsletter small { display: block; margin-top: 10px; color: var(--muted); font-size: .8125rem; }

/* ============================================================ Pie */
.site-footer { background: var(--chrome); color: var(--chrome-text); padding: 36px 0 0; margin-top: 40px; font-size: .9375rem; }
.newsletter + .site-footer { margin-top: 0; }
.site-footer a:hover { color: var(--cream); }
.footer-grid { display: grid; gap: 28px; padding-bottom: 28px; }
.footer-brand .site-logo { height: 34px; }
.footer-brand p { color: var(--chrome-muted); margin: 14px 0 18px; max-width: 360px; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { width: 44px; height: 44px; border-radius: 999px; border: 1px solid currentColor; display: grid; place-items: center; opacity: .9; }
.site-footer .socials a { color: #fff; border-color: rgba(255, 255, 255, .35); }
.site-footer .socials a:hover { border-color: var(--cream); color: var(--cream); }
.footer-col h2 { font: 800 .75rem/1 var(--font); text-transform: uppercase; letter-spacing: .12em; color: var(--cream); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-col a { display: inline-flex; min-height: 36px; align-items: center; color: var(--chrome-muted); }
.footer-bottom { border-top: 1px solid var(--chrome-line); padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8125rem; color: var(--chrome-muted); }
.footer-bottom ul { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }

/* ============================================================ Estados vacíos y 404 */
.empty { text-align: center; padding: 56px 0 72px; }
.empty .code { font: 900 6rem/1 var(--font-display); letter-spacing: -.05em; color: var(--accent); opacity: .25; }
.empty h1 { font-size: 2rem; margin: 10px 0; }
.empty p { color: var(--muted); font-size: 1.0625rem; }
.empty .search-form { max-width: 520px; margin: 24px auto 0; }

/* Volver arriba: solo escritorio (en móvil está la barra inferior) */
.to-top { display: none; }

/* ============================================================ Tablet (≥ 640px) */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .card-list { grid-template-columns: 1fr 180px; gap: 20px; padding: 20px 0; }
  .card-list .thumb { aspect-ratio: 4 / 3; }
  .card-list .excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card-list h3 { font-size: 1.25rem; }
  .card-hero { margin: 20px 0 0; min-height: 520px; border-radius: var(--radius); }
  .card-hero .overlay { padding: 32px; }
  .bento > .card-tile { display: grid; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento > .card-hero { grid-column: 1 / -1; }
  .scroller { grid-auto-columns: 42%; }
  .newsletter .row { grid-template-columns: 1fr auto; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .article-media { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
  .article-media img { border-radius: var(--radius); aspect-ratio: 16 / 9; }
  .action-bar { margin: 0; padding-inline: 0; }
  .comment-form button { width: auto; }
  .search-hint { display: block; }
}

/* ============================================================ Escritorio (≥ 1024px) */
@media (min-width: 1024px) {
  :root { --header-h: 68px; }
  body { padding-bottom: 0; }
  .only-desktop { display: grid !important; }
  .tabbar { display: none; }
  .topbar { display: block; background: var(--brand-900); color: #fff; font-size: .8125rem; position: relative; z-index: 55; }
  .topbar .wrap { display: flex; align-items: center; gap: 20px; min-height: 38px; }
  .topbar a { color: #fff; }
  .topbar a:hover { color: var(--cream); }
  .topbar-date { margin-left: auto; color: var(--chrome-muted); }
  .site-logo { height: 32px; }
  .site-header .wrap { gap: 32px; }
  .primary-nav { display: block; }
  .primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
  .primary-nav li { position: relative; }
  .primary-nav a { display: block; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .9375rem; color: var(--chrome-text); }
  .primary-nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
  .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a, .primary-nav [aria-current] { background: rgba(0, 0, 0, .2); color: var(--cream); }
  .primary-nav .sub-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: var(--shadow-lg); flex-direction: column; }
  .primary-nav .sub-menu a { color: var(--text); border-radius: 10px; }
  .primary-nav .sub-menu a:hover { background: var(--surface); color: var(--text); }
  .primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: flex; }

  /* Panel de lectura flotante junto a la cabecera */
  .a11y-panel { left: auto; right: max(20px, calc((100vw - var(--wrap)) / 2)); bottom: auto; top: calc(var(--header-h) + 50px); width: 380px; border-radius: var(--radius); padding: 18px 20px; transform: none; opacity: 0; transition: opacity .2s; }
  .a11y-panel.is-open { opacity: 1; }
  .a11y-panel .sheet-grabber { display: none; }

  /* Portada: mosaico 1 grande + 4 */
  .bento { grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: auto auto; gap: 24px; margin-top: 24px; }
  .bento > .card-hero { grid-column: 1; grid-row: 1 / span 2; min-height: 600px; margin-top: 0; }
  .bento-single { grid-template-columns: 1fr; }
  .bento-single > .card-hero { grid-row: auto; grid-column: 1 / -1; min-height: 480px; }
  .card-hero .overlay { padding: 40px; }
  .card-hero h2 { font-size: clamp(2rem, 3.2vw, 3.25rem); }
  .home-columns { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
  .home-columns > .most-read { order: 0; }
  .most-read { position: sticky; top: calc(var(--header-h) + 20px); margin-top: 28px; }
  .feed-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }

  /* Artículo con índice lateral */
  .article-head { padding: 40px 0 24px; }
  .article-head h1 { font-size: clamp(2.5rem, 4vw, 3.75rem); }
  .article-grid { grid-template-columns: 220px minmax(0, var(--read)); gap: 64px; justify-content: center; padding-top: 16px; }
  .article-grid.no-toc { grid-template-columns: minmax(0, var(--read)); }
  .toc { display: block; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: .875rem; }
  .toc h2 { font: 800 .6875rem/1 var(--font); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
  .toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
  .toc a { display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.35; }
  .toc a:hover { color: var(--text); }
  .toc a.is-active { color: var(--text); border-color: var(--accent); font-weight: 600; }
  .action-bar { max-width: calc(220px + 64px + var(--read)); margin-inline: auto; }
  .prose { font-size: 1.1875rem; }
  .scroller { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin: 12px 0 0; padding: 0; }
  .band { padding-bottom: 48px; }
  .newsletter .wrap { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
  .site-footer { padding-top: 56px; }
  .to-top { display: grid; position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 48px; height: 48px; border-radius: 999px; border: 0; background: var(--btn-bg); color: var(--btn-text); place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s, transform .2s; }
  .to-top.show { opacity: 1; pointer-events: auto; transform: none; }
  .page-hero { padding: 48px 0 12px; }
}

/* Barra superior: teléfonos y redes */
.topbar-ico { color: #f2c230; display: inline-flex; }
.topbar-phone, .topbar-phones summary { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.topbar-phones { position: relative; }
.topbar-phones summary { cursor: pointer; list-style: none; padding: 4px 0; }
.topbar-phones summary::-webkit-details-marker { display: none; }
.topbar-phones[open] summary .icon:last-child { transform: rotate(180deg); }
.topbar-phones ul { position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px; list-style: none; margin: 0; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 70; }
.topbar-phones li a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 10px; color: var(--text) !important; }
.topbar-phones li a:hover { background: var(--surface); }
.topbar-socials { display: flex; align-items: center; gap: 14px; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .3); }

/* ============================================================ Barra de progreso de lectura (CSS scroll-driven) */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--cream); z-index: 70; transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .reading-progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* ============================================================ Accesibilidad */
html[data-fs="-1"] { font-size: 93.75%; }
html[data-fs="1"] { font-size: 112.5%; }
html[data-fs="2"] { font-size: 125%; }
html[data-fs="3"] { font-size: 140%; }
html[data-contrast="high"] {
  --bg: #ffffff; --surface: #ffffff; --card: #ffffff; --text: #000000; --muted: #1f1f1f; --line: #000000; --line-strong: #000000;
  --accent: #00463f; --accent-soft: #ffffff; --btn-bg: #000000; --btn-text: #ffffff; --chrome: #003d37; --chrome-muted: #ffffff; --glass: #ffffff;
}
html[data-contrast="high"][data-theme="dark"] { --bg: #000; --surface: #000; --card: #000; --text: #fff; --muted: #f0f0f0; --line: #fff; --line-strong: #fff; --accent: #ffe600; --btn-bg: #ffe600; --btn-text: #000; --glass: #000; }
html[data-contrast="high"] a:not(.btn):not(.chip):not(.brand):not(.pill) { text-decoration: underline; }
html[data-contrast="high"] .card-hero .media::after { background: rgba(0, 0, 0, .78); }
html[data-font="legible"] body { --font: "Atkinson Hyperlegible", Verdana, Tahoma, "Segoe UI", sans-serif; --font-display: "Atkinson Hyperlegible", Verdana, Tahoma, sans-serif; }
html[data-spacing="wide"] body { letter-spacing: .04em; word-spacing: .12em; }
html[data-spacing="wide"] .prose { line-height: 2; }
html[data-links="underline"] a:not(.btn):not(.chip):not(.brand):not(.icon-btn):not(.pill) { text-decoration: underline; text-underline-offset: 3px; }
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-motion="reduce"] .ticker-viewport { overflow-x: auto; }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-viewport { overflow-x: auto; }
  .card:hover .thumb img, .card:hover .media img { transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

.a11y-panel h2 { font-size: 1.125rem; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.a11y-panel h2 button { border: 0; background: var(--surface); border-radius: 999px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; color: var(--text); }
.a11y-group { margin-bottom: 16px; }
.a11y-group > span { display: block; font-size: .75rem; font-weight: 800; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; }
.a11y-sizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.a11y-sizes button, .a11y-toggle { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); border-radius: 14px; cursor: pointer; font: inherit; }
.a11y-sizes button { height: 48px; font-weight: 800; }
.a11y-sizes button:nth-child(1) { font-size: .8125rem; } .a11y-sizes button:nth-child(2) { font-size: .9375rem; }
.a11y-sizes button:nth-child(3) { font-size: 1.0625rem; } .a11y-sizes button:nth-child(4) { font-size: 1.1875rem; } .a11y-sizes button:nth-child(5) { font-size: 1.3125rem; }
.a11y-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-toggle { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; text-align: left; font-size: .875rem; font-weight: 700; min-height: 68px; }
.a11y-toggle small { font-weight: 400; color: var(--muted); font-size: .75rem; }
.a11y-sizes button[aria-pressed="true"], .a11y-toggle[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.a11y-toggle[aria-pressed="true"] small { color: inherit; opacity: .85; }
.a11y-reset { width: 100%; min-height: 48px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; color: var(--text); cursor: pointer; font: inherit; font-weight: 700; }
.a11y-note { font-size: .75rem; color: var(--muted); margin: 10px 0 0; }
.prose .reading-now { background: var(--accent-soft); outline: 6px solid var(--accent-soft); border-radius: 4px; }

@media print {
  .topbar, .site-header, .tabbar, .sheet, .a11y-panel, .site-footer, .toc, .share, .action-bar, .newsletter, .band, .comments, .reading-progress, .to-top { display: none !important; }
  body { padding: 0; }
  .article-grid { display: block; }
}

/* Avatar con inicial (sin servicios externos) */
.avatar-initial { flex: none; width: var(--s, 44px); height: var(--s, 44px); border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-900)); color: var(--cream); font: 800 calc(var(--s, 44px) * .42)/1 var(--font-display); }

/* ============================================================ Publicidad: columna de banners verticales */
.ad-rail { display: grid; justify-items: center; gap: 24px; margin: 32px 0 8px; }
.ad-slot { width: 100%; max-width: 300px; display: grid; justify-items: center; gap: 6px; }
.ad-slot + .ad-slot { display: none; } /* en el móvil solo el primer banner, al final del texto */
.ad-label { font: 700 .625rem/1 var(--font); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.ad-slot a, .ad-slot img { display: block; }
.ad-slot img { width: auto; max-width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); }
.ad-slot a:hover img { transform: translateY(-2px); transition: transform .2s var(--ease); }
.ad-code { width: 100%; display: grid; justify-items: center; }

@media (min-width: 1024px) {
  .article-grid.has-ads { grid-template-columns: minmax(0, var(--read)) 300px; gap: 48px; }
  .article-grid.has-ads .toc { display: none; }
  .ad-rail { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; margin: 0; }
  .ad-slot + .ad-slot { display: grid; }
}
@media (min-width: 1280px) {
  .article-grid.has-ads:not(.no-toc) { grid-template-columns: 180px minmax(0, var(--read)) 300px; gap: 36px; }
  .article-grid.has-ads:not(.no-toc) .toc { display: block; }
}
@media print { .ad-rail { display: none !important; } }

/* ============================================================ Comentarios con Facebook */
.comment-fb-gate { text-align: center; }
.comment-fb-gate .comment-notes { max-width: 460px; margin: 6px auto 16px; }
.fb-login { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: #1877f2; color: #fff; font: 700 1rem/1 var(--font); box-shadow: 0 6px 18px -6px rgba(24, 119, 242, .6); transition: filter .2s, transform .15s var(--ease); }
.fb-login:hover { color: #fff; filter: brightness(1.07); }
.fb-login:active { transform: scale(.98); }
.comment-privacy { margin: 14px 0 0; font-size: .8125rem; }
.comment-privacy a { color: var(--muted); text-decoration: underline; }
.fb-error { color: #b42318; background: #fef3f2; border-radius: 12px; padding: 10px 14px; font-size: .9375rem; }
.comment-as { font-size: .9375rem; color: var(--muted); margin: 0 0 12px; }
.comment-as strong { color: var(--text); }
.fb-badge { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #1877f2; color: #fff; font: 800 .6875rem/1 Arial, sans-serif; vertical-align: 1px; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.comment-author .avatar-initial { --s: 40px; }

/* Videos importados de Instagram (Reels): formato vertical, sin recortes */
.prose .ig-video { margin: 0 0 1.4em; display: grid; justify-items: center; }
.prose .ig-video video { width: 100%; max-width: 420px; max-height: 80vh; border-radius: var(--radius); background: #000; box-shadow: var(--shadow); }

/* ============================================================ Portada 2.4 (mobile first) */
/* Hoy: fecha + título + tiempo en Ovalle */
.today { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 14px; }
.today-date { margin: 0 0 2px; font-size: .8125rem; font-weight: 700; color: var(--accent); }
.today-title { font-size: clamp(1.25rem, 5.4vw, 2rem); letter-spacing: -.03em; line-height: 1.1; }
.weather { flex: none; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 8px 14px 8px 10px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.weather-icon { grid-row: 1 / span 2; color: #e9a400; }
.weather-temp { font: 800 1.5rem/1 var(--font-display); letter-spacing: -.03em; }
.weather-detail { display: none; }
.weather-detail strong { display: block; font-size: .875rem; }
.weather-detail small { color: var(--muted); font-size: .75rem; white-space: nowrap; }
:root[data-theme="dark"] .weather-icon { color: var(--cream); }

/* Destacadas: principal + carrusel de 4 */
.bento { display: grid; gap: 14px; margin: 0 0 8px; grid-template-columns: minmax(0, 1fr); }
.bento > .card-hero { min-height: 64svh; grid-column: auto; grid-row: auto; margin-top: 0; }
.bento-side { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
.bento-side::-webkit-scrollbar { display: none; }
.bento-side > .card-tile { display: grid; scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 8px 8px 14px; }
.bento-side .card-tile .body { padding: 0 6px; display: grid; gap: 6px; }

/* Videos (formato vertical tipo reel) */
.videos .scroller-videos { grid-auto-columns: 46%; }
.videos .scroller-videos > * { padding: 0; border: 0; background: none; }
.card-video { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius-md); overflow: hidden; background: #111; color: #fff; isolation: isolate; }
.card-video .media { position: absolute; inset: 0; z-index: -1; }
.card-video .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.85)); }
.card-video .overlay { position: absolute; inset: auto 0 0; padding: 12px; display: grid; gap: 4px; }
.card-video h3 { font-size: .9375rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-video h3 a:hover { color: #fff; }
.card-video .meta { color: rgba(255,255,255,.8); }
.play-badge { position: absolute; top: 10px; left: 10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); color: #fff; z-index: 2; }

/* Lista agrupada por día */
.section-head .updated { font-size: .75rem; color: var(--muted); font-weight: 600; }
.day-sep { display: flex; align-items: center; gap: 12px; margin: 22px 0 2px; font: 800 .75rem/1 var(--font); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.day-sep::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.day-sep + .card-list { padding-top: 10px; }

/* Publicidad intercalada en el móvil */
.feed-ad { display: grid; justify-items: center; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.feed-ad img { max-width: min(300px, 100%); height: auto; border-radius: 16px; box-shadow: var(--shadow); }

/* Columna lateral */
.home-aside { display: contents; } /* móvil: sus bloques se ordenan junto a la lista */
.home-aside > .most-read { order: -1; }
.home-aside > .follow-card { order: 2; }

.most-read { position: static; margin-top: 0; }
.only-desktop-block { display: none; }
.follow-card { border-radius: var(--radius); padding: 20px; background: linear-gradient(135deg, var(--brand), var(--brand-900)); color: #fff; }
.follow-card h2 { font-size: 1.25rem; }
.follow-card p { margin: 6px 0 14px; color: var(--chrome-muted); font-size: .9375rem; }
.follow-links { display: grid; gap: 8px; }
.follow-links a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: 14px; background: rgba(255,255,255,.12); color: #fff; }
.follow-links a:hover { background: rgba(255,255,255,.2); color: #fff; }
.follow-links strong { display: block; font-size: .9375rem; }
.follow-links small { display: block; font-size: .75rem; opacity: .8; }
.follow-instagram .icon { color: #ffd1e6; }
.credits { font-size: .75rem; color: var(--muted); margin: 18px 0 0; }
.credits a { text-decoration: underline; }

@media (min-width: 420px) {
  .weather-detail { display: block; grid-row: 1 / span 2; grid-column: 3; }
  .weather { grid-template-columns: auto auto auto; }
}
@media (min-width: 640px) {
  .today { padding: 22px 0 18px; }
  .bento > .card-hero { min-height: 480px; margin-top: 0; }
  .bento-side { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; gap: 16px; }
  .bento-side > .card-tile { padding: 0; border: 0; background: none; }
  .bento-side .card-tile .body { padding: 0; }
  .videos .scroller-videos { grid-auto-columns: 30%; }
}
@media (min-width: 1024px) {
  .today { padding: 28px 0 20px; }
  .today-title { font-size: 2.25rem; }
  .bento { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: auto; gap: 24px; margin-top: 24px; }
  .bento > .card-hero { grid-row: auto; min-height: 560px; }
  .bento-side { grid-template-columns: 1fr 1fr; align-content: space-between; gap: 20px 20px; }
  .videos .scroller-videos { grid-template-columns: repeat(6, 1fr); grid-auto-flow: row; overflow: visible; margin: 12px 0 0; padding: 0; }
  .home-aside { display: grid; gap: 24px; align-content: start; }
  .home-aside > .most-read, .home-aside > .follow-card { order: 0; }
  .home-aside { align-self: stretch; margin-top: 28px; }
  .only-desktop-block { display: block; }
  .aside-sticky { position: sticky; top: calc(var(--header-h) + 20px); }
  .aside-sticky .ad-rail { position: static; }
  .feed-ad { display: none; }
}
.home .topbar-date { visibility: hidden; } /* en la portada la fecha ya está en el bloque "Hoy" */

/* ============================================================ "Hoy": cielo animado según el clima real de Ovalle */
.today.has-sky {
  --sky: linear-gradient(180deg, #2f86d6 0%, #6db6ef 55%, #b9e0fb 100%);
  --px: 0; --py: 0;
  position: relative; isolation: isolate; overflow: hidden; container-type: inline-size;
  margin: 12px 0 14px; padding: 18px; min-height: 156px; border-radius: 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px 12px;
  color: #fff; background: var(--sky); box-shadow: var(--shadow);
}
.today.has-sky .today-date { color: rgba(255, 255, 255, .9); text-shadow: 0 1px 6px rgba(0, 0, 0, .3); }
.today.has-sky .today-title { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .3); max-width: 18ch; }
.today.has-sky .today-text { position: relative; z-index: 2; align-self: end; padding-top: 40px; }
.sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sky > * { position: absolute; inset: 0; }
.sky-photo { background-size: cover; background-position: center; opacity: 0; transition: opacity .8s; }
/* Velo para que el texto siempre se lea */
.today.has-sky::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(100deg, rgba(0, 0, 0, .32) 0%, rgba(0, 0, 0, .1) 55%, rgba(0, 0, 0, 0) 80%); }

/* Cielo según la hora del día y el estado del tiempo */
.today[data-phase="day"][data-cond="partly"] { --sky: linear-gradient(180deg, #3b88cf 0%, #78b5e3 60%, #c3dff3 100%); }
.today[data-phase="day"]:is([data-cond="cloudy"], [data-cond="fog"]) { --sky: linear-gradient(180deg, #6f7f90 0%, #9aa8b6 60%, #c6ced6 100%); }
.today[data-phase="day"]:is([data-cond="rain"], [data-cond="snow"]) { --sky: linear-gradient(180deg, #4a5765 0%, #6e7b88 60%, #98a3ad 100%); }
.today[data-phase="dawn"] { --sky: linear-gradient(180deg, #314b86 0%, #c9789b 55%, #f6bd86 100%); }
.today[data-phase="dusk"] { --sky: linear-gradient(180deg, #23285a 0%, #9c4a7a 50%, #f08e57 100%); }
.today:is([data-phase="dawn"], [data-phase="dusk"]):is([data-cond="cloudy"], [data-cond="rain"], [data-cond="fog"], [data-cond="snow"]) { --sky: linear-gradient(180deg, #3c4258 0%, #77677a 60%, #b48b80 100%); }
.today[data-phase="night"] { --sky: linear-gradient(180deg, #070d22 0%, #13204a 55%, #26386b 100%); }
.today[data-phase="night"]:is([data-cond="cloudy"], [data-cond="rain"], [data-cond="fog"], [data-cond="snow"]) { --sky: linear-gradient(180deg, #0c1119 0%, #1c2430 60%, #2d3744 100%); }
.today.has-sky[data-cond="storm"] { --sky: linear-gradient(180deg, #1d242d 0%, #343e4a 60%, #535e6a 100%); }

/* Fotos propias (opcional, desde Apariencia) */
.today.has-photos .sky-photo { background-image: var(--photo-day, none); opacity: 1; }
.today.has-photos[data-phase="night"] .sky-photo { background-image: var(--photo-night, var(--photo-day, none)); filter: brightness(.8); }
.today.has-photos:is([data-cond="cloudy"], [data-cond="fog"]) .sky-photo { background-image: var(--photo-cloudy, var(--photo-day, none)); }
.today.has-photos:is([data-cond="rain"], [data-cond="storm"], [data-cond="snow"]) .sky-photo { background-image: var(--photo-rain, var(--photo-cloudy, var(--photo-day, none))); }

/* Capas con profundidad: se mueven con el ratón o al inclinar el teléfono */
.sky-far { transform: translate(calc(var(--px) * 8px), calc(var(--py) * 5px)); transition: transform .5s var(--ease); }
.sky-mid { transform: translate(calc(var(--px) * 22px), calc(var(--py) * 10px)); transition: transform .5s var(--ease); }

/* Sol */
.sky-sun { position: absolute; top: -26px; right: 26%; width: 92px; height: 92px; border-radius: 50%; display: none;
  background: radial-gradient(circle at 40% 40%, #fff8d6 0%, #ffe27a 45%, #ffc23d 75%, #ffb120 100%);
  box-shadow: 0 0 40px 14px rgba(255, 206, 84, .55), 0 0 110px 40px rgba(255, 220, 120, .3); }
.sky-sun-rays { position: absolute; inset: -50px; border-radius: 50%; animation: sky-spin 40s linear infinite;
  background: repeating-conic-gradient(rgba(255, 238, 170, .4) 0 6deg, transparent 6deg 24deg);
  -webkit-mask: radial-gradient(circle, transparent 44%, #000 46%, transparent 72%); mask: radial-gradient(circle, transparent 44%, #000 46%, transparent 72%); }
@keyframes sky-spin { to { transform: rotate(360deg); } }
.today[data-phase="day"]:is([data-cond="clear"], [data-cond="partly"]) .sky-sun { display: block; }
.today:is([data-phase="dawn"], [data-phase="dusk"]):is([data-cond="clear"], [data-cond="partly"]) .sky-sun { display: block; top: auto; bottom: -50px; right: 30%; background: radial-gradient(circle at 45% 40%, #fff1c9, #ffb35c 60%, #ff8a3d); box-shadow: 0 0 50px 20px rgba(255, 150, 80, .5); }

/* Luna y estrellas */
.sky-moon { position: absolute; top: 18px; right: 26%; width: 46px; height: 46px; border-radius: 50%; display: none;
  background: radial-gradient(circle at 35% 35%, #fffdf2, #e9e3cd 70%);
  box-shadow: inset -9px -5px 0 0 rgba(160, 150, 120, .35), 0 0 30px 8px rgba(255, 250, 220, .28); animation: sky-moon 6s ease-in-out infinite; }
@keyframes sky-moon { 50% { box-shadow: inset -9px -5px 0 0 rgba(160, 150, 120, .35), 0 0 48px 16px rgba(255, 250, 220, .42); } }
.today[data-phase="night"]:is([data-cond="clear"], [data-cond="partly"]) .sky-moon { display: block; }
.stars { opacity: 0; transition: opacity .8s;
  background-image:
    radial-gradient(1.4px 1.4px at 8% 22%, #fff 60%, transparent), radial-gradient(1px 1px at 18% 64%, #fff 60%, transparent),
    radial-gradient(1.6px 1.6px at 27% 34%, #fff 60%, transparent), radial-gradient(1px 1px at 38% 12%, #fff 60%, transparent),
    radial-gradient(1.2px 1.2px at 46% 72%, #fff 60%, transparent), radial-gradient(1.6px 1.6px at 57% 26%, #fff 60%, transparent),
    radial-gradient(1px 1px at 63% 58%, #fff 60%, transparent), radial-gradient(1.3px 1.3px at 71% 14%, #fff 60%, transparent),
    radial-gradient(1px 1px at 82% 44%, #fff 60%, transparent), radial-gradient(1.5px 1.5px at 90% 70%, #fff 60%, transparent),
    radial-gradient(1px 1px at 94% 18%, #fff 60%, transparent), radial-gradient(1.2px 1.2px at 12% 86%, #fff 60%, transparent),
    radial-gradient(1px 1px at 33% 88%, #fff 60%, transparent), radial-gradient(1.3px 1.3px at 52% 46%, #fff 60%, transparent),
    radial-gradient(1px 1px at 77% 82%, #fff 60%, transparent), radial-gradient(1.2px 1.2px at 3% 50%, #fff 60%, transparent);
  animation: sky-twinkle 3.5s ease-in-out infinite alternate; }
.stars::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1.2px 1.2px at 22% 16%, #fff 60%, transparent), radial-gradient(1px 1px at 42% 56%, #fff 60%, transparent), radial-gradient(1.4px 1.4px at 67% 36%, #fff 60%, transparent), radial-gradient(1px 1px at 86% 60%, #fff 60%, transparent); animation: sky-twinkle 2.6s ease-in-out infinite alternate-reverse; }
@keyframes sky-twinkle { from { opacity: .45; } to { opacity: 1; } }
.today[data-phase="night"]:is([data-cond="clear"], [data-cond="partly"]) .stars { opacity: 1; }
.today:is([data-phase="dawn"], [data-phase="dusk"])[data-cond="clear"] .stars { opacity: .3; }

/* Nubes que cruzan el cielo */
.cloud { position: absolute; left: 0; width: 140px; fill: rgba(255, 255, 255, .92); display: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .08)); animation: sky-drift linear infinite; will-change: transform; }
.cloud.c1 { top: 8%; width: 150px; animation-duration: 70s; animation-delay: -20s; }
.cloud.c2 { top: 42%; width: 110px; animation-duration: 55s; animation-delay: -42s; opacity: .85; }
.cloud.c3 { top: -8%; width: 190px; animation-duration: 90s; animation-delay: -5s; opacity: .9; }
.cloud.c4 { top: 56%; width: 170px; animation-duration: 80s; animation-delay: -60s; }
.cloud.c5 { top: 22%; width: 230px; animation-duration: 110s; animation-delay: -75s; opacity: .8; }
.cloud.c6 { top: 66%; width: 130px; animation-duration: 65s; animation-delay: -12s; opacity: .75; }
@keyframes sky-drift { from { transform: translateX(-260px); } to { transform: translateX(calc(100cqw + 20px)); } }
.today[data-cond="partly"] :is(.c1, .c2, .c3) { display: block; }
.today:is([data-cond="cloudy"], [data-cond="rain"], [data-cond="storm"], [data-cond="snow"], [data-cond="fog"]) .cloud { display: block; }
.today[data-phase="day"][data-cond="clear"] .c5 { display: block; opacity: .35; width: 160px; }
.today:is([data-cond="rain"], [data-cond="snow"]) .cloud { fill: rgba(205, 212, 220, .9); }
.today[data-cond="storm"] .cloud { fill: rgba(110, 120, 132, .95); }
.today[data-phase="night"] .cloud { fill: rgba(150, 160, 178, .5); }
.today:is([data-phase="dawn"], [data-phase="dusk"]) .cloud { fill: rgba(255, 214, 200, .75); }

/* Lluvia y nieve */
.precip { opacity: 0; }
.today:is([data-cond="rain"], [data-cond="storm"]) .precip { opacity: .75;
  background-image: repeating-linear-gradient(104deg, transparent 0 11px, rgba(255, 255, 255, .55) 11px 12.5px, transparent 12.5px 26px),
                    repeating-linear-gradient(100deg, transparent 0 17px, rgba(255, 255, 255, .35) 17px 18px, transparent 18px 38px);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 30px); mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 30px);
  animation: sky-rain .5s linear infinite; }
.today[data-cond="rain"][data-intensity="light"] .precip { opacity: .4; animation-duration: .8s; }
.today[data-intensity="heavy"] .precip { opacity: 1; animation-duration: .35s; }
@keyframes sky-rain { to { -webkit-mask-position: -8px 60px; mask-position: -8px 60px; background-position: -14px 0, -10px 0; } }
.today[data-cond="snow"] .precip { opacity: .9;
  background-image: radial-gradient(2.4px 2.4px at 10% 20%, #fff 70%, transparent), radial-gradient(2px 2px at 30% 60%, #fff 70%, transparent),
                    radial-gradient(3px 3px at 55% 30%, #fff 70%, transparent), radial-gradient(2px 2px at 75% 75%, #fff 70%, transparent), radial-gradient(2.6px 2.6px at 90% 40%, #fff 70%, transparent);
  background-size: 200px 160px; animation: sky-snow 6s linear infinite; }
@keyframes sky-snow { to { background-position: 30px 160px; } }

/* Relámpagos */
.flash { background: #fff; opacity: 0; }
.today[data-cond="storm"] .flash { animation: sky-flash 7s infinite; }
@keyframes sky-flash { 0%, 89%, 93%, 100% { opacity: 0; } 90% { opacity: .55; } 91% { opacity: .08; } 92% { opacity: .4; } }

/* Neblina */
.fog { opacity: 0; transition: opacity .8s; }
.fog span { position: absolute; left: -20%; width: 140%; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .45); filter: blur(14px); animation: sky-fog 18s ease-in-out infinite alternate; }
.fog span:first-child { top: 28%; }
.fog span:last-child { top: 62%; animation-duration: 24s; }
@keyframes sky-fog { to { transform: translateX(12%); } }
.today[data-cond="fog"] .fog { opacity: 1; }

/* Matiz según la temperatura */
.tint { opacity: 0; transition: opacity .8s; }
.today[data-temp="hot"] .tint { opacity: 1; background: radial-gradient(120% 90% at 100% 100%, rgba(255, 140, 40, .35), transparent 60%); }
.today[data-temp="cold"] .tint { opacity: 1; background: radial-gradient(120% 90% at 100% 100%, rgba(120, 190, 255, .35), transparent 60%); }

/* Temperatura (botón de cristal) y pronóstico desplegable */
.today.has-sky .weather { position: relative; z-index: 2; align-self: start; cursor: pointer; font: inherit; color: #fff; text-align: left;
  padding: 8px 26px 8px 10px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .38); box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); transition: background .2s, transform .15s var(--ease); }
.today.has-sky .weather:hover { background: rgba(255, 255, 255, .28); }
.today.has-sky .weather:active { transform: scale(.96); }
.today.has-sky .weather:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.today.has-sky .weather-icon { color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .25)); }
.today.has-sky .weather-temp { font-size: 1.875rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.today.has-sky .weather-detail small { color: rgba(255, 255, 255, .88); }
.today.has-sky .weather::after { content: ""; position: absolute; right: 11px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border: solid rgba(255, 255, 255, .85); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .25s var(--ease), margin .25s; }
.today.has-sky .weather[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -2px; }
.forecast { position: relative; z-index: 2; grid-column: 1 / -1; display: grid; gap: 10px; padding: 12px; border-radius: 18px;
  background: rgba(0, 0, 0, .24); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  animation: sky-forecast .35s var(--ease); }
.forecast[hidden] { display: none; }
@keyframes sky-forecast { from { opacity: 0; transform: translateY(-6px); } }
.forecast-hours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.forecast-hours li { display: grid; justify-items: center; gap: 4px; font-size: .8125rem; }
.forecast-hours time { opacity: .85; font-variant-numeric: tabular-nums; }
.forecast-hours strong { font: 800 1.0625rem/1 var(--font-display); }
.forecast-facts { margin: 0; display: flex; justify-content: space-around; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 10px; font-size: .8125rem; }
.forecast-facts div { text-align: center; }
.forecast-facts dt { opacity: .8; font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; }
.forecast-facts dd { margin: 2px 0 0; font-weight: 800; }

@media (min-width: 640px) {
  .today.has-sky { padding: 24px 26px; min-height: 184px; }
  .sky-sun { width: 110px; height: 110px; }
}
@media (min-width: 1024px) {
  .today.has-sky { margin-top: 20px; min-height: 210px; padding: 28px 32px; grid-template-columns: minmax(0, 1fr) auto; }
  .today.has-sky .today-title { font-size: 2.5rem; max-width: 22ch; }
  .today.has-sky .weather-temp { font-size: 2.25rem; }
  .forecast { grid-column: 2; width: 380px; justify-self: end; margin-top: -4px; }
}
/* Las animaciones se pausan fuera de pantalla y si se pidió reducir el movimiento */
.today.is-offscreen .sky *, .today.is-offscreen .sky *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .sky *, .sky *::after { animation: none !important; } }
html[data-motion="reduce"] .sky *, html[data-motion="reduce"] .sky *::after { animation: none !important; }

.today.has-sky { cursor: default; -webkit-tap-highlight-color: transparent; }
/* En el móvil el sol y la luna quedan a la izquierda del botón de temperatura */
@media (max-width: 639px) { .sky-sun, .sky-moon { right: 46%; } .today:is([data-phase="dawn"], [data-phase="dusk"]) .sky-sun { right: 46%; } }
.today.has-sky .weather { justify-self: end; }
@media (min-width: 1024px) {
  .today.has-sky .today-text { grid-row: 1 / span 2; }
  .today.has-sky .forecast { grid-row: 2; margin-top: 0; }
  .sky-sun, .sky-moon { right: 42%; }
  .today:is([data-phase="dawn"], [data-phase="dusk"]) .sky-sun { right: 44%; }
}
/* El sol y la luna quedan fijos: no siguen al ratón ni a la inclinación */
.sky-far { transform: none; transition: none; }
/* Sin interacción con el ratón ni el tacto, y sin sol: el cielo solo se anima solo */
.sky-mid { transform: none; transition: none; }
.today.has-sky .sky-sun { display: none !important; }

/* ============================================================ Quiénes somos */
.about .article-head .eyebrow, .contact .article-head .eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; color: var(--accent); font-weight: 800; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; }
.about-intro { max-width: 760px; margin-bottom: 28px; }
.about-pillars { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 12px; }
.about-pillars li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; padding: 18px; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.about-pillars .icon { grid-row: span 2; width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.about-pillars strong { font: 800 1.0625rem/1.25 var(--font-display); }
.about-pillars span { color: var(--muted); font-size: .9375rem; line-height: 1.45; }

/* Organigrama: dirección arriba, conectada a las tres áreas */
.org { margin-bottom: 40px; }
.org-chart { --conn: color-mix(in srgb, var(--accent) 45%, transparent); display: grid; gap: 0; }
.org-top { display: flex; justify-content: center; position: relative; padding-bottom: 28px; }
.org-top::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 2px; height: 28px; background: var(--conn); }
.org-areas { display: grid; gap: 20px; position: relative; padding-top: 0; }
.org-area { position: relative; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.org-area-title { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 14px; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.org-members { display: grid; gap: 12px; }

.member { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.member:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.member-avatar { position: relative; width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000)); color: #fff; }
.member-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.member-avatar .initials { font: 800 1.375rem/1 var(--font-display); letter-spacing: -.02em; }
.member-badge { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: #101314; border: 2px solid var(--card); }
.member-role { margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.member-name { margin: 2px 0 0; font-size: 1.125rem; line-height: 1.2; }
.member-bio { margin: 6px 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.45; }
.member-mail { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .875rem; font-weight: 600; }
.member-lead { max-width: 520px; width: 100%; border: 0; color: #fff; background: linear-gradient(135deg, var(--pine, #01796f), #014d47); box-shadow: var(--shadow); }
.member-lead .member-avatar { width: 80px; height: 80px; background: rgba(255, 255, 255, .14); border: 2px solid rgba(255, 255, 255, .35); }
.member-lead .member-role { color: var(--cream); }
.member-lead .member-name { color: #fff; font-size: 1.375rem; }
.member-lead .member-bio { color: rgba(255, 255, 255, .85); }
.member-lead .member-badge { border-color: #014d47; }

@media (min-width: 900px) {
  .about-pillars { grid-template-columns: repeat(3, 1fr); }
  .org-areas { grid-template-columns: repeat(3, 1fr); padding-top: 28px; }
  /* Línea horizontal que une las tres áreas y bajadas a cada una */
  .org-areas::before { content: ""; position: absolute; top: 0; left: calc(100% / 6); right: calc(100% / 6); height: 2px; background: var(--conn); }
  .org-area::before { content: ""; position: absolute; top: -28px; left: 50%; width: 2px; height: 28px; background: var(--conn); }
  .org-area .member { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .org-top .member-lead { grid-template-columns: auto 1fr; }
}
@media (max-width: 899px) {
  /* En el móvil el organigrama se lee de arriba abajo con una línea a la izquierda */
  .org-areas { padding-left: 18px; }
  .org-areas::before { content: ""; position: absolute; left: 0; top: 0; bottom: 28px; width: 2px; background: var(--conn); }
  .org-top { justify-content: flex-start; padding-left: 0; }
  .org-top::after { left: 0; }
  .org-area::before { content: ""; position: absolute; left: -18px; top: 28px; width: 18px; height: 2px; background: var(--conn); }
}

.about-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 40px; padding: 24px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--line); }
.about-cta h2 { margin: 0; font-size: 1.375rem; }
.about-cta p { margin: 4px 0 0; color: var(--muted); }

/* ============================================================ Contacto */
.contact-grid { display: grid; gap: 20px; margin-bottom: 28px; }
.contact-channels { display: grid; gap: 10px; align-content: start; }
.channel { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; transition: transform .15s var(--ease), border-color .2s; }
a.channel:hover { color: var(--text); border-color: var(--accent); transform: translateY(-1px); }
.channel > span:last-child { display: grid; min-width: 0; }
.channel small { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.channel strong { font-size: 1.0625rem; overflow-wrap: anywhere; }
.channel em { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; font-style: normal; color: var(--muted); font-size: .875rem; }
.channel-icon { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.channel-wa { background: rgba(37, 211, 102, .14); color: #1a9e4b; }
.channel-socials { flex-direction: column; align-items: flex-start; gap: 8px; }

.contact-form-card { padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 90px; }
.contact-form-card h2 { margin: 0 0 14px; font-size: 1.375rem; }
.contact-form { display: grid; gap: 14px; }
.field-row { display: grid; gap: 14px; }
.cf-field { display: grid; gap: 6px; }
.cf-field > span { font-size: .875rem; font-weight: 700; }
.cf-field em { font-style: normal; font-weight: 500; color: var(--muted); }
.cf-field input, .cf-field select, .cf-field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-strong, var(--line)); background: var(--bg); color: var(--text); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.cf-field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.cf-field input:user-invalid, .cf-field textarea:user-invalid { border-color: #d64545; }
.form-note { margin: -4px 0 0; color: var(--muted); font-size: .8125rem; }
.form-error { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: rgba(214, 69, 69, .1); color: #b42f2f; font-weight: 600; font-size: .9375rem; }
:root[data-theme="dark"] .form-error { color: #ff8a8a; }
.form-done { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 24px 8px; }
.form-done-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; animation: done-pop .5s var(--ease); }
.form-done p { margin: 0 0 8px; color: var(--muted); }
@keyframes done-pop { from { transform: scale(.4); opacity: 0; } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button[disabled] { opacity: .7; pointer-events: none; }
.contact-extra { max-width: 760px; margin-bottom: 28px; }
.contact-map { margin: 0 0 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.contact-map iframe { display: block; width: 100%; height: 300px; border: 0; }
.contact-map figcaption { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px 14px; font-size: .8125rem; color: var(--muted); }

@media (min-width: 700px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .contact-form-card { padding: 28px; }
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 360px 1fr; gap: 28px; }
  .contact-map iframe { height: 380px; }
}
/* Nubes quietas (sin animación), repartidas por el cielo; solo el tiempo actual, sin pronóstico */
.sky .cloud { animation: none !important; transform: none; }
.cloud.c1 { left: 4%; } .cloud.c2 { left: 34%; } .cloud.c3 { left: 58%; } .cloud.c4 { left: 18%; } .cloud.c5 { left: 66%; } .cloud.c6 { left: 84%; }
.today.has-sky .weather { cursor: default; padding-right: 14px; }
.today.has-sky .weather::after { content: none; }
.today.has-sky .weather:hover { background: rgba(255, 255, 255, .18); }
.today.has-sky .weather:active { transform: none; }
/* Temperatura flotando sola, centrada en vertical, sin marco ni fondo */
.today.has-sky { align-items: center; }
.today.has-sky .weather { align-self: center; grid-row: 1 / span 2; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; column-gap: 10px; }
.today.has-sky .weather:hover { background: none; }
.today.has-sky .weather-icon { filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .3)); }
.today.has-sky .weather-temp { font-size: 2.75rem; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.today.has-sky .weather-detail { text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
@media (min-width: 1024px) { .today.has-sky .weather-temp { font-size: 3.5rem; } }
.today.has-sky .today-text { grid-column: 1; grid-row: 1 / span 2; }
.today.has-sky .weather { grid-column: 2; justify-self: end; }
.today.has-sky .today-text { align-self: center; padding-top: 0; }
/* En la portada el banner ocupa el mismo ancho que la tarjeta «Síguenos» */
.home-aside .ad-slot { max-width: none; justify-items: stretch; }
.home-aside .ad-label { justify-self: center; }
.home-aside .ad-slot a, .home-aside .ad-slot img { width: 100%; }
/* Destacada: titular más contenido para que se vea la foto */
.card-hero h2 { font-size: clamp(1.375rem, 5.6vw, 1.875rem); line-height: 1.15; letter-spacing: -.02em; max-width: 30ch; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.card-hero .overlay { gap: 10px; }
.card-hero .excerpt { font-size: .9375rem; max-width: 60ch; -webkit-line-clamp: 2; }
.card-hero .media::after { background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.45) 70%, rgba(0,0,0,.82) 100%); }
@media (min-width: 1024px) { .card-hero h2 { font-size: clamp(1.625rem, 2.3vw, 2.25rem); } .card-hero .overlay { padding: 32px; } }
.card-hero .excerpt { display: none; }
.card-hero .overlay { padding-top: 16px; padding-bottom: 20px; }
@media (min-width: 1024px) { .card-hero .excerpt { display: -webkit-box; -webkit-line-clamp: 1; } .card-hero .overlay { padding: 24px 28px 26px; } }
/* Última hora dentro de una cápsula redondeada */
.ticker { background: none; border: 0; overflow: visible; margin: 0 0 4px; }
.ticker-inner { height: 50px; padding: 0 8px 0 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.ticker { margin-bottom: 14px; }

/* ============================================================ Farmacia de turno (portada) */
.home-aside > .pharmacy-card { order: -2; }
.pharmacy-card { display: grid; gap: 12px; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.pharmacy-head { display: flex; align-items: center; gap: 12px; }
.pharmacy-head h2 { margin: 0; font-size: 1.125rem; }
.pharmacy-head p { margin: 2px 0 0; color: var(--muted); font-size: .8125rem; }
.pharmacy-cross { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: #e3342f; color: #fff; }
.pharmacy-cross .icon { fill: currentColor; stroke: none; }
.pharmacy { display: grid; gap: 6px; padding: 14px; border-radius: var(--radius-md); background: var(--surface); }
.pharmacy + .pharmacy { margin-top: 2px; }
.pharmacy h3 { margin: 0 0 2px; font-size: 1.0625rem; line-height: 1.25; }
.pharmacy-addr, .pharmacy-hours { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: .875rem; line-height: 1.4; color: var(--muted); }
.pharmacy-addr .icon, .pharmacy-hours .icon { flex: none; margin-top: 2px; color: var(--accent); }
.pharmacy-hours span { color: var(--text); font-weight: 600; }
.pharmacy-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pharmacy-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 14px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: .875rem; white-space: nowrap; }
.pharmacy-btn:hover { color: #fff; filter: brightness(1.08); }
.pharmacy-btn + .pharmacy-btn { background: var(--card); color: var(--text); border: 1px solid var(--line-strong); }
.pharmacy-btn + .pharmacy-btn:hover { color: var(--text); }
:root[data-theme="dark"] .pharmacy-btn:first-child { color: #101314; }
.pharmacy-empty { margin: 0; color: var(--muted); font-size: .9375rem; }
.pharmacy-more { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 700; }
.pharmacy[hidden], .pharmacy-empty[hidden] { display: none; }
.pharmacy-hours b { display: block; color: var(--accent); font-weight: 800; }
.pharmacy-hours small { display: block; color: var(--muted); font-weight: 500; font-size: .8125rem; margin-top: 1px; }

/* ============================================================ Recorridos de micros */
/* Banner de la portada */
.micros-banner { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin: 20px 0 6px; padding: 18px; border-radius: var(--radius); overflow: hidden; isolation: isolate; color: #fff; text-decoration: none;
  background: linear-gradient(120deg, #142f8f 0%, #1747c9 55%, #1167ff 100%); box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s; }
.micros-banner::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); z-index: -1; }
.micros-banner:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg, var(--shadow)); }
.micros-banner-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); }
.micros-banner-text { display: grid; gap: 2px; min-width: 0; }
.micros-banner-text small { font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.micros-banner-text strong { font: 800 1.1875rem/1.2 var(--font-display); }
.micros-banner-text > span { font-size: .875rem; opacity: .88; }
.micros-banner-lines { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.micros-banner-lines span { min-width: 42px; padding: 5px 8px; border-radius: 8px; background: var(--c); color: #fff; font: 800 .8125rem/1 var(--font-display); text-align: center; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18); }
.micros-banner-go { grid-row: 1; grid-column: 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #1747c9; transition: transform .2s var(--ease); }
.micros-banner:hover .micros-banner-go { transform: translateX(3px); }
@media (min-width: 900px) {
  .micros-banner { grid-template-columns: auto 1fr auto auto; padding: 20px 24px; margin-top: 24px; }
  .micros-banner-lines { grid-column: 3; grid-row: 1; flex-wrap: nowrap; }
  .micros-banner-go { grid-column: 4; }
}

/* Página */
.micros .article-head .eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; color: var(--accent); font-weight: 800; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; }
.micros-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.micros-facts li { display: grid; gap: 2px; padding: 14px; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--line); text-align: center; }
.micros-facts strong { font: 800 1.75rem/1 var(--font-display); color: #1747c9; letter-spacing: -.02em; }
:root[data-theme="dark"] .micros-facts strong { color: #7ea6ff; }
.micros-facts span { font-size: .8125rem; color: var(--muted); line-height: 1.3; }
.micros-perks { margin: 12px 0 24px; text-align: center; color: var(--muted); font-size: .875rem; font-weight: 600; }
.micros-intro { max-width: 760px; margin-bottom: 24px; }

.micros-search { position: relative; z-index: 5; display: grid; gap: 10px; margin: 0 0 24px; padding: 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--card) 92%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.micros-search h2 { margin: 0; font-size: 1.125rem; }
.micros-search-field { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--bg); color: var(--muted); }
.micros-search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.micros-search-field input { flex: 1; min-width: 0; height: 50px; border: 0; background: none; color: var(--text); font: inherit; font-size: 1rem; outline: none; }
.micros-result { margin: 0; font-size: .9375rem; font-weight: 600; min-height: 0; }
.micros-result:empty { display: none; }
.micros-lines { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.micros-lines a { flex: none; min-width: 48px; padding: 8px 10px; border-radius: 10px; background: var(--c); color: #fff; font: 800 .875rem/1 var(--font-display); text-align: center; transition: opacity .2s, transform .15s; }
.micros-lines a:hover { color: #fff; transform: translateY(-1px); }
.micros-lines a.is-off { opacity: .25; }

.micros-routes { display: grid; gap: 18px; margin-bottom: 28px; }
.route { scroll-margin-top: calc(var(--header-h, 60px) + 190px); border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.route[hidden] { display: none; }
.route-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(120deg, var(--c), var(--c2)); color: #fff; }
.route-head h2 { margin: 0; font-size: 1.25rem; color: #fff; }
.route-num { min-width: 56px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .95); color: var(--c); font: 900 1.25rem/1 var(--font-display); text-align: center; }
.route-body { display: grid; gap: 14px; padding: 16px; }
.route-ways { display: grid; gap: 14px; }
.route-way h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
:root[data-theme="dark"] .route-way h3 { color: var(--c2); }
.route-regreso h3 .icon { transform: rotate(-90deg) scaleY(-1); }
.stops { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; }
.stops li { display: inline-flex; align-items: center; gap: 4px; font-size: .875rem; line-height: 1.3; }
.stops li + li::before { content: "›"; color: var(--muted); font-weight: 700; margin-right: 2px; }
.stops li { padding: 0; }
.stops li.is-match { padding: 2px 8px; border-radius: 999px; background: var(--c2); color: #fff; font-weight: 700; }
.stops li.is-match::before { color: #fff; }
.route-map { border-radius: var(--radius-md); background: var(--surface); }
.route-map summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; font-weight: 700; font-size: .9375rem; list-style: none; }
.route-map summary::-webkit-details-marker { display: none; }
.route-map summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.route-map[open] summary::after { transform: rotate(-135deg); }
.route-map img { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; border-radius: 0 0 var(--radius-md) var(--radius-md); }

.micros-info { display: grid; gap: 16px; margin-bottom: 20px; }
.micros-card { padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.micros-card h2 { margin: 0 0 10px; font-size: 1.25rem; }
.micros-card p { margin: 0 0 8px; line-height: 1.55; }
.fares { width: 100%; border-collapse: collapse; }
.fares th, .fares td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fares tr:last-child th, .fares tr:last-child td { border-bottom: 0; }
.fares th { font-weight: 600; font-size: .9375rem; }
.fares th small { display: block; color: var(--muted); font-weight: 500; font-size: .8125rem; }
.fares td { text-align: right; font: 800 1.125rem/1.2 var(--font-display); white-space: nowrap; padding-left: 12px; }
.micros-source { margin: 0 0 40px; color: var(--muted); font-size: .8125rem; }

@media (min-width: 900px) {
  .route-body { grid-template-columns: 1fr; }
  .route-ways { grid-template-columns: 1fr 1fr; gap: 24px; }
  .micros-info { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899px) { .micros-search { position: static; } .route { scroll-margin-top: calc(var(--header-h, 60px) + 12px); } }

/* Mapa interactivo de recorridos */
.micros-map-wrap { margin: 0 0 24px; }
.micros-map { position: relative; z-index: 0; height: 62svh; min-height: 360px; max-height: 620px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.micros-map-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); font-weight: 600; }
.micros-map .leaflet-control-attribution { font-size: .6875rem; }
:root[data-theme="dark"] .micros-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9) saturate(.6); }
.micros-pin span { display: block; padding: 4px 0; border-radius: 7px; color: #fff; font: 800 .75rem/1 var(--font-display); text-align: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.micros-map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 10px; font-size: .8125rem; color: var(--muted); font-weight: 600; }
.micros-map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.micros-map-legend i { display: inline-block; width: 26px; height: 0; border-top: 5px solid var(--text); border-radius: 3px; }
.micros-map-legend i.lg-reg { border-top: 3px dashed var(--text); }
.micros-map-all { margin-left: auto; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--text); font: 700 .8125rem var(--font); cursor: pointer; }
.micros-lines a.is-current { outline: 3px solid var(--text); outline-offset: 2px; }
.route-show { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--c); color: #fff; font: 700 .875rem var(--font); cursor: pointer; transition: filter .2s; }
.route-show:hover { filter: brightness(1.1); }

/* ============================================================ Libreta de contactos */
.book .article-head .eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; color: var(--accent); font-weight: 800; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; }
.book-intro { max-width: 760px; margin-bottom: 20px; }
.book-tools { display: grid; gap: 10px; margin-bottom: 22px; }
.book-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.book-cats a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: .875rem; white-space: nowrap; }
.book-cats a:hover { border-color: var(--accent); color: var(--text); }
.book-cats small { color: var(--muted); font-weight: 600; }
.book-section { margin-bottom: 26px; scroll-margin-top: calc(var(--header-h, 60px) + 16px); }
.book-section[hidden], .book-item[hidden] { display: none; }
.book-section h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1.375rem; }
.book-cat-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.is-emergency .book-cat-icon { background: #e3342f; color: #fff; }
.book-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.book-item { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.book-main h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.book-addr, .book-note, .book-web { display: flex; align-items: flex-start; gap: 6px; margin: 4px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.4; }
.book-addr .icon, .book-web .icon { flex: none; margin-top: 2px; color: var(--accent); }
.book-addr a, .book-web a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.book-phones { display: flex; flex-wrap: wrap; gap: 6px; }
.book-call { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; font-size: .9375rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.book-call:hover { color: #fff; filter: brightness(1.08); }
:root[data-theme="dark"] .book-call { color: #101314; }
.is-emergency .book-call { background: #e3342f; color: #fff; }
.is-emergency .book-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (min-width: 760px) {
  .book-item { grid-template-columns: 1fr auto; align-items: center; }
  .book-phones { justify-content: flex-end; max-width: 360px; }
  .is-emergency .book-item { grid-template-columns: 1fr auto; }
}
@media (min-width: 1024px) {
  .book-list { grid-template-columns: 1fr 1fr; }
  .book-tools { position: sticky; top: calc(var(--header-h, 60px) + 8px); z-index: 4; padding: 14px; border-radius: var(--radius); background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}

/* Libreta: los números nunca se salen de la tarjeta. Con varios números o uno largo, van bajo el nombre a todo el ancho. */
.book-main { min-width: 0; }
.book-phones { min-width: 0; }
.book-call { max-width: 100%; }
.book-item.is-stacked { grid-template-columns: minmax(0, 1fr); align-items: start; }
.book-item.is-stacked .book-phones { justify-content: flex-start; max-width: none; }
.book-item.is-stacked .book-call { flex: 1 1 auto; justify-content: center; }

/* ==========================================================================================
   3.1 · Carga estilo «Facebook» y noticia principal renovada
   - Cada foto muestra un esqueleto con brillo hasta que llega y entra con un fundido (sin saltos de diseño).
   - La lista de noticias crece sola al bajar: tarjetas esqueleto mientras carga y entrada escalonada.
   - Noticia principal: acercamiento lento de la foto, marca «Ahora», tarjeta completa clicable y transición
     de la foto hacia la nota (View Transitions).
   ========================================================================================== */
:root { --sk-a: #e6e5df; --sk-b: #f4f3ef; }
:root[data-theme="dark"] { --sk-a: #1b1f21; --sk-b: #262b2e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sk-a: #1b1f21; --sk-b: #262b2e; } }
@keyframes sk-shine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.fx-img .thumb:not(.is-loaded):not(:has(.thumb-fallback)),
.fx-img .card .media:not(.is-loaded):not(:has(.thumb-fallback)),
.card-skeleton .sk {
  background: linear-gradient(100deg, var(--sk-a) 30%, var(--sk-b) 50%, var(--sk-a) 70%);
  background-size: 200% 100%;
  animation: sk-shine 1.3s linear infinite;
}
.thumb img, .card .media img { transition: opacity .55s ease, filter .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.fx-img:not(.fx-img-done) .thumb:not(.is-loaded) img,
.fx-img:not(.fx-img-done) .card:not(.card-hero) .media:not(.is-loaded) img { opacity: 0; filter: blur(14px); transform: scale(1.04); }

/* Tarjetas esqueleto (mientras llega la página siguiente) */
.card-skeleton { pointer-events: none; }
.card-skeleton .body { display: grid; gap: 10px; align-content: start; }
.card-skeleton .sk { display: block; height: 12px; border-radius: 6px; }
.card-skeleton .sk-kicker { width: 34%; height: 10px; }
.card-skeleton .sk-title { width: 92%; height: 16px; }
.card-skeleton .sk-short { width: 64%; }
.card-skeleton .sk-line { width: 48%; height: 10px; margin-top: 4px; }
.card-skeleton .sk-thumb { display: block; aspect-ratio: 1; border-radius: 14px; align-self: start; }
@media (min-width: 760px) { .card-skeleton .sk-thumb { aspect-ratio: 4 / 3; } }

/* Noticias que llegan: entran una a una */
@keyframes feed-in { from { opacity: 0; transform: translateY(18px); } }
.is-entering { animation: feed-in .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.feed-end { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: .875rem; }

/* ------------------------------------------------------------ Noticia principal */
@keyframes hero-kb { from { transform: scale(1.1); } to { transform: scale(1); } }
.card-hero .media img { animation: hero-kb 16s cubic-bezier(.2, .6, .2, 1) both; }
.card-hero .media::after { background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,.5) 58%, rgba(0,0,0,.9) 100%); }
.hero-tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-live { gap: 7px; background: #e3342f; color: #fff; text-transform: uppercase; letter-spacing: .08em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: live-pulse 1.6s ease-out infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); } 100% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } }
.pill-top { gap: 6px; background: rgba(255, 255, 255, .16); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.card-hero h2 { text-wrap: balance; }
.card-hero .hero-link::after { content: ""; position: absolute; inset: 0; z-index: 0; } /* toda la tarjeta lleva a la nota */
.card-hero .overlay > :not(h2) { position: relative; z-index: 1; }
.card-hero .overlay .meta, .card-hero .excerpt { pointer-events: none; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; width: 100%; }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; color: #101314; font-weight: 800; font-size: .875rem; pointer-events: none; transition: transform .25s; }
.hero-cta .icon { transition: transform .25s; }
.card-hero:hover .hero-cta .icon { transform: translateX(4px); }
.card-hero:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.card-hero .media img { transition: filter .4s; }
.card-hero:hover .media img { filter: brightness(1.06) saturate(1.05); }
@media (max-width: 759px) { .hero-cta { display: none; } }

/* Transición de la foto entre la portada y la nota */
::view-transition-group(*) { animation-duration: .42s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }

@media (prefers-reduced-motion: reduce) {
  .card-hero .media img, .is-entering, .live-dot, .card-skeleton .sk,
  .fx-img .thumb:not(.is-loaded), .fx-img .card .media:not(.is-loaded) { animation: none; }
  .thumb img, .card .media img { transition: none; }
}
:root[data-motion="reduce"] .card-hero .media img, :root[data-motion="reduce"] .is-entering, :root[data-motion="reduce"] .live-dot { animation: none; }

/* 3.2 · Libreta: farmacias y supermercados con horario, estado en vivo y filtro «Abiertos ahora» */
.book-hours { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; font-size: .875rem; line-height: 1.35; }
.book-hours .icon { flex: none; margin-top: 2px; color: var(--muted); }
.book-hours span { display: grid; gap: 2px; }
.book-hours small { color: var(--muted); font-size: .8125rem; }
.book-state { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.book-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.book-state.is-open { color: #16834a; }
.book-state.is-closed { color: #c62f2a; }
.book-state.is-unknown { color: var(--muted); font-weight: 600; }
:root[data-theme="dark"] .book-state.is-open { color: #5bd38b; }
:root[data-theme="dark"] .book-state.is-closed { color: #ff7a73; }
.book-note.is-turno { display: inline-flex; align-self: start; padding: 3px 9px; border-radius: 999px; background: #e3342f; color: #fff; font-weight: 800; font-size: .75rem; letter-spacing: .02em; }
.book-source { margin: -4px 0 12px; color: var(--muted); font-size: .8125rem; }
.book-open-filter { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; margin: 0 0 10px; border: 1.5px solid var(--line-strong, var(--line)); border-radius: 999px; background: var(--card); color: var(--text); font: 800 .875rem var(--font); cursor: pointer; }
.book-open-filter small { padding: 1px 8px; border-radius: 999px; background: var(--surface); color: var(--muted); font-weight: 700; }
.book-open-dot { width: 9px; height: 9px; border-radius: 50%; background: #16834a; box-shadow: 0 0 0 3px rgba(22, 131, 74, .18); }
.book-open-filter[aria-pressed="true"] { background: #16834a; border-color: #16834a; color: #fff; }
.book-open-filter[aria-pressed="true"] .book-open-dot { background: #fff; box-shadow: none; }
.book-open-filter[aria-pressed="true"] small { background: rgba(255, 255, 255, .22); color: #fff; }
.book-only-open .book-section:not(.has-hours), .book-only-open .book-section.is-filtered-out,
.book-only-open .has-hours [data-book-item]:not([data-open="1"]) { display: none; }

/* 3.2.2 · Aire sobre «Última hora» (antes el bloque de fecha y clima daba esa separación) */
.ticker { margin-top: 22px; }
@media (max-width: 759px) { .ticker { margin-top: 14px; } }

/* 3.3 · Tarjeta «Tiempo en Ovalle» (columna derecha de la portada, sobre «Farmacia de turno») */
.weather-card { display: grid; gap: 14px; padding: 18px; margin-bottom: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.weather-card .pharmacy-head h2 { margin: 0; font-size: 1.125rem; }
.weather-badge { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #3aa0ff, #1f6fd1); color: #fff; }
.weather-now { display: flex; align-items: center; gap: 14px; }
.weather-big { font: 800 3.25rem / 1 var(--font-display); letter-spacing: -.04em; color: var(--text); font-variant-numeric: tabular-nums; }
.weather-now-txt { display: grid; gap: 3px; }
.weather-now-txt strong { font-size: 1rem; }
.weather-now-txt small { color: var(--muted); font-size: .8125rem; }
.weather-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.weather-facts li { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--surface); }
.weather-facts small { color: var(--muted); font-size: .75rem; }
.weather-facts strong { font-size: .9375rem; font-variant-numeric: tabular-nums; }
.weather-hours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.weather-hours li { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border-radius: var(--radius-md); border: 1px solid var(--line); }
.weather-hours time { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.weather-hours .icon { color: var(--accent); }
.weather-hours strong { font-size: .875rem; font-variant-numeric: tabular-nums; }
.weather-credit { margin: 0; font-size: .6875rem; color: var(--muted); }
.weather-credit a { color: inherit; text-decoration: underline; }
.home-aside > .weather-card { order: -3; margin-bottom: 0; } /* siempre sobre «Farmacia de turno» (también en el celular) */

/* 3.3.2 · Titulares de «Últimas noticias» con más cuerpo (más grandes y gruesos) */
.card-list h3 { font-size: 1.125rem; font-weight: 850; line-height: 1.22; letter-spacing: -.018em; }
@media (min-width: 760px) { .card-list h3 { font-size: 1.3125rem; line-height: 1.2; letter-spacing: -.02em; } }
.card-list .excerpt { margin-top: 2px; }
.card-list h3 { -webkit-line-clamp: 4; }

/* 3.4 · Quiénes somos en general: áreas del equipo y valores (sin organigrama con nombres) */
.about-intro p { font-size: 1.0625rem; line-height: 1.7; }
.about-team, .about-values { margin: 0 0 40px; }
.about-team-lead { max-width: 760px; margin: -4px 0 18px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.about-areas { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.about-areas li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: start; padding: 18px; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.about-areas .icon { grid-row: span 2; width: 42px; height: 42px; padding: 10px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); }
.about-areas strong { font: 800 1.0625rem/1.25 var(--font-display); }
.about-areas span { color: var(--muted); font-size: .9375rem; line-height: 1.45; }
.about-values-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.about-values-list li { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--radius-md); border-left: 4px solid var(--accent); background: var(--card); box-shadow: var(--shadow-sm); }
.about-values-list strong { font: 800 1.125rem/1.2 var(--font-display); }
.about-values-list span { color: var(--muted); font-size: .9375rem; }
@media (min-width: 760px) { .about-areas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .about-areas { grid-template-columns: repeat(4, 1fr); } .about-areas li { grid-template-columns: 1fr; } .about-areas .icon { grid-row: auto; margin-bottom: 8px; } .about-values-list { grid-template-columns: repeat(4, 1fr); } }
.about-intro.prose p, .about-intro.prose > p:first-child { font-size: 1.125rem; line-height: 1.7; font-weight: 400; }

/* ==========================================================================================
   3.5 · «Quiénes somos» con diseño editorial: portada con collage, cifras, mosaico, áreas con
   degradado, proceso numerado, valores y llamado final en banda de color
   ========================================================================================== */
.about-v2 { padding-bottom: 8px; }
.ab-kicker { display: inline-block; margin-bottom: 8px; font: 800 .75rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.about-v2 h2 { font-size: clamp(1.625rem, 3.2vw, 2.25rem); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 10px; }

/* Portada con collage */
.ab-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: 440px; margin-top: 14px; padding: 34px 26px; border-radius: var(--radius); color: #fff; background: var(--chrome-2); }
.ab-hero-collage { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }
.ab-hero-collage span { background: center / cover no-repeat; animation: ab-zoom 18s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -3s); }
@keyframes ab-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.ab-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(1, 61, 56, .35) 0%, rgba(1, 61, 56, .72) 45%, rgba(1, 40, 37, .96) 100%); }
.ab-hero-body { max-width: 720px; display: grid; gap: 14px; justify-items: start; }
.ab-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 700 .8125rem var(--font-display); }
.ab-hero h1 { margin: 0; color: #fff; font-size: clamp(2.5rem, 7vw, 4.25rem); letter-spacing: -.04em; line-height: 1; }
.ab-lead { margin: 0; font-size: clamp(1.0625rem, 2vw, 1.3125rem); line-height: 1.5; color: rgba(255, 255, 255, .9); }
.ab-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.ab-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; font: 800 .9375rem var(--font-display); text-decoration: none; transition: transform .2s var(--ease), background .2s; }
.ab-btn:hover { transform: translateY(-2px); }
.ab-btn-light { background: var(--brand-cream); color: #101314; }
.ab-btn-light:hover { color: #101314; }
.ab-btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.ab-btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .12); }

/* Cifras */
.ab-stats { list-style: none; position: relative; z-index: 1; margin: -34px 18px 44px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; border-radius: var(--radius-md); overflow: hidden; background: var(--line); box-shadow: var(--shadow); }
.ab-stats li { display: grid; gap: 2px; padding: 18px 20px; background: var(--card); }
.ab-stats strong { font: 900 clamp(1.625rem, 3.4vw, 2.25rem) / 1 var(--font-display); letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.ab-stats span { color: var(--muted); font-size: .875rem; }

/* Presentación + mosaico */
.ab-intro { display: grid; gap: 28px; align-items: center; margin-bottom: 56px; }
.ab-intro .prose p { font-size: 1.0625rem; line-height: 1.75; }
.ab-intro .prose > p:first-child { font-size: 1.125rem; }
.ab-mosaic { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 380px; }
.ab-mosaic span:not(.ab-mosaic-badge) { border-radius: var(--radius-md); background: center / cover no-repeat var(--surface); box-shadow: var(--shadow-sm); }
.ab-mosaic span:first-child { grid-row: span 2; }
.ab-mosaic-badge { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: var(--card); color: var(--text); font: 800 .8125rem var(--font-display); box-shadow: var(--shadow); }
.ab-mosaic-badge .icon { color: var(--live); }

/* Bloques */
.ab-block { margin-bottom: 56px; }
.ab-sub { max-width: 720px; margin: 0 0 22px; color: var(--muted); font-size: 1.0625rem; line-height: 1.6; }

/* Áreas con degradado */
.ab-areas { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ab-areas li { position: relative; overflow: hidden; display: grid; gap: 6px; align-content: start; padding: 22px; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.ab-areas li::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, var(--g1), var(--g2)); opacity: .1; transition: transform .4s var(--ease); }
.ab-areas li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ab-areas li:hover::after { transform: scale(1.4); }
.ab-ico { width: 52px; height: 52px; margin-bottom: 8px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2)); box-shadow: 0 10px 22px -10px var(--g1); }
.ab-areas strong { font: 800 1.1875rem/1.2 var(--font-display); letter-spacing: -.015em; }
.ab-areas span:not(.ab-ico) { color: var(--muted); font-size: .9375rem; line-height: 1.5; }

/* Proceso numerado */
.ab-process { padding: 34px 26px; border-radius: var(--radius); background: var(--accent-soft); }
.ab-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.ab-steps li { position: relative; display: grid; gap: 4px; padding: 20px 20px 20px 74px; border-radius: var(--radius-md); background: var(--card); box-shadow: var(--shadow-sm); }
.ab-step-n { position: absolute; left: 18px; top: 18px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: #fff; font: 900 .9375rem var(--font-display); }
.ab-steps strong { font: 800 1.0625rem var(--font-display); }
.ab-steps span:not(.ab-step-n) { color: var(--muted); font-size: .9375rem; line-height: 1.45; }


/* Llamado final */
.ab-cta { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 44px; padding: 30px 26px; border-radius: var(--radius); color: #fff; background: linear-gradient(120deg, var(--chrome), #0aa694); }
.ab-cta::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.ab-cta > * { position: relative; z-index: 1; }
.ab-cta h2 { margin: 0; color: #fff; font-size: clamp(1.375rem, 2.6vw, 1.75rem); }
.ab-cta p { margin: 6px 0 0; color: rgba(255, 255, 255, .88); }

@media (min-width: 760px) {
  .ab-hero { min-height: 500px; padding: 48px; }
  .ab-areas { grid-template-columns: repeat(2, 1fr); }
  .ab-steps { grid-template-columns: repeat(2, 1fr); }
  .ab-process { padding: 44px; }
  .ab-cta { padding: 38px 44px; }
}
@media (min-width: 1024px) {
  .ab-intro { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .ab-areas, .ab-steps { grid-template-columns: repeat(4, 1fr); }
  .ab-stats { margin: -40px 48px 56px; }
}
@media (max-width: 759px) { .ab-mosaic { height: 280px; } .ab-stats { margin: -26px 10px 36px; } }
@media (prefers-reduced-motion: reduce) { .ab-hero-collage span { animation: none; } .ab-areas li, .ab-btn { transition: none; } }
:root[data-motion="reduce"] .ab-hero-collage span { animation: none; }
.ab-hero { padding-bottom: 76px; }
@media (min-width: 760px) { .ab-hero { padding-bottom: 92px; } }
@media (max-width: 759px) { .ab-stats { grid-template-columns: 1fr 1fr; } .ab-stats li:last-child:nth-child(odd) { grid-column: 1 / -1; } .ab-stats strong { font-size: 1.625rem; } }

/* 3.5.1 · «Lo que nos mueve»: banda verde oscura con introducción y valores numerados */
.ab-values-band { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 26px; margin-bottom: 56px; padding: 34px 26px; border-radius: var(--radius); color: #fff; background: linear-gradient(140deg, #013d38 0%, var(--chrome) 60%, #0a8f80 100%); }
.ab-values-band::before { content: ""; position: absolute; z-index: -1; left: -120px; bottom: -160px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 239, 204, .18), transparent 70%); }
.ab-values-band::after { content: ""; position: absolute; z-index: -1; right: -80px; top: -100px; width: 300px; height: 300px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .05); }
.ab-values-intro .ab-kicker { color: var(--brand-cream); }
.ab-values-intro h2 { color: #fff; }
.ab-values-intro p { margin: 0; max-width: 420px; color: rgba(255, 255, 255, .82); font-size: 1.0625rem; line-height: 1.55; }
.ab-values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.ab-values li { position: relative; overflow: hidden; display: grid; gap: 6px; align-content: start; padding: 22px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-md); background: rgba(255, 255, 255, .07); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .25s var(--ease), background .25s, border-color .25s; }
.ab-values li:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .12); border-color: rgba(255, 239, 204, .45); }
.ab-value-n { position: absolute; right: 16px; top: 8px; font: 900 3.5rem/1 var(--font-display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .22); }
.ab-value-ico { width: 46px; height: 46px; margin-bottom: 8px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-cream); color: #013d38; }
.ab-values strong { color: #fff; font: 900 1.375rem/1.15 var(--font-display); letter-spacing: -.02em; }
.ab-values li > span:last-child { color: rgba(255, 255, 255, .8); font-size: .9375rem; line-height: 1.5; }
@media (min-width: 760px) {
  .ab-values-band { padding: 44px; }
  .ab-values { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .ab-values-band { grid-template-columns: minmax(240px, 1fr) 2fr; gap: 40px; align-items: center; padding: 52px; }
}
@media (prefers-reduced-motion: reduce) { .ab-values li { transition: none; } }

/* ============================================================ Micros: planificador «¿Cómo llego?», pantalla completa, compartir */
.micros-plan { display: grid; gap: 12px; margin-bottom: 12px; padding: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.plan-head h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-size: 1.25rem; }
.plan-head h2 .icon { color: #1747c9; }
:root[data-theme="dark"] .plan-head h2 .icon { color: #7ea6ff; }
.plan-head p { margin: 0; color: var(--muted); font-size: .9375rem; }
.plan-points { display: grid; gap: 8px; }
.plan-point { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 6px 6px 10px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); }
.plan-point > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.plan-point small { font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.plan-point strong { font-size: .9375rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.micros-plan.has-a .plan-point:first-child strong, .micros-plan.has-b .plan-point:last-child strong { color: var(--text); }
.plan-dot { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 900 .875rem/1 var(--font-display); }
.plan-dot-a, .plan-pin-a span { background: #0e9f6e; }
.plan-dot-b, .plan-pin-b span { background: #e3342f; }
.plan-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--text); font: 700 .8125rem var(--font); cursor: pointer; }
.plan-btn:hover { border-color: var(--accent); }
.plan-locate { background: #1747c9; border-color: #1747c9; color: #fff; }
.plan-locate:hover { filter: brightness(1.1); border-color: #1747c9; }
.plan-locate.is-busy .icon { animation: plan-spin 1s linear infinite; }
@keyframes plan-spin { to { transform: rotate(360deg); } }
.plan-swap { width: 40px; padding: 0; justify-content: center; font-size: 1.125rem; }
.micros-plan:not(.has-b) .plan-swap, .micros-plan:not(.has-a) .plan-clear { display: none; }
.plan-hint { margin: 0; color: #b42318; font-size: .875rem; font-weight: 600; }
.plan-hint:empty, .plan-results:empty { display: none; }
.plan-sub { margin: 0 0 8px; font-weight: 700; font-size: .875rem; }
.plan-near { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.plan-near button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 .8125rem var(--font); cursor: pointer; }
.plan-near button:hover { border-color: var(--accent); }
.plan-chip { display: inline-block; min-width: 40px; padding: 5px 7px; border-radius: 8px; background: var(--c); color: #fff; font: 800 .8125rem/1 var(--font-display); text-align: center; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18); }
.plan-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan-opt { width: 100%; display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--radius-md); border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.plan-opt:hover { border-color: var(--line-strong); }
.plan-opt.is-on { border-color: #1747c9; box-shadow: 0 0 0 3px rgba(23, 71, 201, .15); background: var(--card); }
.plan-opt-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.plan-opt-head i { color: var(--muted); font-style: normal; font-weight: 800; }
.plan-opt-head strong { margin-left: 6px; font: 800 1.125rem/1 var(--font-display); }
.plan-opt-head em { margin-left: auto; font-style: normal; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.plan-steps { display: none; gap: 6px; padding-left: 14px; border-left: 3px solid var(--line); font-size: .875rem; line-height: 1.4; }
.plan-opt.is-on .plan-steps { display: grid; }
.plan-steps .plan-chip { min-width: 34px; padding: 3px 5px; font-size: .75rem; }
.plan-note, .plan-empty { margin: 8px 0 0; color: var(--muted); font-size: .8125rem; }
.plan-empty { margin: 0; font-weight: 600; color: var(--text); }
.plan-pin span { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .35); color: #fff; font: 900 .875rem/1 var(--font-display); }
.plan-pin span::after { content: ""; position: absolute; left: 50%; bottom: -9px; margin-left: -6px; border: 6px solid transparent; border-top: 7px solid #fff; border-bottom: 0; }
.micros-map { cursor: crosshair; }
.micros-map .leaflet-interactive { cursor: crosshair; }
.micros-map-full { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--text); font: 700 .8125rem var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.micros-map-wrap.is-full { position: fixed; inset: 0; z-index: 1000; margin: 0; padding: 10px; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; background: var(--bg); overflow: auto; }
.micros-map-wrap.is-full .micros-plan { margin: 0; max-height: 40svh; overflow: auto; }
.micros-map-wrap.is-full .micros-map { height: auto; max-height: none; min-height: 0; }
.micros-map-wrap.is-full .micros-map-legend { margin: 0; }
html.micros-full { overflow: hidden; }
.route-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.route-share { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--c); background: transparent; color: var(--text); font: 700 .875rem var(--font); cursor: pointer; }
.route-share:hover { background: color-mix(in srgb, var(--c) 12%, transparent); }
@media (min-width: 900px) {
  .plan-points { grid-template-columns: 1fr 1fr; }
  .micros-map-wrap.is-full { grid-template-columns: 380px 1fr; grid-template-rows: 1fr auto; padding: 14px; }
  .micros-map-wrap.is-full .micros-plan { grid-row: 1 / span 2; max-height: none; align-content: start; }
  .micros-map-wrap.is-full .plan-points { grid-template-columns: 1fr; }
}

/* ============================================================ Pop-up promocional (inc/popup.php) */
.promo { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; }
.promo[hidden] { display: none; }
.promo-backdrop { position: absolute; inset: 0; background: rgba(8, 14, 20, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s ease; }
.promo-box { position: relative; width: min(100%, 760px); max-height: calc(100svh - 32px); overflow: auto; border-radius: var(--radius); background: var(--card); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(18px) scale(.96); transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1); }
.promo.is-open .promo-backdrop, .promo.is-open .promo-box { opacity: 1; }
.promo.is-open .promo-box { transform: none; }
.promo-media { display: block; }
.promo-media img, .promo-box > img { display: block; width: 100%; height: auto; }
.promo-label { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 9px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.promo-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; transition: background .2s, transform .2s; }
.promo-close:hover { background: rgba(0, 0, 0, .85); transform: rotate(90deg); }
.promo-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; padding: 14px 16px 16px; }
.promo-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px; background: #25d366; color: #06381b; font: 800 1rem var(--font); text-decoration: none; box-shadow: 0 6px 18px rgba(37, 211, 102, .35); transition: transform .15s, filter .2s; }
.promo-cta:hover { color: #06381b; transform: translateY(-1px); filter: brightness(1.05); }
.promo-later { border: 0; background: none; color: var(--muted); font: 600 .9375rem var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
html.promo-lock { overflow: hidden; }
@media (max-width: 560px) { .promo { padding: 10px 10px 0; align-items: end; } .promo-box { border-radius: var(--radius) var(--radius) 0 0; } .promo-cta { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .promo-backdrop, .promo-box { transition: none; } }
