/* ═══════════════════════════════════════════════════════════
   HOLA MELIPILLA — Sistema de diseño renovado
   Tipografía: Plus Jakarta Sans + Inter
   Paleta: Verde bosque + Naranja energético
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --primario: #1B4332;
  --primario-medio: #2D6A4F;
  --primario-claro: #52B788;
  --acento: #F77F00;
  --acento-suave: #FFF3E0;
  --fondo: #F8F9FA;
  --fondo-card: #FFFFFF;
  --texto: #212529;
  --texto-suave: #6C757D;
  --borde: #DEE2E6;
  --exito: #198754;
  --info: #0D6EFD;
  --peligro: #DC3545;
  /* Alias compatibilidad */
  --verde: #1B4332;
  --verde-claro: #52B788;
  --verde-suave: #D8F3DC;
  --crema: #F8F9FA;
  --crema-oscura: #DEE2E6;
  --terracota: #DC3545;
  --terracota-suave: #FFEAEA;
  --azul: #0D6EFD;
  --azul-suave: #E8F0FF;
  --ambar: #D97706;
  --ambar-suave: #FFF8E1;
  --radio: 14px;
  --radio-sm: 10px;
  --sombra: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --sombra-hover: 0 6px 12px rgba(0,0,0,.08), 0 16px 40px rgba(0,0,0,.10);
}


/* ─── RESET Y BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--fondo);
  color: var(--texto);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* padding-top lo maneja .body-nav (subpáginas) o index inline */
}
/* Subpáginas con nav fija: compensar altura nav ~70px */
.body-nav { padding-top: 70px; }
@media (max-width: 768px) { .body-nav { padding-top: 64px; } }
@media (max-width: 768px) {
  body { font-size: 15px; }
  html { scroll-behavior: auto; }
}

/* ─── NAVEGACIÓN ─── */
nav {
  position: fixed;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.2);
  border-bottom: 3px solid var(--primario-claro);
  width: 100%;
  max-width: 100vw;
  /* No overflow:hidden — el scroll wrapper maneja el overflow */
}
@media (max-width: 768px) {
  nav { padding: 0.65rem 0.75rem; }
}
.nav-scroll-wrapper {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
}
.nav-scroll-wrapper::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(to right, transparent, #2D6A4F);
  pointer-events: none;
}


.nav-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 700;
  color: #fff;
  padding: 10px 16px 10px 8px;
  margin-right: 10px;
  border-right: 2px solid rgba(255,255,255,.25);
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -.01em;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: clamp(12px, 3vw, 13px);
  font-weight: 600;
  padding: 8px 13px;
  white-space: nowrap;
  transition: all .2s ease;
  border-radius: 8px;
  margin: 3px 1px;
  border: 1.5px solid transparent;
  min-height: 40px;
  cursor: pointer;
  background: rgba(255,255,255,.08);
}
@media (max-width: 480px) {
  .nav-links a {
    min-height: 44px;
    padding: 9px 11px;
    font-size: 12px;
    gap: 4px;
  }
}
.nav-links a:hover {
  color: #fff;
  background: rgba(247,127,0,.25);
  border-color: rgba(247,127,0,.5);
  transform: translateY(-1px);
}
.nav-links a.active {
  color: var(--primario);
  background: var(--acento);
  border-color: var(--acento);
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(247,127,0,.35);
}
.nav-links a.nav-farmacia {
  background: rgba(247,127,0,.2);
  color: #FFD580;
  border-color: rgba(247,127,0,.5);
  font-weight: 700;
}
.nav-links a.nav-farmacia:hover {
  background: rgba(247,127,0,.35);
  border-color: rgba(247,127,0,.7);
}
.nav-links svg { flex-shrink: 0; width: 16px; height: 16px; }


/* ─── VERSÍCULO DEL DÍA ─── */
.votd-bar {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  z-index: 101;
  background: linear-gradient(135deg, #FFF8E1 0%, #FFF3CD 100%);
  border-bottom: 1px solid #FFCC02;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
}
.votd-bar.oculto { display: none; }
.votd-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
  overflow: hidden;
}
.votd-icon { font-size: 1rem; flex-shrink: 0; }
.votd-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  overflow: hidden;
  line-height: 1.4;
}
.votd-text {
  color: var(--texto);
  font-style: italic;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 600px;
}
.votd-ref {
  font-size: 11px;
  font-weight: 600;
  color: var(--ambar);
  white-space: nowrap;
  flex-shrink: 0;
}
.votd-bar-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--primario);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 0.5rem;
}
.votd-bar-link:hover { text-decoration: underline; }
.votd-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--texto-suave);
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  line-height: 1;
  transition: background .15s;
}
.votd-close:hover { background: rgba(0,0,0,.08); }


/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 60%, #40916C 100%);
  color: #fff;
  padding: clamp(3rem, 8vw, 5rem) 1.5rem clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
@media (max-width: 600px) {
  .hero { padding: 2.5rem 1rem 2rem; }
}
@media (max-width: 380px) {
  .hero { padding: 2rem .85rem 1.75rem; }
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 36px,
    rgba(255,255,255,.022) 36px,
    rgba(255,255,255,.022) 38px
  );
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(82,183,136,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(255,255,255,.12);
  color: #B7E4C7;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}
.hero h1 em {
  font-style: italic;
  font-weight: 600;
  color: #95D5B2;
}
.hero-desc {
  font-size: clamp(0.95rem, 3vw, 1.05rem);
  color: rgba(255,255,255,.75);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
}


/* ─── BUSCADOR ─── */
.buscador-wrap {
  display: flex;
  gap: .5rem;
  max-width: 540px;
  margin-bottom: 1.5rem;
}
/* Buscador global en el hero */
.buscador-global-wrap {
  position: relative;
  max-width: 520px;
  width: 100%;
  margin-top: 1.25rem;
}
.buscador-global-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.13);
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: .55rem .75rem;
  transition: border-color .15s, background .15s;
}
.buscador-global-inner:focus-within {
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.2);
}
.buscador-icono { flex-shrink: 0; color: rgba(255,255,255,.6); }
#buscador-global {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #fff;
  padding: 0;
}
#buscador-global::placeholder { color: rgba(255,255,255,.5); }
.buscador-limpiar {
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
}
.buscador-resultados {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  overflow: hidden;
  z-index: 9999;
  max-height: 360px;
  overflow-y: auto;
}
@media (max-width: 600px) {
  .buscador-global-wrap { max-width: 100%; }
  #buscador-global { font-size: 16px; /* evita zoom en iOS */ }
}
#buscador-global,
.buscador-input {
  flex: 1;
  padding: .7rem 1rem;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  background: rgba(255,255,255,.12);
  color: #fff;
  outline: none;
  transition: border-color .15s, background .15s;
}
#buscador-global::placeholder,
.buscador-input::placeholder { color: rgba(255,255,255,.5); }
#buscador-global:focus,
.buscador-input:focus {
  border-color: var(--primario-claro);
  background: rgba(255,255,255,.18);
}
.buscador-btn {
  padding: .7rem 1.1rem;
  background: var(--acento);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.buscador-btn:hover { background: #E06500; transform: translateY(-1px); }
.buscador-result {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  padding: .75rem 1rem;
  font-size: 13px;
  color: rgba(255,255,255,.9);
  max-width: 540px;
  margin-top: -.75rem;
  margin-bottom: 1rem;
}


/* ─── ACCESOS RÁPIDOS HERO ─── */
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.13);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s ease;
  min-height: 44px;
}
.hero-link:hover {
  background: rgba(247,127,0,.3);
  border-color: rgba(247,127,0,.6);
  transform: translateY(-2px);
}

/* ─── EMERGENCIAS ─── */
.emergency {
  background: var(--peligro);
  padding: .85rem 1.5rem;
}
.emergency-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  align-items: center;
}
.emg-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.75);
  margin-right: .5rem;
}
.emg-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 24px;
  padding: 7px 14px;
  font-size: clamp(12px, 3vw, 13px);
  font-weight: 700;
  text-decoration: none;
  transition: all .2s ease;
  min-height: 40px;
  cursor: pointer;
}
@media (max-width: 480px) {
  .chip { padding: 6px 12px; font-size: 12px; }
}
.chip:hover {
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.55);
  transform: translateY(-1px);
}
.chip span { font-size: 10px; font-weight: 500; opacity: .9; }


/* ─── LAYOUT PRINCIPAL ─── */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 0 5rem;
}

/* ─── SECCIONES ─── */
section {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 1.75rem);
  margin: 0;
}
@media (max-width: 480px) {
  section { padding: 1.75rem 1rem; }
}
section:nth-child(even) { background: #fff; }
section:nth-child(odd)  { background: var(--fondo); }
section:nth-child(even)::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--primario-claro), transparent);
  margin: -3.5rem -1.75rem 3rem;
}
@media (max-width: 600px) {
  section:nth-child(even)::before { margin: -2rem -1rem 2rem; }
}

/* ─── TÍTULOS DE SECCIÓN ─── */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--borde);
}
.section-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ic-verde { background: var(--verde-suave); color: var(--primario); }
.ic-azul  { background: var(--azul-suave);  color: var(--azul); }
.ic-rojo  { background: #FFE4E6;            color: var(--peligro); }
.ic-ambar { background: var(--ambar-suave); color: var(--ambar); }
.section-title h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--texto);
  letter-spacing: -.025em;
}
.section-title p {
  font-size: 13px;
  color: var(--texto-suave);
  margin-top: 2px;
}
.section-inner { max-width: 960px; margin: 0 auto; }


/* ─── CARDS ─── */
.cards { display: grid; gap: clamp(0.8rem, 3vw, 1.1rem); }
.cards-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
@media (max-width: 480px) {
  .cards-2 { grid-template-columns: 1fr; }
}
.card {
  background: var(--fondo-card);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: clamp(1.2rem, 4vw, 1.5rem);
  box-shadow: var(--sombra);
  transition: box-shadow .22s, transform .22s, border-color .22s;
}
@media (max-width: 480px) {
  .card { padding: .9rem 1rem; }
}
.card:hover {
  box-shadow: var(--sombra-hover);
  transform: translateY(-2px);
  border-color: rgba(82,183,136,.35);
}
section:nth-child(even) .card { background: var(--fondo); }
.card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: .7rem;
}
.card-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--texto);
  line-height: 1.3;
}
.card .sub {
  font-size: 12px;
  color: var(--texto-suave);
  margin-top: 2px;
}
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--texto-suave);
  padding: 6px 0;
  border-top: 1px solid var(--borde);
  line-height: 1.45;
}
.info-row svg { flex-shrink: 0; margin-top: 2px; }
.info-row a { color: var(--primario-claro); text-decoration: none; font-weight: 500; }
.info-row a:hover { text-decoration: underline; }


/* ─── BADGES DÍA ─── */
.dias { display: flex; flex-wrap: wrap; gap: 4px; }
.dia {
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  background: var(--verde-suave);
  color: var(--primario);
  letter-spacing: .02em;
}

/* ─── BOTONES ─── */
.btn-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: clamp(12px, 3vw, 13px);
  font-weight: 700;
  color: var(--primario);
  background: var(--verde-suave);
  border: 1.5px solid var(--primario-claro);
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  margin-top: 8px;
  cursor: pointer;
  transition: all .2s ease;
  min-height: 44px;
  flex: 1;
  min-width: 0;
  word-break: keep-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-map:hover {
  background: var(--primario-claro);
  border-color: var(--primario-claro);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(82,183,136,.3);
}
.btn-whatsapp,
.btn-wsp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: clamp(12px, 3vw, 13px);
  font-weight: 700;
  color: #fff;
  background: #25D366;
  border: 1.5px solid #20BA5A;
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  margin-top: 8px;
  cursor: pointer;
  transition: all .2s ease;
  min-height: 44px;
  flex: 1;
}
.btn-whatsapp:hover,
.btn-wsp:hover {
  background: #1EAA52;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,211,102,.3);
}
.btn-copiar,
.btn-tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: clamp(12px, 3vw, 13px);
  font-weight: 700;
  color: var(--primario);
  background: var(--verde-suave);
  border: 1.5px solid var(--primario-claro);
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  margin-top: 8px;
  cursor: pointer;
  transition: all .2s ease;
  min-height: 44px;
  flex: 1;
  min-width: 100px;
}
.btn-copiar:hover,
.btn-tel:hover { background: var(--primario-claro); color: #fff; }
.btn-copiar.copiado,
.btn-tel.copiado { background: var(--primario); color: #fff; border-color: var(--primario); }
.btn-mapa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--azul);
  background: var(--azul-suave);
  border: 1.5px solid var(--azul);
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s ease;
  min-height: 44px;
  flex: 1;
  min-width: 100px;
}
.btn-mapa:hover { background: var(--azul); color: #fff; }


/* ─── MAPA EMBEBIDO ─── */
.map-embed {
  border-radius: var(--radio);
  overflow: hidden;
  border: 1px solid var(--borde);
  margin-top: .5rem;
  box-shadow: var(--sombra);
}
.map-embed iframe {
  width: 100%; height: clamp(200px, 50vw, 300px);
  display: block; border: none;
}

/* ─── NOTA INFO ─── */
.nota {
  display: flex;
  gap: 10px;
  background: var(--ambar-suave);
  border-left: 4px solid var(--ambar);
  border-radius: 0 var(--radio) var(--radio) 0;
  padding: 1rem 1.1rem;
  font-size: 13px;
  color: #5C3A00;
  margin-top: .75rem;
  line-height: 1.55;
}
.nota svg { flex-shrink: 0; margin-top: 2px; }
.nota a { color: var(--ambar); font-weight: 600; }

/* ─── CARD EMERGENCIA ─── */
.card-emg {
  background: #FFF5F5;
  border: 1px solid #FFCCCC;
  border-radius: var(--radio);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--sombra);
}
.card-emg h3 { color: var(--peligro); font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; }
.emg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: .6rem;
  margin-top: .75rem;
}
.emg-item {
  background: #fff;
  border-radius: var(--radio-sm);
  padding: .75rem;
  text-align: center;
  border: 1px solid #FFCCCC;
}
.emg-item .num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--peligro);
  line-height: 1;
  display: block;
}
.emg-item .name {
  font-size: 11px;
  color: var(--texto-suave);
  margin-top: 3px;
  display: block;
}


/* ─── TURNO DE FARMACIAS ─── */
.turno-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .65rem;
  margin-top: .5rem;
}
.turno-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--fondo-card);
  border: 1px solid var(--borde);
  border-radius: var(--radio-sm);
  padding: .75rem 1rem;
  text-decoration: none;
  color: var(--texto);
  font-size: 13px;
  font-weight: 500;
  transition: border-color .15s, box-shadow .15s;
}
.turno-link:hover {
  border-color: var(--primario-claro);
  box-shadow: 0 2px 8px rgba(82,183,136,.15);
}
.turno-link svg { color: var(--primario-claro); flex-shrink: 0; }

/* ─── CAJA TURNO HOY ─── */
.turno-hoy-box {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFF3CC 100%);
  border: 2px solid var(--acento);
  border-radius: var(--radio);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(247,127,0,.12);
}
.turno-hoy-box::before {
  content: '💊';
  position: absolute;
  right: 1.25rem; top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
  opacity: .1;
}
.turno-hoy-box::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--acento), #FFD060);
  border-radius: 4px 0 0 4px;
}
.turno-hoy-box h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #7A3A00;
  margin-bottom: .4rem;
}
.turno-hoy-box p {
  font-size: 13px;
  color: #8B4500;
  line-height: 1.55;
}
.turno-hoy-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .85rem;
}
@media (max-width: 600px) {
  .turno-hoy-btns { flex-direction: column; }
}
.btn-turno-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--acento);
  color: #fff;
  border-radius: 8px;
  padding: .65rem 1.2rem;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, transform .15s;
  border: none;
}
.btn-turno-primary:hover { background: #D96A00; transform: translateY(-1px); }
.btn-turno-sec {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  color: #7A3A00;
  border: 1.5px solid #F0C060;
  border-radius: 8px;
  padding: .65rem 1.2rem;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.btn-turno-sec:hover { background: #FFF3CC; }


/* ─── TURNO DINÁMICO ─── */
.turno-resultado {
  margin-top: .85rem;
  padding: .9rem 1rem;
  border-radius: var(--radio-sm);
  border: 1px solid #FFD580;
  background: #FFFBEE;
  font-size: 13.5px;
  color: #5A3000;
  display: none;
}
.turno-resultado.visible { display: block; }
.turno-resultado strong {
  font-size: 15px; color: #3D2000;
  display: block; margin-bottom: 3px;
}
.turno-resultado .turno-dir {
  font-size: 12px; color: #7A5200; margin-top: 4px;
}
#turno-loading,
.turno-loading {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: #7A5200;
  margin-top: .85rem;
}
#turno-resultado { }
.turno-loading .spinner,
.spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(122,82,0,.25);
  border-top-color: #7A5200;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── BADGES FARMACIA ─── */
.badge-abierto {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  background: #D4F5E4; color: #0A5C35;
  border-radius: 20px; padding: 2px 8px; margin-left: 6px;
}
.badge-abierto::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%; background: #22c55e;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.75); }
}
.badge-cerrado {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  background: #FFE4E6; color: var(--peligro);
  border-radius: 20px; padding: 2px 8px; margin-left: 6px;
}
.badge-turno-24 {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  font-size: 10px !important; font-weight: 700 !important;
  letter-spacing: .05em; text-transform: uppercase;
  background: #FFF3C4; color: #92400E;
  border: 1px solid var(--acento);
  border-radius: 20px; padding: 2px 8px !important;
  margin-left: 6px; vertical-align: middle;
  animation: turno-glow 2.5s ease-in-out infinite;
}
@keyframes turno-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(247,127,0,.3); }
  50%       { box-shadow: 0 0 0 4px rgba(247,127,0,.0); }
}


/* ─── CARDS DE FARMACIA ─── */
.farmacia-card {
  background: var(--fondo-card);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: clamp(1rem, 4vw, 1.4rem) clamp(1rem, 4vw, 1.6rem);
  box-shadow: var(--sombra);
  transition: box-shadow .22s, transform .22s, border-color .22s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.farmacia-card:hover {
  box-shadow: var(--sombra-hover);
  transform: translateY(-2px);
  border-color: rgba(82,183,136,.3);
}
section:nth-child(even) .farmacia-card { background: var(--fondo); }
.farmacia-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--texto);
  margin-bottom: .3rem;
}
.farmacia-card .fc-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 20px;
  margin-bottom: .5rem;
}
.badge-cadena { background: var(--azul-suave); color: var(--azul); }
.badge-independiente { background: var(--verde-suave); color: var(--primario); }
.farmacia-card.es-turno {
  border-left: 3px solid var(--acento) !important;
  background: linear-gradient(135deg, #FFFBF0 0%, #fff 100%) !important;
}
/* Farmacia page specific layout */
.farmacia-nombre {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--primario);
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-fila {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: .65rem 0;
  border-bottom: 1px solid var(--borde);
}
.info-fila:last-of-type { border-bottom: none; }
.info-icono { font-size: 17px; flex-shrink: 0; min-width: 22px; text-align: center; }
.info-contenido { flex: 1; min-width: 0; }
.info-label {
  font-size: 11px; color: var(--texto-suave);
  text-transform: uppercase; font-weight: 700;
  letter-spacing: .05em; margin-bottom: .2rem;
}
.info-valor {
  font-size: 15px; color: var(--texto); word-break: break-word;
}
.info-valor a { color: var(--azul); text-decoration: none; font-weight: 600; }
.info-valor a:hover { color: var(--primario); text-decoration: underline; }
.acciones {
  display: flex;
  gap: .6rem;
  margin-top: .5rem;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .acciones { flex-direction: column; }
  .acciones .btn { width: 100%; justify-content: center; }
}
.btn {
  padding: .5rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  min-height: 40px;
}


/* ─── FILTROS FARMACIA ─── */
.filtro-container {
  margin-bottom: 1.75rem;
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.filtro-btn {
  padding: .55rem 1.2rem;
  border: 1.5px solid var(--borde);
  background: var(--fondo-card);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  color: var(--texto);
}
.filtro-btn:hover {
  border-color: var(--primario-claro);
  color: var(--primario);
}
.filtro-btn.activo {
  background: var(--primario);
  border-color: var(--primario);
  color: #fff;
}
/* ─── INTRO BOX ─── */
.intro {
  font-size: 15px;
  color: var(--texto-suave);
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--verde-suave);
  border-radius: var(--radio);
  border-left: 4px solid var(--primario-claro);
}
/* ─── FARMACIAS GRID ─── */
.farmacias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.4rem;
  margin-bottom: 3rem;
}
@media (max-width: 600px) {
  .farmacias-grid { grid-template-columns: 1fr; gap: .85rem; }
}
/* ─── DONACIONES ─── */
.donation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
  gap: .75rem;
  margin-top: 1rem;
}
@media (max-width: 400px) {
  .donation-grid { grid-template-columns: repeat(2, 1fr); }
}
.don-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--fondo-card);
  border: 2px solid var(--borde);
  border-radius: var(--radio);
  padding: 1.2rem 1rem;
  text-decoration: none;
  color: var(--texto);
  font-weight: 700;
  font-size: 1.05rem;
  transition: all .22s ease;
  min-height: 140px;
  box-shadow: var(--sombra);
  cursor: pointer;
}
@media (max-width: 480px) {
  .don-btn { padding: 1rem .85rem; min-height: 130px; font-size: .95rem; }
}
.don-btn:hover {
  border-color: #009EE3;
  box-shadow: 0 8px 24px rgba(0,158,227,.2);
  background: #F0F9FF;
  transform: translateY(-4px);
}
.don-btn .don-label {
  font-size: 11px; font-weight: 700;
  color: var(--texto-suave); text-transform: uppercase;
  letter-spacing: .06em;
}
.don-btn .don-emoji { font-size: 2rem; }


/* ─── FORMULARIO ─── */
.form-group { margin-bottom: .9rem; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--texto); margin-bottom: .35rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--borde);
  border-radius: var(--radio-sm);
  font-family: 'Inter', sans-serif;
  font-size: 14px; color: var(--texto);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primario-claro);
  box-shadow: 0 0 0 3px rgba(82,183,136,.15);
}
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primario);
  color: #fff;
  border: 2px solid var(--primario);
  border-radius: 8px;
  padding: 12px 22px;
  font-family: 'Inter', sans-serif;
  font-size: clamp(13px, 3vw, 15px);
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  min-height: 48px;
  box-shadow: 0 3px 12px rgba(27,67,50,.2);
}
@media (max-width: 480px) {
  .btn-submit { width: 100%; padding: 12px 16px; }
}
.btn-submit:hover {
  background: var(--primario-medio);
  border-color: var(--primario-medio);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,67,50,.3);
}
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-msg {
  display: none; margin-top: .75rem;
  padding: .75rem 1rem; border-radius: var(--radio-sm);
  font-size: 13px; font-weight: 500;
}
.form-msg.ok { background: var(--verde-suave); color: var(--primario); display: block; }
.form-msg.err { background: var(--terracota-suave); color: var(--peligro); display: block; }


/* ─── FOOTER ─── */
footer,
.site-footer {
  background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
  color: rgba(255,255,255,.65);
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 13px;
}
footer strong,
.site-footer strong { color: #fff; }
footer a,
.site-footer a { color: #95D5B2; text-decoration: none; font-weight: 500; }
footer a:hover,
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: center;
}
.footer-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .25rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: .35rem .75rem; justify-content: center; }
.footer-links a { color: #95D5B2; font-size: 13px; }
.footer-copy { font-size: 12px; opacity: .7; }


/* ─── RESPONSIVE FINAL ─── */
@media (max-width: 600px) {
  .hero { padding: 2.5rem 1rem 2rem; }
  section { padding: 2rem 1rem; }
  section:nth-child(even)::before { margin: -2rem -1rem 2rem; }
  .emg-grid { grid-template-columns: repeat(3, 1fr); }
  .turno-hoy-btns .btn-turno-primary,
  .turno-hoy-btns .btn-turno-sec { justify-content: center; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ─── ACCESIBILIDAD ─── */
:focus-visible {
  outline: 3px solid var(--acento);
  outline-offset: 2px;
}

/* ─── UTILIDADES EXTRA ─── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ─── PÁGINA FARMACIA H1 ─── */
main h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(26px, 6vw, 40px);
  font-weight: 800;
  color: var(--primario);
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -.025em;
}
main {
  padding: 2rem 1.5rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  main { padding: 1.5rem 1rem; }
}
/* Override for index main (uses section layout) */
main.index-main {
  max-width: 960px;
  padding: 0 0 5rem;
}


/* ── Hero compacto en subpáginas ── */
.hero-subpage {
  min-height: 0 !important;
  padding: 2.5rem 1.5rem 2rem !important;
  overflow: visible !important;
}
.hero-subpage .hero-inner {
  padding-top: 0;
  padding-bottom: 0;
}
.hero-subpage h1 {
  font-size: clamp(1.5rem, 5vw, 2.2rem) !important;
  margin-bottom: .4rem;
}
.hero-subpage .hero-desc {
  font-size: .9rem;
  opacity: .85;
  margin-bottom: .75rem;
}
.hero-subpage .buscador-global-wrap {
  max-width: 480px;
}
@media (max-width: 480px) {
  .hero-subpage {
    padding: 1.5rem 1rem 1.25rem !important;
  }
}
@media (max-width: 380px) {
  .hero-subpage {
    padding: 1.25rem .85rem 1rem !important;
  }
}

/* ─── PANTALLAS GRANDES (≥ 1024px) ─── */
@media (min-width: 1024px) {
  .hero-inner { max-width: 860px; }
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
  .farmacias-grid { grid-template-columns: repeat(3, 1fr); }
  .burbuja { width: 130px; height: 130px; }
  .burbuja-emoji { font-size: 2.4rem; }
  .burbuja-grande { width: 160px; height: 160px; }
  .burbuja-grande .burbuja-emoji { font-size: 3rem; }
}
@media (min-width: 1280px) {
  main { max-width: 1100px; }
  .section-inner { max-width: 1100px; }
  .farmacias-grid { grid-template-columns: repeat(4, 1fr); }
}



/* ═══════════════════════════════════════════════════
   HERO 2025 — Tarjetas de navegación estilo app
   ═══════════════════════════════════════════════════ */

.hero-2025 {
  background: linear-gradient(160deg, #0d2b1e 0%, #1B4332 45%, #2D6A4F 100%);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 1.25rem 2rem;
  position: relative;
  overflow: hidden;
}
.hero-2025::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 110% -10%, rgba(82,183,136,.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at -10% 110%, rgba(247,127,0,.10) 0%, transparent 60%);
  pointer-events: none;
}

.hero-top {
  max-width: 540px;
  margin: 0 auto 1.75rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow-2025 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: .85rem;
}

.hero-title-2025 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -.04em;
  margin-bottom: .5rem;
}
.hero-title-2025 em {
  font-style: normal;
  color: #95D5B2;
}

.hero-sub-2025 {
  font-size: clamp(.875rem, 3vw, 1rem);
  color: rgba(255,255,255,.55);
  font-weight: 400;
}

/* ─── Grid de tarjetas ─── */
.nav-grid-2025 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Tarjeta base */
.nav-card-2025 {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 1.1rem 1.1rem;
  text-decoration: none;
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .2s, transform .18s cubic-bezier(.34,1.56,.64,1), border-color .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
  min-height: 80px;
}
.nav-card-2025::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  opacity: 0;
  transition: opacity .2s;
}
.nav-card-2025:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}
.nav-card-2025:hover::before { opacity: 1; }
.nav-card-2025:active { transform: scale(.97); }

/* Tarjeta Farmacias (fila completa — 2 columnas) */
.nav-card-farmacia {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(247,127,0,.25), rgba(247,127,0,.12));
  border-color: rgba(247,127,0,.35);
  min-height: 90px;
}
.nav-card-farmacia::before {
  background: linear-gradient(135deg, rgba(247,127,0,.12), transparent);
}
.nav-card-farmacia:hover { border-color: rgba(247,127,0,.6); box-shadow: 0 12px 40px rgba(247,127,0,.2); }

.nav-card-salud {
  background: linear-gradient(135deg, rgba(13,110,253,.22), rgba(13,110,253,.10));
  border-color: rgba(13,110,253,.3);
}
.nav-card-salud:hover { border-color: rgba(13,110,253,.55); box-shadow: 0 12px 32px rgba(13,110,253,.18); }

.nav-card-seguridad {
  background: linear-gradient(135deg, rgba(220,53,69,.22), rgba(220,53,69,.10));
  border-color: rgba(220,53,69,.3);
}
.nav-card-seguridad:hover { border-color: rgba(220,53,69,.55); box-shadow: 0 12px 32px rgba(220,53,69,.18); }

.nav-card-ferias {
  background: linear-gradient(135deg, rgba(46,125,50,.28), rgba(46,125,50,.12));
  border-color: rgba(82,183,136,.3);
}
.nav-card-ferias:hover { border-color: rgba(82,183,136,.55); box-shadow: 0 12px 32px rgba(46,125,50,.18); }

.nav-card-colegios {
  background: linear-gradient(135deg, rgba(156,39,176,.22), rgba(156,39,176,.10));
  border-color: rgba(156,39,176,.3);
}
.nav-card-colegios:hover { border-color: rgba(156,39,176,.55); box-shadow: 0 12px 32px rgba(156,39,176,.18); }

.nav-card-icon-2025 {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.2));
}
.nav-card-farmacia .nav-card-icon-2025 { font-size: 2.2rem; }

.nav-card-body-2025 { flex: 1; min-width: 0; }
.nav-card-title-2025 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.nav-card-farmacia .nav-card-title-2025 { font-size: 1.05rem; }
.nav-card-desc-2025 {
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-card-turno-2025 {
  flex-shrink: 0;
  text-align: right;
  max-width: 140px;
}

.nav-card-arrow-2025 {
  font-size: 1.1rem;
  color: rgba(255,255,255,.35);
  flex-shrink: 0;
  transition: color .2s, transform .2s;
}
.nav-card-2025:hover .nav-card-arrow-2025 {
  color: rgba(255,255,255,.8);
  transform: translateX(3px);
}

/* Pills: Apoyar + Sugerencias */
.nav-pills-row-2025 {
  grid-column: 1 / -1;
  display: flex;
  gap: .6rem;
  justify-content: center;
  flex-wrap: wrap;
}
.nav-pill-2025 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .55rem 1.1rem;
  border-radius: 100px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.nav-pill-2025:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.4);
  color: #fff;
}

/* ─── Responsive mobile ─── */
@media (max-width: 480px) {
  .hero-2025 { padding: 2rem 1rem 1.75rem; min-height: 100svh; }
  .nav-grid-2025 { gap: .6rem; }
  .nav-card-2025 { padding: .9rem; border-radius: 14px; min-height: 70px; }
  .nav-card-icon-2025 { font-size: 1.65rem; }
  .nav-card-farmacia .nav-card-icon-2025 { font-size: 1.8rem; }
  .nav-card-title-2025 { font-size: .9rem; }
  .nav-card-turno-2025 { display: none; } /* en mobile muy pequeño, ocultar turno en la card */
  .nav-card-arrow-2025 { display: none; }
}
@media (max-width: 360px) {
  .hero-title-2025 { font-size: 2.2rem; }
  .nav-card-2025 { padding: .75rem; gap: .6rem; }
  .nav-card-icon-2025 { font-size: 1.4rem; }
}

/* ─── Desktop grande ─── */
@media (min-width: 768px) {
  .hero-2025 { padding: 3rem 2rem; }
  .nav-grid-2025 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 860px;
  }
  .nav-card-farmacia {
    grid-column: 1 / 3; /* ocupa 2 de 4 columnas */
  }
  .nav-pills-row-2025 { grid-column: 1 / -1; }
  .nav-card-turno-2025 { display: block; }
  .nav-card-arrow-2025 { display: flex; }
}
@media (min-width: 1024px) {
  .hero-2025 { padding: 4rem 2rem; }
  .nav-grid-2025 { max-width: 960px; gap: 1rem; }
  .nav-card-2025 { padding: 1.25rem 1.4rem; border-radius: 20px; min-height: 90px; }
  .nav-card-icon-2025 { font-size: 2.2rem; }
  .nav-card-farmacia .nav-card-icon-2025 { font-size: 2.5rem; }
  .nav-card-title-2025 { font-size: 1.05rem; }
  .nav-card-farmacia .nav-card-title-2025 { font-size: 1.15rem; }
}

/* ═══════════════════════════════════════════════════
   PAGE HEADER 2025 — Subpáginas estilo app
   ═══════════════════════════════════════════════════ */

.page-header-2025 {
  padding: 5rem 1.5rem 2.5rem; /* top: compensar nav fija */
  position: relative;
  overflow: visible;
  text-align: center;
  isolation: isolate;
}
.page-header-2025::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  filter: brightness(.92);
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
}
.page-header-inner-2025 {
  position: relative;
  z-index: 10;
  max-width: 600px;
  margin: 0 auto;
}
.page-header-back-2025 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  margin-bottom: 1.25rem;
  padding: .35rem .8rem;
  border-radius: 100px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  transition: background .2s, color .2s;
}
.page-header-back-2025:hover {
  background: rgba(255,255,255,.18);
  color: #fff;
}
.page-header-icon-2025 {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: .6rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.2));
}
.page-header-title-2025 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.035em;
  line-height: 1.1;
  margin-bottom: .4rem;
}
.page-header-desc-2025 {
  font-size: clamp(.85rem, 3vw, .95rem);
  color: rgba(255,255,255,.65);
  line-height: 1.5;
}

/* Colores por sección */
.page-header-farmacia  { background: linear-gradient(160deg, #7A3A00 0%, #B85C00 50%, #E07000 100%); }
.page-header-salud     { background: linear-gradient(160deg, #003380 0%, #0A4FC4 50%, #1A6FFF 100%); }
.page-header-seguridad { background: linear-gradient(160deg, #7A0010 0%, #B80020 50%, #DC3545 100%); }
.page-header-ferias    { background: linear-gradient(160deg, #0d2b1e 0%, #1B4332 50%, #2D6A4F 100%); }
.page-header-colegios  { background: linear-gradient(160deg, #3A006F 0%, #6A00B8 50%, #9C27B0 100%); }

/* Separador decorativo al final del header */
.page-header-2025::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 32px;
  background: var(--fondo);
  border-radius: 24px 24px 0 0;
  z-index: 0;
}

@media (max-width: 600px) {
  .page-header-2025 { padding: 4.5rem 1rem 2.5rem; }
  .page-header-icon-2025 { font-size: 2.5rem; }
}

/* ─── Sección contenido con fondo mejorado ─── */
.section-content-2025 {
  background: var(--fondo);
  padding: 1.5rem 1.25rem 3rem;
  max-width: 960px;
  margin: 0 auto;
}



/* ═══════════════════════════════════════════════════════════
   ANIMACIONES DE ENTRADA 2025
   ═══════════════════════════════════════════════════════════ */

/* Fade + slide desde abajo */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Fade simple */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* Escala de entrada */
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
/* Skeleton shimmer */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

/* Cards de navegación: animación escalonada al cargar */
.nav-card-2025 {
  opacity: 0;
  animation: fadeSlideUp .5s cubic-bezier(.25,.46,.45,.94) forwards;
}
.nav-card-2025:nth-child(1) { animation-delay: .08s; }
.nav-card-2025:nth-child(2) { animation-delay: .15s; }
.nav-card-2025:nth-child(3) { animation-delay: .22s; }
.nav-card-2025:nth-child(4) { animation-delay: .29s; }
.nav-card-2025:nth-child(5) { animation-delay: .36s; }
.nav-pills-row-2025 {
  opacity: 0;
  animation: fadeIn .4s ease .5s forwards;
}

/* Cards de contenido (subpáginas) */
.card {
  opacity: 0;
  animation: fadeSlideUp .45s cubic-bezier(.25,.46,.45,.94) forwards;
}
/* Escalonar las cards dentro de un grid */
.cards .card:nth-child(1)  { animation-delay: .05s; }
.cards .card:nth-child(2)  { animation-delay: .10s; }
.cards .card:nth-child(3)  { animation-delay: .15s; }
.cards .card:nth-child(4)  { animation-delay: .20s; }
.cards .card:nth-child(5)  { animation-delay: .25s; }
.cards .card:nth-child(6)  { animation-delay: .30s; }
.cards .card:nth-child(7)  { animation-delay: .35s; }
.cards .card:nth-child(8)  { animation-delay: .38s; }
.cards .card:nth-child(n+9) { animation-delay: .40s; }

/* Farmacia cards */
.farmacia-card {
  opacity: 0;
  animation: scaleIn .4s cubic-bezier(.34,1.1,.64,1) forwards;
}
.farmacias-grid .farmacia-card:nth-child(1)  { animation-delay: .04s; }
.farmacias-grid .farmacia-card:nth-child(2)  { animation-delay: .08s; }
.farmacias-grid .farmacia-card:nth-child(3)  { animation-delay: .12s; }
.farmacias-grid .farmacia-card:nth-child(4)  { animation-delay: .16s; }
.farmacias-grid .farmacia-card:nth-child(5)  { animation-delay: .20s; }
.farmacias-grid .farmacia-card:nth-child(6)  { animation-delay: .24s; }
.farmacias-grid .farmacia-card:nth-child(n+7) { animation-delay: .28s; }

/* Page header */
.page-header-inner-2025 {
  animation: fadeSlideUp .6s cubic-bezier(.25,.46,.45,.94) .05s both;
}
.hero-top {
  animation: fadeSlideUp .55s cubic-bezier(.25,.46,.45,.94) .05s both;
}
.nav-grid-2025 {
  animation: fadeIn .3s ease .1s both;
}

/* Skeleton loading para turno de farmacia */
.turno-skeleton {
  display: inline-block;
  width: 120px;
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(255,255,255,.1) 25%, rgba(255,255,255,.2) 50%, rgba(255,255,255,.1) 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

/* Respetar preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .nav-card-2025,
  .card,
  .farmacia-card,
  .page-header-inner-2025,
  .hero-top,
  .nav-grid-2025,
  .nav-pills-row-2025 {
    animation: none;
    opacity: 1;
  }
}


/* ═══════════════════════════════════════════════════════════
   DARK MODE 2025
   ═══════════════════════════════════════════════════════════ */

@media (prefers-color-scheme: dark) {
  :root {
    --fondo:      #0F1117;
    --fondo-card: #1A1D27;
    --texto:      #E8ECF0;
    --texto-suave:#8B9099;
    --borde:      #2A2D38;
    --verde-suave:#0D2B1A;
    --azul-suave: #0A1628;
    --ambar-suave:#1A1200;
    --acento-suave:#1A0E00;
    --terracota-suave:#1A0808;
    --sombra: 0 1px 3px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.3);
    --sombra-hover: 0 6px 12px rgba(0,0,0,.4), 0 16px 40px rgba(0,0,0,.4);
  }

  /* Fondo y cuerpo */
  body { background: #0F1117; color: #E8ECF0; }

  /* Nav */
  nav {
    background: linear-gradient(135deg, #0a1a11 0%, #0d2318 100%);
    border-bottom-color: #1a4a2e;
    box-shadow: 0 2px 16px rgba(0,0,0,.5);
  }
  .nav-scroll-wrapper::after {
    background: linear-gradient(to right, transparent, #0d2318);
  }

  /* Cards */
  .card {
    background: #1A1D27;
    border-color: #2A2D38;
  }
  .card:hover { border-color: rgba(82,183,136,.3); }
  section:nth-child(even) { background: #151820; }
  section:nth-child(even) .card { background: #0F1117; }

  /* Farmacia cards */
  .farmacia-card { background: #1A1D27; border-color: #2A2D38; }
  .farmacia-card:hover { border-color: rgba(82,183,136,.3); }

  /* Info rows */
  .info-row { border-top-color: #2A2D38; }
  .info-row a { color: #52B788; }

  /* Botones */
  .btn-map {
    background: #0D2B1A;
    border-color: #1a4a2e;
    color: #52B788;
  }
  .btn-map:hover { background: #52B788; color: #fff; border-color: #52B788; }
  .btn-copiar, .btn-tel {
    background: #0D2B1A;
    border-color: #1a4a2e;
    color: #52B788;
  }

  /* Filtros farmacia */
  .filtro-btn { background: #1A1D27; border-color: #2A2D38; color: #E8ECF0; }
  .filtro-btn.activo { background: #1B4332; border-color: #1B4332; color: #fff; }
  .filtro-btn:hover { border-color: #52B788; color: #52B788; }

  /* Intro box */
  .intro { background: #0D2B1A; border-left-color: #52B788; }

  /* Nota */
  .nota { background: #1A1200; color: #D4A800; }
  .nota a { color: #F0C040; }

  /* Card emergencia */
  .card-emg { background: #1A0808; border-color: #4A1010; }
  .emg-item { background: #1A0808; border-color: #4A1010; }

  /* Turno hoy */
  .turno-hoy-box {
    background: linear-gradient(135deg, #1A1200, #1A0E00);
    border-color: rgba(247,127,0,.4);
  }

  /* Formulario */
  .form-group input,
  .form-group textarea,
  .form-group select {
    background: #1A1D27;
    border-color: #2A2D38;
    color: #E8ECF0;
  }
  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus {
    border-color: #52B788;
    box-shadow: 0 0 0 3px rgba(82,183,136,.15);
  }

  /* Section before gradient */
  section:nth-child(even)::before {
    background: linear-gradient(90deg, #1a4a2e, transparent);
  }

  /* Footer */
  .site-footer {
    background: linear-gradient(135deg, #070f0a 0%, #0d1f14 100%);
  }

  /* Badges */
  .badge-cadena { background: #0A1628; color: #60A5FA; }
  .badge-independiente { background: #0D2B1A; color: #52B788; }
  .dia { background: #0D2B1A; color: #52B788; }
  .update-badge { background: #1A1D27; color: #8B9099; }
  .fc-badge { background: #1A1D27; }

  /* Donaciones */
  .don-btn { background: #1A1D27; border-color: #2A2D38; color: #E8ECF0; }
  .don-btn:hover { background: #0A1628; border-color: #3B82F6; }
  .don-btn .don-label { color: #8B9099; }

  /* Page headers dark: ajustar para que se vean bien */
  .page-header-farmacia  { background: linear-gradient(160deg, #4A1F00 0%, #7A3A00 50%, #A05000 100%); }
  .page-header-salud     { background: linear-gradient(160deg, #001A4A 0%, #002A7A 50%, #0A3EA8 100%); }
  .page-header-seguridad { background: linear-gradient(160deg, #4A0008 0%, #7A0010 50%, #A80020 100%); }
  .page-header-ferias    { background: linear-gradient(160deg, #080f07 0%, #0d1a0d 50%, #152615 100%); }
  .page-header-colegios  { background: linear-gradient(160deg, #1E0038 0%, #3A0060 50%, #5A0088 100%); }

  /* Nav cards hero dark */
  .nav-card-2025 {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.09);
  }
  .nav-card-farmacia  { background: linear-gradient(135deg, rgba(247,127,0,.2), rgba(247,127,0,.08)); border-color: rgba(247,127,0,.25); }
  .nav-card-salud     { background: linear-gradient(135deg, rgba(13,110,253,.18), rgba(13,110,253,.07)); border-color: rgba(13,110,253,.22); }
  .nav-card-seguridad { background: linear-gradient(135deg, rgba(220,53,69,.18), rgba(220,53,69,.07)); border-color: rgba(220,53,69,.22); }
  .nav-card-ferias    { background: linear-gradient(135deg, rgba(46,125,50,.22), rgba(46,125,50,.09)); border-color: rgba(82,183,136,.22); }
  .nav-card-colegios  { background: linear-gradient(135deg, rgba(156,39,176,.18), rgba(156,39,176,.07)); border-color: rgba(156,39,176,.22); }
}



/* ═══════════════════════════════════════════════════════════
   ═══ REDISEÑO 2026 — Hero visual + Mega-card + Secciones ═══
   ═══════════════════════════════════════════════════════════ */

/* ─── Fondo visual del hero (SVG cordillera) ─── */
.hero-2025 { position: relative; overflow: hidden; }
.hero-bg-visual {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.hero-bg-visual svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block;
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(15,94,63,.35) 0%, transparent 60%),
    linear-gradient(180deg, rgba(15,94,63,.10) 0%, rgba(8,40,26,.55) 100%);
}
.hero-2025 > *:not(.hero-bg-visual) { position: relative; z-index: 1; }

/* Prueba social — chip debajo del subtítulo del hero */
.hero-social-proof {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 1rem auto 0;
  padding: 6px 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 100px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 500;
  backdrop-filter: blur(6px);
}
.hero-social-proof b { font-weight: 700; }
.hsp-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.7);
  animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
  0%   { box-shadow: 0 0 0 0   rgba(34,197,94,.55); }
  70%  { box-shadow: 0 0 0 10px rgba(34,197,94,0);   }
  100% { box-shadow: 0 0 0 0   rgba(34,197,94,0);   }
}

/* ─── MEGA-CARD: turno + clima ─── */
.hero-mega {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto 1.75rem;
  padding: 0 1rem;
  width: 100%;
}
@media (max-width: 760px) {
  .hero-mega { grid-template-columns: 1fr; gap: .75rem; padding: 0 .875rem; }
}

.mega-turno, .mega-clima {
  background: rgba(255,255,255,.97);
  border-radius: 18px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 12px 40px rgba(0,0,0,.25), 0 2px 8px rgba(0,0,0,.15);
  color: var(--texto);
  font-family: 'Inter', sans-serif;
  position: relative;
}

/* Turno */
.mega-turno-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #F77F00, #ff9a2b);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 100px;
  margin-bottom: .75rem;
  box-shadow: 0 4px 14px rgba(247,127,0,.35);
}
.mt-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  animation: pulseGreen 1.6s infinite;
}
.mega-turno-loading {
  display: flex; align-items: center; gap: 10px;
  color: var(--texto-suave);
  font-size: 14px;
  padding: .5rem 0;
}
.mt-farm { margin-bottom: .5rem; }
.mt-nombre {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px; font-weight: 800;
  color: var(--primario);
  margin-bottom: .4rem;
  line-height: 1.25;
}
.mt-24 {
  display: inline-block;
  background: #FFF3C4; color: #92400E;
  border: 1px solid #F0A500;
  border-radius: 12px;
  padding: 2px 9px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  margin-left: 6px; vertical-align: middle;
}
.mt-linea {
  font-size: 14px; color: var(--texto);
  margin-bottom: .2rem;
}
.mt-actions {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: .75rem;
}
.mt-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 700;
  padding: 8px 14px;
  border-radius: 100px;
  background: #F8F9FA;
  border: 1px solid var(--borde);
  color: var(--texto);
  text-decoration: none;
  transition: transform .15s, background .15s, border-color .15s;
}
.mt-btn:hover { transform: translateY(-1px); background: #fff; border-color: var(--primario-claro); }
.mt-btn-primario {
  background: var(--primario);
  color: #fff;
  border-color: var(--primario);
}
.mt-btn-primario:hover { background: var(--primario-medio); border-color: var(--primario-medio); color: #fff; }
.mt-fecha {
  font-size: 11px;
  color: var(--texto-suave);
  margin-top: .75rem;
  padding-top: .5rem;
  border-top: 1px dashed var(--borde);
}
.mt-fallback strong {
  display: block; font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--texto); font-size: 15px; margin-bottom: .35rem;
}
.mt-fallback p { font-size: 13px; color: var(--texto-suave); margin-bottom: .6rem; }
.mega-turno-foot {
  display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  margin-top: .75rem; padding-top: .65rem;
  border-top: 1px solid var(--borde);
  font-size: 11px; color: var(--texto-suave);
  flex-wrap: wrap;
}
.mega-turno-link {
  color: var(--primario); font-weight: 700; text-decoration: none;
  font-size: 12px;
}
.mega-turno-link:hover { text-decoration: underline; }

/* Spinner reutilizable */
.spinner {
  width: 18px; height: 18px; border: 2.5px solid rgba(247,127,0,.2);
  border-top-color: #F77F00; border-radius: 50%;
  animation: sp 0.85s linear infinite;
  flex-shrink: 0;
}
@keyframes sp { to { transform: rotate(360deg); } }

/* Clima */
.mega-clima {
  background: linear-gradient(160deg, #FFF8EF 0%, #FFF3E0 100%);
  border: 1px solid rgba(247,127,0,.15);
}
.mega-clima-head {
  display: flex; align-items: center; gap: .65rem;
  margin-bottom: .35rem;
}
.mega-clima-head span:first-child { font-size: 2rem; line-height: 1; }
.mega-clima-city {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 800; color: var(--texto);
}
.mega-clima-hora { font-size: 11px; color: var(--texto-suave); }
.mega-clima-temp {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3rem; font-weight: 800; color: var(--acento);
  line-height: 1;
  margin: .25rem 0;
}
.mega-clima-desc {
  font-size: 13px; color: var(--texto); font-weight: 600;
  margin-bottom: .65rem;
}
.mega-clima-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem;
  padding-top: .65rem;
  border-top: 1px dashed rgba(247,127,0,.25);
}
.mcs-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.mcs-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--texto-suave); font-weight: 600;
}
.mcs-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px; font-weight: 800; color: var(--texto);
}
.mcs-air .mcs-val {
  color: var(--air-color, #6C757D);
}

/* ═══ ESTE FIN DE SEMANA ═══ */
.finde-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .85rem;
  margin-top: .75rem;
}
.finde-card {
  background: var(--fondo-card);
  border: 1px solid var(--borde);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: var(--texto);
  display: block;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  position: relative;
  overflow: hidden;
}
.finde-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--primario-claro), var(--acento));
}
.finde-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sombra-hover);
  border-color: var(--primario-claro);
}
.finde-dia {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primario);
  margin-bottom: .3rem;
}
.finde-titulo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px; font-weight: 700;
  color: var(--texto);
  margin-bottom: .35rem;
  line-height: 1.3;
}
.finde-detalle { font-size: 13px; color: var(--texto); margin-bottom: .35rem; }
.finde-lugar { font-size: 12px; color: var(--texto-suave); }
.finde-cta {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  margin-top: 1.15rem;
  padding: .9rem 1.1rem;
  background: var(--verde-suave);
  border-radius: 12px;
  border: 1px dashed var(--primario-claro);
}
.finde-cta p { margin: 0; font-size: 14px; color: var(--texto); font-weight: 600; }
.finde-cta-btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 700;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--primario); color: #fff;
  text-decoration: none;
  transition: background .15s;
}
.finde-cta-btn:hover { background: var(--primario-medio); color: #fff; }

/* ═══ REPORTES VECINALES ═══ */
.reportes-form {
  background: var(--fondo-card);
  border: 1px solid var(--borde);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.reportes-form-row {
  display: grid; grid-template-columns: 200px 1fr; gap: .65rem;
  margin-bottom: .6rem;
}
@media (max-width: 540px) { .reportes-form-row { grid-template-columns: 1fr; } }
.reportes-form select,
.reportes-form input,
.reportes-form textarea {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--borde);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--texto);
  background: var(--fondo);
  transition: border-color .15s, box-shadow .15s;
  resize: vertical;
}
.reportes-form textarea { min-height: 60px; }
.reportes-form select:focus,
.reportes-form input:focus,
.reportes-form textarea:focus {
  outline: none;
  border-color: var(--primario-claro);
  box-shadow: 0 0 0 3px rgba(82,183,136,.18);
}
.reportes-form-foot {
  display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  margin-top: .6rem;
}
.reporte-counter { font-size: 12px; color: var(--texto-suave); }
.reporte-enviar-btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 700;
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--primario);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.reporte-enviar-btn:hover { background: var(--primario-medio); transform: translateY(-1px); }
.reportes-nota {
  font-size: 12px; color: var(--texto-suave);
  margin-top: .55rem;
  padding-top: .55rem;
  border-top: 1px dashed var(--borde);
}
.reportes-lista {
  display: flex; flex-direction: column; gap: .65rem;
}
.reportes-vacio {
  padding: 1.5rem 1.1rem;
  background: var(--verde-suave);
  border-radius: 12px;
  text-align: center;
  color: var(--primario);
  font-weight: 600;
  font-size: 14px;
}
.reporte-item {
  background: var(--fondo-card);
  border: 1px solid var(--borde);
  border-left: 4px solid var(--acento);
  border-radius: 12px;
  padding: .85rem 1rem;
}
.reporte-cabecera {
  display: flex; align-items: flex-start; gap: .65rem;
  margin-bottom: .35rem;
}
.reporte-emoji { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.reporte-meta { flex: 1; min-width: 0; }
.reporte-sector {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 700; color: var(--texto);
}
.reporte-tiempo { font-size: 11px; color: var(--texto-suave); }
.reporte-borrar {
  background: transparent; border: none; cursor: pointer;
  color: var(--texto-suave); font-size: 16px; line-height: 1;
  padding: 4px 8px; border-radius: 6px;
  transition: background .15s, color .15s;
}
.reporte-borrar:hover { background: var(--terracota-suave); color: var(--terracota); }
.reporte-texto {
  font-size: 14px; color: var(--texto); margin: 0 0 .55rem;
  line-height: 1.45;
}
.reporte-reacciones {
  display: flex; gap: .5rem; flex-wrap: wrap;
}
.reporte-react {
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
  padding: 5px 11px;
  border-radius: 100px;
  background: var(--fondo);
  border: 1px solid var(--borde);
  color: var(--texto);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.reporte-react:hover { background: var(--verde-suave); border-color: var(--primario-claro); }
.reporte-react span { margin-left: 4px; opacity: .7; font-weight: 700; }

/* ═══ PULSO: ENCUESTA + FRASE ═══ */
.pulso-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
@media (max-width: 768px) { .pulso-inner { grid-template-columns: 1fr; } }
.pulso-card {
  background: var(--fondo-card);
  border: 1px solid var(--borde);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  position: relative;
  overflow: hidden;
}
.pulso-eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--acento);
  margin-bottom: .5rem;
}
.pulso-encuesta { background: linear-gradient(135deg, #FFF8EF 0%, #FFF3E0 100%); border-color: rgba(247,127,0,.2); }
.pulso-frase    { background: linear-gradient(135deg, #E8F5EE 0%, #D8F3DC 100%); border-color: rgba(82,183,136,.28); }

.pulso-pregunta {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem; font-weight: 800; color: var(--texto);
  line-height: 1.35;
  margin-bottom: .85rem;
}
.encuesta-opciones { display: flex; gap: .5rem; flex-wrap: wrap; }
.encuesta-opt {
  flex: 1; min-width: 90px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid var(--borde);
  background: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px; font-weight: 700;
  color: var(--texto);
  cursor: pointer;
  transition: all .15s;
}
.encuesta-opt:hover:not(:disabled) {
  border-color: var(--acento); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247,127,0,.18);
}
.encuesta-opt.voted { background: var(--acento); color: #fff; border-color: var(--acento); }
.encuesta-opt:disabled:not(.voted) { opacity: .55; cursor: default; }
.encuesta-resultados { margin-top: .9rem; }
.er-row {
  display: grid; grid-template-columns: 110px 1fr 40px; gap: .5rem;
  align-items: center;
  font-size: 13px;
  margin-bottom: .4rem;
}
.er-bar {
  height: 8px; border-radius: 100px; background: rgba(0,0,0,.08); overflow: hidden;
}
.er-bar > div { height: 100%; border-radius: 100px; transition: width .6s ease; }
.er-row b {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; font-weight: 800;
  color: var(--texto); text-align: right;
}
.er-total {
  font-size: 11px; color: var(--texto-suave);
  margin-top: .5rem; padding-top: .5rem;
  border-top: 1px dashed rgba(0,0,0,.1);
}
.er-gracias { color: var(--acento); font-weight: 700; }

.pulso-frase-texto {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem; font-weight: 600; font-style: italic;
  color: var(--texto);
  line-height: 1.5;
  margin: 0 0 .75rem;
  padding-left: 1rem;
  border-left: 3px solid var(--primario-claro);
}
.pulso-frase-autor {
  font-size: 12px; color: var(--primario); font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}

/* ═══ FOOTER 2026 ═══ */
.footer-2026 { padding-top: 2.5rem !important; }
.footer-social {
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--borde);
}
.footer-social-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 700; color: var(--texto);
  margin: 0;
}
.footer-social-icons {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
}
.footer-social-icons a, .footer-social-icons button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 100px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid var(--borde);
  background: var(--fondo-card);
  color: var(--texto);
  transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.footer-social-icons a:hover, .footer-social-icons button:hover:not(:disabled) {
  transform: translateY(-2px);
}
.fs-ig:hover  { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; border-color: transparent; }
.fs-tt:hover  { background: #000; color: #fff; border-color: transparent; }
.fs-wa:hover  { background: #25D366; color: #fff; border-color: transparent; }
.fs-notif:hover:not(:disabled) { background: var(--primario); color: #fff; border-color: var(--primario); }
.fs-notif-on { background: var(--primario) !important; color: #fff !important; border-color: var(--primario) !important; }
.fs-notif:disabled { opacity: .55; cursor: not-allowed; }

/* ═══ DARK MODE — mega-card + secciones nuevas ═══ */
@media (prefers-color-scheme: dark) {
  .mega-turno, .mega-clima {
    background: #14171F;
    color: #E8ECF0;
    box-shadow: 0 12px 40px rgba(0,0,0,.55);
  }
  .mega-clima {
    background: linear-gradient(160deg, #1A1D27 0%, #14171F 100%);
    border-color: rgba(247,127,0,.22);
  }
  .mt-nombre { color: #7EE3B5; }
  .mt-linea { color: #E8ECF0; }
  .mt-btn {
    background: #0A1628; border-color: #2A2D38; color: #E8ECF0;
  }
  .mt-btn:hover { background: #0F1F35; }
  .mt-btn-primario { background: #52B788; color: #0A1628; border-color: #52B788; }
  .mt-btn-primario:hover { background: #7EE3B5; color: #0A1628; }
  .mt-fecha { color: #8B9099; border-color: rgba(255,255,255,.08); }
  .mega-turno-foot { border-color: rgba(255,255,255,.08); color: #8B9099; }
  .mega-turno-link { color: #7EE3B5; }
  .mega-clima-city { color: #E8ECF0; }
  .mega-clima-desc { color: #E8ECF0; }
  .mega-clima-hora { color: #8B9099; }
  .mcs-label { color: #8B9099; }
  .mcs-val { color: #E8ECF0; }

  .finde-card { background: #14171F; border-color: rgba(255,255,255,.08); }
  .finde-card:hover { border-color: #52B788; }
  .finde-dia { color: #7EE3B5; }
  .finde-titulo { color: #E8ECF0; }
  .finde-detalle { color: #E8ECF0; }
  .finde-lugar { color: #8B9099; }
  .finde-cta { background: #0D2B1A; border-color: #52B788; }
  .finde-cta p { color: #7EE3B5; }

  .reportes-form { background: #14171F; border-color: rgba(255,255,255,.08); }
  .reportes-form select, .reportes-form input, .reportes-form textarea {
    background: #0A1628; border-color: #2A2D38; color: #E8ECF0;
  }
  .reportes-nota { color: #8B9099; border-color: rgba(255,255,255,.08); }
  .reporte-item { background: #14171F; border-color: rgba(255,255,255,.08); border-left-color: #F77F00; }
  .reporte-sector, .reporte-texto { color: #E8ECF0; }
  .reporte-tiempo { color: #8B9099; }
  .reporte-react { background: #0A1628; border-color: #2A2D38; color: #E8ECF0; }
  .reporte-react:hover { background: #0D2B1A; border-color: #52B788; }
  .reportes-vacio { background: #0D2B1A; color: #7EE3B5; }

  .pulso-card { background: #14171F; border-color: rgba(255,255,255,.08); }
  .pulso-encuesta { background: linear-gradient(135deg, #1A1D27 0%, #14171F 100%); }
  .pulso-frase    { background: linear-gradient(135deg, #0D2B1A 0%, #14171F 100%); border-color: rgba(82,183,136,.22); }
  .pulso-pregunta { color: #E8ECF0; }
  .encuesta-opt { background: #0A1628; border-color: #2A2D38; color: #E8ECF0; }
  .encuesta-opt:hover:not(:disabled) { border-color: #F77F00; }
  .pulso-frase-texto { color: #E8ECF0; }

  .footer-social-icons a, .footer-social-icons button {
    background: #14171F; border-color: rgba(255,255,255,.12); color: #E8ECF0;
  }
  .footer-social-title { color: #E8ECF0; }
  .footer-social { border-bottom-color: rgba(255,255,255,.08); }
}



/* ═══════════════════════════════════════════════════════════════════════
   v12 — PROFUNDIDAD, ARMONÍA Y PULIDO MÓVIL
   Capa cohesiva que se aplica a TODO el sitio. Da relieve (no "plano"),
   unifica sombras/relieve y afina la experiencia en celular.
   Respeta el modo oscuro (overrides al final).
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* Elevación en capas — dos sombras (contacto + difusa) = profundidad real */
  --elev-1: 0 1px 2px rgba(16,40,28,.06), 0 3px 10px rgba(16,40,28,.06);
  --elev-2: 0 2px 6px rgba(16,40,28,.07), 0 12px 28px rgba(16,40,28,.09);
  --elev-3: 0 10px 22px rgba(16,40,28,.12), 0 26px 56px rgba(16,40,28,.14);
  /* Brillo superior sutil, como luz cenital sobre la superficie */
  --luz-top: inset 0 1px 0 rgba(255,255,255,.8);
  --luz-top-btn: inset 0 1px 0 rgba(255,255,255,.28);
  --ring-focus: 0 0 0 3px rgba(82,183,136,.45);
}

/* ── Base móvil: sin desbordes, texto estable, anclas visibles ── */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, svg, video, canvas { max-width: 100%; }
:where([id]) { scroll-margin-top: 84px; }

/* ── Fondo con profundidad (no plano): halo suave de marca ── */
body {
  background:
    radial-gradient(1100px 540px at 50% -6%, rgba(82,183,136,.10), transparent 60%),
    radial-gradient(760px 460px at 100% 2%, rgba(247,127,0,.055), transparent 55%),
    var(--fondo);
}
.section-content-2025 {
  background:
    radial-gradient(720px 380px at 50% 0, rgba(82,183,136,.06), transparent 60%),
    var(--fondo);
}

/* ── Superficies (tarjetas) con relieve y elevación al pasar el dedo ── */
.card,
.farmacia-card,
.finde-card,
.reporte-item,
.emg-item,
.turno-hoy-box,
.mega-turno,
.mega-clima,
.avisos-card,
.pulso-card {
  box-shadow: var(--elev-2), var(--luz-top);
  transition: transform .26s cubic-bezier(.34,1.28,.5,1),
              box-shadow .26s ease, border-color .26s ease;
}
.card:hover,
.farmacia-card:hover,
.finde-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--elev-3), var(--luz-top);
  border-color: rgba(82,183,136,.4);
}
.finde-card:active,
.farmacia-card:active { transform: translateY(-1px); }

/* ── Íconos de sección/tarjeta: tiles con relieve ── */
.section-icon,
.card-icon {
  box-shadow: 0 4px 12px rgba(16,40,28,.12), inset 0 1px 0 rgba(255,255,255,.55);
}

/* ── Título de sección: subrayado con degradado (más vivo que la línea plana) ── */
.section-title {
  border-bottom: none;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primario-claro), var(--acento) 45%, transparent 80%);
  opacity: .55;
}

/* ── Botones con tacto (relieve + hundido al presionar) ── */
.btn, .btn-map, .btn-mapa, .btn-whatsapp, .btn-wsp, .btn-tel, .btn-copiar,
.btn-submit, .finde-cta-btn, .reporte-enviar-btn, .mt-btn, .don-btn,
.filtro-btn, .encuesta-opt, .buscador-btn {
  box-shadow: var(--elev-1);
}
.btn-whatsapp, .btn-wsp, .btn-submit, .reporte-enviar-btn, .finde-cta-btn,
.don-btn, .mt-btn-primario, .btn-turno-primary {
  box-shadow: var(--elev-1), var(--luz-top-btn);
}
.btn:active, .btn-map:active, .btn-mapa:active, .btn-whatsapp:active,
.btn-wsp:active, .btn-tel:active, .btn-submit:active, .finde-cta-btn:active,
.reporte-enviar-btn:active, .mt-btn:active, .don-btn:active, .filtro-btn:active,
.encuesta-opt:active, .buscador-btn:active {
  transform: translateY(1px) scale(.99);
}

/* ── Accesibilidad: foco visible y prolijo ── */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
}

/* ── Pulido móvil ── */
nav { padding-top: max(.75rem, env(safe-area-inset-top)); }
.body-nav { padding-top: calc(70px + env(safe-area-inset-top)); }
.install-banner { bottom: max(12px, env(safe-area-inset-bottom)) !important; }

@media (max-width: 768px) {
  .body-nav { padding-top: calc(64px + env(safe-area-inset-top)); }
}
@media (max-width: 600px) {
  .section-title h2 { font-size: 1.28rem; }
  .section-title { margin-bottom: 1.35rem; }
  /* Objetivos táctiles cómodos */
  .btn, .btn-map, .btn-mapa, .btn-whatsapp, .btn-wsp, .btn-tel, .btn-submit,
  .mt-btn, .filtro-btn, .finde-cta-btn, .don-btn, .nav-links a {
    min-height: 46px;
  }
  /* Un poco más de aire entre tarjetas */
  .cards { gap: 1rem; }
  .finde-grid { gap: .9rem; }
}

/* ═══════════════ Overrides para MODO OSCURO (van al final para ganar) ═══════ */
@media (prefers-color-scheme: dark) {
  :root {
    --elev-1: 0 1px 2px rgba(0,0,0,.45), 0 3px 10px rgba(0,0,0,.4);
    --elev-2: 0 2px 6px rgba(0,0,0,.5),  0 12px 28px rgba(0,0,0,.55);
    --elev-3: 0 10px 22px rgba(0,0,0,.6), 0 26px 56px rgba(0,0,0,.65);
    --luz-top: inset 0 1px 0 rgba(255,255,255,.06);
    --luz-top-btn: inset 0 1px 0 rgba(255,255,255,.10);
  }
  body {
    background:
      radial-gradient(1100px 540px at 50% -6%, rgba(82,183,136,.08), transparent 60%),
      #0F1117;
  }
  .section-content-2025 {
    background:
      radial-gradient(720px 380px at 50% 0, rgba(82,183,136,.06), transparent 60%),
      var(--fondo);
  }
  .section-icon, .card-icon {
    box-shadow: 0 4px 12px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
  }
}



/* ═══════════════════════════════════════════════════════════════════════
   v13 — ARMONÍA DE COLOR EN LA PORTADA (grilla de navegación del hero)
   Antes cada tarjeta tenía un tinte distinto (naranja, azul, rojo, morado…)
   sobre el hero verde → se veía turbio y "arcoíris". Ahora TODAS comparten
   una misma superficie de vidrio y el color vive SOLO en el ícono, con una
   paleta coherente. Resultado: cohesión visual + reconocimiento por categoría.
   ═══════════════════════════════════════════════════════════════════════ */

/* Superficie uniforme para todas las tarjetas del hero */
.nav-card-2025 {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08);
}
/* Farmacia = acción principal → vidrio apenas cálido con el naranja de marca */
.nav-card-farmacia {
  background: linear-gradient(135deg, rgba(247,127,0,.18), rgba(255,255,255,.05)) !important;
  border-color: rgba(247,127,0,.30) !important;
}

/* El ícono pasa a ser un "badge" coloreado, mismo tamaño y forma para todos */
.nav-card-icon-2025 {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 13px;
  font-size: 1.5rem !important;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 3px 8px rgba(0,0,0,.20);
  filter: none;
}
.nav-card-farmacia .nav-card-icon-2025 { width: 52px; height: 52px; font-size: 1.7rem !important; }

/* Paleta de badges — coherente (misma luminosidad/saturación) */
.nav-card-farmacia  .nav-card-icon-2025 { background: linear-gradient(135deg,#FFB259,#F77F00); }
.nav-card-salud     .nav-card-icon-2025 { background: linear-gradient(135deg,#4C9DFF,#1F6FEB); }
.nav-card-seguridad .nav-card-icon-2025 { background: linear-gradient(135deg,#FF6B75,#E5484D); }
.nav-card-ferias    .nav-card-icon-2025 { background: linear-gradient(135deg,#5FC98A,#2E9E5B); }
.nav-card-colegios  .nav-card-icon-2025 { background: linear-gradient(135deg,#B368E0,#8B3FD1); }
.nav-card-juegos    .nav-card-icon-2025 { background: linear-gradient(135deg,#37D0B5,#12A594); }
.nav-card-noticias  .nav-card-icon-2025 { background: linear-gradient(135deg,#4C9DFF,#1F6FEB); }
.nav-card-trabajos  .nav-card-icon-2025 { background: linear-gradient(135deg,#5FC98A,#2E9E5B); }

/* Descripciones un pelo más legibles sobre el vidrio */
.nav-card-desc-2025 { color: rgba(255,255,255,.72); }

@media (max-width: 480px) {
  .nav-card-icon-2025 { width: 42px; height: 42px; font-size: 1.35rem !important; }
  .nav-card-farmacia .nav-card-icon-2025 { width: 46px; height: 46px; font-size: 1.5rem !important; }
}



/* ═══════════════════════════════════════════════════════════════════════
   v14 — PALETA 2026 (neutros cálidos, lo que se usa hoy)
   Cambia el gris frío por un "bone" cálido, tinta profunda cálida y bordes
   suaves. Da un aire moderno y cohesivo manteniendo la marca verde+naranja.
   Solo modo claro (el oscuro conserva su paleta).
   ═══════════════════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: light), (prefers-color-scheme: no-preference) {
  :root {
    --fondo:        #F5F3EE;  /* bone cálido en vez de gris frío */
    --fondo-card:   #FFFFFF;
    --texto:        #232A25;  /* tinta cálida profunda (no negro puro) */
    --texto-suave:  #6B7268;
    --borde:        #E8E3DA;  /* borde cálido y suave */
    --verde-suave:  #DCEFE1;
    --azul-suave:   #E7F0FF;
    --acento-suave: #FBEEE0;
    --ambar-suave:  #FBF1DD;
    --crema:        #F5F3EE;
    --crema-oscura: #E8E3DA;
    /* Sombras con leve calidez, coherentes con el fondo bone */
    --sombra:       0 1px 3px rgba(44,38,28,.05), 0 8px 22px rgba(44,38,28,.07);
    --sombra-hover: 0 6px 14px rgba(44,38,28,.08), 0 18px 44px rgba(44,38,28,.10);
    --elev-1: 0 1px 2px rgba(44,38,28,.06), 0 3px 10px rgba(44,38,28,.06);
    --elev-2: 0 2px 6px rgba(44,38,28,.07), 0 12px 28px rgba(44,38,28,.09);
    --elev-3: 0 10px 22px rgba(44,38,28,.12), 0 26px 56px rgba(44,38,28,.14);
  }
  /* Fondo con halo cálido de marca (bone + verde/ámbar muy sutiles) */
  body {
    background:
      radial-gradient(1100px 540px at 50% -6%, rgba(82,183,136,.12), transparent 60%),
      radial-gradient(760px 460px at 100% 2%, rgba(247,127,0,.06), transparent 55%),
      #F5F3EE;
  }
}
