/* ==========================================================================
   Perfil · sección Ubicación (injerto de la opción B), prefijo pb-
   Usa los tokens de rdn.css. Panel de tinta con el mapa de México y, debajo,
   la lista "Cerca". Rojo de marca solo en el estado resaltado y en el punto.
   ========================================================================== */
.pb-ubi { margin-top: var(--sp-16); scroll-margin-top: calc(var(--header-h, 72px) + 16px); }

.pb-ubi__panel { background: var(--ink); color: #fff; padding: clamp(20px, 4vw, 56px); }
.pb-ubi__panel .rubric { margin-bottom: var(--sp-6); }
.pb-ubi__grid { display: grid; gap: var(--sp-8) clamp(24px, 4vw, 64px); grid-template-columns: minmax(0, 1fr); align-items: center; }
.pb-ubi__txt, .pb-map { min-width: 0; }
.pb-ubi__h { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.75rem, 1rem + 7vw, 6.5rem); line-height: .88; letter-spacing: -.01em; margin: 0 0 var(--sp-5); overflow-wrap: anywhere; }
.pb-ubi__h--load { font-size: var(--fs-2xl); }
.pb-ubi__p { font-family: var(--font-text); font-size: var(--fs-md); line-height: 1.5; color: #E4DEDE; max-width: 30em; margin: 0; }
.pb-ubi__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--sp-6); }

/* Mapa */
.pb-map { margin: 0; }
.pb-map__box svg { display: block; width: 100%; height: auto; }
.pb-map__box path { fill: #353230; stroke: #6F6969; stroke-width: .8; stroke-linejoin: round; }
.pb-map__box path.pb-here { fill: var(--red); stroke: #fff; stroke-width: 1.8; }
.pb-pin { stroke: none; }
.pb-pin--halo { fill: none; stroke: #fff; stroke-width: 2; }
.pb-pin--here { fill: #fff; stroke: var(--ink); stroke-width: 2.5; }
.pb-pin--near { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.pb-map__leg { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: var(--sp-3); font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); letter-spacing: .08em; text-transform: uppercase; color: #E4DEDE; }
.pb-map__leg span { display: inline-flex; align-items: center; gap: 8px; }
.pb-key { display: inline-block; width: 14px; height: 14px; flex: none; }
.pb-key--state { background: var(--red); border: 2px solid #fff; }
.pb-key--here { background: #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px #fff; margin: 0 3px; }
.pb-key--near { background: #fff; border-radius: 50%; width: 9px; height: 9px; margin: 0 2px; }

/* Cerca */
.pb-cerca { margin-top: var(--sp-10); }
.pb-cerca .rubric { margin-bottom: var(--sp-4); }
.pb-cerca__h { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: var(--fs-xl); line-height: 1; margin: 0 0 var(--sp-4); }
.pb-cerca__list { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.pb-cerca__li { border-bottom: 1px solid var(--ink); }
.pb-cerca__a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--sp-2) var(--sp-4); align-items: center; padding: var(--sp-4) 0; text-decoration: none; color: inherit; }
.pb-cerca__a:hover { background: var(--ink); color: #fff; box-shadow: -12px 0 0 var(--ink), 12px 0 0 var(--ink); }
.pb-cerca__main { display: grid; gap: 4px; min-width: 0; }
.pb-cerca__name { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem); line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere; }
.pb-cerca__t { font-family: var(--font-text); font-size: var(--fs-base); line-height: 1.35; color: var(--ink-soft); overflow-wrap: anywhere; }
.pb-cerca__a:hover .pb-cerca__t { color: #E4DEDE; }
.pb-cerca__m { display: grid; gap: 2px; text-align: right; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); letter-spacing: .05em; text-transform: uppercase; line-height: 1.35; color: var(--ink-soft); }
.pb-cerca__a:hover .pb-cerca__m { color: #E4DEDE; }
.pb-cerca__d { font-weight: 800; color: var(--ink); }
.pb-cerca__a:hover .pb-cerca__d { color: #fff; }
.pb-cerca__a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.pb-cerca__note { font-size: var(--fs-sm); color: var(--ink-mute); margin: var(--sp-3) 0 0; max-width: 60ch; }

.pb-empty { border: 2px dashed var(--ink-mute); padding: var(--sp-6); display: grid; gap: var(--sp-2); max-width: 46rem; }
.pb-empty p { margin: 0; font-family: var(--font-text); color: var(--ink-soft); }
.pb-empty__t { font-family: var(--font-head) !important; font-weight: 800; font-size: var(--fs-lg); text-transform: uppercase; color: var(--ink) !important; }

@media (min-width: 900px) {
  .pb-ubi__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
@media (max-width: 640px) {
  .pb-cerca__a { grid-template-columns: auto minmax(0, 1fr); }
  .pb-cerca__m { grid-column: 1 / -1; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .pb-ubi *, .pb-cerca * { transition: none !important; animation: none !important; }
}
