/* ================================================================
   ELALERTA — Estilos v2
   Diseño profesional · Inspirado en Apple Maps / Google Maps
   Tipografía: DM Sans · Paleta fría y limpia
================================================================ */

:root {
  /* Paleta */
  --bg:           #F5F7FC;
  --surface:      #FFFFFF;
  --surface-2:    #F9FAFD;
  --surface-3:    #F0F3FB;

  --ink:          #0F172A;
  --ink-soft:     #475569;
  --ink-faint:    #94A3B8;

  --border:       #E1E7F0;
  --border-soft:  #EDF0F8;

  /* Marca · Azul cartográfico */
  --blue:         #1C6EF2;
  --blue-dark:    #1558C9;
  --blue-soft:    #EBF2FF;
  --blue-mid:     #BFCFF5;

  /* Alertas */
  --red:          #E8320C;
  --red-soft:     #FEF0EC;

  --amber:        #D97706;
  --amber-soft:   #FFFBEB;

  --green:        #059669;
  --green-soft:   #ECFDF5;

  --purple:       #7C3AED;
  --purple-soft:  #F5F3FF;

  /* Tipo */
  --font:         'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Geometría */
  --r-xl:  20px;
  --r-lg:  14px;
  --r-md:  10px;
  --r-sm:  7px;
  --r-pill: 999px;

  /* Sombras */
  --shadow-xs: 0 1px 2px rgba(15,23,42,.04);
  --shadow-sm: 0 2px 8px rgba(15,23,42,.06);
  --shadow-md: 0 8px 24px rgba(15,23,42,.08);
  --shadow-lg: 0 20px 48px rgba(15,23,42,.12);

  --max-w: 1180px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Botones ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 11px 22px;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .1s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 3px rgba(28,110,242,.25), 0 4px 16px rgba(28,110,242,.2);
}
.btn-primary:hover { background: var(--blue-dark); }

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  padding: 11px 16px;
}
.btn-ghost:hover { color: var(--ink); background: var(--surface-3); border-radius: var(--r-md); }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

.btn-confirm { background: var(--green-soft); color: var(--green); border: none; }
.btn-confirm:hover { background: var(--green); color: #fff; }

.btn-deny { background: var(--red-soft); color: var(--red); border: none; }
.btn-deny:hover { background: var(--red); color: #fff; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 99999;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid var(--border-soft);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  padding: 8px 13px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--surface-3); color: var(--ink); }

.nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.auth-box { display: flex; align-items: center; gap: 8px; }

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.user-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.user-pill .quota {
  font-size: 11px;
  color: var(--ink-faint);
  background: var(--surface-3);
  padding: 2px 7px;
  border-radius: var(--r-pill);
}

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  align-items: center; justify-content: center;
  color: var(--ink-soft);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.map-illustration {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.map-streets {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Gradiente encima del mapa para que el texto resalte */
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(245,247,252,.97) 0%,
    rgba(245,247,252,.92) 35%,
    rgba(245,247,252,.60) 60%,
    rgba(245,247,252,.10) 100%
  );
}

/* Pins sobre el mapa */
.map-pins { position: absolute; inset: 0; pointer-events: none; }

.map-pin-item {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: pinDrop .6s cubic-bezier(.34,1.56,.64,1) both;
}
.map-pin-item svg {
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.18));
  position: relative;
  z-index: 2;
}

.pin-a { top: 28%; left: 62%; animation-delay: .3s; }
.pin-b { top: 52%; left: 78%; animation-delay: .55s; }
.pin-c { top: 18%; left: 82%; animation-delay: .8s; }
.pin-d { top: 65%; left: 52%; animation-delay: .45s; }

@keyframes pinDrop {
  from { opacity: 0; transform: translateY(-28px) scale(.6); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.map-pin-pulse {
  position: absolute;
  bottom: -4px;
  width: 28px; height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,.12);
  filter: blur(3px);
  z-index: 1;
  animation: pulseShadow 2.4s ease-in-out infinite;
}
@keyframes pulseShadow {
  0%,100% { transform: scale(1); opacity: .6; }
  50%      { transform: scale(.7); opacity: .3; }
}

/* Punto GPS del usuario */
.user-location-dot {
  position: absolute;
  top: 44%;
  left: 48%;
  width: 18px; height: 18px;
  animation: pinDrop .5s cubic-bezier(.34,1.56,.64,1) .1s both;
}
.user-dot-inner {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--blue);
  z-index: 2;
}
.user-dot-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2.5px solid var(--blue);
  opacity: .35;
  animation: gpsRing 2s ease-out infinite;
}
@keyframes gpsRing {
  0%   { transform: scale(.5); opacity: .7; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Contenido del hero */
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-text {
  max-width: 520px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  margin-bottom: 20px;
  letter-spacing: 0;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.hero-accent { color: var(--blue); }
.hero p.lead {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 28px;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Live dot */
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10B981;
  animation: livePulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes livePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
  50%      { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

/* ── Estadísticas ───────────────────────────────────────────── */
.stats-section { padding: 0 0 36px; }
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 14px;
}
.stats-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  gap: 14px;
}
.stats-card .sc-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stats-card .sc-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stats-card .sc-label {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* ── Secciones ──────────────────────────────────────────────── */
.section { padding: 52px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head.centered { justify-content: center; text-align: center; }
.section-head h2 { font-size: clamp(22px, 3vw, 30px); margin-top: 8px; }
.section-head p { color: var(--ink-soft); max-width: 500px; margin-top: 8px; font-size: 14.5px; }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ── Panel "Cerca de mí" ────────────────────────────────────── */
.nearme-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.nearme-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}
.nearme-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nearme-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(28,110,242,.25);
}
.nearme-title-wrap h2 { font-size: 20px; }
.nearme-title-wrap p { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

.live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 8px 14px;
}

/* ── Tarjetas de alerta ─────────────────────────────────────── */
.alerts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 16px;
}
.alert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .15s, transform .15s;
  cursor: pointer;
}
.alert-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.alert-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.alert-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.alert-distance {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-faint);
  white-space: nowrap;
  flex-shrink: 0;
}
.alert-card h3 { font-size: 15px; font-weight: 700; }
.alert-card .desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
}
.alert-photo {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--surface-3);
}
.alert-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-faint);
}
.status-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 3px 9px;
  border-radius: var(--r-pill);
}
.status-activa   { background: var(--green-soft); color: var(--green); }
.status-resuelta { background: var(--blue-soft);  color: var(--blue); }
.status-falsa    { background: var(--red-soft);   color: var(--red); }

.alert-votes { display: flex; gap: 8px; margin-top: auto; }
.alert-votes .btn { flex: 1; padding: 8px 10px; font-size: 12.5px; }
.vote-count { font-weight: 700; margin-right: 4px; }

/* ── Filtros ────────────────────────────────────────────────── */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font);
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active {
    background: #1c6ef200;
    border-color: #0054ab;
    color: #000000;
}

/* ── Mapa ───────────────────────────────────────────────────── */
.map-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
#map { width: 100%; height: 460px; }
.leaflet-popup-content { font-family: var(--font); font-size: 13px; }
.leaflet-popup-content a { color: var(--blue); font-weight: 600; }

.map-pin {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.22);
}
.user-pin {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #fff;
  box-shadow: 0 0 0 4px rgba(28,110,242,.18), var(--shadow-md);
}

/* ── Pasos ──────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 16px;
  counter-reset: steps;
}
.step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
}
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 15px; margin-bottom: 8px; }
.step p  { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }

/* ── CTA banda ──────────────────────────────────────────────── */
.cta-band {
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-copy h2 { color: #fff; font-size: clamp(20px,3vw,28px); }
.cta-copy p  { color: #94A3B8; font-size: 14.5px; margin-top: 6px; }
.cta-band .btn-primary {
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  flex-shrink: 0;
}
.cta-band .btn-primary:hover { background: var(--blue-soft); color: var(--blue-dark); }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border-soft);
  padding: 32px 0;
  margin-top: 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand .brand-icon { background: var(--ink); }
.footer-copy {
  font-size: 13px;
  color: var(--ink-faint);
}
.foot-links { display: flex; gap: 20px; }
.foot-links a { font-size: 13px; color: var(--ink-faint); }
.foot-links a:hover { color: var(--blue); }

/* ── FAB ────────────────────────────────────────────────────── */
.fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blue);
  border: none;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
}
.fab:hover { background: var(--blue-dark); transform: translateY(-3px); }
.fab:active { transform: translateY(0); }

/* ── Modales ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--surface);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(.98);
  transition: transform .22s cubic-bezier(.34,1.2,.64,1);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.modal-head h3 { font-size: 17px; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--surface-3);
  color: var(--ink-soft);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--red-soft); color: var(--red); }

.modal-body { padding: 24px; }
.modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ── Formularios ────────────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}
.field-hint {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 5px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea,
select {
  width: 100%;
  font-family: var(--font);
  font-size: 14px;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28,110,242,.12);
}
textarea { resize: vertical; min-height: 88px; }

/* Tipos de incidencia */
.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px,1fr));
  gap: 9px;
}
.type-option {
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface-2);
  transition: all .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.type-option:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.type-option.selected { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.type-option svg { flex-shrink: 0; }

/* Mapa mini */
.location-box {
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.location-box #miniMap { width: 100%; height: 210px; }
.location-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: var(--surface-2);
  flex-wrap: wrap;
}
.location-actions .addr { font-size: 12.5px; color: var(--ink-soft); flex: 1; }

/* Foto */
.photo-drop {
  border: 1.5px dashed var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  position: relative;
}
.photo-drop:hover { border-color: var(--blue); background: var(--blue-soft); }
.photo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-drop small { color: var(--ink-faint); font-size: 12px; }

.photo-preview { margin-top: 12px; display: none; position: relative; }
.photo-preview img { width: 100%; max-height: 200px; object-fit: cover; border-radius: var(--r-md); }
.photo-preview .remove {
  position: absolute;
  top: 8px; right: 8px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(15,23,42,.55);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* Código de verificación */
.code-intro {
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.code-inputs {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin: 16px 0;
}
.code-inputs input {
  width: 44px; height: 54px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  padding: 0;
  border-radius: var(--r-md);
}
.resend-text {
  text-align: center;
  font-size: 13px;
  color: var(--ink-faint);
}
.resend-text a { color: var(--blue); font-weight: 600; }
.switch-auth { font-size: 13px; color: var(--ink-soft); }
.switch-auth a { color: var(--blue); font-weight: 600; }

/* Mensajes */
.alert-msg {
  padding: 11px 14px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  margin-bottom: 14px;
  display: none;
}
.alert-msg.show { display: block; }
.alert-msg.error   { background: var(--red-soft);   color: var(--red); }
.alert-msg.success { background: var(--green-soft); color: var(--green); }
.alert-msg.info    { background: var(--blue-soft);  color: var(--blue-dark); }

/* ── Toast ──────────────────────────────────────────────────── */
.toast-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.toast {
  background: var(--ink);
  color: #fff;
  padding: 13px 18px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  animation: toastIn .22s ease;
}
.toast.error   { background: var(--red); }
.toast.success { background: var(--green); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Spinner ────────────────────────────────────────────────── */
.spinner {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  animation: spin .65s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Skeleton ───────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--surface-3) 25%, var(--border-soft) 50%, var(--surface-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-lg);
  height: 180px;
}
.stat-skeleton { height: 72px; }
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Empty state ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--ink-soft);
}
.empty-state svg { margin: 0 auto 12px; opacity: .4; }
.empty-state strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 15px; }

/* ── View more ──────────────────────────────────────────────── */
.view-more-wrap { display: flex; justify-content: center; margin-top: 24px; }

/* ── Utilidades ─────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Geo Gate ───────────────────────────────────────────────── */
.geo-gate {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.geo-gate-card {
  max-width: 400px;
  width: 100%;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px 32px;
}
.geo-gate-card h2 { font-size: 22px; margin-bottom: 10px; margin-top: 24px; }
.geo-gate-card p  { font-size: 14px; color: var(--ink-soft); margin-bottom: 24px; line-height: 1.6; }

/* Animación pin en geo gate */
.map-pin-anim {
  position: relative;
  width: 80px; height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.pin-svg {
  width: 48px; height: 60px;
  position: relative;
  z-index: 2;
  animation: pinBounce 2s ease-in-out infinite;
}
@keyframes pinBounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.pin-ripple {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  opacity: 0;
  animation: rippleOut 2.4s ease-out infinite;
}
.pin-ripple.r1 { width: 20px; height: 8px; animation-delay: 0s; }
.pin-ripple.r2 { width: 36px; height: 12px; animation-delay: .4s; }
.pin-ripple.r3 { width: 54px; height: 16px; animation-delay: .8s; }
@keyframes rippleOut {
  0%   { transform: translateX(-50%) scale(.4); opacity: .7; }
  100% { transform: translateX(-50%) scale(1);  opacity: 0; }
}

.hint-block {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: left;
  background: var(--surface-3);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.hint-block strong { color: var(--ink); display: block; margin-bottom: 8px; }
.hint-block ol { margin: 0 0 0 16px; padding: 0; }
.hint-block li { margin-bottom: 4px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 920px) {
  .hero { min-height: auto; padding: 60px 0 48px; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); padding: 10px 16px 16px; gap: 2px; z-index: 100; }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 11px 14px; border-radius: var(--r-sm); }
  .nav-toggle { display: flex; }
  .navbar .container { position: relative; }
  .hero-gradient {
    background: linear-gradient(
      to bottom,
      rgba(245,247,252,.97) 0%,
      rgba(245,247,252,.9) 60%,
      rgba(245,247,252,.55) 100%
    );
  }
  .pin-b, .pin-c { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .navbar .container { height: 60px; }
  .brand-text { display: none; }
  .nearme-panel { padding: 20px; }
  .cta-band { padding: 28px 20px; flex-direction: column; text-align: center; align-items: center; }
  .modal { max-height: 100dvh; border-radius: 0; height: 100%; }
  .modal-overlay { padding: 0; }
  .code-inputs input { width: 38px; height: 48px; font-size: 18px; }
  .hero h1 { font-size: 28px; }
  .map-pin-item { display: none; }
  .user-location-dot { top: 50%; left: 50%; }
}

@media (max-width: 768px) {
    #btnReportarNav {
        display: none !important;
    }
}