:root {
  color-scheme: light;

  /* =====================================================================
     PRIMITIVAS — los unicos literales del archivo.
     Reemplazan 38 hex sueltos repartidos por todo el CSS. Solo se
     colapsaron colores con deltaE < 3 (imperceptibles uno al lado del
     otro): habia nueve blancos-verdosos distintos entre #edf7f2 y
     #fbfdfc que no se diferenciaban en pantalla. Los pares que si se
     distinguen quedaron como pasos propios.
     ===================================================================== */
  --green-25: #fbfdfc;
  --green-50: #f6faf8;
  --green-75: #f4fbf7;
  --green-100: #edf7f2;
  --green-125: #edf8ea;
  --green-150: #e5f4ec;
  --green-175: #e4f7ec;
  --green-200: #d6e3dc;
  --green-250: #c7d8cf;
  --green-300: #b9d5c6;
  --green-400: #9ecf96;
  --green-500: #1f7f1f;
  --green-600: #168f52;
  --green-650: #128c4a;
  --green-700: #0f6b3c;
  --green-800: #0b5a36;
  --green-900: #0a4f2f;
  --green-950: #092116;

  --ink-900: #172026;
  --ink-850: #28343d;
  --ink-800: #244135;
  --ink-700: #31433a;
  --ink-650: #315042;
  --ink-600: #41534b;
  --ink-500: #5f6d68;
  --ink-400: #66756f;

  --white: #ffffff;

  /* Marcas externas: no son nuestras, no se tocan. */
  --whatsapp: #25d366;
  --whatsapp-hover: #1fb85a;
  --blue-500: #2563eb;
  --blue-600: #246bfe;
  --blue-100: #e8f0ff;
  --slate-100: #e8edf0;

  /* =====================================================================
     SEMANTICAS — apuntan a las primitivas, nunca a un literal.
     Para recolorear el sitio se toca la rampa de arriba, no esto.
     ===================================================================== */
  --bg: var(--green-50);
  --bg-warm: var(--green-100);
  --surface: var(--white);
  --text: var(--ink-900);
  --muted: var(--ink-500);
  --line: var(--green-200);
  --line-strong: var(--green-300);
  --brand: var(--green-500);
  --brand-dark: var(--green-800);
  --brand-soft: var(--green-125);
  --duty: var(--green-600);
  --duty-ink: var(--green-700);   /* legible sobre --duty-soft: 5.9:1 */
  --duty-soft: var(--green-175);
  --map-blue: var(--blue-500);
  --ink: var(--text);

  --shadow: 0 12px 30px rgba(14, 43, 31, 0.08);
  --shadow-strong: 0 18px 44px rgba(14, 43, 31, 0.12);

  /* --- Fase 4: escalas -------------------------------------------------
     Radio: habia 27 usos de 8px, o sea un solo nivel para inputs, tarjetas
     y contenedores. Elevacion: habia 25 sombras distintas escritas a mano,
     asi que cada tarjeta flotaba a una altura apenas distinta sin que eso
     significara nada. Peso: 650/750/850 solo existen en fuentes variables;
     con system-ui cada sistema operativo los redondeaba distinto. */
  --radius-sm: 8px;    /* inputs, botones, badges, chips */
  --radius-md: 12px;   /* tarjetas */
  --radius-lg: 16px;   /* paneles y contenedores grandes */

  --elev-1: 0 1px 2px rgba(14, 43, 31, 0.06);    /* tarjeta en reposo */
  --elev-2: 0 8px 24px rgba(14, 43, 31, 0.08);   /* tarjeta destacada / hover */
  --elev-3: 0 18px 44px rgba(14, 43, 31, 0.12);  /* lo que realmente flota */

  --fw-normal: 400;
  --fw-medium: 600;
  --fw-bold: 700;

  /* Escala de apilado: antes habia valores sueltos (-1, 1, 5, 20, 30, 60)
     sin criterio de quien va encima de quien. */
  --z-below: -1;
  --z-base: 1;
  --z-marker: 5;
  --z-fab: 20;
  --z-header: 30;
  --z-tooltip: 40;
  --z-skip: 60;


  /* --- Fase 1: identidad visual --- */
  /* Superficie de marca. Blanco encima: 6.59:1 (claro) a 9.67:1 (oscuro). */
  --hero-from: var(--green-700);
  --hero-to: var(--green-900);
  --on-brand: var(--white);
  --on-brand-soft: rgba(255, 255, 255, 0.9);   /* 5.67:1 sobre --hero-from */

  /* Color de accion, distinto al color de marca. Texto oscuro encima: 5.72:1. */
  --accent: #f97316;
  --accent-hover: #ea580c;
  --on-accent: #3b1703;
  --accent-ink: #9a3412;                        /* accent legible sobre blanco: 7.31:1 */

  /* Se referenciaba sin estar definida (P0-3). */
  --shadow-soft: 0 6px 18px rgba(14, 43, 31, 0.05);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(31, 127, 31, 0.025) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(180deg, var(--green-25) 0, var(--bg) 420px);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
p {
  margin-top: 0;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.messages {
  max-width: 1120px;
  margin: 16px auto 0;
  padding: 0 clamp(16px, 5vw, 24px);
}
.message {
  margin: 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 12px 14px;
  color: var(--text);
}
.site-header, .site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 14px clamp(16px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.site-footer { border-top: 1px solid var(--line); border-bottom: 0; margin-top: 48px; }
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--text);
  font-size: 22px;
  font-weight: var(--fw-bold);
  line-height: 1;
}
.brand img {
  display: block;
  width: 188px;
  height: 52px;
  object-fit: contain;
}
nav { display: flex; gap: 10px; flex-wrap: wrap; }
nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px; /* faltaba: el icono quedaba pegado al texto en .nav-whatsapp */
  min-height: 36px;
  border-radius: 999px;
  padding: 0 11px;
  color: var(--ink-700);
  font-weight: var(--fw-medium);
}
nav a:hover {
  background: var(--brand-soft);
  text-decoration: none;
}
.nav-whatsapp {
  background: var(--whatsapp);
  color: var(--green-950);
  box-shadow: 0 8px 18px rgba(31, 127, 31, 0.14);
}
.nav-telegram {
  background: var(--blue-100);
  color: var(--blue-500);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
}
.nav-whatsapp:hover {
  background: var(--whatsapp-hover);
  color: var(--green-950);
}
.nav-telegram:hover {
  background: #dce9ff;
  color: var(--blue-600);
}
.ui-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  background: currentColor;
  vertical-align: -0.16em;
  mask: center / contain no-repeat;
  -webkit-mask: center / contain no-repeat;
}
.icon-search { mask-image: url("/static/img/icon-search.241d877ff54f.svg"); -webkit-mask-image: url("/static/img/icon-search.241d877ff54f.svg"); }
.icon-map { mask-image: url("/static/img/icon-map.9dc993841a17.svg"); -webkit-mask-image: url("/static/img/icon-map.9dc993841a17.svg"); }
.icon-phone { mask-image: url("/static/img/icon-phone.1a19727a6263.svg"); -webkit-mask-image: url("/static/img/icon-phone.1a19727a6263.svg"); }
.icon-clock { mask-image: url("/static/img/icon-clock.ee6b1d084400.svg"); -webkit-mask-image: url("/static/img/icon-clock.ee6b1d084400.svg"); }
.icon-city { mask-image: url("/static/img/icon-city.63375bbfec59.svg"); -webkit-mask-image: url("/static/img/icon-city.63375bbfec59.svg"); }
.icon-report { mask-image: url("/static/img/icon-report.8036bba1ae7f.svg"); -webkit-mask-image: url("/static/img/icon-report.8036bba1ae7f.svg"); }
.icon-whatsapp { mask-image: url("/static/img/icon-whatsapp.4e3e149b59ff.svg"); -webkit-mask-image: url("/static/img/icon-whatsapp.4e3e149b59ff.svg"); }
.icon-telegram { mask-image: url("/static/img/icon-telegram.8ec25d7fe4eb.svg"); -webkit-mask-image: url("/static/img/icon-telegram.8ec25d7fe4eb.svg"); }
.icon-info { mask-image: url("/static/img/icon-info.6f77c871694c.svg"); -webkit-mask-image: url("/static/img/icon-info.6f77c871694c.svg"); }
.whatsapp-cta {
  position: fixed;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(16px, 4vw, 32px);
  z-index: var(--z-fab);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 62px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--whatsapp);
  color: var(--green-950);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.24), 0 0 0 6px rgba(37, 211, 102, 0.14);
  font-weight: var(--fw-bold);
  line-height: 1;
  isolation: isolate;
}
.telegram-cta {
  position: fixed;
  right: clamp(16px, 4vw, 32px);
  bottom: clamp(16px, 4vw, 32px);
  z-index: var(--z-fab);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 62px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--blue-500);
  color: var(--surface);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22), 0 0 0 6px rgba(37, 99, 235, 0.12);
  font-weight: var(--fw-bold);
  line-height: 1;
}
.telegram-cta:hover {
  text-decoration: none;
  background: var(--blue-600);
  transform: translateY(-1px);
}
.telegram-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--surface);
  font-size: 20px;
  font-weight: var(--fw-bold);
}
.telegram-badge-icon {
  background: var(--blue-500);
}
.telegram-badge-icon .ui-icon {
  width: 22px;
  height: 22px;
  color: var(--surface);
}
.whatsapp-cta::before {
  position: absolute;
  inset: -7px;
  z-index: var(--z-below);
  border-radius: inherit;
  background: rgba(37, 211, 102, 0.16);
  content: "";
  animation: whatsappPulse 2.6s ease-in-out infinite;
}
.whatsapp-cta:hover {
  text-decoration: none;
  background: var(--whatsapp-hover);
  transform: translateY(-1px);
}
.whatsapp-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--green-650);
  padding: 3px;
}
.whatsapp-bubble {
  fill: currentColor;
}
.whatsapp-phone {
  fill: var(--surface);
}
.whatsapp-cta-text {
  display: inline-block;
  line-height: 1;
}
@keyframes whatsappPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.98); }
  50% { opacity: 0.16; transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-cta::before {
    animation: none;
  }
}
.hero, .section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px clamp(16px, 5vw, 24px);
}
.hero {
  padding-top: clamp(42px, 7vw, 76px);
  padding-bottom: 34px;
}
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
}
.hero-copy {
  min-width: 0;
}
.hero h1 {
  max-width: 850px;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--ink-600);
  font-size: 19px;
  line-height: 1.65;
}
.hero-primary-cta {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 26px;
}
.cta-stack {
  align-items: start;
}
.channel-card-stack {
  display: grid;
  gap: 14px;
}
.hero-primary-cta p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 0 12px;
  font-size: 14px;
  font-weight: var(--fw-bold);
}
.hero-tool {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-strong);
  padding: 22px;
  overflow: hidden;
}
.whatsapp-card-cta {
  position: relative;
  z-index: var(--z-base);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(31, 127, 31, 0.28);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--green-75), var(--surface) 74%);
  color: var(--text);
  padding: 14px 15px;
  box-shadow: var(--elev-2);
}
.telegram-card-cta {
  position: relative;
  z-index: var(--z-base);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--blue-100), var(--surface) 74%);
  color: var(--text);
  padding: 14px 15px;
  box-shadow: var(--elev-2);
}
.telegram-card-cta:hover {
  border-color: rgba(37, 99, 235, 0.46);
  box-shadow: var(--elev-2);
  text-decoration: none;
}
.whatsapp-card-cta:hover {
  border-color: rgba(31, 127, 31, 0.46);
  box-shadow: var(--elev-2);
  text-decoration: none;
}
/* var(--whatsapp) dejaba el glifo blanco en 1.98:1 y el circulo tampoco se
   despegaba de la tarjeta blanca. var(--green-700) da 5.41:1 en ambos sentidos. */
.whatsapp-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 999px;
  background: var(--green-700);
  color: var(--surface);
}
/* El icono heredaba color: var(--green-950) del contenedor y quedaba casi negro
   sobre el circulo verde. Va en blanco, como el boton flotante. */
.whatsapp-badge-icon .ui-icon {
  width: 22px;
  height: 22px;
  color: var(--surface);
}
.channel-card-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.whatsapp-card-cta strong {
  display: block;
  line-height: 1.2;
}
.channel-card-copy > span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.button-telegram {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: var(--surface);
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.16);
}
.button-telegram:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--surface);
}
.hero-tool .city-search {
  position: relative;
  z-index: var(--z-base);
  max-width: none;
  margin-top: 0;
}
.hero-tool .hero-actions {
  position: relative;
  z-index: var(--z-base);
}
.hero-mini-map {
  position: relative;
  height: 146px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(90deg, transparent 0 31%, rgba(12, 73, 44, 0.08) 31% 32%, transparent 32% 62%, rgba(12, 73, 44, 0.08) 62% 63%, transparent 63%),
    linear-gradient(0deg, transparent 0 38%, rgba(12, 73, 44, 0.08) 38% 39%, transparent 39% 72%, rgba(12, 73, 44, 0.08) 72% 73%, transparent 73%),
    var(--green-75);
  overflow: hidden;
}
.mini-street,
.mini-pin {
  position: absolute;
  display: block;
}
.mini-street {
  height: 2px;
  border-radius: 999px;
  background: rgba(31, 127, 31, 0.14);
  transform-origin: left center;
}
.mini-street-a { left: -6%; top: 64%; width: 112%; transform: rotate(-12deg); }
.mini-street-b { left: 10%; top: 24%; width: 80%; transform: rotate(18deg); }
.mini-street-c { left: 52%; top: -10%; width: 70%; transform: rotate(76deg); }
.mini-pin {
  width: 18px;
  height: 18px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(31, 127, 31, 0.16), 0 8px 18px rgba(14, 43, 31, 0.18);
}
.mini-pin-duty { left: 54%; top: 44%; width: 24px; height: 24px; background: var(--duty); }
.mini-pin-alt { left: 24%; top: 58%; background: var(--map-blue); box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.16), 0 8px 18px rgba(14, 43, 31, 0.14); }
.mini-pin-small { right: 18%; top: 22%; width: 14px; height: 14px; background: var(--ink-400); }
.page-hero {
  padding-top: 44px;
  padding-bottom: 28px;
}
.page-hero p {
  max-width: 780px;
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.65;
}
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}
.hero-metrics span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  padding: 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: var(--fw-medium);
}
.hero-metrics strong {
  color: var(--text);
  font-size: 18px;
}
.section h1 { font-size: clamp(32px, 4.5vw, 48px); line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 10px; }
.section h2 {
  margin: 0 0 18px;
  line-height: 1.18;
}
.section h2 .ui-icon {
  color: var(--brand);
  width: 0.95em;
  height: 0.95em;
}
.section > h1 + .group {
  margin-top: 26px;
}
.group {
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
}
.group:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.group h2 {
  margin-bottom: 18px;
}
.group + .group {
  margin-top: 8px;
}
.muted, .site-footer { color: var(--muted); }
.muted {
  line-height: 1.65;
}
.city-search {
  max-width: 680px;
  margin-top: 24px;
}
.city-search label {
  display: block;
  margin-bottom: 8px;
  font-weight: var(--fw-bold);
}
.city-search div {
  display: flex;
  gap: 10px;
}
.city-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--green-250);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  min-height: 52px;
  padding: 0 14px;
}
.city-search button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: var(--fw-bold);
  padding: 0 16px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.city-search button {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--surface);
  box-shadow: 0 10px 18px rgba(31, 127, 31, 0.16);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 18px;
}
.trust-strip div {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  padding: 18px 16px 16px;
  box-shadow: var(--elev-1);
}
.trust-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 10px;
  color: var(--brand);
}
.trust-strip strong {
  display: block;
  margin-bottom: 4px;
}
.trust-strip span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.button:hover, .city-search button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.button-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--surface);
}
.button-whatsapp {
  background: var(--whatsapp);
  border-color: var(--whatsapp);
  color: var(--green-950);
  box-shadow: 0 12px 26px rgba(31, 127, 31, 0.18);
}
.button-whatsapp:hover {
  background: var(--whatsapp-hover);
  border-color: var(--whatsapp-hover);
}
.button-xl {
  min-height: 58px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: var(--fw-bold);
}
.directory-hero {
  padding-bottom: 18px;
}
.province-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.province-index a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink-650);
  padding: 0 12px;
  font-size: 14px;
  font-weight: var(--fw-bold);
}
.province-index a:hover {
  border-color: var(--line-strong);
  background: var(--brand-soft);
  text-decoration: none;
}
.city-guide-section {
  padding-top: 18px;
}
.result-note {
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  background: var(--green-100);
  padding: 12px 14px;
  color: var(--ink-800);
}
.province-group {
  scroll-margin-top: 18px;
}
.province-group h2 a {
  color: var(--brand);
}
.city-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.coverage-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
}
.summary-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 15px 16px 15px 58px;
  box-shadow: var(--elev-1);
}
.summary-icon {
  position: absolute;
  left: 16px;
  top: 18px;
  width: 28px;
  height: 28px;
  color: var(--brand);
  border-radius: var(--radius-sm);
  background: currentColor;
}
.summary-24h .summary-icon {
  color: var(--map-blue);
}
.summary-total .summary-icon {
  color: var(--muted);
}
.city-summary strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}
.city-summary span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
.city-info-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(240px, 1.5fr) minmax(260px, 1.7fr);
  gap: 0;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--elev-1);
  overflow: visible;
}
.city-info-grid div {
  min-width: 0;
  padding: 12px 14px;
}
.city-info-grid div + div {
  border-left: 1px solid var(--line);
}
.city-info-grid strong,
.source-row h3 {
  display: block;
  margin: 0 0 4px;
}
.city-info-grid strong {
  display: flex;
  gap: 5px;
  align-items: center;
  min-height: 18px;
  color: var(--brand-dark);
  font-size: 13px;
  line-height: 1.2;
}
.help {
  display: inline-flex;
  flex: 0 0 16px;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px solid var(--green-400);
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  line-height: 16px;
  cursor: help;
}
.info-glyph {
  display: inline-block;
  width: 16px;
  height: 16px;
  color: currentColor;
  background: currentColor;
  mask: url("/static/img/icon-info.6f77c871694c.svg") center / contain no-repeat;
  -webkit-mask: url("/static/img/icon-info.6f77c871694c.svg") center / contain no-repeat;
}
.help .info-glyph {
  width: 14px;
  height: 14px;
}
.city-info-grid span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.notice-inline {
  margin: 20px 0 0;
  border-left: 4px solid var(--brand);
  background: var(--green-100);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--ink-800);
  line-height: 1.6;
}
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.city-whatsapp-panel {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  border: 1px solid rgba(31, 127, 31, 0.28);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 14px 15px;
  box-shadow: var(--elev-1);
}
.city-telegram-panel {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 14px 15px;
  box-shadow: var(--elev-1);
}
.city-telegram-panel strong,
.city-telegram-panel span {
  display: block;
}
.city-telegram-panel strong {
  color: var(--blue-500);
  line-height: 1.25;
}
.city-telegram-panel span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}
.city-whatsapp-panel strong,
.city-whatsapp-panel span {
  display: block;
}
.city-whatsapp-panel strong {
  color: var(--brand-dark);
  line-height: 1.25;
}
.city-whatsapp-panel span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}
.ad-section {
  padding-top: 8px;
  padding-bottom: 8px;
}
.ad-slot {
  display: block;
  min-height: 90px;
  overflow: hidden;
}
.ad-slot-in-content {
  min-height: 120px;
}
.ad-slot-mobile {
  min-height: 60px;
}
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.compact-link-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 220px));
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
}

.button-compact {
  min-height: 44px;
  padding: 9px 14px;
  white-space: nowrap;
}

.link-grid a, .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.city-link-card strong {
  display: block;
  color: var(--brand);
}
.card strong {
  display: block;
  color: var(--ink);
}
.link-grid a:hover {
  border-color: var(--line-strong);
  box-shadow: var(--elev-2);
  text-decoration: none;
}
.link-grid a span,
.card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.priority-cards {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.blog-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.blog-card h3 {
  margin: 8px 0 8px;
  line-height: 1.25;
}
.blog-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
}
.blog-category {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 0 10px;
  font-size: 13px;
  font-weight: var(--fw-bold);
}
.blog-article h1 {
  max-width: 880px;
}
.blog-article .prose section + section {
  margin-top: 28px;
}
.blog-article .prose h2 {
  margin: 0 0 10px;
  font-size: 24px;
}
.blog-article .prose ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
.blog-article .prose li {
  margin-bottom: 8px;
}
.blog-cta {
  max-width: 820px;
}
.blog-cta strong {
  display: block;
  color: var(--brand-dark);
  font-size: 18px;
}
.blog-cta p {
  margin: 6px 0 0;
}
.duty-map-section {
  max-width: 1320px;
  padding-top: 20px;
}
.duty-map-layout {
  display: grid;
  grid-template-columns: minmax(480px, 1.3fr) minmax(340px, 0.9fr);
  gap: 22px;
  align-items: start;
}
.duty-panel,
.map-panel {
  min-width: 0;
}
.map-panel {
  position: sticky;
  top: 14px;
}
.map-panel h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-600);
  padding: 0 10px;
  font-size: 13px;
  font-weight: var(--fw-bold);
}
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.legend-duty {
  position: relative;
  background: var(--duty);
}
.legend-duty::after {
  position: absolute;
  inset: 4px;
  border-radius: 2px;
  background:
    linear-gradient(var(--surface), var(--surface)) center / 2px 100% no-repeat,
    linear-gradient(var(--surface), var(--surface)) center / 100% 2px no-repeat;
  content: "";
}
.legend-24h { background: var(--blue-500); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18); }
.legend-default { background: var(--muted); }
.legend-user { background: var(--map-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18); }
.card {
  box-shadow: var(--elev-1);
}
.card-duty {
  position: relative;
  border-color: rgba(22, 143, 82, 0.42);
  background: linear-gradient(180deg, var(--surface), var(--green-75));
  box-shadow: var(--elev-2);
}
.card-duty::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  background: var(--duty);
  content: "";
}
.pharmacy-card,
.directory-list li {
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.pharmacy-card.is-map-highlighted,
.directory-list li.is-map-highlighted {
  border-color: var(--brand);
  box-shadow: var(--elev-3);
}
.card h3 { margin: 0 0 8px; }
.card h3 a {
  color: var(--brand);
}
.card p { margin: 4px 0; color: var(--muted); }
.card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
  margin-bottom: 8px;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.card-actions a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: var(--fw-bold);
}
.card-actions .action-primary {
  border-color: var(--line-strong);
  background: var(--green-75);
}
.card-actions .action-primary:hover {
  background: var(--brand-soft);
}
.icon-action {
  position: relative;
  width: 34px;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
}
.card-actions a:hover {
  text-decoration: none;
  border-color: var(--brand);
}
.directory-section {
  padding-top: 18px;
}
.directory-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.78);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: var(--fw-medium);
}
.directory-toolbar .button {
  min-height: 36px;
}
.directory-list {
  columns: 2 300px;
  column-gap: 28px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.directory-list li {
  break-inside: avoid;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.directory-list a {
  display: block;
  font-weight: var(--fw-medium);
}
.directory-list span {
  display: block;
  color: var(--muted);
}
.badge {
  display: inline-block;
  border-radius: 999px;
  background: var(--green-150);
  color: var(--brand-dark);
  padding: 4px 10px;
  font-size: 14px;
  font-weight: var(--fw-medium);
}
/* --duty (var(--duty)) sobre --duty-soft daba 3.7:1 y no pasaba AA.
   var(--green-700) sobre el mismo fondo da 5.9:1. */
.badge-duty {
  background: var(--duty-soft);
  color: var(--duty-ink);
}
.badge-24h {
  background: var(--blue-100);
  color: var(--map-blue);
}
.breadcrumb { color: var(--muted); margin-bottom: 12px; }
.details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 20px;
}
.details dt { font-weight: var(--fw-bold); }
.details dd { margin: 0; }
.notice {
  margin-top: 24px;
  background: var(--surface);
  border-left: 4px solid var(--brand);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--elev-1);
}
.notice-panel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--green-100);
  margin-top: 14px;
  margin-bottom: 14px;
}
.notice-panel p {
  max-width: 840px;
  margin-bottom: 0;
  line-height: 1.7;
}
.notice-panel p + p {
  margin-top: 10px;
}
.notice-panel .quick-actions {
  margin-top: 18px;
}
.compact-notice {
  max-width: 820px;
  margin: 0 0 18px;
  border-radius: var(--radius-md);
  padding-top: 20px;
  padding-bottom: 20px;
}
.info-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.info-steps article,
.source-row {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--elev-1);
}
.step-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  color: var(--brand);
}
.info-steps h2,
.info-steps h3,
.source-row h3 {
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 10px;
}
.info-steps p,
.source-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.editorial-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  padding: 22px;
  box-shadow: var(--elev-1);
}
.editorial-card h2 {
  margin-bottom: 10px;
  color: var(--brand-dark);
  font-size: 22px;
}
.editorial-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.source-list {
  display: grid;
  gap: 14px;
}
.source-row span {
  display: inline-block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}
.prose-section {
  padding-top: 18px;
}
.prose {
  max-width: 820px;
  color: var(--ink-850);
}
.prose p {
  margin: 0 0 12px;
}
.report-section {
  padding-top: 24px;
}
.report-form {
  max-width: 820px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}
.form-grid label {
  display: grid;
  gap: 8px;
  font-weight: var(--fw-bold);
}
.form-full {
  grid-column: 1 / -1;
}
.form-control {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  padding: 9px 11px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.form-control:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(31, 127, 31, 0.12);
}
textarea.form-control {
  resize: vertical;
}
.pharmacy-hero-section {
  padding-top: 44px;
}
.pharmacy-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 24px;
  align-items: start;
}
.pharmacy-hero-grid h1 {
  max-width: 760px;
}
.detail-cards {
  display: grid;
  gap: 10px;
  margin: 0;
}
.detail-cards div {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  padding: 13px 14px;
  box-shadow: var(--elev-1);
}
.detail-cards dt {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 5px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: var(--fw-bold);
}
.detail-cards dd {
  margin: 0;
  color: var(--muted);
}
.embed-map {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--slate-100);
  box-shadow: var(--shadow);
}
.embed-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.city-map {
  width: 100%;
  height: 460px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--slate-100);
}
.city-map-featured {
  height: min(72vh, 720px);
  min-height: 560px;
  box-shadow: var(--shadow);
}
.map-empty {
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}
.map-empty strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}
.map-empty p { margin: 0; }
.map-marker {
  appearance: none;
  position: relative;
  width: 16px;
  height: 16px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--muted);
  padding: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.28);
  cursor: pointer;
  transition: box-shadow 0.16s ease, filter 0.16s ease, transform 0.16s ease;
  transform-origin: center;
}
.map-marker.is-duty {
  width: 24px;
  height: 24px;
  border-width: 3px;
  background: var(--duty);
  box-shadow: 0 0 0 5px rgba(22, 143, 82, 0.22), 0 3px 10px rgba(15, 23, 42, 0.32);
}
.map-marker.is-duty::after {
  position: absolute;
  inset: 6px;
  border-radius: 2px;
  background:
    linear-gradient(var(--surface), var(--surface)) center / 3px 100% no-repeat,
    linear-gradient(var(--surface), var(--surface)) center / 100% 3px no-repeat;
  content: "";
}
.map-marker.is-24h {
  width: 20px;
  height: 20px;
  background: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2), 0 2px 8px rgba(15, 23, 42, 0.28);
}
.map-marker.is-duty.is-24h {
  width: 24px;
  height: 24px;
  background: var(--duty);
  box-shadow: 0 0 0 5px rgba(22, 143, 82, 0.22), 0 3px 10px rgba(15, 23, 42, 0.32);
}
.map-marker.is-highlighted {
  filter: saturate(1.2);
  transform: scale(1.35);
  z-index: var(--z-marker);
  box-shadow: 0 0 0 7px rgba(31, 127, 31, 0.22), 0 6px 18px rgba(15, 23, 42, 0.36);
}
.map-marker.is-duty.is-highlighted,
.map-marker.is-duty.is-24h.is-highlighted {
  box-shadow: 0 0 0 8px rgba(22, 143, 82, 0.28), 0 6px 18px rgba(15, 23, 42, 0.38);
}
.map-marker.is-24h.is-highlighted:not(.is-duty) {
  box-shadow: 0 0 0 7px rgba(37, 99, 235, 0.28), 0 6px 18px rgba(15, 23, 42, 0.36);
}
.map-user-marker {
  width: 18px;
  height: 18px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--blue-600);
  box-shadow: 0 0 0 7px rgba(36, 107, 254, 0.18), 0 2px 10px rgba(15, 23, 42, 0.3);
}
.map-loading {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(31, 127, 31, 0.04) 1px, transparent 1px) 0 0 / 36px 36px,
    var(--green-75);
  color: var(--muted);
  text-align: center;
}
.map-loading strong {
  display: block;
  color: var(--text);
  font-size: 18px;
}
.map-loading p {
  margin: 4px 0 0;
}
.mapboxgl-popup-content p { margin: 4px 0; }
.popup-badge {
  display: inline-block;
  margin: 4px 4px 0 0;
  border-radius: 999px;
  background: var(--green-150);
  color: var(--brand-dark);
  padding: 2px 8px;
  font-size: 12px;
  font-weight: var(--fw-medium);
}
.tooltip {
  position: relative;
}
.whatsapp-cta.tooltip {
  position: fixed;
}
.tooltip::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: var(--z-tooltip);
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  border-radius: 6px;
  background: var(--green-950);
  color: var(--surface);
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: var(--fw-bold);
  padding: 6px 8px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.tooltip:hover::after,
.tooltip:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 980px) {
  .home-hero {
    grid-template-columns: 1fr;
  }
  .hero-tool {
    max-width: 720px;
  }
  .duty-map-layout {
    grid-template-columns: 1fr;
  }
  .map-panel {
    position: static;
  }
  .city-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .city-info-grid div {
    border-top: 1px solid var(--line);
  }
  .city-info-grid div:nth-child(-n+2) {
    border-top: 0;
  }
  .city-info-grid div:nth-child(odd) {
    border-left: 0;
  }
}
@media (max-width: 640px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .brand img { width: 164px; height: 46px; }
  nav { gap: 6px; }
  nav a { min-height: 34px; padding: 0 9px; }
  .hero,
  .section {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero {
    padding-top: 32px;
  }
  .hero h1 {
    font-size: 36px;
    line-height: 1.06;
  }
  .hero p,
  .page-hero p {
    font-size: 16px;
    line-height: 1.6;
  }
  .hero-primary-cta {
    justify-items: stretch;
  }
  .hero-primary-cta .button {
    width: 100%;
  }
  .hero-primary-cta p {
    max-width: none;
  }
  .hero-tool {
    padding: 16px;
  }
  .whatsapp-card-cta {
    grid-template-columns: 38px 1fr;
    padding: 12px;
  }
  .telegram-card-cta {
    grid-template-columns: 38px 1fr;
    padding: 12px;
  }
  .whatsapp-badge-icon,
  .city-whatsapp-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
  .whatsapp-badge-icon .ui-icon {
    width: 20px;
    height: 20px;
  }
  .telegram-badge-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
  .hero-mini-map {
    height: 116px;
  }
  .city-search div { flex-direction: column; }
  .city-summary { grid-template-columns: 1fr; }
  .summary-item {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .city-info-grid { grid-template-columns: 1fr; }
  .city-info-grid div,
  .city-info-grid div:nth-child(-n+2) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .city-info-grid div:first-child {
    border-top: 0;
  }
  .trust-strip { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .info-steps { grid-template-columns: 1fr; }
  .editorial-grid { grid-template-columns: 1fr; }
  .quick-actions { flex-direction: column; }
  .quick-actions .button { width: 100%; }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .section-heading .button {
    width: 100%;
  }
  .city-whatsapp-panel {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
  }
  .city-telegram-panel {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
  }
  .city-whatsapp-panel .button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .city-telegram-panel .button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .pharmacy-hero-grid {
    grid-template-columns: 1fr;
  }
  .detail-cards {
    gap: 8px;
  }
  .ad-slot { min-height: 100px; }
  .details { grid-template-columns: 1fr; }
  .city-map,
  .city-map-featured {
    height: 420px;
    min-height: 420px;
  }
  .province-index {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .province-index a {
    flex: 0 0 auto;
  }
  .form-grid { grid-template-columns: 1fr; }
  .embed-map {
    aspect-ratio: 4 / 3;
    min-height: 260px;
  }
  .whatsapp-cta {
    right: 14px;
    bottom: 14px;
    left: 14px;
    min-height: 58px;
  }
  .telegram-cta {
    right: 14px;
    bottom: 14px;
    left: 14px;
    min-height: 58px;
  }
.whatsapp-cta-text { display: inline; }
}

.medicine-presentations {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.medicine-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.medicine-row-main,
.medicine-row-detail {
  padding: 20px 22px;
}

.medicine-row-main {
  background: linear-gradient(180deg, var(--surface), var(--green-50));
  border-right: 1px solid var(--line);
}

.medicine-row h3 {
  margin: 0 0 16px;
  color: var(--green-800);
}

.medicine-row dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.medicine-row dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
}

.medicine-row dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.medicine-row a {
  color: var(--brand-dark);
  font-weight: var(--fw-bold);
  text-decoration: none;
}

.medicine-row a:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .medicine-row {
    grid-template-columns: 1fr;
  }
  .medicine-row-main {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* =========================================================================
   FASE 1 — IDENTIDAD VISUAL
   1. Hero con superficie de marca (P0-1)
   2. Color de accion diferenciado (P0-4)
   3. Header sticky (P1-6)
   4. Subrayado de seccion (P2-4)
   ========================================================================= */

/* Permite que el hero rompa el contenedor de 1120px sin scroll horizontal.
   `clip` en vez de `hidden` porque `hidden` romperia el header sticky. */
body { overflow-x: clip; }

/* --- 3. Header sticky ------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  border-bottom: 3px solid var(--brand);
}

/* --- 1. Hero con superficie de marca ---------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  color: var(--on-brand);
}
.hero::before {
  position: absolute;
  z-index: var(--z-below);
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background: linear-gradient(155deg, var(--hero-from) 0%, var(--hero-to) 100%);
  content: "";
}

.hero > h1,
.hero > h2,
.hero > p,
.hero > .muted,
.hero > .breadcrumb,
.hero > .hero-copy h1,
.hero > .hero-copy p {
  color: var(--on-brand);
}
.hero > p,
.hero > .muted,
.hero > .breadcrumb,
.hero > .hero-copy p {
  color: var(--on-brand-soft);
}
.hero > .city-search > label {
  color: var(--on-brand);
}
/* Enlaces sueltos en prosa del hero (no botones, no tarjetas). */
.hero > p a,
.hero > .muted a,
.hero > .breadcrumb a,
.hero > .hero-copy p a {
  color: var(--on-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Kicker: pastilla blanca solida. Texto verde oscuro encima = 8.3:1. */
.hero .hero-kicker {
  background: var(--surface);
  color: var(--brand-dark);
}

/* Metricas: pastillas translucidas sobre el verde. */
/* Texto a blanco pleno: sobre el fondo translucido, blanco al 90% solo
   llegaba a 4.15:1. En blanco pleno da 4.82:1. */
.hero .hero-metrics span {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  color: var(--on-brand);
}
.hero .hero-metrics strong {
  color: var(--on-brand);
}

/* Botones secundarios del hero: superficie blanca, maximo contraste.
   Se excluye .button-whatsapp para no perder el verde de WhatsApp. */
.hero .button:not(.button-primary):not(.button-whatsapp):not(.button-telegram) {
  border-color: transparent;
  background: var(--surface);
  color: var(--text);
}
.hero .button:not(.button-primary):not(.button-whatsapp):not(.button-telegram):hover {
  border-color: transparent;
  background: var(--green-75);
}

/* El indice de provincias vive dentro del hero en la guia de ciudades. */
.hero .province-index a {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  color: var(--on-brand);
}
.hero .province-index a:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.22);
}

/* El panel de herramienta de la home ya es una tarjeta blanca:
   se apoya sobre el verde sin cambios de color interno. */
.hero .hero-tool {
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--surface);
  color: var(--text);
}
.hero .hero-tool p,
.hero .hero-tool label,
.hero .hero-tool .channel-card-copy > span {
  color: var(--muted);
}
.hero .hero-tool label {
  color: var(--text);
}
.hero .hero-tool strong {
  color: var(--text);
}
.hero .hero-tool .button {
  border-color: var(--line);
  background: var(--surface);
}

/* La ayuda contextual invierte sobre verde. */
.hero .help {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.16);
  color: var(--on-brand);
}

/* La pagina de ciudad no usa .hero sino .city-hero-section (que hasta ahora
   no tenia ninguna regla). Recibe la misma banda de marca; las tarjetas
   blancas de metricas quedan apoyadas encima. */
.city-hero-section {
  position: relative;
  isolation: isolate;
  padding-bottom: 34px;
}
.city-hero-section::before {
  position: absolute;
  z-index: var(--z-below);
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background: linear-gradient(155deg, var(--hero-from) 0%, var(--hero-to) 100%);
  content: "";
}
.city-hero-section > h1 {
  color: var(--on-brand);
}
.city-hero-section > .breadcrumb,
.city-hero-section > .breadcrumb a,
.city-hero-section > p.muted {
  color: var(--on-brand-soft);
}
/* Sin subrayado permanente: en el breadcrumb pesaba visualmente y ademas
   el ultimo item no es un enlace. Solo en hover. */
.city-hero-section > .breadcrumb a {
  text-decoration: none;
}
.city-hero-section > .breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.city-hero-section .button:not(.button-primary):not(.button-whatsapp):not(.button-telegram) {
  border-color: transparent;
  background: var(--surface);
  color: var(--text);
}

/* --- 2. Color de accion ------------------------------------------------ */
/* Regla: --accent es solo para LA accion primaria de cada pantalla. */
.city-search button,
.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 8px 18px rgba(154, 52, 18, 0.22);
}
.city-search button:hover,
.button-primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: var(--on-accent);
}

/* Sobre el verde, el naranja tiene poco contraste de luminancia (2.35:1),
   asi que el borde del boton se define con un anillo blanco. */
.hero .city-search button,
.hero .button-primary {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 8px 20px rgba(0, 0, 0, 0.22);
}
.hero .hero-tool .city-search button {
  box-shadow: 0 8px 18px rgba(154, 52, 18, 0.22);
}

/* Un solo acento primario por pantalla: si el hero ya tiene un buscador,
   ese submit es LA accion primaria y .button-primary vuelve a secundario.
   (Sin esto, la guia de ciudades mostraba dos botones naranjas.) */
.hero:has(.city-search) .button-primary,
.hero:has(.city-search) .button-primary:hover {
  border-color: transparent;
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
}
.hero:has(.city-search) .button-primary:hover {
  background: var(--green-75);
}

/* El verde de WhatsApp sobre el verde de marca pierde separacion de
   superficie. Un anillo blanco lo despega sin tocar el color de marca. */
.hero > .hero-copy .button-whatsapp,
.hero > .quick-actions .button-whatsapp {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 12px 26px rgba(0, 0, 0, 0.24);
}
.hero .button.button-telegram {
  border-color: var(--blue-500);
  background: var(--blue-500);
  color: var(--surface);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 12px 26px rgba(0, 0, 0, 0.24);
}
.hero .button.button-telegram:hover {
  border-color: var(--blue-600);
  background: var(--blue-600);
  color: var(--surface);
}

/* --- 4. Subrayado de seccion ------------------------------------------ */
/* Solo H2 que son hijos directos de .section o .group: evita los H2
   inline-flex de .map-panel, .section-heading, .info-steps y .editorial-card. */
.section > h2::after,
.group > h2::after {
  display: block;
  width: 88px;
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--brand);
  content: "";
}
.hero > h2::after {
  background: var(--on-brand);
}

/* =========================================================================
   FASE 2 — HIGIENE Y ACCESIBILIDAD
   ========================================================================= */

/* --- Foco visible global (P1-4) ---------------------------------------
   Antes habia una sola regla de foco en todo el archivo (.form-control).
   Nav, botones, tarjetas y chips no tenian ninguna. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Sobre la banda verde el anillo verde no se distingue: se invierte. */
.hero a:focus-visible,
.hero button:focus-visible,
.hero input:focus-visible,
.city-hero-section a:focus-visible,
.city-hero-section button:focus-visible {
  outline-color: var(--on-brand);
}
/* El FAB es redondeado: el anillo lo acompaña. */
.whatsapp-cta:focus-visible {
  outline-offset: 4px;
  border-radius: 999px;
}

/* --- FAB de WhatsApp (P1-3) -------------------------------------------
   El pulso infinito es un impuesto de atencion permanente. Tres ciclos
   alcanzan para llamar la atencion al cargar. */
.whatsapp-cta::before {
  animation-iteration-count: 3;
}

/* --- Footer pegado al fondo en paginas cortas (P2-6) ------------------- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
body > main {
  flex: 1 0 auto;
}
.site-footer {
  flex-shrink: 0;
}

/* --- Skip-link (P2-6) -------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: var(--z-skip);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  padding: 12px 18px;
  font-weight: var(--fw-bold);
  box-shadow: var(--shadow-strong);
  transition: top 0.16s ease;
}
.skip-link:focus {
  top: 12px;
  text-decoration: none;
}

/* =========================================================================
   FASE 3 — DENSIDAD Y CONTENIDO
   ========================================================================= */

/* --- Tarjeta de farmacia ----------------------------------------------- */
/* Direccion y telefono eran dos <p> grises identicos. El telefono es el
   dato mas accionable de la tarjeta y ahora tiene peso propio y es tappable. */
.card-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 6px 0 0;
  line-height: 1.45;
}
.card-line .ui-icon {
  margin-top: 0.18em;
  color: var(--muted);
}
.card-address {
  color: var(--muted);
  font-size: 15px;
}
.card-phone {
  color: var(--brand-dark);
  font-size: 16px;
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
}
.card-phone .ui-icon {
  color: var(--brand);
}
.card-phone:hover {
  text-decoration: underline;
}

/* Salida explicita, en reemplazo del boton solo-icono cuyo tooltip
   dependia de :hover y en touch no aparecia nunca. */
.card-detail-link {
  display: block;
  margin: 14px -16px -14px;
  /* Sangra hasta el borde de la tarjeta, asi que tiene que acompanar su
     radio: si no, el fondo del hover cuadra las esquinas de abajo. */
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 11px 16px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: var(--fw-bold);
}
.card-detail-link:hover {
  background: var(--brand-soft);
  text-decoration: none;
}
.card-duty .card-detail-link {
  border-top-color: rgba(22, 143, 82, 0.24);
}

/* --- Tarjeta de ciudad -------------------------------------------------- */
.city-link-card {
  position: relative;
}
.city-card-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
/* Las ciudades con turnos cargados son el estado que la gente busca:
   antes se veian identicas a las demas. */
.city-link-card-duty {
  border-color: rgba(22, 143, 82, 0.42);
  background: linear-gradient(180deg, var(--surface), var(--green-75));
}
.city-card-flag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
  padding: 2px 8px;
}
.city-link-card-duty strong {
  padding-right: 68px;
}

/* --- Pagina de farmacia ------------------------------------------------- */
/* Telefono y direccion salen de la lista de tarjetas uniformes y quedan
   con jerarquia propia en la columna izquierda, que antes estaba vacia. */
.detail-primary {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}
.detail-primary-item dt {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.02em;
}
.detail-primary-item dd {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: var(--fw-bold);
  line-height: 1.3;
}
.detail-primary-item dd a {
  color: var(--brand-dark);
  font-variant-numeric: tabular-nums;
}
.detail-primary-item dd a:hover {
  text-decoration: underline;
}
.detail-neighborhood {
  color: var(--muted);
  font-size: 16px;
  font-weight: var(--fw-normal);
}
/* Al sacar la tarjeta "Localidad", una farmacia sin WhatsApp, horario ni
   fuente deja la columna derecha vacia: la grilla pasa a una sola columna. */
.detail-cards:empty {
  display: none;
}
.pharmacy-hero-grid:has(.detail-cards:empty) {
  grid-template-columns: minmax(0, 1fr);
}

/* --- Panel de WhatsApp de la ciudad ------------------------------------- */
/* Pasa de div + boton interno a un unico enlace: el destino era el mismo. */
a.city-whatsapp-panel {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  color: var(--text);
}
a.city-whatsapp-panel:hover {
  border-color: rgba(31, 127, 31, 0.46);
  box-shadow: var(--elev-2);
  text-decoration: none;
}
a.city-telegram-panel:hover {
  border-color: rgba(37, 99, 235, 0.46);
  box-shadow: var(--elev-2);
  text-decoration: none;
}
.city-whatsapp-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.city-whatsapp-copy strong {
  color: var(--brand-dark);
  line-height: 1.25;
}
.city-whatsapp-copy > span {
  color: var(--muted);
  line-height: 1.45;
}
.city-whatsapp-arrow {
  color: var(--brand);
  font-size: 20px;
  font-weight: var(--fw-bold);
}

/* =========================================================================
   AUDITORIA taste-skill (redesign-existing-projects)
   ========================================================================= */

/* --- 1. Acciones alineadas al pie de la tarjeta ------------------------
   Como el 68,5% de las farmacias no tiene telefono cargado, en una misma
   grilla conviven tarjetas con y sin esa linea y el pie quedaba a alturas
   distintas. Empujando el pie al fondo, la fila queda pareja aunque el
   contenido de arriba varie. */
.pharmacy-card {
  display: flex;
  flex-direction: column;
}
.pharmacy-card .card-actions {
  margin-top: auto;
  padding-top: 12px;
}
/* Una farmacia sin telefono y sin coordenadas deja el contenedor de
   acciones vacio: no debe aportar alto. */
.pharmacy-card .card-actions:empty {
  padding-top: 0;
}
.pharmacy-card .card-detail-link {
  margin-top: 14px;
}

/* --- 2. Feedback al presionar -----------------------------------------
   No habia ni una regla :active en todo el archivo. En mobile es lo que
   distingue un boton que respondio de uno que no, y evita el doble toque. */
.button:active,
.city-search button:active,
.card-actions a:active,
.link-grid a:active,
.province-index a:active,
.card-detail-link:active,
.whatsapp-cta:active,
nav a:active {
  transform: translateY(1px) scale(0.99);
  transition-duration: 0.06s;
}

/* --- 3. Medida de linea -----------------------------------------------
   .prose estaba en 820px, que a 16px son unos 100 caracteres por linea.
   Al volver de renglon el ojo se pierde. Lo comodo ronda 65-70. */
.prose {
  max-width: 68ch;
}
.notice-panel p {
  max-width: 70ch;
}
.hero p,
.page-hero p {
  max-width: 62ch;
}

/* --- 4. Viudas y huerfanas ---------------------------------------------
   Titulos largos como "Farmacias de turno en San Miguel de Tucuman hoy"
   dejaban una palabra sola en el ultimo renglon. */
h1, h2, h3,
.hero-kicker,
.card h3,
.city-link-card strong {
  text-wrap: balance;
}
.prose p,
.hero p,
.page-hero p,
.card-address,
.trust-strip span {
  text-wrap: pretty;
}

/* --- 5. Pagina actual en la navegacion --------------------------------- */
nav a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: var(--fw-bold);
}
.site-footer nav a[aria-current="page"] {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* El boton de WhatsApp del header nunca es "la pagina actual". */
nav a.nav-whatsapp[aria-current="page"] {
  background: var(--whatsapp);
  color: var(--green-950);
}
nav a.nav-telegram[aria-current="page"] {
  background: var(--blue-100);
  color: var(--blue-500);
}

/* --- 6. Cifras tabulares -----------------------------------------------
   Numeros que se comparan entre si (12 de turno / 2 24hs / 199 cargadas)
   necesitan ancho fijo de digito para no bailar. */
.city-summary strong,
.hero-metrics strong,
.detail-primary-item dd,
.section-heading .muted {
  font-variant-numeric: tabular-nums;
}

/* --- 7. Franja de confianza --------------------------------------------
   Eran cuatro tarjetas identicas con borde, sombra y fondo: el patron de
   "fila de features" mas generico que existe. Se les saca el marco y pasan
   a ser una franja compacta, que ademas devuelve alto util a la pagina. */
.trust-strip {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 4px 28px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.trust-strip div {
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: 10px 0 10px 34px;
}
.trust-icon {
  position: absolute;
  left: 0;
  top: 12px;
  width: 20px;
  height: 20px;
  margin-bottom: 0;
}
.trust-strip strong {
  font-size: 15px;
}
.trust-strip span {
  font-size: 13px;
}

/* --- 8. Etiquetas de metadato ------------------------------------------
   Habia cuatro bloques distintos en versalitas forzadas por CSS. Sin
   text-transform quedan en capital normal, que es como estan escritas en
   el HTML, y el rol de etiqueta lo sostienen el tamano y el color. */
.city-info-grid strong,
.detail-cards dt,
.detail-primary-item dt,
.medicine-row dt {
  letter-spacing: 0.01em;
}

/* --- 9. Desplazamiento a las anclas ------------------------------------
   La pagina de ciudad tiene #mapa, #guia y #reportar: el salto seco hacia
   perder la referencia de donde venias. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;  /* el header es sticky */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:active,
  .city-search button:active,
  .card-actions a:active,
  .link-grid a:active,
  .province-index a:active,
  .card-detail-link:active,
  .whatsapp-cta:active,
  nav a:active {
    transform: none;
  }
}

/* --- Ajustes responsive ------------------------------------------------ */
@media (max-width: 640px) {
  .hero .hero-primary-cta p {
    color: var(--on-brand-soft);
  }
  .trust-strip {
    gap: 0;
  }
  .detail-primary-item dd {
    font-size: 19px;
  }
  a.city-whatsapp-panel {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
  }
  .section > h2::after,
  .group > h2::after {
    width: 64px;
    margin-top: 10px;
  }
  /* En mobile el FAB es full-width y tapaba el final del footer. */
  body {
    padding-bottom: 84px;
  }
}
