@import url('./design-tokens.css');
/* ============================================================================
   SismoVE · estilos compartidos de las subpáginas (llama, atrapado, familiar,
   ayudar, mascotas, zonas, calma, replicas, acopio-global).
   Re-vestido al sistema de diseño nuevo: tokens de design-tokens.css.
   Los NOMBRES DE CLASE se conservan (el HTML de las 9 páginas no cambia).
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  /* Alias compat: las clases existentes usan estos nombres → ahora apuntan al sistema nuevo */
  --rojo:       var(--red);
  --rojo-s:     var(--red-s);
  --rojo-b:     var(--red-b);
  --oro:        var(--warn);
  --oro-s:      var(--warn-s);
  --oro-b:      var(--warn-b);
  --morado:     var(--ink);
  --morado-med: var(--support);
  --verde:      var(--green);
  --verde-s:    var(--green-s);
  --verde-b:    var(--green-b);
  --naranja:    #A84E1A;
  --naranja-s:  rgba(168,78,26,0.09);
  --fondo:      var(--bg);
  --surface:    var(--surf);
  --surface2:   var(--surf2);
  --surface3:   var(--bd);
  --texto:      var(--ink);
  --texto-sec:  var(--ink2);
  --gris:       var(--muted);
  --borde:      var(--bd);
  --font-d:     var(--font-display);
  --font-b:     var(--font-body);
  --font-m:     var(--font-body);
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
/* NAV SUPERIOR */
.topbar {
  background: var(--surf);
  border-bottom: 1px solid var(--bd);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar a.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}
.topbar a.back:hover { color: var(--red); }
.topbar .alert-dot { font-size: 11px; color: var(--red); font-weight: 700; }
/* CONTENIDO */
.page {
  max-width: 620px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}
.page-header { margin-bottom: 24px; }
.page-emoji { font-size: 36px; line-height: 1; margin-bottom: 10px; display: block; }
.page-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 5px;
}
.page-sub { font-size: 14px; color: var(--muted); }
/* CARDS */
.card {
  background: var(--surf);
  border: 1px solid var(--bd);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}
.card h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 9px; }
.card p, .card li { font-size: 14px; color: var(--ink2); line-height: 1.65; }
.card ul { padding-left: 18px; }
.card ul li { margin-bottom: 5px; }
.card-rojo    { border-left: 4px solid var(--red); }
.card-oro     { border-left: 4px solid var(--warn); }
.card-verde   { border-left: 4px solid var(--green); }
.card-naranja { border-left: 4px solid var(--naranja); }
.card-morado  { border-left: 4px solid var(--support); }
/* PASOS */
.steps { counter-reset: s; }
.step { display: flex; gap: 13px; margin-bottom: 16px; }
.step-n {
  counter-increment: s;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--red-s);
  border: 1.5px solid var(--red-b);
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.step-n::before { content: counter(s); }
.step-b h4 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.step-b p  { font-size: 13px; color: var(--ink2); line-height: 1.6; }
/* ALERTA RÉPLICA */
.replica-alert {
  background: var(--red-s);
  border: 1px solid var(--red-b);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--red-d);
  line-height: 1.6;
}
.replica-alert strong { color: var(--red); }
/* NÚMEROS */
.num-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 12px; }
.num-card {
  background: var(--surf);
  border: 1px solid var(--bd);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  text-decoration: none;
  display: block;
  min-height: 48px;
  transition: border-color 0.15s, transform 0.1s;
}
.num-card:hover { border-color: var(--red); }
.num-card:active { transform: scale(.98); }
.num-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; display: block; }
.num       { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--ink); display: block; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.num-sub   { font-size: 12px; color: var(--ink2); display: block; line-height: 1.3; }
.num-911   { background: var(--red); border-color: var(--red); box-shadow: 0 8px 18px rgba(225,41,35,.28); }
.num-911:hover { background: var(--red-d); border-color: var(--red-d); }
.num-911 .num-label { color: rgba(255,255,255,0.75); }
.num-911 .num { color: #fff; font-size: 34px; }
.num-911 .num-sub { color: rgba(255,255,255,0.9); }
/* PLATAFORMAS */
.plat-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 12px; }
.plat-item {
  background: var(--surf);
  border: 1px solid var(--bd);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  min-height: 48px;
  transition: border-color 0.15s;
}
.plat-item:hover { border-color: var(--red); }
.plat-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.plat-stat { font-size: 12px; color: var(--muted); margin-top: 2px; }
.plat-arrow { font-size: 18px; color: var(--red); flex-shrink: 0; }
/* ZONAS */
.zona-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.zona-item { background: var(--surf); border: 1px solid var(--bd); border-radius: var(--radius-sm); padding: 12px 13px; }
.estado { font-weight: 700; font-size: 13px; color: var(--ink); }
.nivel { display: inline-block; margin-top: 4px; font-size: 10px; padding: 3px 9px; border-radius: var(--radius-full); font-weight: 700; }
.nivel-critico { background: var(--red-s); color: var(--red-d); border: 1px solid var(--red-b); }
.nivel-grave   { background: var(--warn-s); color: #B07419; border: 1px solid var(--warn-b); }
.nivel-leve    { background: var(--green-s); color: var(--green); border: 1px solid var(--green-b); }
.zona-desc { margin-top: 5px; font-size: 12px; color: var(--muted); line-height: 1.45; }
/* OPERADORAS */
.op-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 12px; }
.op-card { background: var(--surf); border: 1px solid var(--bd); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.op-name { font-weight: 700; font-size: 13px; color: var(--ink); }
.op-cob  { font-size: 11px; margin-top: 3px; font-weight: 600; }
.op-tip  { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
/* APPS */
.app-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.app-item { background: var(--surf2); border: 1px solid var(--bd); border-radius: var(--radius-sm); padding: 12px 14px; }
.app-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.app-desc { font-size: 13px; color: var(--ink2); margin-top: 3px; }
/* YUMMY / tarjeta verde destacada */
.yummy-card {
  background: var(--green-s);
  border: 1.5px solid var(--green-b);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.yummy-icon { font-size: 30px; flex-shrink: 0; }
.yummy-b h4 { font-size: 14px; font-weight: 700; color: var(--green); margin-bottom: 4px; }
.yummy-b p  { font-size: 13px; color: var(--ink2); line-height: 1.5; }
.yummy-tag  { display: inline-block; margin-top: 7px; font-size: 11px; background: var(--surf); border: 1px solid var(--bd); border-radius: var(--radius-sm); padding: 3px 8px; font-family: var(--font-body); font-weight: 600; color: var(--green); }
/* LINKS */
a.ext { color: var(--info); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
a.ext:hover { color: var(--ink); }
/* CTA WhatsApp */
.cta-wa {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #25D366;
  color: #06351a;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 14px;
  text-decoration: none;
  min-height: 48px;
  box-shadow: 0 6px 16px rgba(37,211,102,0.28);
  margin-top: 8px;
}
.cta-wa:active { transform: scale(.98); }
/* FOOTER */
.page-footer {
  max-width: 620px;
  margin: 0 auto;
  padding: 20px 20px 36px;
  border-top: 1px solid var(--bd);
  text-align: center;
}
.page-footer p { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
