/* Sección "Dónde atiendo" — mapa con dos zonas (radio 400 m) */
#donde-atiendo {
  padding: 5rem 0;
  background: rgba(236, 236, 245, .3); /* = bg-muted/30, alterna con Testimonios */
  font-family: var(--font-sans);
}
#donde-atiendo .da-wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
#donde-atiendo .da-head { text-align: center; margin-bottom: 3rem; }
#donde-atiendo .da-head h2 {
  font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; color: var(--foreground); margin: 0 0 1rem;
}
#donde-atiendo .da-head p {
  font-size: 1.25rem; line-height: 1.75rem; color: var(--muted-foreground); max-width: 48rem; margin: 0 auto;
}
@media (min-width: 1024px) { #donde-atiendo .da-head h2 { font-size: 3rem; line-height: 1; } }
@media (max-width: 639px) {
  #donde-atiendo .da-head h2 { font-size: 2.125rem; line-height: 2.5rem; }
  #donde-atiendo .da-head p { font-size: 1.125rem; }
}

#donde-atiendo .da-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { #donde-atiendo .da-grid { grid-template-columns: 2fr 1fr; align-items: stretch; } }

#donde-atiendo .da-map-card {
  position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 1rem;
  padding: .5rem; box-shadow: 0 10px 15px -3px rgba(87, 87, 153, .12), 0 4px 6px -4px rgba(87, 87, 153, .1);
}
#donde-atiendo .da-map-card { display: flex; flex-direction: column; z-index: 0; isolation: isolate; } /* que el mapa y su aviso no tapen ventanas emergentes */
#donde-atiendo .da-map {
  flex: 1; min-height: 460px; border-radius: .75rem; overflow: hidden; background: #ECECF5; z-index: 0;
}
@media (max-width: 639px) { #donde-atiendo .da-map { min-height: 380px; } }

/* Teselas teñidas a la paleta lavanda del sitio */
#donde-atiendo .da-map .leaflet-tile-pane {
  filter: grayscale(1) contrast(.72) brightness(1.14) sepia(.3) hue-rotate(205deg) saturate(1.5);
}
#donde-atiendo .da-map .leaflet-control-attribution {
  font-size: 10px; background: rgba(255, 255, 255, .75); color: var(--muted-foreground);
}
#donde-atiendo .da-map .leaflet-control-attribution a { color: var(--primary); }
#donde-atiendo .da-map .leaflet-bar a { color: var(--primary); }
#donde-atiendo .da-map .leaflet-bar { border: 1px solid var(--border); box-shadow: none; border-radius: .5rem; overflow: hidden; }

/* Dibujitos de los edificios en el mapa */
.da-badge {
  position: relative; box-sizing: border-box; border-radius: 50%; background: #fff;
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(9, 9, 51, .22);
}
.da-badge svg { width: 78%; height: 78%; }
.da-badge.is-zone { border: 3px solid #575799; cursor: pointer; }
.da-badge.is-zone::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; z-index: -1;
  background: rgba(87, 87, 153, .22); animation: da-pulse 2.6s ease-out infinite;
}
.da-badge.is-landmark { border: 2px solid #A8A8CC; }
@keyframes da-pulse { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .da-badge.is-zone::after { animation: none; } }

/* Nombres de calle propios, al estilo del plano pero en la paleta del sitio */
.da-street {
  position: absolute; left: 0; top: 0; white-space: nowrap; pointer-events: none; transform-origin: 0 50%;
  font: italic 600 11.5px/1 Inter, system-ui, sans-serif; color: #575799; letter-spacing: .02em;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 6px #fff;
}
@media (max-width: 639px) { .da-street { font-size: 9.5px; } }

/* Nombre de la zona, sobre el anillo */
.da-zone-tag {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap;
  background: #575799; color: #fff; border-radius: 999px; padding: 5px 14px;
  font: 600 13px/1.2 Inter, system-ui, sans-serif; letter-spacing: .01em;
  box-shadow: 0 4px 12px rgba(87, 87, 153, .3);
}
@media (max-width: 639px) { .da-zone-tag { font-size: 11.5px; padding: 4px 10px; } }

.leaflet-tooltip.da-label {
  background: #fff; color: #090933; border: 1px solid #C5C5E0; border-radius: 999px;
  padding: 4px 12px; font: 600 13px/1.3 Inter, system-ui, sans-serif;
  box-shadow: 0 4px 10px rgba(87, 87, 153, .18);
}
.leaflet-tooltip.da-label::before { display: none; }
.leaflet-tooltip.da-label-sm { font-size: 11.5px; padding: 2px 9px; font-weight: 600; color: #575799; }

#donde-atiendo .da-hint {
  position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 500;
  background: rgba(9, 9, 51, .72); color: #fff; font-size: .8rem; padding: .35rem .8rem; border-radius: 999px;
  pointer-events: none; transition: opacity .3s; white-space: nowrap;
}
#donde-atiendo .da-hint.is-hidden { opacity: 0; }

/* Tarjetas de zona */
#donde-atiendo .da-side { display: flex; flex-direction: column; gap: 1rem; }
#donde-atiendo .da-zone {
  display: block; width: 100%; text-align: left; cursor: pointer; font: inherit;
  background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: 0 4px 6px -1px rgba(87, 87, 153, .1); transition: transform .25s, box-shadow .25s, border-color .25s;
}
#donde-atiendo .da-zone:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(87, 87, 153, .15); }
#donde-atiendo .da-zone.is-active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(87, 87, 153, .25); }
#donde-atiendo .da-zone:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
#donde-atiendo .da-zone-top { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
#donde-atiendo .da-zone-icon {
  flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--background); color: var(--primary);
}
#donde-atiendo .da-zone-icon.da-zone-draw { width: 3rem; height: 3rem; background: #fff; border: 2px solid var(--border); }
#donde-atiendo .da-zone-icon.da-zone-draw svg { width: 80%; height: 80%; }
#donde-atiendo .da-zone h3 { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--heading); }
#donde-atiendo p { text-align: left; }
#donde-atiendo .da-head p { text-align: center; }
#donde-atiendo .da-zone p { margin: 0; color: var(--muted-foreground); font-size: .95rem; line-height: 1.5; }
#donde-atiendo .da-metro {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .35rem;
  font-size: .8rem; font-weight: 600; color: var(--primary); background: var(--background);
  padding: .25rem .65rem; border-radius: 999px;
}
#donde-atiendo .da-note {
  margin: 0; padding: 1rem 1.25rem; border-radius: 1rem; background: #575799; color: #fff;
  font-size: .95rem; line-height: 1.5; text-align: center;
}
#donde-atiendo .da-note strong { font-weight: 700; }
#donde-atiendo .da-note a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
