:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --line: #e5e9f2;
  --text: #101936;
  --muted: #667085;
  --blue: #17206d;
  --yellow: #f9bd00;
  --yellow-2: #ffcf2f;
  --orange: #ff5a1f;
  --green: #1aa96b;
  --purple: #8b5cf6;
  --shadow: 0 18px 45px rgba(16, 25, 54, .08);
  --shadow-soft: 0 8px 24px rgba(16, 25, 54, .07);
  --radius: 22px;
  --sidebar: 300px;
  --sidebar-rail: 76px;
  --header: 66px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
body {
  background:
    radial-gradient(circle at 8% -10%, rgba(249, 189, 0, .13), transparent 30%),
    radial-gradient(circle at 95% 10%, rgba(23, 32, 109, .07), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* ── Layout general ── */
.app {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  grid-template-rows: var(--header) 1fr;
  height: 100vh;
  min-width: 1180px;
}

/* ── Header ── */
.brand {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 20px;
  background: rgba(255,255,255,.84);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.logo-star {
  width: 46px;
  height: 46px;
  position: relative;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 10px 16px rgba(249, 189, 0, .34));
}
.logo-star::before {
  content: "★";
  color: var(--yellow);
  font-size: 48px;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(176, 110, 0, .15);
}
.brand-title { line-height: 1.08; }
.brand-title strong {
  display: block;
  font-size: 21px;
  letter-spacing: -.035em;
  color: var(--blue);
  white-space: nowrap;
}
.brand-title span {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.topbar {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 32px;
  background: rgba(255,255,255,.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  z-index: 10;
}
.location-pill {
  height: 40px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  background: #f2f4fa;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.location-pill .material-symbols-rounded { color: var(--blue); font-size: 22px; }
.searchbar {
  flex: 1;
  max-width: 610px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid #d8deea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 25, 54, .04);
}
.searchbar input {
  width: 100%;
  border: 0;
  outline: 0;
  font: inherit;
  color: var(--text);
  font-weight: 500;
}
.searchbar input::placeholder { color: #8992a5; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.bell {
  position: relative;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  cursor: pointer;
}
.bell-badge {
  position: absolute;
  top: -4px; right: -3px;
  min-width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  border: 2px solid #fff;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe3a6, #c9d8ff);
}
.user-text { line-height: 1.1; }
.user-text strong { display:block; font-size: 14px; }
.user-text span { display:block; margin-top:4px; color: var(--muted); font-size: 12px; font-weight: 600; }

/* ── Sidebar ── */
.sidebar {
  grid-column: 1;
  grid-row: 2;
  padding: 16px 14px;
  background: rgba(255,255,255,.74);
  border-right: 1px solid var(--line);
  overflow: auto;
}
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  color: #313d5c;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 11px;
  cursor: pointer;
  transition: all .18s ease;
  user-select: none;
}
.nav-item:hover { background: #f2f5fb; transform: translateX(2px); }
.nav-item.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(249,189,0,.98), rgba(255,239,182,.75));
  box-shadow: 0 10px 24px rgba(249, 189, 0, .18);
}
.nav-item .material-symbols-rounded { font-size: 20px; color: #6b7793; }
.nav-item.active .material-symbols-rounded { color: #fff; font-variation-settings: 'FILL' 1; text-shadow: 0 1px 0 rgba(0,0,0,.12); }

.btn-sidebar-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--blue);
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.btn-sidebar-login:hover { background: #f2f5fb; }
.btn-sidebar-login .material-symbols-rounded { font-size: 19px; }
.btn-sidebar-login.logueado { border-color: #f4c7c7; color: #b3261e; }

.memory-card {
  margin: 86px 8px 0;
  min-height: 198px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  padding: 24px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.memory-card::before {
  content: "";
  position: absolute;
  inset: auto -30% -45% -30%;
  height: 120px;
  background: radial-gradient(circle, rgba(249,189,0,.18), transparent 66%);
}
.memory-card .heart {
  color: var(--yellow);
  font-size: 26px;
  margin-bottom: 12px;
}
.memory-card strong { display: block; font-size: 13px; font-weight: 650; line-height: 1.4; }
.memory-card span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.4; }

/* ── Contenido ── */
.content {
  grid-column: 2;
  grid-row: 2;
  overflow: auto;
  padding: 20px 30px 34px;
}
.dashboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1760px;
  margin: 0 auto;
}
.map-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: 20px;
  align-items: stretch;
}
.map-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.map-side .panel { flex: 0 0 auto; }

.card {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.16fr .92fr;
  gap: 18px;
}
.welcome-card {
  min-height: 132px;
  padding: 16px 20px 0;
  overflow: hidden;
  position: relative;
}
.welcome-card h1 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.24;
  letter-spacing: -.02em;
  font-weight: 700;
}
.welcome-card p {
  margin: 8px 0 0;
  color: #55607a;
  font-size: 12.5px;
  line-height: 1.4;
  max-width: 320px;
  font-weight: 400;
}
.city-illustration {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 6px;
  opacity: .9;
}

.mission-card, .tip-card {
  padding: 15px 18px;
  background: linear-gradient(135deg, #fffdf5, #fff8df);
  border-color: #f4e1a4;
  position: relative;
  overflow: hidden;
}
.mission-head { display:flex; align-items:flex-start; gap: 13px; }
.medal {
  width: 46px; height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), #ffdf68);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 8px 18px rgba(249, 189, 0, .26);
}
.medal .material-symbols-rounded { font-size: 23px; font-variation-settings: 'FILL' 1; }
.mission-card h2, .tip-card h2 {
  margin: 0 0 6px;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -.02em;
}
.mission-card h2 { white-space: nowrap; }
.mission-card p { margin: 0; color: #6b7284; line-height: 1.4; font-size: 12px; font-weight: 400; }
.mission-card p b { color: var(--text); font-size: 14px; font-weight: 700; display: block; margin-top: 2px; }
.progress-line {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(16,25,54,.08);
  overflow: hidden;
}
.bar span { display:block; height:100%; width:60%; border-radius:999px; background: linear-gradient(90deg, var(--yellow), var(--yellow-2)); }
.progress-line small { color: #6a7284; font-weight: 650; font-size: 12px; }
.xp-line {
  margin-top: 10px;
  display: flex; align-items: center; gap: 7px;
  color: #6b7385;
  font-size: 11.5px;
  font-weight: 500;
  border-top: 1px solid rgba(209, 171, 55, .3);
  padding-top: 9px;
}
.xp-line b { font-weight: 650; }
.xp-line .material-symbols-rounded { color: var(--yellow); font-size: 17px; font-variation-settings: 'FILL' 1; }

.tip-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.tip-body { display: flex; align-items: center; gap: 14px; }
.guide-star {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  flex: 0 0 50px;
  color: var(--yellow);
  filter: drop-shadow(0 6px 12px rgba(249,189,0,.22));
  position: relative;
}
.guide-star::before { content: "★"; font-size: 48px; line-height: 1; }
.tip-text {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #2b3350;
}
.btn-soft {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid #d9dfed;
  background: rgba(255,255,255,.75);
  color: var(--blue);
  font-weight: 650;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.stat-card {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 93px;
}
.stat-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  color:#fff;
  flex: 0 0 56px;
  box-shadow: 0 12px 28px rgba(16,25,54,.11);
}
.stat-icon.blue { background: linear-gradient(135deg, #14227a, #2b4dc5); }
.stat-icon.yellow { background: linear-gradient(135deg, var(--yellow), #ffd96d); }
.stat-icon.orange { background: linear-gradient(135deg, var(--orange), #ff8d45); }
.stat-icon.green { background: linear-gradient(135deg, #15935d, #54c88d); }
.stat-icon .material-symbols-rounded { font-size: 28px; font-variation-settings:'FILL' 1; }
.stat-content small { display:block; color:#29365e; font-weight: 800; font-size: 12px; margin-bottom: 3px; }
.stat-content strong { display:block; font-size: 25px; letter-spacing:-.04em; }
.stat-content span { display:block; color: var(--muted); font-weight: 650; font-size: 12px; margin-top: 3px; }
.stat-content a { color: var(--blue); text-decoration:none; font-weight:800; }

/* ── Mapa ── */
.map-card {
  min-height: 520px;
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: 20px;
}
#mapa {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  background: #e9edf3;
  z-index: 1;
}
.map-controls {
  position:absolute; left: 16px; top: 18px; z-index: 500;
  display:flex; flex-direction:column; gap:10px;
}
.map-btn {
  width:42px; height:42px; border-radius:10px;
  border:1px solid var(--line);
  background:#fff;
  display:grid; place-items:center;
  box-shadow:0 8px 20px rgba(16,25,54,.12);
  color:var(--blue);
  cursor:pointer;
}
.map-legend {
  position:absolute; left: 16px; bottom: 16px; z-index: 500;
  width: 200px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
  font-size: 12px;
  font-weight: 650;
}
.map-legend strong { display:block; margin-bottom: 10px; font-size: 12px; }
.legend-row { display:flex; align-items:center; gap:8px; margin: 8px 0; color:#2e3652; }
.legend-star { color: var(--yellow); font-size: 19px; line-height:1; }

/* Colores por tipo de siniestro (catálogo del punto 5.2) */
:root {
  --tipo-no-fatal: #e5322d;
  --tipo-con-lesionados: #ff5a1f;
  --tipo-sin-lesionados: #1aa96b;
  --tipo-danos-materiales: #2b4dc5;
  --tipo-zona-peligrosa: #8b5cf6;
}
.legend-dot { width:13px; height:13px; border-radius:50%; flex: 0 0 13px; box-shadow: 0 0 0 3px rgba(16,25,54,.06); }
.legend-dot.no-fatal        { background: var(--tipo-no-fatal); }
.legend-dot.con-lesionados  { background: var(--tipo-con-lesionados); }
.legend-dot.sin-lesionados  { background: var(--tipo-sin-lesionados); }
.legend-dot.danos-materiales { background: var(--tipo-danos-materiales); }
.legend-dot.zona-peligrosa  { background: var(--tipo-zona-peligrosa); }
.heat-scale { margin-top:12px; height:6px; border-radius:999px; background: linear-gradient(90deg, #46bd73, #f9bd00, #ff4d1e); }
.heat-labels { display:flex; justify-content:space-between; margin-top:7px; color:#5e6778; font-size:10px; }
.map-note {
  position:absolute; left: 232px; right: 22px; bottom: 13px; z-index: 500;
  display:flex; align-items:center; justify-content:center; gap: 8px;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  border:1px solid rgba(213, 219, 230, .9);
  color:#667085;
  font-size: 12px;
  font-weight: 650;
  backdrop-filter: blur(9px);
}
.map-note .material-symbols-rounded { font-size: 18px; color:#7a85a1; }

/* Ficha del marcador (contenido del popup de Leaflet) */
.ficha-popup { min-width: 220px; font-family: inherit; }
.ficha-popup .ficha-titulo {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 800; color: var(--text);
  margin-bottom: 8px;
}
.ficha-popup .ficha-titulo .material-symbols-rounded { color: var(--yellow); font-size: 18px; }
.ficha-popup .ficha-temas {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ficha-popup .ficha-temas li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #8a4a00;
  background: #fff3cd;
  border-radius: 8px;
  padding: 5px 9px;
}
.ficha-popup .ficha-temas li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex: 0 0 6px;
}
.ficha-popup dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; }
.ficha-popup dt { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.ficha-popup dd { margin: 0; font-size: 12.5px; color: #2b3350; font-weight: 600; }
.ficha-popup dd.vacio { color: #a3abbd; font-weight: 500; font-style: italic; }
.ficha-popup .ficha-estado {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #fff3cd;
  color: #8a6100;
}
.ficha-popup .ficha-estado.verificado { background: #e2f4ff; color: #0b5f8a; }
.ficha-popup .ficha-estado.publicado { background: #e8f5e9; color: #2e7d32; }

/* Marcador de estrella (usado por app.js vía L.divIcon) */
.estrella-marker {
  display: block;
  line-height: 1;
  color: var(--yellow);
  filter: drop-shadow(0 5px 8px rgba(128,70,0,.3));
  cursor: pointer;
  user-select: none;
}

/* Marcador de punto para siniestros no fatales (usado por app.js vía L.divIcon) */
.punto-marker {
  display: block;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 3px 8px rgba(16,25,54,.35);
  cursor: pointer;
}
.punto-marker.no-fatal        { background: var(--tipo-no-fatal); }
.punto-marker.con-lesionados  { background: var(--tipo-con-lesionados); }
.punto-marker.sin-lesionados  { background: var(--tipo-sin-lesionados); }
.punto-marker.danos-materiales { background: var(--tipo-danos-materiales); }
.punto-marker.zona-peligrosa  { background: var(--tipo-zona-peligrosa); }

/* Zona crítica (Módulo 2, punto 6.1/6.2): círculo de radio + burbuja con el conteo */
.legend-zona-critica {
  width:13px; height:13px; border-radius:50%; flex: 0 0 13px;
  border: 2px solid var(--orange);
  background: rgba(255,90,31,.15);
}
.zona-critica-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  border: 3px solid #fff;
  box-shadow: 0 6px 14px rgba(255,90,31,.4);
  cursor: pointer;
}

/* ── Panel derecho ── */
.panel { padding: 20px; }
.panel-title {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin-bottom: 16px;
}
.panel-title h3 { margin: 0; font-size: 17px; letter-spacing:-.02em; }
.small-icon-btn {
  width: 34px; height: 34px; border-radius: 10px;
  display:grid; place-items:center;
  border: 1px solid var(--line);
  background:#fff;
  color:var(--blue);
  cursor:pointer;
}
.filter-block { margin-top: 14px; }
.filter-block label { display:block; margin-bottom: 8px; font-size: 12px; font-weight: 800; color: #26335b; }
.segmented {
  display:grid; grid-template-columns: repeat(3, 1fr);
  height: 38px;
  border: 1px solid #d8deea;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
}
.segmented button {
  border:0;
  background:transparent;
  color:#2c3655;
  font-weight: 800;
  font-family: inherit;
  cursor:pointer;
}
.segmented button.active { background: var(--blue); color:#fff; }
.select {
  height: 40px;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 12px;
  border: 1px solid #d8deea;
  border-radius: 10px;
  background:#fff;
  color:#35405e;
  font-size:13px;
  font-weight:650;
  cursor: pointer;
}
.filter-select {
  width: 100%;
  height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid #d8deea;
  border-radius: 10px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2335405e' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 10px center;
  background-size: 18px;
  color: #35405e;
  font-size: 13px;
  font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.filter-select:focus { outline: none; border-color: var(--blue); }
.segmented button:disabled { cursor: default; }

.map-view-tabs { display:grid; grid-template-columns: repeat(2, 1fr); gap:7px; }
.tab-btn {
  height:36px;
  border-radius: 9px;
  border: 1px solid #d8deea;
  background:#fff;
  display:flex; align-items:center; justify-content:center; gap:5px;
  color:#414a63;
  font-family:inherit;
  font-weight:800;
  font-size:12px;
  cursor:pointer;
}
.tab-btn.active { background: var(--yellow); border-color: var(--yellow); color:#111a36; }
.tab-btn .material-symbols-rounded { font-size:17px; }

.register-card h3 { margin:0 0 5px; font-size: 18px; display:flex; align-items:center; gap:8px; }
.register-card h3 .material-symbols-rounded { color: var(--blue); }
.register-card > p { margin:0; color: var(--muted); font-size: 13px; font-weight:600; }
.steps { margin-top: 23px; position: relative; }
.steps::before {
  content:"";
  position:absolute; top: 18px; left: 20px; right: 20px; height: 3px;
  border-radius: 999px;
  background: #e2e7f0;
}
.step-row { display:grid; grid-template-columns: repeat(5, 1fr); position:relative; z-index:1; }
.step { text-align:center; font-size:10px; color:#3d4866; font-weight:800; line-height:1.2; }
.step .num {
  width:36px; height:36px; margin:0 auto 10px;
  border-radius:50%;
  display:grid; place-items:center;
  background:#f6f8fb;
  border:1px solid #d6ddea;
  color:#263152;
  font-size:14px;
}
.step.active .num { background: var(--yellow); border-color: var(--yellow); box-shadow:0 6px 16px rgba(249,189,0,.24); }
.review-note {
  margin-top: 26px;
  display:flex; gap:11px;
  padding: 13px;
  border-radius: 12px;
  border:1px solid var(--line);
  background:#fbfcff;
  color:#546074;
  font-size: 12px;
  line-height:1.35;
  font-weight:650;
}
.review-note .material-symbols-rounded { color:#657493; font-size:22px; flex:0 0 22px; }
.btn-primary {
  width:100%; height: 46px;
  margin-top: 17px;
  border:0;
  border-radius: 11px;
  background: linear-gradient(90deg, var(--yellow), #ffd84b);
  color: #111936;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(249,189,0,.24);
  display:flex; align-items:center; justify-content:center; gap:10px;
  cursor:pointer;
}
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }

.learning-card { padding: 16px; }
.learning-head {
  display:flex; align-items:baseline; gap:16px; margin:0 0 14px 4px;
}
.learning-head h3 { margin:0; font-size:17px; letter-spacing:-.02em; }
.learning-head span { color:var(--muted); font-size:12px; font-weight:650; }
.learning-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:12px; }
.learn-item {
  min-height: 98px;
  display:flex; align-items:center; gap:15px;
  padding: 16px;
  border:1px solid var(--line);
  border-radius: 15px;
  background:#fff;
}
.learn-icon {
  width:58px; height:58px; border-radius:50%;
  flex: 0 0 58px;
  display:grid; place-items:center;
  color:#fff;
  box-shadow: 0 12px 24px rgba(16,25,54,.12);
}
.learn-icon.purple { background: linear-gradient(135deg, #8b5cf6, #b783ff); }
.learn-icon.green { background: linear-gradient(135deg, #15935d, #5ccf91); }
.learn-icon.blue { background: linear-gradient(135deg, #2e63c7, #6ba7ff); }
.learn-icon.people { background: #fff; color:#69748e; box-shadow:none; border:0; }
.learn-icon .material-symbols-rounded { font-size:30px; font-variation-settings:'FILL' 1; }
.learn-text small { display:block; color:var(--text); font-weight: 900; font-size: 13px; }
.learn-text p { margin:5px 0 0; color:#5d667a; font-size: 11px; line-height:1.35; font-weight:650; }
.learn-text a { display:inline-flex; margin-top:7px; color: var(--blue); text-decoration:none; font-weight:900; font-size:12px; cursor: pointer; }
.people-stat strong { font-size:24px; display:block; letter-spacing:-.04em; }
.people-stat span { color:var(--muted); font-size:12px; line-height:1.3; font-weight:650; display:block; }

/* ── Panel "Zonas críticas" (punto 6.4) ── */
.zonas-intro {
  margin: 4px 0 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.zonas-intro strong { color: var(--text); }
.zonas-lista { display: flex; flex-direction: column; gap: 12px; max-height: 60vh; overflow-y: auto; }
.zonas-vacio { margin: 10px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

.zona-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 14px;
  background: #fffaf6;
}
.zona-rank {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 28px;
}
.zona-info-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.zona-info-head strong { font-size: 15px; color: var(--text); }
.zona-desglose { font-size: 12px; color: var(--muted); font-weight: 650; }
.zona-temas { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.zona-temas li {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; color: #8a4a00;
  background: #fff3cd; border-radius: 8px; padding: 4px 9px;
  width: fit-content;
}
.zona-temas li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex: 0 0 6px; }
.zona-direcciones { margin-top: 9px; font-size: 11.5px; color: #6a7284; line-height: 1.5; }
.zona-direcciones .hint { display: block; font-weight: 800; color: #26335b; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 3px; font-size: 10.5px; }
.btn-ver-zona {
  align-self: center;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-ver-zona .material-symbols-rounded { font-size: 16px; }

/* ── Modal: Registrar siniestro ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 25, 54, .45);
  backdrop-filter: blur(3px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-card {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 26px 26px;
}
.modal-card.modal-chico { max-width: 380px; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.modal-header h3 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.modal-header h3 .material-symbols-rounded { color: var(--blue); }
.modal-close {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}
.modal-steps { margin: 18px 0 20px; }

.modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.modal-tab {
  height: 38px;
  border-radius: 10px;
  border: 1px solid #d8deea;
  background: #f8fafc;
  color: #414a63;
  font-family: inherit;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.modal-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.modal-body { display: flex; flex-direction: column; gap: 14px; }
.modal-panel { display: flex; flex-direction: column; gap: 14px; }
.detalle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.seccion input[type="text"],
.seccion input[type="date"],
.seccion select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  background: #fafbfd;
}
.seccion select { cursor: pointer; }

.factores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
}
.factores-grid label.factor-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #3a4360;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
}
.factor-check input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--blue);
  cursor: pointer;
  flex: 0 0 15px;
}
.seccion input[type="text"]:focus,
.seccion input[type="date"]:focus,
.seccion select:focus { outline: none; border-color: var(--blue); background: #fff; }

/* ── Formulario (reutilizado de la app original) ── */
.seccion { display: flex; flex-direction: column; gap: 6px; }
.seccion label { display:block; font-size: 12px; font-weight: 800; color: #26335b; text-transform: uppercase; letter-spacing: .4px; }
.hint { font-weight: 400; text-transform: none; color: var(--muted); }
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  resize: vertical;
  background: #fafbfd;
  line-height: 1.5;
}
textarea:focus { outline: none; border-color: var(--blue); background: #fff; }

.btn-secundario {
  width:100%;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #f1f3f8;
  color: var(--muted);
  font-family: inherit;
}
.btn-secundario:hover { background: #e8eaf6; color: var(--blue); }

.barra-contenedor {
  width: 100%;
  height: 6px;
  background: #e8eaf6;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 4px;
}
#barra-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
  border-radius: 99px;
  transition: width 0.2s ease;
}
#progreso-texto { font-size: 12px; color: var(--muted); }

#resultado { padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.resultado-ok    { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.resultado-warn  { background: #fff8e1; color: #e65100; border: 1px solid #ffe082; }
.resultado-error { background: #fce4ec; color: #b71c1c; border: 1px solid #ef9a9a; }

.modal-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.herramientas-wrap { position: relative; }
.btn-icono {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f1f3f8;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-icono:hover { background: #e8eaf6; color: var(--blue); border-color: var(--blue); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 10;
}
.dropdown-item {
  width: 100%;
  padding: 9px 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}
.dropdown-item:hover { background: #f1f3f8; color: var(--blue); }

.config-inline {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.select-config {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text);
  background: #fff;
  cursor: pointer;
}

.panel-footer {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0,0,0,0.15);
  border-top-color: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  animation: girar 0.7s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

/* ── Toast global ── */
#toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  background: #111936;
  color:#fff;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: 13px;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Utilidades ── */
.oculto { display: none !important; }

/* ── Badge del sidebar (contador de pendientes de moderación) ── */
.nav-item { position: relative; }
.nav-badge {
  margin-left: auto;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}
.nav-item.active .nav-badge { background: var(--blue); }

/* ── Vista de moderación (split lista + mapa) ── */
.moderacion {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1760px;
  margin: 0 auto;
  height: 100%;
}
.moderacion-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.moderacion-head-texto h1 { margin: 0; font-size: 22px; letter-spacing: -.03em; color: var(--text); }
.moderacion-head-texto p { margin: 6px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; max-width: 560px; }
.btn-cargar-siniestro {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--yellow), #ffd84b);
  color: #111936;
  font-family: inherit;
  font-weight: 900;
  font-size: 13.5px;
  box-shadow: 0 12px 24px rgba(249,189,0,.24);
  cursor: pointer;
  white-space: nowrap;
}
.btn-cargar-siniestro .material-symbols-rounded { font-size: 20px; }

.moderacion-split {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: 18px;
  align-items: stretch;
}
.moderacion-lista-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  min-height: 540px;
  max-height: calc(100vh - 190px);
}
.moderacion-lista-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.moderacion-lista-head strong { font-size: 15px; letter-spacing: -.01em; }
.pendientes-count {
  min-width: 26px; height: 24px;
  padding: 0 8px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: #fff3cd;
  color: #8a6100;
  font-size: 12px;
  font-weight: 900;
}
.lista-pendientes { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.pendientes-vacio {
  margin: auto;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 13px; font-weight: 650; text-align: center;
}
.pendientes-vacio .material-symbols-rounded { font-size: 34px; color: var(--green); }

.pendiente-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid #c9cfdd;
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.pendiente-item:hover { background: #fafbff; border-left-color: var(--yellow); }
.pendiente-item.sel {
  border-color: var(--yellow);
  border-left-color: var(--yellow);
  background: #fffdf3;
  box-shadow: 0 8px 20px rgba(249,189,0,.16);
}
.pendiente-dir { font-size: 13.5px; font-weight: 800; color: var(--text); line-height: 1.3; }
.pendiente-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pendiente-meta span {
  font-size: 11px; font-weight: 700; color: #55607a;
  background: #f2f4fa; border-radius: 6px; padding: 2px 8px;
}
.pendiente-fecha { grid-column: 1 / -1; font-size: 11px; color: var(--muted); font-weight: 650; }
.pendiente-acciones { display: flex; gap: 8px; }
.btn-confirmar {
  display: inline-flex; align-items: center; gap: 5px;
  height: 36px; padding: 0 13px;
  border: 0; border-radius: 10px;
  background: var(--green); color: #fff;
  font-family: inherit; font-weight: 800; font-size: 12.5px;
  cursor: pointer; white-space: nowrap;
}
.btn-confirmar:hover { filter: brightness(1.05); }
.btn-confirmar .material-symbols-rounded { font-size: 17px; }
.btn-rechazar {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid #f0c9c9; border-radius: 10px;
  background: #fff; color: #b3261e;
  cursor: pointer;
}
.btn-rechazar:hover { background: #fdecec; }
.btn-rechazar .material-symbols-rounded { font-size: 18px; }
.pendiente-item.procesando { opacity: .5; pointer-events: none; }

.moderacion-mapa-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: 20px;
  min-height: 540px;
}
#mapa-moderacion {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  background: #e9edf3;
  z-index: 1;
}
.moderacion-mapa-note {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 500;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(213, 219, 230, .9);
  color: #667085;
  font-size: 12px;
  font-weight: 650;
  backdrop-filter: blur(9px);
  text-align: center;
}
.moderacion-mapa-note .material-symbols-rounded { font-size: 18px; color: #7a85a1; }

/* Marcador de reporte pendiente en el mapa de moderación (gris; se resalta al seleccionar) */
.estrella-pendiente-marker {
  display: block;
  line-height: 1;
  color: #b6bccb;
  -webkit-text-stroke: 1px #8b93a7;
  filter: drop-shadow(0 4px 6px rgba(16,25,54,.25));
  cursor: pointer;
  user-select: none;
  transition: color .15s ease;
}
.estrella-pendiente-marker.sel { color: var(--yellow); -webkit-text-stroke: 1px #b06e00; }

/* ── Vista de prevención vial (contenido estático) ── */
.prevencion {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1760px;
  margin: 0 auto;
  padding-bottom: 8px;
}

.prev-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px;
  background: linear-gradient(120deg, #fffaf0, #fff2c9);
  border-color: #f4e1a4;
  overflow: hidden;
}
.prev-hero-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(249,189,0,.22);
  color: #8a6100;
  font-size: 12px;
  font-weight: 900;
}
.prev-hero-chip .material-symbols-rounded { font-size: 16px; }
.prev-hero-texto h1 { margin: 12px 0 8px; font-size: 24px; letter-spacing: -.03em; line-height: 1.2; max-width: 620px; }
.prev-hero-texto p { margin: 0; color: #55607a; font-size: 13.5px; font-weight: 600; line-height: 1.5; max-width: 620px; }
.prev-hero-star {
  flex: 0 0 auto;
  font-size: 120px;
  line-height: 1;
  color: var(--yellow);
  filter: drop-shadow(0 12px 20px rgba(249,189,0,.3));
}

.prev-section-head { margin: 6px 4px -4px; }
.prev-section-head h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.prev-section-head span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 600; }

.prev-tips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.prev-tip { padding: 20px; }
.prev-tip-icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid; place-items: center;
  color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 12px 24px rgba(16,25,54,.12);
}
.prev-tip-icon .material-symbols-rounded { font-size: 27px; font-variation-settings: 'FILL' 1; }
.prev-tip-icon.yellow { background: linear-gradient(135deg, var(--yellow), #ffd96d); color: #6a4b00; }
.prev-tip-icon.blue   { background: linear-gradient(135deg, #14227a, #2b4dc5); }
.prev-tip-icon.orange { background: linear-gradient(135deg, var(--orange), #ff8d45); }
.prev-tip-icon.green  { background: linear-gradient(135deg, #15935d, #54c88d); }
.prev-tip-icon.purple { background: linear-gradient(135deg, #8b5cf6, #b783ff); }
.prev-tip h3 { margin: 0 0 6px; font-size: 15px; letter-spacing: -.01em; }
.prev-tip p { margin: 0; color: #5d667a; font-size: 12.5px; line-height: 1.5; font-weight: 500; }

.prev-perfiles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.prev-perfil { padding: 20px; }
.prev-perfil-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.prev-perfil-head .material-symbols-rounded {
  font-size: 24px; color: var(--blue);
  background: #eef1fb; border-radius: 10px; padding: 7px;
}
.prev-perfil-head h3 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.prev-perfil ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.prev-perfil li {
  position: relative;
  padding-left: 20px;
  font-size: 12.5px;
  color: #4b556e;
  font-weight: 500;
  line-height: 1.4;
}
.prev-perfil li::before {
  content: "";
  position: absolute; left: 2px; top: 6px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--yellow);
}

.prev-pasos { padding: 22px 24px; }
.prev-pasos ol {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px;
}
.prev-pasos li { display: flex; flex-direction: column; gap: 10px; }
.prev-paso-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 8px 18px rgba(23,32,109,.22);
}
.prev-pasos li strong { display: block; font-size: 13.5px; margin-bottom: 4px; letter-spacing: -.01em; }
.prev-pasos li p { margin: 0; color: #5d667a; font-size: 12px; line-height: 1.45; font-weight: 500; }

.prev-factores {
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px 24px;
}
.prev-factores-texto h3 { margin: 0 0 6px; font-size: 16px; display: flex; align-items: center; gap: 8px; letter-spacing: -.01em; }
.prev-factores-texto h3 .material-symbols-rounded { color: var(--orange); font-size: 22px; }
.prev-factores-texto p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; font-weight: 600; }
.prev-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.prev-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff4f0;
  border: 1px solid #ffd7c7;
  color: #b64818;
  font-size: 12.5px;
  font-weight: 800;
}

.prev-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 26px;
  background: linear-gradient(120deg, #14227a, #2b4dc5);
  border: 0;
}
.prev-cta strong { display: block; color: #fff; font-size: 16px; letter-spacing: -.01em; }
.prev-cta span { display: block; margin-top: 4px; color: #cdd6f5; font-size: 13px; font-weight: 600; }
.prev-cta .btn-cargar-siniestro { flex: 0 0 auto; }

/* ── Vista de estadísticas (calculada sobre los datos reales) ── */
.estadisticas {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1760px;
  margin: 0 auto;
  padding-bottom: 8px;
}
.est-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.est-head-texto h1 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.est-head-texto p { margin: 6px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; max-width: 620px; }
.est-actualizado { color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }

.est-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.stat-icon.green .material-symbols-rounded { font-variation-settings: 'FILL' 1; }

.est-vacio {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 48px 24px; text-align: center;
}
.est-vacio .material-symbols-rounded { font-size: 40px; color: var(--muted); }
.est-vacio strong { font-size: 15px; }
.est-vacio span { color: var(--muted); font-size: 13px; font-weight: 600; }

.est-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.est-panel { padding: 20px 22px; }
.est-panel-head { margin-bottom: 16px; }
.est-panel-head h3 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.est-barras { display: flex; flex-direction: column; gap: 13px; }
.est-barra-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 6px;
}
.est-barra-label { font-size: 12.5px; font-weight: 700; color: #2e3652; }
.est-barra-val { font-size: 12px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.est-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(16,25,54,.07);
  overflow: hidden;
}
.est-fill {
  height: 100%;
  min-width: 6px;
  border-radius: 999px;
  transition: width .4s ease;
}
.est-sin-datos { margin: 4px 0; color: var(--muted); font-size: 12.5px; font-weight: 600; }

/* ── Vista de campañas (contenido estático) ── */
.campanas {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1760px;
  margin: 0 auto;
  padding-bottom: 8px;
}
.camp-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.camp-head-texto h1 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.camp-head-texto p { margin: 6px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; max-width: 620px; }
.camp-head-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f2f4fa;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}
.camp-head-chip .material-symbols-rounded { font-size: 16px; }

.camp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.camp-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.camp-banner {
  position: relative;
  height: 92px;
  display: grid;
  place-items: center;
  color: #fff;
}
.camp-banner .material-symbols-rounded { font-size: 42px; font-variation-settings: 'FILL' 1; opacity: .95; }
.camp-banner.amarillo { background: linear-gradient(135deg, var(--yellow), #ffd96d); color: #6a4b00; }
.camp-banner.azul     { background: linear-gradient(135deg, #14227a, #2b4dc5); }
.camp-banner.verde    { background: linear-gradient(135deg, #15935d, #54c88d); }
.camp-banner.naranja  { background: linear-gradient(135deg, var(--orange), #ff8d45); }
.camp-banner.violeta  { background: linear-gradient(135deg, #8b5cf6, #b783ff); }
.camp-banner.gris     { background: linear-gradient(135deg, #8a94ab, #b4bccd); }
.camp-estado {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  background: rgba(255,255,255,.92);
}
.camp-estado.activa     { color: #1f8a56; }
.camp-estado.proxima    { color: #1746b8; }
.camp-estado.finalizada { color: #5c6577; }

.camp-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.camp-body h3 { margin: 0; font-size: 16px; letter-spacing: -.01em; }
.camp-body > p { margin: 0; color: #5d667a; font-size: 12.5px; line-height: 1.45; font-weight: 500; }
.camp-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.camp-meta span { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: #55607a; }
.camp-meta .material-symbols-rounded { font-size: 16px; color: #8a93a8; }
.camp-progress { margin-top: 2px; }
.camp-progress-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.camp-progress-top span { font-size: 11px; font-weight: 800; color: #26335b; text-transform: uppercase; letter-spacing: .3px; }
.camp-progress-top strong { font-size: 12.5px; color: var(--text); }
.camp-bar { height: 8px; border-radius: 999px; background: rgba(16,25,54,.08); overflow: hidden; }
.camp-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--yellow), var(--yellow-2)); }
.camp-card .btn-soft { margin-top: auto; }

.camp-efemerides { padding: 22px 24px; }
.camp-efemerides h3 { margin: 0 0 16px; font-size: 16px; display: flex; align-items: center; gap: 8px; letter-spacing: -.01em; }
.camp-efemerides h3 .material-symbols-rounded { color: var(--blue); font-size: 22px; }
.camp-efemerides ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.camp-efemerides li { display: flex; align-items: flex-start; gap: 14px; }
.efem-fecha {
  flex: 0 0 52px;
  height: 52px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: #eef1fb;
  color: var(--blue);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .5px;
}
.camp-efemerides li strong { display: block; font-size: 13.5px; letter-spacing: -.01em; }
.camp-efemerides li p { margin: 3px 0 0; color: #5d667a; font-size: 12px; line-height: 1.45; font-weight: 500; }

/* ── Vista de reportes ciudadanos (flujo + datos reales) ── */
.reportes {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1760px;
  margin: 0 auto;
  padding-bottom: 8px;
}
.rep-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.rep-head-texto h1 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.rep-head-texto p { margin: 6px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; max-width: 620px; }

.rep-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.rep-step { position: relative; padding: 22px 20px; }
.rep-step-num {
  position: absolute; top: 16px; right: 18px;
  font-size: 34px;
  font-weight: 900;
  color: rgba(16,25,54,.08);
  line-height: 1;
}
.rep-step-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: #eef1fb;
  color: var(--blue);
  margin-bottom: 14px;
}
.rep-step-icon .material-symbols-rounded { font-size: 26px; font-variation-settings: 'FILL' 1; }
.rep-step h3 { margin: 0 0 6px; font-size: 15px; letter-spacing: -.01em; }
.rep-step p { margin: 0; color: #5d667a; font-size: 12.5px; line-height: 1.5; font-weight: 500; }

.rep-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rep-lista { display: flex; flex-direction: column; gap: 10px; }
.rep-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-soft);
}
.rep-item-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: #fff8df;
  color: var(--yellow);
  flex: 0 0 40px;
}
.rep-item-icon .material-symbols-rounded { font-size: 22px; font-variation-settings: 'FILL' 1; filter: drop-shadow(0 2px 3px rgba(128,70,0,.25)); }
.rep-item-info { min-width: 0; }
.rep-item-dir { font-size: 13.5px; font-weight: 800; color: var(--text); line-height: 1.3; }
.rep-item-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rep-item-meta span {
  font-size: 11px; font-weight: 700; color: #55607a;
  background: #f2f4fa; border-radius: 6px; padding: 2px 8px;
}
.rep-item-fecha { margin-top: 6px; font-size: 11px; color: var(--muted); font-weight: 650; }
.rep-item-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  border: 1px solid #d9dfed;
  border-radius: 10px;
  background: #fff;
  color: var(--blue);
  font-family: inherit;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.rep-item-btn:hover { background: #f2f5fb; }
.rep-item-btn .material-symbols-rounded { font-size: 16px; }

.rep-vacio {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 40px 24px; text-align: center;
}
.rep-vacio .material-symbols-rounded { font-size: 38px; color: var(--muted); }
.rep-vacio strong { font-size: 15px; }
.rep-vacio span { color: var(--muted); font-size: 13px; font-weight: 600; }

.rep-nota {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #f4f7ff;
  border: 1px solid #dde5f7;
  color: #4b5878;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
}
.rep-nota .material-symbols-rounded { font-size: 20px; color: var(--blue); flex: 0 0 20px; }

/* ── Vista de escuelas (contenido estático) ── */
.escuelas {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1760px;
  margin: 0 auto;
  padding-bottom: 8px;
}
.esc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.esc-head-texto h1 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.esc-head-texto p { margin: 6px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; max-width: 620px; }

.esc-niveles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.esc-talleres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.esc-materiales { display: flex; flex-direction: column; gap: 10px; }
.esc-material {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-soft);
}
.esc-material-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: #eef1fb;
  color: var(--blue);
  flex: 0 0 42px;
}
.esc-material-icon .material-symbols-rounded { font-size: 22px; }
.esc-material-info { min-width: 0; }
.esc-material-info strong { display: block; font-size: 13.5px; letter-spacing: -.01em; }
.esc-material-info span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 600; }
.esc-material .btn-soft { margin: 0; }

.esc-red {
  display: grid;
  grid-template-columns: minmax(0, 300px) 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px 24px;
}
.esc-red-texto h3 { margin: 0 0 6px; font-size: 16px; display: flex; align-items: center; gap: 8px; letter-spacing: -.01em; }
.esc-red-texto h3 .material-symbols-rounded { color: var(--blue); font-size: 22px; }
.esc-red-texto p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; font-weight: 600; }
.esc-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.esc-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef1fb;
  border: 1px solid #d8e0f4;
  color: #2b3a72;
  font-size: 12.5px;
  font-weight: 800;
}

/* ── Vista de configuración (ajustes reales, solo admin) ── */
.configuracion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 8px;
}
.set-head-texto h1 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.set-head-texto p { margin: 6px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; }

.set-card { padding: 20px 22px; }
.set-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.set-card-head h3 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.set-card-head .material-symbols-rounded {
  font-size: 22px; color: var(--blue);
  background: #eef1fb; border-radius: 10px; padding: 6px;
}
.set-card-nota { margin: -6px 0 16px; color: var(--muted); font-size: 12.5px; line-height: 1.5; font-weight: 600; }

.set-cuenta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.set-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  flex: 0 0 52px;
  background: linear-gradient(135deg, #ffe3a6, #c9d8ff);
}
.set-cuenta-info { min-width: 0; margin-right: auto; }
.set-cuenta-info strong { display: block; font-size: 15px; }
.set-cuenta-info span { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.set-rol-badge {
  padding: 5px 12px;
  border-radius: 999px;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 11.5px;
  font-weight: 900;
}
.set-logout { width: auto; padding: 10px 16px; }

.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.set-card-head + .set-row, .set-card-nota + .set-row { border-top: 0; padding-top: 0; }
.set-row-texto { min-width: 0; }
.set-row-texto strong { display: block; font-size: 13.5px; letter-spacing: -.01em; }
.set-row-texto span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 600; }
.set-control { flex: 0 0 auto; }
select.set-control { width: 200px; }
.set-input-unidad { display: flex; align-items: center; gap: 8px; }
.set-input-unidad input {
  width: 96px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d8deea;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: #fff;
}
.set-input-unidad input:focus { outline: none; border-color: var(--blue); }
.set-input-unidad > span { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.set-reset { margin-top: 16px; }

.set-acerca { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.set-acerca div span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; }
.set-acerca div strong { display: block; margin-top: 4px; font-size: 13.5px; }

/* ── Tarjeta de misión clickeable ── */
.mision-jugable { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.mision-jugable:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(249, 189, 0, .2); }

/* ── Modal: Trivia vial ── */
.modal-trivia-card { max-width: 480px; }
.trivia-panel { display: flex; flex-direction: column; gap: 16px; margin-top: 10px; }
.trivia-intro { align-items: center; text-align: center; padding: 6px 0 2px; }
.trivia-intro-icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--yellow), #ffdf68);
  color: #6a4b00;
  box-shadow: 0 12px 24px rgba(249, 189, 0, .28);
}
.trivia-intro-icon .material-symbols-rounded { font-size: 36px; font-variation-settings: 'FILL' 1; }
.trivia-intro p { margin: 0; color: #55607a; font-size: 13.5px; line-height: 1.5; font-weight: 600; max-width: 360px; }
.trivia-mejor {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff8df;
  color: #8a6100;
  font-size: 12.5px;
  font-weight: 800;
}

.trivia-progreso-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
#trivia-contador { font-size: 12px; font-weight: 800; color: #26335b; }
.trivia-tema { font-size: 11px; font-weight: 800; color: var(--blue); background: #eef1fb; padding: 3px 10px; border-radius: 999px; }
.trivia-barra { height: 8px; border-radius: 999px; background: rgba(16,25,54,.08); overflow: hidden; }
.trivia-barra span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--yellow), var(--yellow-2)); transition: width .3s ease; }

.trivia-enunciado { font-size: 16px; font-weight: 800; line-height: 1.35; color: var(--text); letter-spacing: -.01em; }
.trivia-opciones { display: flex; flex-direction: column; gap: 10px; }
.trivia-opcion {
  display: flex; align-items: center; gap: 10px;
  text-align: left;
  padding: 13px 15px;
  border: 1px solid #d8deea;
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #2b3350;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.trivia-opcion:hover:not(:disabled) { border-color: var(--blue); background: #f7f9ff; }
.trivia-opcion:disabled { cursor: default; }
.trivia-opcion .op-texto { flex: 1; }
.trivia-opcion .op-icono { font-size: 20px; display: none; }
.trivia-opcion.correcta { border-color: #1aa96b; background: #e8f5e9; color: #1b5e20; }
.trivia-opcion.correcta .op-icono { display: inline-block; color: #1aa96b; }
.trivia-opcion.incorrecta { border-color: #e53935; background: #fdecec; color: #b71c1c; }
.trivia-opcion.incorrecta .op-icono { display: inline-block; color: #e53935; }

.trivia-explicacion {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fbfcff;
  border: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.5;
  color: #4b5878;
  font-weight: 600;
}
.trivia-explicacion strong { color: var(--text); }

.trivia-resultado { align-items: center; text-align: center; }
.trivia-resultado-score { font-size: 46px; font-weight: 900; letter-spacing: -.04em; color: var(--blue); line-height: 1; }
.trivia-resultado-msg { font-size: 14.5px; font-weight: 700; color: #2b3350; }
.trivia-resultado-acciones { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 4px; }
.trivia-resultado-acciones .btn-primary,
.trivia-resultado-acciones .btn-secundario { margin-top: 0; }

/* ── Colapso / drawer del sidebar ── */
.topbar-toggle {
  width: 42px; height: 42px;
  flex: 0 0 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  cursor: pointer;
}
.topbar-toggle:hover { background: #f2f5fb; }
.topbar-toggle .material-symbols-rounded { font-size: 24px; }

/* Backdrop del drawer (solo visible en mobile con el menú abierto) */
.sidebar-backdrop { display: none; }

/* Colapso en escritorio: el sidebar se angosta a un riel que solo muestra íconos */
@media (min-width: 1181px) {
  .app.con-transicion { transition: grid-template-columns .28s ease; }

  .app.sidebar-colapsado { grid-template-columns: var(--sidebar-rail) 1fr; }
  .app.sidebar-colapsado .brand,
  .app.sidebar-colapsado .sidebar { overflow: hidden; white-space: nowrap; }

  /* Marca: solo el logo, centrado */
  .app.sidebar-colapsado .brand { justify-content: center; padding: 0; }
  .app.sidebar-colapsado .brand-title { display: none; }

  /* Ítems de navegación: ícono centrado, sin etiqueta */
  .app.sidebar-colapsado .nav-item {
    justify-content: center;
    gap: 0;
    padding: 0;
    font-size: 0;
  }
  .app.sidebar-colapsado .nav-item .material-symbols-rounded { font-size: 21px; }

  /* Badge de pendientes: pasa a ser un puntito sobre el ícono */
  .app.sidebar-colapsado .nav-badge {
    top: 7px; right: 14px;
    min-width: 0; width: 9px; height: 9px;
    padding: 0;
    font-size: 0;
    border: 2px solid #fff;
  }

  /* Botón de ingresar / cerrar sesión: solo ícono */
  .app.sidebar-colapsado .btn-sidebar-login {
    gap: 0;
    padding: 0;
    font-size: 0;
  }
  .app.sidebar-colapsado .btn-sidebar-login .material-symbols-rounded { font-size: 20px; }

  /* La tarjeta de memoria no entra en el riel */
  .app.sidebar-colapsado .memory-card { display: none; }
}

/* ── Responsive ── */
@media (max-width: 1500px) {
  :root { --sidebar: 252px; }
  .mission-card h2 { white-space: normal; }
}
@media (max-width: 1200px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .tip-card { grid-column: 1 / -1; }
  .map-row { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.1fr); }
  .prev-tips-grid { grid-template-columns: repeat(2, 1fr); }
  .prev-perfiles-grid { grid-template-columns: repeat(2, 1fr); }
  .camp-grid { grid-template-columns: repeat(2, 1fr); }
  .esc-talleres { grid-template-columns: repeat(2, 1fr); }
  .moderacion-split { grid-template-columns: minmax(0, 4.5fr) minmax(0, 5.5fr); }
}
@media (max-width: 1180px) {
  body { overflow:auto; }
  .app { min-width: 0; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; height:auto; }
  .brand { grid-column:1; grid-row:1; border-right:0; }
  .topbar { grid-column:1; grid-row:2; flex-wrap: wrap; padding: 14px 20px; }
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    z-index: 2500;
    background: #fff;
    border-right: 1px solid var(--line);
    transform: translateX(-100%);
    transition: transform .28s ease;
    box-shadow: 0 18px 45px rgba(16,25,54,.18);
  }
  .app.sidebar-movil-abierto .sidebar { transform: translateX(0); }
  .app.sidebar-movil-abierto .sidebar-backdrop {
    display: block;
    position: fixed; inset: 0; z-index: 2400;
    background: rgba(16,25,54,.42);
    backdrop-filter: blur(2px);
  }
  .content { grid-column:1; grid-row:3; overflow:visible; padding:18px; }
  .hero-grid, .stats-row, .learning-grid, .map-row { grid-template-columns: 1fr; }
  .moderacion { height: auto; }
  .moderacion-split { grid-template-columns: 1fr; }
  .moderacion-lista-card { max-height: none; min-height: 0; }
  .moderacion-mapa-card { min-height: 420px; }
  .map-card { min-height: 420px; }
  .prev-tips-grid, .prev-perfiles-grid { grid-template-columns: 1fr; }
  .prev-pasos ol { grid-template-columns: 1fr; }
  .prev-factores { grid-template-columns: 1fr; }
  .prev-hero { flex-direction: column; align-items: flex-start; }
  .prev-hero-star { display: none; }
  .prev-cta { flex-direction: column; align-items: flex-start; }
  .est-kpis { grid-template-columns: 1fr 1fr; }
  .est-grid { grid-template-columns: 1fr; }
  .camp-grid { grid-template-columns: 1fr; }
  .rep-flow { grid-template-columns: 1fr; }
  .rep-kpis { grid-template-columns: 1fr; }
  .rep-item { grid-template-columns: auto 1fr; }
  .rep-item-btn { grid-column: 2; justify-self: start; }
  .esc-niveles { grid-template-columns: 1fr; }
  .esc-talleres { grid-template-columns: 1fr; }
  .esc-red { grid-template-columns: 1fr; }
  .esc-material { grid-template-columns: auto 1fr; }
  .esc-material .btn-soft { grid-column: 2; justify-self: start; }
  .set-acerca { grid-template-columns: 1fr; }
  .map-legend { bottom: 64px; }
  .map-note { left: 0; right: 0; bottom: 0; border-radius: 0; border-width: 1px 0 0 0; }
}
