/* =========================================================
   DonaTrack - sección ACCESO (público)
   Landing, login, registro (donante / entidad) y mapa público.
   Depende de styles.css.
   ========================================================= */

/* ---------- Navbar pública ---------- */
.navbar__login {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.navbar__login:hover {
  color: var(--blue-600);
}

/* ---------- Footer con redes ---------- */
.footer__social {
  display: flex;
  gap: 10px;
}
.footer__social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}
.footer__social a:hover {
  color: var(--navy-800);
  border-color: var(--line-strong);
}
.footer__social svg {
  width: 18px;
  height: 18px;
}

/* =========================================================
   LANDING (index.html)
   ========================================================= */
.hero {
  padding: 96px 0 88px;
  background:
    radial-gradient(ellipse at 0% 100%, rgba(111, 245, 196, 0.16), transparent 55%),
    radial-gradient(ellipse at 100% 0%, rgba(219, 231, 251, 0.7), transparent 60%),
    linear-gradient(180deg, #eef4fb 0%, #f1f7f6 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 48px;
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--navy-700);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}
.hero__badge svg {
  width: 13px;
  height: 13px;
}
.hero__title {
  margin-top: 18px;
  max-width: 600px;
  font-size: 42px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-800);
}
.hero__lead {
  margin-top: 24px;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}
.hero__actions .btn--ghost {
  box-shadow: var(--shadow-sm);
}

/* Tarjeta "Impacto social" del hero */
.impact-card {
  position: relative;
  padding: 26px 22px 22px;
  border-radius: 6px;
  background: linear-gradient(160deg, #5cc0cc 0%, #47aebc 100%);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.impact-card__title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  text-transform: uppercase;
  line-height: 1;
}
.globe {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 22px auto 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), transparent 42%),
    radial-gradient(circle at 60% 60%, #1f7fa8, #0b4f78 75%);
  box-shadow: 0 22px 18px -14px rgba(0, 40, 60, 0.45);
  color: #fff;
}
.globe__land {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}
.globe__icon {
  position: absolute;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.globe__icon svg {
  width: 18px;
  height: 18px;
}
.impact-card__stat {
  margin-top: 14px;
  padding: 18px 16px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.9);
  text-align: left;
}
.impact-card__value {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-800);
}
.impact-card__stat .progress {
  margin: 10px 0 12px;
}
.impact-card__caption {
  font-size: 12px;
  color: var(--text);
}

/* Estándar DonaTrack */
.standard {
  padding: 96px 0 120px;
  background: var(--bg);
  text-align: center;
}
.standard__title {
  font-size: 28px;
  font-weight: 600;
  color: var(--navy-800);
}
.standard__lead {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text);
}
.standard .grid {
  margin-top: 40px;
  text-align: left;
}
.feature {
  padding: 32px 30px 28px;
}
.feature .icon-square {
  margin-bottom: 20px;
}
.feature__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.feature__text {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* Donaciones destacadas (bento) */
.featured {
  padding: 40px 0 120px;
  scroll-margin-top: 70px;
}
.featured__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.featured__title {
  font-size: 30px;
  font-weight: 600;
  color: var(--navy-800);
}
.featured__head p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-800);
}
.link-arrow svg {
  width: 18px;
  height: 18px;
}
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.bento__hero {
  grid-column: span 2;
  position: relative;
  min-height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
}
.bento__hero .ph {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, #1f5fb3, #0a2c63 55%, #03132b 100%);
  align-items: start;
  padding-top: 40px;
}
.bento__hero .ph svg {
  width: 240px;
  height: 240px;
  opacity: 0.18;
}
.bento__hero-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px;
  background: linear-gradient(0deg, rgba(0, 18, 40, 0.9), rgba(0, 18, 40, 0));
}
.bento__hero-title {
  margin-top: 10px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}
.bento__hero-text {
  margin-top: 14px;
  max-width: 580px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
}
.donors {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}
.donors__faces {
  display: flex;
}
.donors__faces span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: -8px;
  border-radius: 50%;
  border: 2px solid #0a2c63;
  background: linear-gradient(135deg, #4a5568, #1a202c);
  font-size: 11px;
  font-weight: 700;
}
.donors__faces span:first-child {
  margin-left: 0;
}
.donors__faces .donors__more {
  background: var(--mint-400);
  color: #004d31;
}

.story {
  padding: 24px;
}
.story__img {
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
}
.story__title {
  margin-top: 24px;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy-800);
}
.story__text {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}
.story__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.story__raised {
  font-weight: 700;
  color: var(--green-700);
}
.story__verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}
.story__verified svg {
  width: 14px;
  height: 14px;
}

.map-promo {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: #eceef1;
}
.map-promo__title {
  font-size: 30px;
  font-weight: 600;
  color: var(--navy-800);
}
.map-promo__text {
  margin: 16px 0 20px;
  font-size: 14px;
  color: var(--text);
}
.map-promo__img {
  height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.map-promo__img .ph {
  background: radial-gradient(circle at 55% 45%, #bfe9ef 0 26%, #3b9fb0 40%, #0d4a58 70%, #062a33 100%);
}

/* CTA final */
.cta {
  padding: 60px 0 100px;
}
.cta__box {
  position: relative;
  max-width: 1030px;
  margin: 0 auto;
  padding: 72px 40px;
  border-radius: 40px;
  background: var(--navy-800);
  color: #fff;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta__box::before,
.cta__box::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}
.cta__box::before {
  width: 220px;
  height: 220px;
  left: -90px;
  bottom: -110px;
}
.cta__box::after {
  width: 180px;
  height: 180px;
  right: -60px;
  top: -70px;
}
.cta__title {
  position: relative;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.cta__text {
  position: relative;
  max-width: 680px;
  margin: 20px auto 0;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
}
.cta__actions {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}
.btn--white {
  background: #fff;
  color: var(--navy-800);
}
.btn--white:hover {
  background: var(--blue-50);
}
.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   AUTH (login / registro): fondo difuso + tarjeta
   ========================================================= */
.auth {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 72px 0;
  background:
    radial-gradient(ellipse at 45% 35%, rgba(255, 255, 255, 0.95), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(210, 216, 224, 0.8), transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(200, 208, 218, 0.7), transparent 45%),
    linear-gradient(135deg, #eef0f3, #dfe3e8);
}
.auth > .container {
  width: 100%;
}

/* ---------- Login ---------- */
.login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.96fr);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.login__form-side {
  padding: 64px 64px 56px;
}
.login__form-side > * {
  max-width: 466px;
}
.login__brand {
  display: block;
  font-size: 24px;
  font-weight: 600;
  color: var(--navy-800);
}
.login__title {
  margin-top: 10px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.login__lead {
  margin-top: 10px;
  font-size: 18px;
  color: var(--muted);
}
.login__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 36px;
}

/* Selector de rol: radios dentro de .segmented */
.role-switch {
  display: flex;
  min-width: 0;
  margin: 0 0 16px;
  padding: 4px;
  border: 0;
}
.role-switch legend {
  padding: 0;
}
.role-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.role-switch label:has(input:checked) {
  background: var(--surface);
  color: var(--navy-800);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.role-switch label:has(input:focus-visible) {
  outline: 2px solid var(--navy-700);
  outline-offset: 1px;
}
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.label-row a {
  font-size: 14px;
  color: var(--navy-800);
}
.label-row a:hover {
  text-decoration: underline;
}
.login .input {
  height: 50px;
}

/* Un botón de envío por rol (formaction). Se muestra el del rol elegido. */
.login__submit {
  display: none;
  height: 48px;
  margin-top: 0;
  box-shadow: 0 6px 14px rgba(0, 51, 102, 0.22);
}
.login__submit--donante {
  display: flex;
}
.login__form:has(#rol-beneficiario:checked) .login__submit--donante,
.login__form:has(#rol-admin:checked) .login__submit--donante {
  display: none;
}
.login__form:has(#rol-beneficiario:checked) .login__submit--beneficiario,
.login__form:has(#rol-admin:checked) .login__submit--admin {
  display: flex;
}
.login__foot {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  text-align: center;
  font-size: 16px;
  color: var(--text);
}
.login__foot a {
  color: var(--navy-800);
}
.login__foot a:hover {
  text-decoration: underline;
}

.login__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 48px;
  background: #0f3a5e;
  color: #fff;
  overflow: hidden;
}
.login__visual::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 60%;
  width: 470px;
  height: 470px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 45%, #6aa6c8, #4f8fb6 70%);
  opacity: 0.85;
}
.login__phone {
  position: absolute;
  top: 50%;
  left: 60%;
  width: 164px;
  height: 350px;
  transform: translate(-50%, -52%);
  border-radius: 18px;
  border: 7px solid #1d3f63;
  background: linear-gradient(180deg, #1e62a0, #174f86);
  opacity: 0.55;
}
.login__visual-body {
  position: relative;
  max-width: 360px;
}
.login__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint-400);
}
.login__eyebrow svg {
  width: 22px;
  height: 22px;
}
.login__claim {
  margin-top: 12px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.18;
}
.login__claim-text {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}
.login__stat {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}
.login__stat .icon-circle {
  background: var(--mint-400);
  color: var(--navy-800);
}
.login__stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.login__stat-value {
  font-size: 24px;
  font-weight: 600;
}

/* ---------- Registro ---------- */
.register {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 576px);
  gap: 48px;
  align-items: center;
}
.register__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--mint-400);
  color: #004d31;
  font-size: 15px;
  font-weight: 500;
}
.register__pill svg {
  width: 14px;
  height: 14px;
}
.register__title {
  margin-top: 24px;
  max-width: 480px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy-800);
}
.register__lead {
  margin-top: 20px;
  max-width: 440px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}
.register__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 24px;
  margin-top: 36px;
}
.perk {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.perk__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}
.perk__icon svg {
  width: 20px;
  height: 20px;
}
.perk__title {
  font-size: 16px;
  color: var(--ink);
}
.perk__text {
  font-size: 15px;
  color: var(--muted);
}

.register-card {
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.register-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.register-tabs a {
  padding: 16px 12px;
  background: var(--surface-alt);
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.register-tabs a:hover {
  color: var(--navy-800);
}
.register-tabs a.is-active {
  background: var(--surface);
  color: var(--navy-800);
  border-color: var(--navy-800);
}
.register-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
}

/* Segmented Persona Física / Jurídica con radios */
.person-switch {
  display: flex;
  min-width: 0;
  margin: 0 0 4px;
  border: 0;
}
.person-switch legend {
  padding: 0;
}
.person-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.person-switch label:has(input:checked) {
  background: var(--surface);
  color: var(--navy-800);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.person-switch label:has(input:focus-visible) {
  outline: 2px solid var(--navy-700);
  outline-offset: 1px;
}
/* Campos que cambian según tipo de persona */
.only-juridica {
  display: none;
}
.register-form:has(#tipo-juridica:checked) .only-fisica {
  display: none;
}
.register-form:has(#tipo-juridica:checked) .only-juridica {
  display: flex;
}
.register-form .label {
  font-size: 14px;
}
.register-form .terms {
  align-items: flex-start;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.35;
}
.register-form .terms input {
  margin-top: 2px;
  flex-shrink: 0;
}
.register-form .terms a {
  color: var(--navy-800);
  text-decoration: underline;
}
.register-form .btn--success {
  height: 60px;
  font-size: 18px;
  font-weight: 500;
}
.sso {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sso .btn {
  font-weight: 500;
}

/* =========================================================
   MAPA PÚBLICO (mapa.html): mapa a pantalla completa + panel
   ========================================================= */
.map-page {
  display: flex;
  flex: none;
  flex-direction: column;
  height: calc(100vh - 63px);
  height: calc(100dvh - 63px);
  min-height: 560px;
  background: var(--surface);
}
.map-page__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.map-page__title {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--navy-800);
}
.map-page__subtitle {
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
}
.map-stats {
  display: flex;
  gap: 8px;
  margin: 0;
}
.map-stats div {
  min-width: 92px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
}
.map-stats dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.map-stats dd {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.map-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
}
.map-layout .map {
  min-height: 0;
  height: 100%;
}
.map-legend {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 13px;
  color: var(--text);
}
.map-legend__pin {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.map-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(380px, calc(100% - 32px));
  padding: 20px 24px;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.map-empty__title {
  font-weight: 600;
  color: var(--ink);
}
.map-empty__text {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}
.map-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 20px 24px;
  border-left: 1px solid var(--line);
  background: var(--surface);
}
.map-panel [hidden] {
  display: none;
}
.map-panel__eyebrow {
  margin: 24px 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.map-list > .map-panel__eyebrow {
  margin-top: 0;
}
.map-panel__muted {
  font-size: 13px;
  color: var(--muted);
}
.map-panel__note {
  margin-top: 12px;
}
.map-panel > section {
  margin-bottom: 24px;
}
.map-panel__cta {
  margin-top: auto;
  flex-shrink: 0;
}
.map-list__items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.map-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.map-list__item:hover,
.map-list__item:focus-visible,
.map-list__item.is-hover {
  border-color: var(--green-600);
  background: var(--green-100);
}
.map-list__count {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-600);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.map-list__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 13px;
  color: var(--muted);
}
.map-list__body strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-800);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-list__body span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-list__date {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--subtle);
}
.map-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: -4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy-700);
  text-decoration: none;
}
.map-detail__back:hover {
  text-decoration: underline;
}
.map-detail__back svg {
  width: 16px;
  height: 16px;
}
.map-detail__title {
  margin-top: 12px;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.2;
  color: var(--navy-800);
}
.map-detail__place {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}
.map-detail__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.map-detail__stats div {
  padding: 10px 12px;
}
.map-detail__stats div + div {
  border-left: 1px solid var(--line);
}
.map-detail__stats dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.map-detail__stats dd {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  white-space: nowrap;
}
.map-detail__photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 16px;
}
.map-detail__photos a:only-child {
  grid-column: 1 / -1;
}
.map-detail__photos img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.map-detail__items {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.map-detail__items li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  font-size: 14px;
}
.map-detail__items li + li {
  border-top: 1px solid var(--line);
}
.map-detail__qty {
  text-align: right;
}
.map-detail__qty strong {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.map-detail__qty small {
  display: block;
  font-size: 12px;
  color: var(--subtle);
}
.map-detail__history li {
  position: relative;
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
}
.map-detail__history li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 0;
  left: 4px;
  width: 2px;
  background: var(--line);
}
.map-detail__dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--green-600);
}
.map-detail__history strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.map-detail__history small {
  font-size: 12px;
  color: var(--muted);
}

/* Vista previa de la dirección en los registros */
.address-map {
  margin-top: -4px;
}
.address-map__map {
  display: none;
  height: 220px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.address-map.is-visible .address-map__map {
  display: block;
}
.address-map__estado {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.address-map__estado::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}
.address-map__estado[data-estado="buscando"]::before {
  background: var(--blue-600);
}
.address-map__estado[data-estado="ok"] {
  color: var(--green-700);
  font-weight: 500;
}
.address-map__estado[data-estado="ok"]::before {
  background: var(--green-600);
}
.address-map__estado[data-estado="varias"],
.address-map__estado[data-estado="nada"],
.address-map__estado[data-estado="error"] {
  color: #8a5a00;
}
.address-map__estado[data-estado="varias"]::before,
.address-map__estado[data-estado="nada"]::before,
.address-map__estado[data-estado="error"]::before {
  background: var(--amber-500);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero__inner,
  .register {
    grid-template-columns: 1fr;
  }
  .hero__inner .impact-card {
    max-width: 460px;
  }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bento__hero,
  .map-promo {
    grid-column: 1 / -1;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login__form-side > * {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .navbar__actions .btn {
    height: 34px;
    padding: 0 12px;
  }
  .hero {
    padding: 48px 0 56px;
  }
  .hero__title {
    font-size: 32px;
  }
  .hero__actions .btn {
    flex: 1 1 auto;
  }
  .impact-card__title {
    font-size: 28px;
  }
  .standard {
    padding: 64px 0 72px;
  }
  .featured {
    padding: 24px 0 72px;
  }
  .featured__title {
    font-size: 26px;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .bento__hero {
    min-height: 460px;
  }
  .bento__hero-body {
    padding: 24px;
  }
  .bento__hero-title {
    font-size: 26px;
  }
  .map-promo {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .map-promo__img {
    height: 200px;
  }
  .cta {
    padding: 24px 0 64px;
  }
  .cta__box {
    padding: 48px 20px;
    border-radius: 28px;
  }
  .cta__title {
    font-size: 28px;
  }
  .cta__text {
    font-size: 15px;
  }

  .auth {
    padding: 32px 0;
  }
  .login__form-side {
    padding: 36px 22px 32px;
  }
  .login__title {
    font-size: 32px;
  }
  .login__lead {
    font-size: 16px;
  }
  .role-switch label {
    padding: 8px 6px;
  }
  .login__visual {
    padding: 40px 22px;
  }
  .login__visual::before {
    width: 340px;
    height: 340px;
  }
  .login__claim {
    font-size: 28px;
  }
  .login__claim-text {
    font-size: 16px;
  }
  .login__stat-value {
    font-size: 20px;
  }

  .register__title {
    font-size: 32px;
  }
  .register__lead {
    font-size: 16px;
  }
  .register-form {
    padding: 22px 18px;
  }
  .person-switch label {
    padding: 8px 6px;
  }
  .register-form .btn--success {
    height: 52px;
    font-size: 16px;
  }
  .sso {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 1024px) {
  .map-page {
    height: auto;
    min-height: 0;
  }
  .map-layout {
    grid-template-columns: 1fr;
  }
  .map-layout .map {
    height: 60vh;
    min-height: 380px;
  }
  .map-panel {
    overflow: visible;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 640px) {
  .map-page__head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .map-stats div {
    flex: 1;
  }
  .map-panel {
    padding: 18px 16px 24px;
  }
}

/* Fotos de las entregas recibidas (mapa publico y landing) */
.foto-entrega {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bento__hero-foto {
  position: absolute;
  inset: 0;
}
