/* ================================================================
   AlertaCerca — Hoja de estilos
   Paleta clara y moderna · Tipografía Space Grotesk + Inter
================================================================ */

:root{
  /* Color */
  --paper:        #F4F6FB;
  --surface:      #FFFFFF;
  --surface-2:    #FBFCFE;
  --ink:          #1A2238;
  --ink-soft:     #5B6478;
  --ink-faint:    #9AA3B8;
  --border:       #E4E9F2;

  --signal:       #335CFF;
  --signal-dark:  #2546D6;
  --signal-soft:  #E8EDFF;

  --alert:        #FF6B35;
  --alert-soft:   #FFE8DD;

  --confirm:      #16A34A;
  --confirm-soft: #DCFCE7;

  --deny:         #E0445B;
  --deny-soft:    #FBE3E7;

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Geometry */
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(26,34,56,.05);
  --shadow-md: 0 8px 24px rgba(26,34,56,.07);
  --shadow-lg: 0 20px 48px rgba(26,34,56,.12);

  --container: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

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(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--signal);
  background: var(--signal-soft);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

/* ================================================================
   Botones
================================================================ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 24px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--signal);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover{ background: var(--signal-dark); }

.btn-secondary{
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-secondary:hover{ border-color: var(--signal); color: var(--signal); }

.btn-ghost{
  background: transparent;
  color: var(--ink-soft);
  padding: 10px 16px;
}
.btn-ghost:hover{ color: var(--signal); }

.btn-block{ width: 100%; }
.btn-sm{ padding: 9px 16px; font-size: 13px; border-radius: var(--radius-sm); }

.btn-confirm{
  background: var(--confirm-soft);
  color: var(--confirm);
}
.btn-confirm:hover{ background: var(--confirm); color:#fff; }

.btn-deny{
  background: var(--deny-soft);
  color: var(--deny);
}
.btn-deny:hover{ background: var(--deny); color:#fff; }

.btn:disabled{ opacity:.5; cursor:not-allowed; transform:none !important; }

/* ================================================================
   Navbar
================================================================ */
.navbar{
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(244,246,251,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar .container{
  display:flex;
  align-items:center;
  justify-content: space-between;
  height: 76px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
}
.brand-mark{
  position: relative;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--signal);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.brand-mark::before, .brand-mark::after{
  content:'';
  position:absolute;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 50%;
}
.brand-mark::before{ width:14px; height:14px; }
.brand-mark::after{ width:24px; height:24px; }
.brand-mark span{
  position:relative;
  width:6px; height:6px;
  border-radius:50%;
  background:#fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.7);
  animation: brandPing 2.4s infinite;
}
@keyframes brandPing{
  0%{ box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
  70%{ box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100%{ box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.nav-links{
  display:flex;
  align-items:center;
  gap: 6px;
}
.nav-links a{
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.nav-links a:hover{ background: var(--surface); color: var(--ink); }

.nav-cta{ display:flex; align-items:center; gap:10px; }

.nav-toggle{
  display:none;
  width:42px; height:42px;
  border-radius: var(--radius-sm);
  border:1px solid var(--border);
  background: var(--surface);
  font-size:18px;
  cursor:pointer;
  align-items:center; justify-content:center;
}

/* ================================================================
   Botón flotante de acción rápida
================================================================ */
.fab{
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--signal);
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  border: none;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 500;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: transform .15s ease, background .15s ease;
}
.fab:hover{ background: var(--signal-dark); transform: translateY(-3px); }
.fab:active{ transform: translateY(0); }

/* ================================================================
   Hero + Radar signature
================================================================ */
.hero{
  padding: 64px 0 56px;
  overflow: hidden;
}
.hero .container{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items:center;
}
.hero h1{
  font-size: clamp(34px, 5vw, 54px);
  margin: 18px 0 18px;
}
.hero h1 em{
  font-style:normal;
  color: var(--signal);
  position:relative;
}
.hero p.lead{
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 28px;
}
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; }

.hero-stats{
  display:flex;
  gap: 28px;
  margin-top: 36px;
}
.hero-stats div strong{
  display:block;
  font-family: var(--font-display);
  font-size: 26px;
}
.hero-stats div span{
  font-size: 13px;
  color: var(--ink-faint);
}

/* --- Radar visual: signature element --- */
.radar-wrap{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;
  height: 380px;
}
.radar{
  position: relative;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--signal-soft) 0%, rgba(232,237,255,0) 70%);
  display:flex;
  align-items:center;
  justify-content:center;
}
.radar-ring{
  position:absolute;
  border: 1.5px solid #C9D4FF;
  border-radius:50%;
  opacity:0;
  animation: radarPulse 4s ease-out infinite;
}
.radar-ring:nth-child(1){ width:100%; height:100%; animation-delay:0s; }
.radar-ring:nth-child(2){ width:100%; height:100%; animation-delay:1.3s; }
.radar-ring:nth-child(3){ width:100%; height:100%; animation-delay:2.6s; }
@keyframes radarPulse{
  0%{ transform: scale(.35); opacity:.9; border-color: var(--signal); }
  100%{ transform: scale(1); opacity:0; border-color: var(--signal-soft); }
}
.radar-core{
  position:relative;
  width: 64px; height:64px;
  border-radius:50%;
  background: var(--signal);
  box-shadow: 0 8px 28px rgba(51,92,255,.35);
  display:flex; align-items:center; justify-content:center;
  color:#fff;
  font-size:24px;
  z-index:3;
}
.radar-dot{
  position:absolute;
  width: 38px; height:38px;
  border-radius:50%;
  background:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:17px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--surface);
  animation: floaty 5s ease-in-out infinite;
}
.radar-dot::after{
  content:'';
  position:absolute;
  inset:-6px;
  border-radius:50%;
  border: 2px solid currentColor;
  opacity:.35;
  animation: dotPing 3s infinite;
}
.radar-dot.d1{ top: 8%;  left: 58%; color: var(--alert); animation-delay:.2s; }
.radar-dot.d2{ top: 60%; left: 8%;  color: var(--deny); animation-delay: 1s; }
.radar-dot.d3{ top: 68%; left: 66%; color: var(--confirm); animation-delay: 1.8s; }
.radar-dot.d4{ top: 14%; left: 10%; color: #A855F7; animation-delay: 2.4s; }
@keyframes floaty{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-8px); }
}
@keyframes dotPing{
  0%{ transform: scale(1); opacity:.35; }
  80%{ transform: scale(1.6); opacity:0; }
  100%{ opacity:0; }
}

/* ================================================================
   Secciones generales
================================================================ */
.section{ padding: 56px 0; }
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head h2{ font-size: clamp(24px,3.2vw,32px); margin-top:10px; }
.section-head p{ color: var(--ink-soft); max-width: 520px; margin-top:8px; }

/* ================================================================
   Widget "Cerca de mí"
================================================================ */
.nearme{
  background: linear-gradient(135deg, var(--signal-soft) 0%, #fff 60%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.nearme-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
  margin-bottom: 22px;
}
.nearme-title{ display:flex; align-items:center; gap:14px; }
.nearme-title .pulse-icon{
  position:relative;
  width:46px; height:46px;
  border-radius:50%;
  background: var(--signal);
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:20px;
  flex-shrink:0;
}
.nearme-title .pulse-icon::after{
  content:'';
  position:absolute;
  inset:0;
  border-radius:50%;
  border:2px solid var(--signal);
  animation: dotPing 2.4s infinite;
}
.nearme-title h2{ font-size: 22px; }
.nearme-title p{ color: var(--ink-soft); font-size: 14px; margin-top:2px; }

.nearme-status{
  display:flex;
  align-items:center;
  gap:10px;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 10px 16px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}
.status-dot{
  width:9px; height:9px; border-radius:50%;
  background: var(--ink-faint);
  flex-shrink:0;
}
.status-dot.live{ background: var(--confirm); animation: dotPing2 1.6s infinite; }
@keyframes dotPing2{
  0%{ box-shadow: 0 0 0 0 rgba(22,163,74,.4); }
  70%{ box-shadow: 0 0 0 6px rgba(22,163,74,0); }
  100%{ box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}

.empty-state{
  text-align:center;
  padding: 48px 20px;
  color: var(--ink-soft);
}
.empty-state .emoji{ font-size: 40px; display:block; margin-bottom: 12px; }
.empty-state strong{ display:block; color: var(--ink); margin-bottom:4px; font-size:16px; }

/* ================================================================
   Tarjetas de alerta
================================================================ */
.alerts-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.alert-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display:flex;
  flex-direction:column;
  gap: 12px;
  transition: box-shadow .15s, transform .15s;
}
.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: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}
.alert-distance{
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-faint);
  white-space:nowrap;
}
.alert-card h3{
  font-size: 16px;
  font-family: var(--font-body);
  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;
}
.alert-photo{
  width:100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.alert-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size: 12px;
  color: var(--ink-faint);
}
.status-badge{
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
  padding:4px 9px;
  border-radius: var(--radius-pill);
}
.status-activa{ background: var(--confirm-soft); color: var(--confirm); }
.status-resuelta{ background: var(--signal-soft); color: var(--signal); }
.status-falsa{ background: var(--deny-soft); color: var(--deny); }

.alert-votes{
  display:flex;
  gap: 8px;
  margin-top: auto;
}
.alert-votes .btn{ flex:1; padding: 9px 10px; font-size:13px; }
.vote-count{
  font-weight:700;
  margin-right: 4px;
}

/* ================================================================
   Filtros (chips)
================================================================ */
.filters{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor:pointer;
  transition: all .15s;
}
.chip:hover{ border-color: var(--signal); color: var(--signal); }
.chip.active{
  background: var(--signal);
  border-color: var(--signal);
  color:#fff;
}

/* ================================================================
   Mapa
================================================================ */
.map-card{
  border-radius: var(--radius-lg);
  overflow:hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
#map{ width: 100%; height: 460px; }
.leaflet-popup-content{ font-family: var(--font-body); font-size: 13px; }
.leaflet-popup-content a{ color: var(--signal); font-weight:600; }
.map-pin{
  width: 32px; height: 32px;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  font-size: 15px;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(26,34,56,.25);
}
.user-pin{
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--signal);
  border: 3px solid #fff;
  box-shadow: 0 0 0 4px var(--signal-soft), var(--shadow-md);
}

/* ================================================================
   Cómo funciona
================================================================ */
.steps{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 20px;
}
.step{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.step .num{
  display:inline-flex;
  align-items:center; justify-content:center;
  width:36px; height:36px;
  border-radius:50%;
  background: var(--signal-soft);
  color: var(--signal);
  font-family: var(--font-display);
  font-weight:700;
  margin-bottom: 14px;
}
.step h3{ font-size:16px; margin-bottom:8px; }
.step p{ font-size: 13.5px; color: var(--ink-soft); }

/* ================================================================
   CTA banda final
================================================================ */
.cta-band{
  background: var(--ink);
  color:#fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.cta-band h2{ color:#fff; font-size: clamp(24px,3.5vw,34px); margin-bottom:12px; }
.cta-band p{ color:#B9C0D6; max-width:520px; margin: 0 auto 24px; }
.cta-band .btn-primary{ background:#fff; color: var(--ink); }
.cta-band .btn-primary:hover{ background: var(--signal-soft); color: var(--signal-dark); }

/* ================================================================
   Footer
================================================================ */
footer{
  border-top: 1px solid var(--border);
  padding: 36px 0;
  margin-top: 40px;
}
footer .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap: 16px;
}
footer .foot-links{ display:flex; gap:18px; }
footer p, footer a{ font-size: 13px; color: var(--ink-faint); }
footer a:hover{ color: var(--signal); }

/* ================================================================
   Modales
================================================================ */
.modal-overlay{
  position: fixed;
  inset:0;
  background: rgba(26,34,56,.5);
  backdrop-filter: blur(3px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 20px;
  z-index: 1000;
  opacity:0;
  visibility:hidden;
  transition: opacity .2s ease;
}
.modal-overlay.open{ opacity:1; visibility:visible; }
.modal{
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y:auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(.98);
  transition: transform .2s ease;
}
.modal-overlay.open .modal{ transform: translateY(0) scale(1); }
.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  position:sticky;
  top:0;
  background: var(--surface);
  z-index:2;
}
.modal-head h3{ font-size:19px; }
.modal-close{
  width:34px; height:34px;
  border-radius:50%;
  border:none;
  background: var(--paper);
  color: var(--ink-soft);
  font-size:18px;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition: background .15s, color .15s;
}
.modal-close:hover{ background: var(--deny-soft); color: var(--deny); }
.modal-body{ padding: 24px; }
.modal-foot{
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  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: 8px;
  color: var(--ink);
}
.field .hint{
  font-size: 12px;
  color: var(--ink-faint);
  margin-top:6px;
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select{
  width:100%;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  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(--signal);
  box-shadow: 0 0 0 3px var(--signal-soft);
}
textarea{ resize: vertical; min-height: 90px; }

.type-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(120px,1fr));
  gap:10px;
}
.type-option{
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align:center;
  cursor:pointer;
  font-size: 12.5px;
  font-weight:600;
  color: var(--ink-soft);
  transition: all .15s;
  background: var(--surface-2);
}
.type-option .emoji{ display:block; font-size:22px; margin-bottom:6px; }
.type-option:hover{ border-color: var(--signal); }
.type-option.selected{
  border-color: var(--signal);
  background: var(--signal-soft);
  color: var(--signal-dark);
}

.location-box{
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow:hidden;
}
.location-box #miniMap{ width:100%; height:220px; }
.location-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 12px;
  background: var(--surface-2);
  flex-wrap:wrap;
}
.location-actions .addr{
  font-size:12.5px;
  color: var(--ink-soft);
  flex:1;
}

.photo-drop{
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  text-align:center;
  cursor:pointer;
  transition: border-color .15s, background .15s;
  position: relative;
}
.photo-drop:hover{ border-color: var(--signal); background: var(--signal-soft); }
.photo-drop input{ position:absolute; inset:0; opacity:0; cursor:pointer; }
.photo-drop .emoji{ font-size:26px; display:block; margin-bottom:6px; }
.photo-drop small{ color: var(--ink-faint); }
.photo-preview{
  margin-top: 12px;
  display:none;
  position:relative;
}
.photo-preview img{
  width:100%;
  max-height: 200px;
  object-fit:cover;
  border-radius: var(--radius-sm);
}
.photo-preview .remove{
  position:absolute;
  top:8px; right:8px;
  width:30px; height:30px;
  border-radius:50%;
  background:rgba(26,34,56,.6);
  color:#fff;
  border:none;
  cursor:pointer;
  font-size:14px;
}

/* Código de verificación */
.code-inputs{
  display:flex;
  gap:10px;
  justify-content:center;
  margin: 18px 0;
}
.code-inputs input{
  width: 46px; height: 56px;
  text-align:center;
  font-size: 22px;
  font-weight:700;
  font-family: var(--font-display);
  padding:0;
}

/* Mensajes de estado */
.alert-msg{
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 16px;
  display:none;
}
.alert-msg.show{ display:block; }
.alert-msg.error{ background: var(--deny-soft); color: var(--deny); }
.alert-msg.success{ background: var(--confirm-soft); color: var(--confirm); }
.alert-msg.info{ background: var(--signal-soft); color: var(--signal-dark); }

/* ================================================================
   Toast
================================================================ */
.toast-wrap{
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.toast{
  background: var(--ink);
  color:#fff;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 240px;
  animation: toastIn .25s ease;
}
.toast.error{ background: var(--deny); }
.toast.success{ background: var(--confirm); }
@keyframes toastIn{
  from{ opacity:0; transform: translateY(10px); }
  to{ opacity:1; transform: translateY(0); }
}

/* ================================================================
   Utilidades / loaders
================================================================ */
.spinner{
  width:18px; height:18px;
  border-radius:50%;
  border: 2.5px solid var(--signal-soft);
  border-top-color: var(--signal);
  animation: spin .7s linear infinite;
  flex-shrink:0;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

.skeleton{
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-md);
  height: 180px;
}
@keyframes shimmer{
  0%{ background-position: 200% 0; }
  100%{ background-position: -200% 0; }
}

.hidden{ display:none !important; }

/* ================================================================
   Responsive
================================================================ */
@media (max-width: 920px){
  .hero .container{ grid-template-columns: 1fr; gap: 32px; }
  .radar-wrap{ height: 280px; order:-1; }
  .radar{ width: 260px; height:260px; }
  .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;
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ width:100%; padding: 12px 14px; }
  .nav-toggle{ display:flex; }
  .navbar .container{ position:relative; }
}

@media (max-width: 640px){
  .container{ padding: 0 16px; }
  .navbar .container{ height:68px; }
  .brand span.brand-text{ display:none; }
  .nearme{ padding: 22px; }
  .cta-band{ padding: 32px 20px; }
  .hero-stats{ gap:18px; flex-wrap:wrap; }
  .code-inputs input{ width: 40px; height:50px; font-size:18px; }
  .modal{ max-height: 100vh; border-radius: 0; height:100%; }
  .modal-overlay{ padding:0; }
}
