:root {
  --green: #0b5d3b;
  --green-2: #063f29;
  --green-light: #eaf5ef;
  --dark: #1f2933;
  --muted: #607080;
  --border: #d7e2dc;
  --danger: #b91c1c;
  --success: #006f3c;
  --background: #f5faf7;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--background);
  color: var(--dark);
}

a {
  color: inherit;
}

.container {
  width: min(96%, 1680px);
  margin: 0 auto;
}

/* =========================
   BARRA SUPERIOR
========================= */

.topbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dark);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--dark);
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 14px;
}

.main-nav a:hover {
  color: var(--green);
  border-color: var(--border);
  background: #f8fbf8;
}

.main-nav .nav-cta {
  background: var(--green);
  color: white;
  border-color: var(--green);
  padding: 11px 18px;
}

.main-nav .nav-cta:hover {
  background: var(--green-2);
  color: white;
}

/* =========================
   BOTONES
========================= */

.primary-button,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(11, 93, 59, 0.18);
}

.primary-button:hover,
.btn-primary:hover {
  background: var(--green-2);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--green);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.secondary-button:hover {
  background: var(--green-light);
}

/* =========================
   INICIO
========================= */

.hero {
  background:
    radial-gradient(circle at top right, rgba(11, 93, 59, 0.18), transparent 35%),
    linear-gradient(135deg, #f4f8f5, #ffffff);
  padding: 64px 0 58px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 36px;
  align-items: center;
}

.eyebrow {
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 900;
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.04;
  margin: 0 0 20px;
  color: var(--dark);
  letter-spacing: -1.6px;
}

.hero-text {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 780px;
  line-height: 1.75;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.panel-card,
.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(15, 95, 61, 0.08);
}

.panel-number,
.stat-number {
  display: block;
  font-size: 42px;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}

.panel-label,
.stat-label {
  display: block;
  margin-top: 9px;
  color: var(--dark);
  font-weight: 800;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.info-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 95, 61, 0.06);
}

.info-card h3 {
  margin-top: 0;
  color: var(--green);
  font-size: 19px;
}

.info-card p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.callout {
  margin-top: 34px;
  margin-bottom: 34px;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: white;
  border-radius: 28px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.callout h2 {
  margin: 0 0 8px;
}

.callout p {
  margin: 0;
  opacity: 0.92;
}

.callout .primary-button {
  background: white;
  color: var(--green);
}

/* =========================
   PÁGINAS INTERNAS
========================= */

.page-header {
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: white;
  padding: 48px 0;
}

.page-header .eyebrow {
  color: #d9f8e6;
}

.page-header h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.8px;
}

.page-header p {
  max-width: 820px;
  opacity: 0.92;
  line-height: 1.6;
  margin: 0;
}

.card {
  background: white;
  margin: 28px 0;
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border);
}

.card h2 {
  margin-top: 0;
  color: var(--green-2);
  font-size: 28px;
}

.intro,
.hint {
  color: var(--muted);
  line-height: 1.6;
}

/* =========================
   FORMULARIO
========================= */

.survey-form {
  margin-top: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 800;
  color: var(--dark);
}

.required {
  color: var(--danger);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  background: white;
  font-family: Arial, Helvetica, sans-serif;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 3px solid rgba(11, 93, 59, 0.18);
  border-color: var(--green);
}

.help-text {
  color: var(--muted);
  font-size: 13px;
}

.counter {
  font-size: 13px;
  font-weight: 800;
}

.counter.warn {
  color: var(--danger);
}

.counter.ok {
  color: var(--success);
}

.field-errors,
.form-errors {
  color: var(--danger);
  font-size: 14px;
}

.form-actions {
  margin-top: 28px;
  display: flex;
  justify-content: flex-end;
}

/* =========================
   MAPAS
========================= */

.map-section {
  margin-top: 30px;
}

.map-section h3 {
  color: var(--green-2);
  margin-bottom: 8px;
}

.map-section p {
  color: var(--muted);
}

.map,
#map,
#public-map,
.leaflet-container {
  height: 430px;
  width: 100%;
}

.map {
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #e5e7eb;
}

.tall-map {
  height: 520px;
}

.coords {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--green-light);
  border-radius: 14px;
  color: var(--green-2);
}

.map-status {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 14px;
  background: #eef6f1;
  border: 1px solid var(--border);
  color: var(--green);
  font-weight: 800;
}

.map-status.ok {
  background: #e7f7ed;
  color: #166534;
}

.map-status.warn {
  background: #fff7df;
  color: #7a5200;
}

.map-status.error {
  background: #fde8e8;
  color: #991b1b;
}

/* =========================
   RESULTADOS
========================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.7fr);
  gap: 22px;
  margin-top: 24px;
}

.map-card {
  min-width: 0;
}

.bar-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.bar-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 5px;
}

.bar-track {
  height: 10px;
  background: #eef2ef;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 999px;
}

.empty {
  color: var(--muted);
  font-style: italic;
}

/* =========================
   MODELO DE CIUDAD
========================= */

.modelo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 22px;
  margin-top: 28px;
}

.word-cloud {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  padding: 24px;
  border-radius: 22px;
  background: #f6faf7;
  border: 1px solid var(--border);
}

.cloud-word {
  display: inline-block;
  color: var(--green);
  font-weight: 900;
  line-height: 1;
}

.word-list {
  display: grid;
  gap: 10px;
}

.word-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.stat-card.compact {
  margin-bottom: 22px;
}

.primary-button.full {
  display: block;
  text-align: center;
  margin-top: 24px;
}

/* =========================
   AYUDA
========================= */

.help-content {
  margin-top: 28px;
}

.help-content h2 {
  color: var(--green);
  margin-top: 28px;
}

.help-content h2:first-child {
  margin-top: 0;
}

.help-content p {
  color: var(--muted);
  line-height: 1.7;
}

.help-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================
   POPUPS
========================= */

.popup-aporte h3 {
  margin: 0 0 8px;
  color: var(--green);
}

.popup-aporte p {
  margin: 6px 0;
}

.popup-aporte hr {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 8px 0;
}

/* =========================
   MENSAJES Y FOOTER
========================= */

.messages {
  margin-top: 20px;
}

.message {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--green-light);
  border: 1px solid var(--border);
  font-weight: 700;
}

.site-footer {
  padding: 28px 0;
  color: var(--muted);
  text-align: center;
  margin-top: 40px;
}

.site-footer p {
  margin: 4px 0;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 980px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid,
  .results-layout,
  .modelo-layout {
    grid-template-columns: 1fr;
  }

  .section-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .section-grid,
  .stats-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav a {
    font-size: 14px;
    padding: 8px 10px;
  }

  .hero {
    padding: 42px 0;
  }

  .hero h1 {
    font-size: 38px;
  }

  .card {
    padding: 22px;
  }

  .map,
  #map,
  #public-map,
  .leaflet-container,
  .tall-map {
    height: 420px;
  }
}
/* =====================================================
    - ESTILO DASHBOARD
===================================================== */

.results-public-page {
  padding: 32px 0 48px;
  background: #f4faf6;
}

.results-shell {
  background: #ffffff;
  border: 1px solid #e1ebe5;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(15, 95, 61, 0.10);
}

.results-badge {
  display: inline-flex;
  align-items: center;
  background: #e4f5e9;
  color: #166534;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.results-header-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 20px;
}

.results-header-row h1 {
  margin: 0;
  color: #15251c;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.8px;
}

.results-header-row p {
  margin: 10px 0 0;
  color: #68786f;
  font-weight: 600;
}

.results-filter select {
  min-width: 190px;
  border: 1px solid #dfe8e2;
  border-radius: 14px;
  background: #ffffff;
  padding: 12px 16px;
  color: #26382d;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 95, 61, 0.06);
}

.public-results-map {
  width: 100%;
  height: 430px;
  border-radius: 18px;
  border: 1px solid #dce7e0;
  overflow: hidden;
  background: #e8eee9;
}

.public-results-map .leaflet-control-zoom a {
  font-weight: 900;
}

.results-status {
  margin-top: 10px;
  font-size: 13px;
}

.public-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.public-kpi-card {
  background: #ffffff;
  border: 1px solid #e2ebe5;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(20, 55, 38, 0.08);
}

.public-kpi-card .kpi-label {
  display: block;
  color: #35453b;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 8px;
}

.public-kpi-card strong {
  display: block;
  color: #18281e;
  font-size: 36px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -1px;
}

.public-kpi-card small {
  display: block;
  margin-top: 6px;
  color: #7a887f;
  font-weight: 700;
}

.kpi-orange {
  color: #b7791f !important;
}

.kpi-green {
  color: #16a34a !important;
}

.kpi-gold {
  color: #a16207 !important;
}

.public-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  margin-top: 18px;
}

.public-card {
  background: #ffffff;
  border: 1px solid #e2ebe5;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 28px rgba(20, 55, 38, 0.08);
}

.public-card h2 {
  margin: 0 0 18px;
  color: #18281e;
  font-size: 20px;
}

.reported-list {
  display: grid;
  gap: 16px;
}

.reported-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.reported-top strong {
  color: #2f4035;
  font-size: 14px;
}

.reported-top span {
  color: #4b5f52;
  font-size: 13px;
  font-weight: 900;
}

.reported-track {
  height: 8px;
  background: #ecf1ee;
  border-radius: 999px;
  overflow: hidden;
}

.reported-fill {
  height: 100%;
  border-radius: 999px;
}

.participate-card {
  display: flex;
  flex-direction: column;
}

.steps-list {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.step-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: flex-start;
}

.step-item span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dcf5e4;
  color: #166534;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 950;
}

.step-item p {
  margin: 3px 0 0;
  color: #45554b;
  font-weight: 700;
  line-height: 1.35;
}

.participate-button {
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #16a34a;
  color: #ffffff;
  text-decoration: none;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(22, 163, 74, 0.22);
}

.participate-button:hover {
  background: #15803d;
}

.popup-aporte h3 {
  margin: 0 0 8px;
  color: #166534;
  font-size: 16px;
}

.popup-aporte p {
  margin: 6px 0;
  line-height: 1.35;
}

.popup-aporte hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 8px 0;
}

@media (max-width: 980px) {
  .results-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .public-kpi-grid,
  .public-bottom-grid {
    grid-template-columns: 1fr 1fr;
  }

  .participate-card {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .results-shell {
    padding: 18px;
  }

  .public-results-map {
    height: 420px;
  }

  .public-kpi-grid,
  .public-bottom-grid {
    grid-template-columns: 1fr;
  }

  .participate-card {
    grid-column: auto;
  }
}

/* =====================================================
   ENCUESTA TIPO WIZARD POR PANTALLAS
===================================================== */

.wizard-page {
  min-height: calc(100vh - 120px);
  background: #f6faf7;
  padding: 30px 0 48px;
}

.wizard-card {
  width: min(820px, calc(100% - 36px));
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e1ebe5;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(20, 55, 38, 0.10);
  overflow: hidden;
}

.wizard-step {
  display: none;
  padding: 36px;
}

.wizard-step.active {
  display: block;
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.step-heading span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 950;
  font-size: 18px;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.22);
}

.step-heading h2 {
  margin: 0;
  color: #18281e;
  font-size: 26px;
  letter-spacing: -0.5px;
}

.step-heading small {
  color: #718074;
  font-size: 15px;
}

.wizard-step h3 {
  color: #1e2d23;
  margin: 18px 0 14px;
}

.wizard-step p {
  color: #4f5f55;
  line-height: 1.65;
}

.welcome-logo {
  text-align: center;
  margin: 18px 0 30px;
}

.mini-logo {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 18px;
  background: #e3f5e8;
  color: #15803d;
  display: grid;
  place-items: center;
  font-weight: 950;
}

.welcome-logo strong {
  display: block;
  color: #1f2933;
  line-height: 1.15;
}

.welcome-logo small {
  display: block;
  color: #15803d;
  font-weight: 800;
  margin-top: 4px;
}

.check-card {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  border: 1px solid #dce8df;
  background: #fbfdfb;
  border-radius: 14px;
  padding: 14px;
  margin-top: 14px;
  color: #35453b;
  font-weight: 700;
  line-height: 1.45;
}

.wizard-fields {
  display: grid;
  gap: 18px;
}

.wizard-fields label {
  display: grid;
  gap: 8px;
  color: #1f2d24;
  font-weight: 900;
}

.wizard-fields small {
  color: #7c8a81;
  font-weight: 700;
}

.wizard-fields input,
.wizard-fields select,
.wizard-fields textarea {
  width: 100%;
  border: 1px solid #dbe6df;
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
  font-size: 15px;
  color: #1f2933;
  font-family: Arial, Helvetica, sans-serif;
}

.wizard-fields textarea {
  min-height: 130px;
  resize: vertical;
}

.wizard-fields input:focus,
.wizard-fields select:focus,
.wizard-fields textarea:focus {
  outline: 3px solid rgba(22, 163, 74, 0.16);
  border-color: #16a34a;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
}

.wizard-actions.single {
  justify-content: stretch;
}

.wizard-actions.back-only {
  justify-content: flex-start;
  margin-top: 18px;
}

.wizard-prev,
.wizard-next,
.submit-button {
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-weight: 950;
  font-size: 15px;
  cursor: pointer;
}

.wizard-prev {
  background: #ffffff;
  color: #1f2933;
  border: 1px solid #dfe8e2;
  min-width: 140px;
}

.wizard-next,
.submit-button {
  background: #16a34a;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(22, 163, 74, 0.20);
  flex: 1;
}

.wizard-next:hover,
.submit-button:hover {
  background: #15803d;
}

.wizard-map {
  width: 100%;
  height: 380px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #dce7e0;
  background: #e5e7eb;
  margin-top: 18px;
}

.gps-button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -70px auto 26px;
  position: relative;
  z-index: 500;
  border: 1px solid #dce8df;
  background: #ffffff;
  color: #15803d;
  border-radius: 12px;
  padding: 13px 18px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(20, 55, 38, 0.14);
}

.coords {
  background: #edf8f0;
  border: 1px solid #dce8df;
  border-radius: 14px;
  padding: 12px;
  color: #166534;
  font-weight: 800;
}

.problem-type-fixed {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 22px;
}

.problem-type-card {
  border: 2px solid #ef4444;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  color: #dc2626;
  font-weight: 950;
  display: grid;
  gap: 8px;
  background: #fffafa;
}

.upload-box {
  display: grid;
  place-items: center;
  gap: 8px;
  border: 2px dashed #b8dfc4;
  border-radius: 18px;
  padding: 34px 18px;
  background: #fbfffc;
  text-align: center;
  cursor: pointer;
}

.upload-box input {
  display: none;
}

.camera-icon {
  font-size: 42px;
}

.upload-box strong {
  color: #1f2933;
}

.upload-box small {
  color: #77867d;
}

.evidence-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.evidence-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #dce8df;
  background: #eef4f0;
}

.evidence-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0 24px;
}

.priority-card {
  border: 2px solid #dfe8e2;
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 8px;
  display: grid;
  gap: 8px;
  place-items: center;
  color: #4b5f52;
  font-weight: 950;
  cursor: pointer;
}

.priority-card.active {
  border-color: #16a34a;
  background: #effaf2;
  color: #166534;
}

.city-model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.city-option {
  position: relative;
  border: 2px solid #cde8d4;
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 8px;
  min-height: 86px;
  color: #166534;
  font-weight: 950;
  display: grid;
  place-items: center;
  gap: 8px;
  cursor: pointer;
}

.city-option.active {
  border-color: #16a34a;
  background: #ecfdf3;
}

.city-option.active::after {
  content: attr(data-order);
  position: absolute;
  top: -9px;
  right: -9px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 950;
}

.selection-help {
  text-align: center;
  color: #166534 !important;
  font-weight: 900;
  margin-top: 18px;
}

.counter {
  text-align: right;
  font-weight: 900;
}

.counter.warn {
  color: #dc2626;
}

.counter.ok {
  color: #15803d;
}

.review-box {
  display: grid;
  gap: 0;
  border: 1px solid #dfe8e2;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  margin-top: 22px;
}

.review-box div {
  padding: 15px;
  border-bottom: 1px solid #e8f0eb;
  color: #34443a;
  line-height: 1.45;
}

.review-box div:last-child {
  border-bottom: none;
}

.submit-button {
  width: 100%;
  margin-top: 28px;
  font-size: 17px;
}

.form-errors {
  margin: 18px;
  padding: 14px;
  border-radius: 14px;
  background: #fde8e8;
  color: #991b1b;
  font-weight: 800;
}

.turnstile-box {
  margin-top: 22px;
}

@media (max-width: 520px) {
  .wizard-card {
    width: calc(100% - 18px);
    border-radius: 20px;
  }

  .wizard-step {
    padding: 22px;
  }

  .city-model-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .priority-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wizard-map {
    width: 100%;
    height: 520px;
  }
}

/* =====================================================
   MODELO DE CIUDAD - NUBE DE PALABRAS VISUAL
===================================================== */

.modelo-public-page {
  padding: 32px 0 48px;
  background:
    radial-gradient(circle at top right, rgba(22, 163, 74, 0.15), transparent 32%),
    #f4faf6;
}

.modelo-shell {
  background: #ffffff;
  border: 1px solid #e1ebe5;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(15, 95, 61, 0.10);
}

.modelo-badge {
  display: inline-flex;
  align-items: center;
  background: #e4f5e9;
  color: #166534;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.modelo-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}

.modelo-header h1 {
  margin: 0;
  color: #15251c;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.8px;
}

.modelo-header p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #68786f;
  line-height: 1.6;
  font-weight: 600;
}

.modelo-cta {
  white-space: nowrap;
}

.modelo-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 18px;
}

.modelo-cloud-card,
.modelo-side-card {
  background: #ffffff;
  border: 1px solid #e2ebe5;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(20, 55, 38, 0.08);
}

.cloud-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.cloud-title-row h2,
.modelo-side-card h2 {
  margin: 0 0 6px;
  color: #18281e;
  font-size: 22px;
}

.cloud-title-row p {
  margin: 0;
  color: #75857b;
  font-weight: 600;
}

.cloud-counter {
  min-width: 110px;
  text-align: center;
  background: #eefaf2;
  border: 1px solid #d5efd9;
  border-radius: 16px;
  padding: 12px;
}

.cloud-counter strong {
  display: block;
  color: #16a34a;
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
}

.cloud-counter span {
  display: block;
  margin-top: 4px;
  color: #456052;
  font-size: 12px;
  font-weight: 900;
}

.word-cloud-visual {
  position: relative;
  height: 520px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #dce8df;
  background:
    radial-gradient(circle at 50% 50%, rgba(22, 163, 74, 0.13), transparent 35%),
    radial-gradient(circle at 20% 20%, rgba(161, 98, 7, 0.10), transparent 24%),
    radial-gradient(circle at 80% 78%, rgba(11, 93, 59, 0.10), transparent 26%),
    #fbfffc;
}

.word-cloud-visual::before {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  border: 1px dashed rgba(22, 163, 74, 0.18);
}

.cloud-word-absolute {
  position: absolute;
  display: inline-block;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 18px rgba(11, 93, 59, 0.08);
  user-select: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cloud-word-absolute:hover {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1.08) !important;
}

.cloud-word-absolute.main-word {
  text-transform: uppercase;
  letter-spacing: -0.06em;
  text-shadow: 0 14px 28px rgba(11, 93, 59, 0.16);
}

.top-word-list {
  display: grid;
  gap: 14px;
}

.top-word-row {
  display: grid;
  gap: 7px;
}

.top-word-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #304137;
  font-size: 14px;
  font-weight: 900;
}

.top-word-head strong {
  color: #16a34a;
}

.top-word-track {
  height: 9px;
  background: #edf3ef;
  border-radius: 999px;
  overflow: hidden;
}

.top-word-fill {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #a3e635);
  border-radius: 999px;
}

@media (max-width: 980px) {
  .modelo-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .modelo-dashboard {
    grid-template-columns: 1fr;
  }

  .word-cloud-visual {
    height: 460px;
  }
}

@media (max-width: 620px) {
  .modelo-shell {
    padding: 18px;
  }

  .modelo-cloud-card,
  .modelo-side-card {
    padding: 18px;
  }

  .cloud-title-row {
    flex-direction: column;
  }

  .word-cloud-visual {
    height: 420px;
  }

  .cloud-word-absolute {
    max-width: 160px;
  }
}

/* =====================================================
   CORRECCIÓN NUBE DE PALABRAS SIN SOBREPOSICIÓN
===================================================== */

.word-cloud-visual {
  position: relative;
  min-height: 520px;
  height: auto;
  overflow: visible;
  border-radius: 22px;
  border: 1px solid #dce8df;
  background:
    radial-gradient(circle at 50% 50%, rgba(22, 163, 74, 0.10), transparent 38%),
    radial-gradient(circle at 20% 20%, rgba(161, 98, 7, 0.07), transparent 26%),
    radial-gradient(circle at 80% 78%, rgba(11, 93, 59, 0.08), transparent 28%),
    #fbfffc;

  display: flex;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: 18px 26px;
  padding: 44px 38px;
}

.word-cloud-visual::before {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  border: 1px dashed rgba(22, 163, 74, 0.16);
  pointer-events: none;
}

/* Anula el estilo anterior con position:absolute */
.cloud-word-absolute {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  z-index: auto !important;
}

/* Nuevo estilo de palabras */
.cloud-word-flex {
  position: relative;
  z-index: 2;
  display: inline-block;
  white-space: nowrap;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 18px rgba(11, 93, 59, 0.08);
  user-select: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.cloud-word-flex:hover {
  transform: scale(1.08);
}

/* Tamaños controlados para evitar choques */
.cloud-level-1 {
  font-size: clamp(17px, 2vw, 22px);
  color: #4d7c0f;
  opacity: 0.72;
}

.cloud-level-2 {
  font-size: clamp(20px, 2.5vw, 28px);
  color: #65a30d;
  opacity: 0.78;
}

.cloud-level-3 {
  font-size: clamp(24px, 3vw, 34px);
  color: #047857;
  opacity: 0.84;
}

.cloud-level-4 {
  font-size: clamp(30px, 3.8vw, 42px);
  color: #15803d;
  opacity: 0.90;
}

.cloud-level-5 {
  font-size: clamp(38px, 5vw, 54px);
  color: #0b5d3b;
  opacity: 0.96;
}

.cloud-level-6 {
  font-size: clamp(46px, 6.2vw, 68px);
  color: #065f46;
  opacity: 1;
}

.cloud-word-flex.main-word {
  text-transform: uppercase;
  color: #064e3b;
  letter-spacing: -0.06em;
}

/* Mejor comportamiento en pantallas pequeñas */
@media (max-width: 720px) {
  .word-cloud-visual {
    min-height: 420px;
    padding: 30px 22px;
    gap: 14px 18px;
  }

  .cloud-level-6 {
    font-size: 44px;
  }

  .cloud-level-5 {
    font-size: 36px;
  }

  .cloud-level-4 {
    font-size: 30px;
  }
}

/* =====================================================
   NUBE DE PALABRAS TIPO WORD CLOUD REAL
===================================================== */

.word-cloud-visual {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #dce8df;
  background:
    radial-gradient(circle at center, rgba(22, 163, 74, 0.08), transparent 42%),
    #fbfffc;
  display: block;
  padding: 0;
}

.word-cloud-visual::before {
  display: none;
}

.cloud-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cloud-svg-word {
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.65);
  stroke-width: 1.5px;
  stroke-linejoin: round;
  letter-spacing: -0.045em;
}

.cloud-svg-word.main-word {
  text-transform: uppercase;
  letter-spacing: -0.07em;
  stroke-width: 2px;
}

.cloud-svg-word:hover {
  opacity: 0.78;
}

/* Anula estilos anteriores */
.cloud-word-absolute,
.cloud-word-flex {
  position: static !important;
  transform: none !important;
  display: inline !important;
}

@media (max-width: 720px) {
  .word-cloud-visual {
    height: 420px;
  }
}

/* =====================================================
   LOGO INSTITUCIONAL GAM SACABA
===================================================== */

.brand-with-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  display: block;
  width: 190px;
  min-width: 140px;
  height: auto;
  object-fit: contain;
}

.brand-project {
  display: block;
  padding-left: 14px;
  border-left: 1px solid #d7e2dc;
}

.brand-project strong {
  display: block;
  color: #15251c;
  font-size: 16px;
  line-height: 1.1;
}

.brand-project small {
  display: block;
  color: #607080;
  font-size: 12px;
  margin-top: 4px;
}

@media (max-width: 760px) {
  .brand-with-logo {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .brand-logo {
    width: 170px;
  }

  .brand-project {
    padding-left: 0;
    border-left: none;
  }
}

.welcome-sacaba-logo {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 18px;
}

.welcome-logo strong {
  display: block;
  color: #15251c;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.welcome-logo small {
  display: block;
  margin-top: 6px;
  color: #137132;
  font-weight: 900;
}

/* Oculta el select original de prioridad.
   La selección se hace con los botones Baja, Media, Alta y Muy alta. */
#id_prioridad {
  display: none !important;
}


.city-model-description {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #eefaf2;
  border: 1px solid #cde8d4;
  color: #164e2f;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.city-model-description strong {
  color: #0b5d3b;
}

#id_prioridad {
  display: none !important;
}

#id_prioridad {
  display: none !important;
}

.wizard-step:not(.active) {
  display: none !important;
}

.wizard-step.active {
  display: block !important;
}

@media (max-width: 720px) {
  .wizard-card {
    width: calc(100% - 18px);
  }

  .wizard-step {
    padding: 22px;
  }

  .wizard-map {
    height: 380px;
  }
}
/* =====================================================
   LIMPIEZA FINAL WIZARD - 20260611
   Reglas de mayor prioridad para evitar residuos de pruebas anteriores.
===================================================== */

.wizard-page {
  min-height: calc(100vh - 90px) !important;
  padding: 32px 0 56px !important;
}

.wizard-card {
  width: min(980px, calc(100% - 40px)) !important;
  margin: 0 auto !important;
}

.wizard-step {
  display: none !important;
  padding: 42px !important;
}

.wizard-step.active {
  display: block !important;
}

.wizard-fields.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#id_prioridad {
  display: none !important;
}

.wizard-map,
#map.wizard-map {
  width: 100% !important;
  height: 560px !important;
  min-height: 560px !important;
  border-radius: 18px;
}

.wizard-step .selection-help {
  margin: 18px 0 0 !important;
  text-align: center;
  color: #166534 !important;
  font-weight: 900;
}

.wizard-step .wizard-actions {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

.wizard-step .wizard-prev {
  flex: 0 0 150px;
}

.wizard-step .wizard-next {
  flex: 1;
}

@media (max-width: 820px) {
  .wizard-card {
    width: calc(100% - 18px) !important;
  }

  .wizard-step {
    padding: 24px !important;
  }

  .wizard-fields.two-columns {
    grid-template-columns: 1fr;
  }

  .wizard-map,
  #map.wizard-map {
    height: 400px !important;
    min-height: 400px !important;
  }
}

.public-point-marker {
  background: transparent;
  border: none;
}

.public-point-marker span {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 3px solid #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background-color: rgba(19, 113, 50, 0.25);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background-color: #137132;
  color: #ffffff;
  font-weight: 900;
}

.public-point-marker {
  background: transparent !important;
  border: none !important;
}

.public-point-marker span {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 999px !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35) !important;
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background-color: rgba(19, 113, 50, 0.25) !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background-color: #9be36d !important;
  color: #064e1f !important;
  font-weight: 900 !important;
}

.public-point-marker {
  background: transparent !important;
  border: none !important;
}

.public-point-marker span {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 999px !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35) !important;
}

.theme-cluster {
  background: transparent !important;
  border: none !important;
}

.theme-cluster-inner {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid rgba(255, 255, 255, 0.90);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.30);
}

.theme-cluster-inner strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.theme-cluster {
  background: transparent !important;
  border: none !important;
}

.theme-cluster div {
  border-radius: 999px !important;
}
/* =========================================================
   CORRECCIONES FINALES: errores, gracias y clusters por tema
========================================================= */
.form-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #7f1d1d;
  padding: 16px 18px;
  border-radius: 16px;
  margin-bottom: 18px;
}

.form-errors strong {
  display: block;
  margin-bottom: 6px;
}

.form-errors ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.thanks-page {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 18px;
  background: #f3faf6;
}

.thanks-card {
  width: min(720px, 100%);
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid #dcebe2;
  box-shadow: 0 20px 55px rgba(20, 55, 38, 0.12);
  padding: 46px;
  text-align: center;
}

.thanks-icon {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 20px;
}

.thanks-card h1 {
  margin: 0 0 14px;
  color: #052e16;
  font-size: clamp(30px, 5vw, 46px);
}

.thanks-card p {
  color: #475569;
  font-size: 17px;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 28px;
}

.thanks-code {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  border-radius: 18px;
  padding: 18px;
  margin: 28px auto;
  text-align: center;
}

.thanks-code span {
  display: block;
  color: #166534;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.thanks-code strong {
  display: block;
  color: #052e16;
  font-size: 15px;
  word-break: break-all;
}

.thanks-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.button-primary {
  background: #137132;
  color: #ffffff;
}

.button-secondary {
  background: #ffffff;
  color: #137132;
  border: 1px solid #b7e4c7;
}

.public-point-marker {
  background: transparent !important;
  border: none !important;
}

.public-point-marker span {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 999px !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35) !important;
}

.theme-cluster {
  background: transparent !important;
  border: none !important;
}

.theme-cluster div {
  border-radius: 999px !important;
}

/* =========================================================
   HOME 2026 - Diseño institucional tipo dashboard público
   ========================================================= */

.home-container,
.site-topbar-inner,
.home-footer-main {
  width: min(1480px, calc(100% - 64px));
  margin-left: auto;
  margin-right: auto;
}

.site-topbar {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #dce5df;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(12px);
}

.site-topbar-inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto auto;
  align-items: center;
  gap: 28px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  color: #142033;
  text-decoration: none;
  min-width: 0;
}

.site-brand-logo {
  width: 245px;
  max-width: 42vw;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-brand-text {
  display: block;
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid #cbd5cf;
}

.site-brand-text strong {
  display: block;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #182235;
}

.site-brand-text small {
  display: block;
  max-width: 290px;
  margin-top: 5px;
  color: #586274;
  font-size: 14px;
  line-height: 1.25;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  white-space: nowrap;
}

.site-nav a {
  color: #152032;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  padding: 12px 2px;
  border-bottom: 4px solid transparent;
}

.site-nav a:hover {
  color: #0b6b3b;
  border-bottom-color: #0b6b3b;
}

.site-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0c7044, #065f35);
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(12, 112, 68, 0.22);
  white-space: nowrap;
}

.site-nav-cta:hover {
  background: linear-gradient(135deg, #075b35, #044b2d);
}

.home-hero-modern {
  position: relative;
  overflow: hidden;
  padding: 54px 0 34px;
  background:
    radial-gradient(circle at 55% 18%, rgba(25, 125, 80, 0.13), transparent 24%),
    radial-gradient(circle at 78% 24%, rgba(64, 143, 190, 0.16), transparent 24%),
    linear-gradient(180deg, #f7fbf8 0%, #ffffff 48%, #f8fbf9 100%);
}

.home-hero-modern::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.90), rgba(255,255,255,0.62) 42%, rgba(255,255,255,0.90)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23d9e7df' stroke-width='1' opacity='.55'%3E%3Cpath d='M0 60h180M0 120h180M60 0v180M120 0v180'/%3E%3Cpath d='M0 0l180 180M180 0L0 180' opacity='.25'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
}

.home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(430px, 1fr) minmax(270px, 0.56fr);
  align-items: center;
  gap: 42px;
}

.home-eyebrow {
  margin: 0 0 14px;
  color: #066337;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.3;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.home-hero-copy h1 {
  margin: 0;
  color: #172133;
  font-size: clamp(42px, 4.8vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 950;
}

.home-hero-copy h1 span {
  color: #08713f;
}

.home-lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: #4f5f73;
  font-size: 19px;
  line-height: 1.62;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
}

.home-btn-primary,
.home-btn-secondary,
.home-btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 55px;
  padding: 0 26px;
  border-radius: 9px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 950;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.home-btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0d7446, #075f36);
  box-shadow: 0 14px 28px rgba(7, 95, 54, 0.22);
}

.home-btn-primary:hover,
.home-btn-secondary:hover,
.home-btn-light:hover {
  transform: translateY(-1px);
}

.home-btn-secondary {
  color: #0a5134;
  background: #ffffff;
  border: 1px solid #d6e2dc;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.home-privacy-note {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  color: #516273;
  font-size: 15px;
  line-height: 1.5;
}

.home-privacy-note span {
  color: #0b7142;
  font-size: 25px;
  line-height: 1;
}

.home-privacy-note p {
  margin: 0;
}

.home-hero-visual {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-hero-map {
  display: block;
  width: min(620px, 100%);
  height: auto;
  filter: drop-shadow(0 24px 34px rgba(13, 91, 55, 0.14));
}

.home-stats-stack {
  display: grid;
  gap: 14px;
}

.home-stat-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 102px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(224, 232, 227, 0.9);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.home-stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 31px;
  font-weight: 950;
}

.home-stat-card.green .home-stat-icon { background: #dff4e6; color: #0b7a42; }
.home-stat-card.blue .home-stat-icon { background: #d9eef8; color: #277fa9; }
.home-stat-card.amber .home-stat-icon { background: #fbefcf; color: #e79b00; }
.home-stat-card.purple .home-stat-icon { background: #ece3fb; color: #7c4bc4; }

.home-stat-card strong {
  display: block;
  color: #0c5133;
  font-size: 42px;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.home-stat-card span {
  display: block;
  margin-top: 7px;
  color: #1b2535;
  font-size: 16px;
  font-weight: 950;
}

.home-stat-card small {
  display: block;
  margin-top: 3px;
  color: #607080;
  font-size: 13px;
  line-height: 1.25;
}

.home-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 28px 0 16px;
}

.home-step-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  min-height: 170px;
  padding: 22px 24px;
  background: #ffffff;
  border: 1px solid #e2eae5;
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.home-step-icon {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 39px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.home-step-icon.green { background: #e7f5dc; color: #4f8f2e; }
.home-step-icon.amber { background: #fff1d4; color: #e79b00; }
.home-step-icon.teal { background: #e2f5f3; color: #107c75; }
.home-step-icon.lime { background: #edf8e5; color: #4c9b3a; }

.home-step-card h2 {
  margin: 0 0 9px;
  color: #075f36;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 950;
}

.home-step-card p {
  margin: 0;
  color: #4e5f70;
  font-size: 15px;
  line-height: 1.56;
}

.home-participation-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) minmax(360px, 0.46fr) minmax(300px, 0.30fr);
  align-items: center;
  gap: 24px;
  margin-top: 10px;
  margin-bottom: 28px;
  min-height: 136px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #06452c, #087544);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(7, 95, 54, 0.20);
}

.home-participation-image {
  height: 136px;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.35);
}

.home-participation-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.home-participation-copy h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.home-participation-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.90);
  font-size: 18px;
  line-height: 1.45;
}

.home-participation-action {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding-right: 34px;
}

.home-btn-light {
  width: 100%;
  max-width: 320px;
  background: #ffffff;
  color: #0a5134;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.home-participation-action small {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
}

.home-footer {
  background: #ffffff;
  border-top: 1px solid #e1e9e4;
}

.home-footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) repeat(4, minmax(160px, 1fr));
  gap: 34px;
  padding: 28px 0;
}

.home-footer-brand {
  display: flex;
  align-items: center;
  padding-right: 28px;
  border-right: 1px solid #e1e9e4;
}

.home-footer-brand img {
  width: 240px;
  max-width: 100%;
  height: auto;
}

.home-footer-col h3 {
  margin: 0 0 14px;
  color: #1b2535;
  font-size: 16px;
  font-weight: 950;
}

.home-footer-col a,
.home-footer-col p {
  display: block;
  margin: 0 0 10px;
  color: #3f4e61;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
}

.home-footer-col a:hover {
  color: #08713f;
}

.home-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.home-socials span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #0b6b3b;
  color: #ffffff;
  font-weight: 950;
}

.home-footer-bottom {
  padding: 14px 18px;
  background: #075f36;
  color: #ffffff;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1180px) {
  .site-topbar-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 14px 0 18px;
  }

  .site-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px;
  }

  .site-nav-cta {
    justify-self: start;
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-stats-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero-visual {
    order: 3;
  }

  .home-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-participation-band {
    grid-template-columns: 1fr;
    padding-bottom: 26px;
  }

  .home-participation-image {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.35);
  }

  .home-participation-copy,
  .home-participation-action {
    padding: 0 28px;
  }

  .home-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-footer-brand {
    border-right: 0;
  }
}

@media (max-width: 720px) {
  .home-container,
  .site-topbar-inner,
  .home-footer-main {
    width: min(100% - 28px, 1480px);
  }

  .site-brand {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .site-brand-logo {
    width: 210px;
    max-width: 100%;
  }

  .site-brand-text {
    border-left: 0;
    padding-left: 0;
  }

  .site-nav {
    gap: 6px 14px;
  }

  .site-nav a {
    font-size: 14px;
  }

  .site-nav-cta {
    width: 100%;
  }

  .home-hero-modern {
    padding-top: 38px;
  }

  .home-hero-copy h1 {
    font-size: 42px;
  }

  .home-lead {
    font-size: 17px;
  }

  .home-hero-actions {
    gap: 12px;
  }

  .home-btn-primary,
  .home-btn-secondary,
  .home-btn-light {
    width: 100%;
  }

  .home-stats-stack,
  .home-steps-grid,
  .home-footer-main {
    grid-template-columns: 1fr;
  }

  .home-step-card {
    grid-template-columns: 1fr;
  }

  .home-participation-copy h2 {
    font-size: 28px;
  }
}

/* Página de ayuda */
.help-page {
  padding: 54px 0 70px;
  background: #f7fbf8;
}

.help-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.help-header {
  margin-bottom: 28px;
}

.help-header span {
  display: inline-flex;
  color: #137132;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.help-header h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  color: #111827;
}

.help-header p {
  max-width: 760px;
  color: #475569;
  font-size: 17px;
  line-height: 1.65;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.help-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .help-grid {
    grid-template-columns: 1fr;
  }
}

/* Cloudflare Turnstile */
.turnstile-box {
  margin: 20px 0;
  padding: 18px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(22, 163, 74, 0.22);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.turnstile-title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #14532d;
  font-weight: 900;
  margin-bottom: 8px;
}

.turnstile-title span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dcfce7;
  border-radius: 999px;
}

.turnstile-box p {
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
}

.turnstile-warning {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  font-weight: 700;
  font-size: 14px;
}

/* Paso 3 - mapa más amplio */
.map-wide-container {
  width: calc(100vw - 140px);
  max-width: none;
  margin-left: calc(50% - 50vw + 70px);
  margin-right: calc(50% - 50vw + 70px);
}

#map {
  width: 100%;
  height: 74vh;
  min-height: 620px;
  border-radius: 18px;
}

.leaflet-control-layers {
  max-height: 55vh;
  overflow-y: auto;
}

@media (max-width: 900px) {
  .map-wide-container {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  #map {
    height: 65vh;
    min-height: 480px;
  }
}

/* =========================================================
   MAPA PAD - Paso Ubica el problema
   ========================================================= */

.mapa-pad-contenedor-amplio {
  width: calc(100vw - 80px) !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw + 40px) !important;
  margin-right: calc(50% - 50vw + 40px) !important;
}

#map.mapa-pad-amplio,
#map {
  width: 100% !important;
  height: 78vh !important;
  min-height: 650px !important;
  border-radius: 18px !important;
}

.leaflet-bottom.leaflet-left {
  left: 18px !important;
  bottom: 18px !important;
}

.leaflet-top.leaflet-right {
  top: 18px !important;
  right: 18px !important;
}

.leaflet-control-layers {
  max-height: 60vh !important;
  overflow-y: auto !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22) !important;
}

@media (max-width: 900px) {
  .mapa-pad-contenedor-amplio {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #map.mapa-pad-amplio,
  #map {
    height: 65vh !important;
    min-height: 480px !important;
  }
}

/* =========================================================
   CORRECCIÓN MAPA PASO 3 - SIN RECORTE
   ========================================================= */

.paso-mapa-amplio {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
}

.paso-mapa-amplio .contenedor-mapa-amplio {
  width: 100% !important;
  max-width: none !important;
}

.paso-mapa-amplio #map,
#map.mapa-pad-amplio,
#map {
  width: 100% !important;
  height: 78vh !important;
  min-height: 650px !important;
  max-height: none !important;
  border-radius: 18px !important;
  overflow: hidden !important;
}

/* Zoom abajo izquierda */
.leaflet-bottom.leaflet-left {
  left: 24px !important;
  bottom: 24px !important;
}

/* Capas arriba derecha */
.leaflet-top.leaflet-right {
  top: 24px !important;
  right: 24px !important;
}

.leaflet-control-layers {
  max-height: 58vh !important;
  overflow-y: auto !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22) !important;
  font-size: 13px !important;
}

/* Botón siguiente debajo del mapa, no encima */
.paso-mapa-amplio .wizard-actions {
  width: 100% !important;
  max-width: 980px !important;
  margin: 22px auto 0 auto !important;
}

@media (max-width: 900px) {
  .paso-mapa-amplio {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .paso-mapa-amplio #map,
  #map {
    height: 65vh !important;
    min-height: 480px !important;
  }
}

/* =========================================================
   MAPA PAD - CORRECCIÓN LIMPIA
   Solo el mapa se ensancha; el texto no se corta.
   ========================================================= */

.overflow-mapa-pad {
  overflow: visible !important;
}

.paso-mapa-pad {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: none !important;
  overflow: visible !important;
}

#map.mapa-pad-fullwidth {
  position: relative !important;
  left: 50% !important;
  width: calc(100vw - 70px) !important;
  max-width: calc(100vw - 70px) !important;
  height: calc(100vh - 210px) !important;
  min-height: 640px !important;
  max-height: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: translateX(-50%) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  z-index: 1 !important;
}

/* Zoom abajo izquierda */
#map .leaflet-bottom.leaflet-left {
  left: 22px !important;
  bottom: 22px !important;
}

/* Selector de mapas arriba derecha */
#map .leaflet-top.leaflet-right {
  top: 18px !important;
  right: 18px !important;
}

#map .leaflet-control-layers {
  max-height: 58vh !important;
  overflow-y: auto !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22) !important;
  font-size: 13px !important;
}

/* El botón siguiente se queda centrado debajo */
.paso-mapa-pad .wizard-actions {
  width: 100% !important;
  max-width: 980px !important;
  margin: 22px auto 0 auto !important;
}

@media (max-width: 900px) {
  #map.mapa-pad-fullwidth {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    height: 65vh !important;
    min-height: 480px !important;
  }
}

/* =========================================================
   AJUSTE FINO DEL ANCHO DEL MAPA PAD
   Reduce el mapa y lo centra mejor
   ========================================================= */

#map.mapa-pad-fullwidth {
  left: auto !important;
  transform: none !important;
  width: min(1280px, calc(100vw - 220px)) !important;
  max-width: min(1280px, calc(100vw - 220px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 1600px) {
  #map.mapa-pad-fullwidth {
    width: min(1180px, calc(100vw - 180px)) !important;
    max-width: min(1180px, calc(100vw - 180px)) !important;
  }
}

@media (max-width: 900px) {
  #map.mapa-pad-fullwidth {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
  }
}

/* =========================================================
   AJUSTE FINAL - CENTRAR MAPA PAD
   ========================================================= */

#map.mapa-pad-fullwidth {
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;

  width: min(1280px, calc(100vw - 220px)) !important;
  max-width: min(1280px, calc(100vw - 220px)) !important;

  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Etiquetas de distritos municipales */
.distrito-label-pad {
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(22, 163, 74, 0.35) !important;
  border-radius: 999px !important;
  color: #14532d !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12) !important;
}

.distrito-label-pad::before {
  display: none !important;
}

/* =========================================================
   AJUSTE DEL MARCO BLANCO DEL PASO 3
   Hacer el contenedor un poco más grande que el mapa
   ========================================================= */

.paso-mapa-pad {
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;

  width: min(1360px, calc(100vw - 140px)) !important;
  max-width: min(1360px, calc(100vw - 140px)) !important;

  margin-left: 0 !important;
  margin-right: 0 !important;

  padding: 22px 28px 26px 28px !important;
  border-radius: 26px !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

/* Mantener el mapa centrado dentro del marco */
.paso-mapa-pad #map.mapa-pad-fullwidth {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* En pantallas más pequeñas */
@media (max-width: 900px) {
  .paso-mapa-pad {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    padding: 14px 10px 18px 10px !important;
    border-radius: 18px !important;
  }
}

/* =========================================================
   AJUSTE FINAL - HEADER MÁS ANCHO
   Extiende el encabezado casi hasta los bordes de la página
   ========================================================= */

.topbar-inner,
.site-topbar-inner {
  width: min(96vw, 1760px) !important;
  max-width: min(96vw, 1760px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 720px) {
  .topbar-inner,
  .site-topbar-inner {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
  }
}


/* =========================================================
   AJUSTES PANEL DE RESULTADOS
   ========================================================= */

/* Quita la manchita verde vacía que quedó al borrar el texto */
.results-shell .badge:empty,
.results-shell .pill:empty,
.results-shell .kicker:empty,
.results-shell .eyebrow:empty,
.results-shell .panel-kicker:empty,
.results-shell .results-kicker:empty,
.results-shell .section-kicker:empty,
.results-shell span:empty {
  display: none !important;
}

/* Por si la etiqueta quedó con espacios en blanco */
.results-shell .badge,
.results-shell .pill,
.results-shell .kicker,
.results-shell .eyebrow,
.results-shell .panel-kicker,
.results-shell .results-kicker,
.results-shell .section-kicker {
  min-width: 0;
}

/* Reducir tamaño del título principal */
.results-shell h1,
.results-header h1,
.results-hero h1,
.public-results h1 {
  font-size: clamp(30px, 3.1vw, 46px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.04em !important;
}

/* Agrandar visor del mapa hacia abajo */
.public-results-map,
#resultados-map,
#results-map,
#map-resultados,
.resultados-map {
  height: calc(100vh - 250px) !important;
  min-height: 620px !important;
  max-height: 780px !important;
}

/* Control de zoom abajo izquierda */
.public-results-map .leaflet-control-zoom,
#resultados-map .leaflet-control-zoom,
#results-map .leaflet-control-zoom,
#map-resultados .leaflet-control-zoom,
.resultados-map .leaflet-control-zoom {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

/* Control de capas arriba derecha */
.public-results-map .leaflet-control-layers,
#resultados-map .leaflet-control-layers,
#results-map .leaflet-control-layers,
#map-resultados .leaflet-control-layers,
.resultados-map .leaflet-control-layers {
  border-radius: 14px !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18) !important;
}

/* Responsive */
@media (max-width: 900px) {
  .public-results-map,
  #resultados-map,
  #results-map,
  #map-resultados,
  .resultados-map {
    height: 70vh !important;
    min-height: 520px !important;
    max-height: none !important;
  }

  .results-shell h1,
  .results-header h1,
  .results-hero h1,
  .public-results h1 {
    font-size: clamp(27px, 7vw, 36px) !important;
  }
}


/* =========================================================
   RESULTADOS - AJUSTES VISUALES SEGUROS
   ========================================================= */

/* Quitar cápsula verde vacía */
.results-shell .badge:empty,
.results-shell .pill:empty,
.results-shell .kicker:empty,
.results-shell .eyebrow:empty,
.results-shell .panel-kicker:empty,
.results-shell .results-kicker:empty,
.results-shell .section-kicker:empty {
  display: none !important;
}

/* Reducir título principal */
.results-shell h1,
.results-header h1,
.results-hero h1,
.public-results h1 {
  font-size: clamp(28px, 2.7vw, 40px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
}

/* Agrandar mapa hacia abajo */
.public-results-map,
#resultados-map,
#results-map,
#map-resultados,
.resultados-map {
  height: calc(100vh - 230px) !important;
  min-height: 660px !important;
  max-height: none !important;
}

/* Estilo controles Leaflet */
.leaflet-control-zoom,
.leaflet-control-layers {
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18) !important;
}

@media (max-width: 900px) {
  .public-results-map,
  #resultados-map,
  #results-map,
  #map-resultados,
  .resultados-map {
    height: 72vh !important;
    min-height: 520px !important;
  }
}


/* =========================================================
   RESULTADOS - CONTROL DE CAPAS Y SIMBOLOGÍA
   ========================================================= */

.public-results-map .leaflet-control-layers,
#public-map .leaflet-control-layers {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  border-radius: 14px !important;
  padding: 8px 10px !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.public-results-map .leaflet-control-layers label,
#public-map .leaflet-control-layers label {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 4px 0 !important;
  white-space: nowrap !important;
}

.public-results-map .leaflet-control-layers-separator,
#public-map .leaflet-control-layers-separator {
  margin: 7px 0 !important;
}

/* Asegurar que resultados, clusters y marcadores estén por encima de distritos */
#public-map .leaflet-marker-pane,
#public-map .leaflet-tooltip-pane,
#public-map .leaflet-popup-pane {
  z-index: 700 !important;
}

#public-map .marker-cluster,
.public-results-map .marker-cluster {
  z-index: 710 !important;
}

/* Distritos: borde visible pero no dominante */
#public-map .leaflet-overlay-pane path {
  vector-effect: non-scaling-stroke;
}


/* =========================================================
   RESULTADOS - FORZAR VISIBILIDAD DE PUNTOS
   ========================================================= */

#public-map .leaflet-pane.resultadosPane,
#public-map .leaflet-marker-pane {
  z-index: 760 !important;
}

#public-map .leaflet-pane.distritosResultadosPane {
  z-index: 340 !important;
}

#public-map .public-point-marker {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 9999 !important;
}

#public-map .marker-cluster {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 9999 !important;
}

#public-map .leaflet-control-layers {
  background: rgba(255,255,255,0.97) !important;
  border: 1px solid rgba(15, 23, 42, 0.16) !important;
  border-radius: 14px !important;
  padding: 8px 10px !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

#public-map .leaflet-control-layers label {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 5px 0 !important;
  white-space: nowrap !important;
}


/* =========================================================
   RESULTADOS - PUNTOS VISIBLES Y CONTROL DE CAPAS
   ========================================================= */

#public-map .leaflet-pane.resultadosPane,
#public-map .leaflet-overlay-pane {
  z-index: 760 !important;
}

#public-map .leaflet-pane.distritosResultadosPane {
  z-index: 340 !important;
}

#public-map .leaflet-interactive {
  vector-effect: non-scaling-stroke;
}

#public-map .leaflet-control-layers {
  background: rgba(255,255,255,0.98) !important;
  border: 1px solid rgba(15, 23, 42, 0.16) !important;
  border-radius: 14px !important;
  padding: 8px 10px !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

#public-map .leaflet-control-layers label {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 5px 0 !important;
  white-space: nowrap !important;
}


/* =========================================================
   RESULTADOS - FIX FINAL PUNTOS VISIBLES
   ========================================================= */

#public-map .leaflet-resultados-pane {
  z-index: 760 !important;
}

#public-map .leaflet-distritosResultadosPane-pane {
  z-index: 340 !important;
}

#public-map svg.leaflet-zoom-animated {
  overflow: visible !important;
}

#public-map .leaflet-interactive {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

#public-map .leaflet-control-layers,
#public-map .leaflet-control-layers-expanded {
  min-width: 230px !important;
  background: rgba(255,255,255,0.98) !important;
  border: 1px solid rgba(15, 23, 42, 0.16) !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

#public-map .leaflet-control-layers-list {
  display: block !important;
}

#public-map .leaflet-control-layers label {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 6px 0 !important;
  white-space: nowrap !important;
}


/* =========================================================
   RESULTADOS - RESTAURAR AGREGACIÓN Y SIMBOLOGÍA
   ========================================================= */

/* Distritos por debajo de puntos y clusters */
#public-map .leaflet-distritosResultadosPane-pane {
  z-index: 320 !important;
}

/* Los marcadores y clusters deben quedar arriba */
#public-map .leaflet-marker-pane {
  z-index: 700 !important;
}

#public-map .leaflet-tooltip-pane {
  z-index: 750 !important;
}

#public-map .leaflet-popup-pane {
  z-index: 800 !important;
}

/* Restaurar visibilidad de marcadores personalizados */
#public-map .public-point-marker,
#public-map .marker-cluster {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Control de capas visible y legible */
#public-map .leaflet-control-layers,
#public-map .leaflet-control-layers-expanded {
  min-width: 250px !important;
  background: rgba(255,255,255,0.98) !important;
  border: 1px solid rgba(15, 23, 42, 0.16) !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

#public-map .leaflet-control-layers-list {
  display: block !important;
}

#public-map .leaflet-control-layers label {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 6px 0 !important;
  white-space: nowrap !important;
}


/* =========================================================
   RESULTADOS - ORDEN FINAL DE CAPAS
   ========================================================= */

#public-map .leaflet-distritosResultadosPane-pane {
  z-index: 320 !important;
  pointer-events: none !important;
}

#public-map .leaflet-overlay-pane {
  z-index: 400 !important;
}

#public-map .leaflet-marker-pane {
  z-index: 700 !important;
}

#public-map .leaflet-puntosResultadosPane-pane {
  z-index: 780 !important;
}

#public-map .leaflet-tooltip-pane {
  z-index: 790 !important;
}

#public-map .leaflet-popup-pane {
  z-index: 800 !important;
}

#public-map .public-point-marker,
#public-map .marker-cluster,
#public-map .leaflet-interactive {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#public-map .leaflet-control-layers,
#public-map .leaflet-control-layers-expanded {
  min-width: 260px !important;
  max-width: 430px !important;
  background: rgba(255,255,255,0.98) !important;
  border: 1px solid rgba(15, 23, 42, 0.16) !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

#public-map .leaflet-control-layers-list {
  display: block !important;
}

#public-map .leaflet-control-layers label {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 6px 0 !important;
  white-space: nowrap !important;
}


/* =========================================================
   RESULTADOS - MODO EXCLUYENTE CLUSTER/PUNTOS
   ========================================================= */

#public-map .leaflet-distritosResultadosPane-pane {
  z-index: 320 !important;
  pointer-events: none !important;
}

#public-map .leaflet-marker-pane {
  z-index: 700 !important;
}

#public-map .leaflet-puntosResultadosPane-pane {
  z-index: 780 !important;
}

#public-map .leaflet-tooltip-pane {
  z-index: 790 !important;
}

#public-map .leaflet-popup-pane {
  z-index: 800 !important;
}

#public-map .public-point-marker,
#public-map .marker-cluster,
#public-map .leaflet-interactive {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#public-map .leaflet-control-layers,
#public-map .leaflet-control-layers-expanded {
  min-width: 260px !important;
  max-width: 430px !important;
  background: rgba(255,255,255,0.98) !important;
  border: 1px solid rgba(15, 23, 42, 0.16) !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

#public-map .leaflet-control-layers-list {
  display: block !important;
}

#public-map .leaflet-control-layers label {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 6px 0 !important;
  white-space: nowrap !important;
}


/* =========================================================
   RESULTADOS - CLUSTER LIMPIO FINAL
   ========================================================= */

#public-map .leaflet-distritosResultadosPane-pane {
  z-index: 320 !important;
  pointer-events: none !important;
}

#public-map .leaflet-marker-pane {
  z-index: 700 !important;
}

#public-map .leaflet-tooltip-pane {
  z-index: 750 !important;
}

#public-map .leaflet-popup-pane {
  z-index: 800 !important;
}

#public-map .public-point-marker,
#public-map .marker-cluster {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#public-map .leaflet-control-layers,
#public-map .leaflet-control-layers-expanded {
  min-width: 260px !important;
  background: rgba(255,255,255,0.98) !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18) !important;
  font-weight: 800 !important;
}

#public-map .leaflet-control-layers-list {
  display: block !important;
}


/* =========================================================
   RESULTADOS - LIMPIEZA FINAL BASADA EN CLUSTER ORIGINAL
   ========================================================= */

/* Quitar cápsula/mancha verde vacía */
.results-badge,
.results-shell .badge:empty,
.results-shell .pill:empty,
.results-shell .kicker:empty,
.results-shell .eyebrow:empty,
.results-shell .panel-kicker:empty,
.results-shell .results-kicker:empty,
.results-shell .section-kicker:empty {
  display: none !important;
}

/* Título menos grande */
.results-shell h1,
.results-header h1,
.results-hero h1,
.public-results h1 {
  font-size: clamp(28px, 2.7vw, 40px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
}

/* Mapa más alto */
.public-results-map,
#public-map {
  height: calc(100vh - 230px) !important;
  min-height: 660px !important;
  max-height: none !important;
}

/* Distritos debajo */
#public-map .leaflet-distritosResultadosPane-pane {
  z-index: 320 !important;
  pointer-events: none !important;
}

/* Clusters y puntos arriba */
#public-map .leaflet-marker-pane {
  z-index: 700 !important;
}

#public-map .leaflet-tooltip-pane {
  z-index: 750 !important;
}

#public-map .leaflet-popup-pane {
  z-index: 800 !important;
}

#public-map .public-point-marker,
#public-map .theme-cluster,
#public-map .marker-cluster {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Control de capas */
#public-map .leaflet-control-layers,
#public-map .leaflet-control-layers-expanded {
  min-width: 260px !important;
  max-width: 430px !important;
  background: rgba(255,255,255,0.98) !important;
  border: 1px solid rgba(15, 23, 42, 0.16) !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

#public-map .leaflet-control-layers-list {
  display: block !important;
}

#public-map .leaflet-control-layers label {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 6px 0 !important;
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  .public-results-map,
  #public-map {
    height: 72vh !important;
    min-height: 520px !important;
  }
}


/* =========================================================
   RESULTADOS - CLUSTER GLOBAL POR AGREGACIÓN ESPACIAL
   ========================================================= */

.results-badge,
.results-shell .badge:empty,
.results-shell .pill:empty,
.results-shell .kicker:empty,
.results-shell .eyebrow:empty,
.results-shell .panel-kicker:empty,
.results-shell .results-kicker:empty,
.results-shell .section-kicker:empty {
  display: none !important;
}

.results-shell h1,
.results-header h1,
.results-hero h1,
.public-results h1 {
  font-size: clamp(28px, 2.7vw, 40px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
}

.public-results-map,
#public-map {
  height: calc(100vh - 230px) !important;
  min-height: 660px !important;
  max-height: none !important;
}

#public-map .leaflet-distritosResultadosPane-pane {
  z-index: 320 !important;
  pointer-events: none !important;
}

#public-map .leaflet-overlay-pane {
  z-index: 400 !important;
}

#public-map .leaflet-marker-pane {
  z-index: 700 !important;
}

#public-map .leaflet-tooltip-pane {
  z-index: 750 !important;
}

#public-map .leaflet-popup-pane {
  z-index: 800 !important;
}

#public-map .leaflet-marker-icon.public-point-marker {
  background: transparent !important;
  border: none !important;
}

#public-map .leaflet-marker-icon.public-point-marker span {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 999px !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.35) !important;
}

#public-map .leaflet-marker-icon.theme-cluster {
  background: transparent !important;
  border: none !important;
}

#public-map .theme-cluster .cluster-bubble {
  width: 52px !important;
  height: 52px !important;
  border-radius: 999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 5px solid rgba(255,255,255,0.92) !important;
  box-shadow: 0 5px 18px rgba(0,0,0,0.30) !important;
}

#public-map .theme-cluster .cluster-bubble strong {
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.45) !important;
}

#public-map .public-point-marker,
#public-map .theme-cluster,
#public-map .marker-cluster {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#public-map .leaflet-control-layers,
#public-map .leaflet-control-layers-expanded {
  min-width: 260px !important;
  max-width: 430px !important;
  background: rgba(255,255,255,0.98) !important;
  border: 1px solid rgba(15,23,42,0.16) !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  box-shadow: 0 14px 32px rgba(15,23,42,0.18) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

#public-map .leaflet-control-layers-list {
  display: block !important;
}

#public-map .leaflet-control-layers label {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 6px 0 !important;
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  .public-results-map,
  #public-map {
    height: 72vh !important;
    min-height: 520px !important;
  }
}


/* =========================================================
   HOME INSTITUCIONAL DINÁMICA - PLANIFICO MI MUNICIPIO
   Basado en Manual de Identidad Visual GAMS
   Verde: #137132 | Gris: #5C5B5F | Blanco: #FFFFFF
   ========================================================= */

:root {
  --gams-green: #137132;
  --gams-green-dark: #07572a;
  --gams-green-soft: #e8f5ee;
  --gams-gray: #5c5b5f;
  --gams-text: #162033;
  --gams-gold: #db9900;
  --gams-gold-soft: #fff4cf;
  --gams-border: rgba(19, 113, 50, 0.16);
  --gams-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

.home-gams-page {
  width: min(1600px, calc(100% - 56px));
  margin: 0 auto;
  padding: 36px 0 42px;
  color: var(--gams-text);
}

.gams-hero {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 22%, rgba(19,113,50,0.11), transparent 30%),
    radial-gradient(circle at 75% 18%, rgba(219,153,0,0.14), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f7fbf8 48%, #ecf7f1 100%);
  border: 1px solid rgba(19, 113, 50, 0.14);
  box-shadow: var(--gams-shadow);
  padding: 44px;
}

.gams-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gams-ring {
  position: absolute;
  border: 2px solid rgba(19,113,50,0.10);
  border-radius: 999px;
}

.gams-ring-1 {
  width: 420px;
  height: 420px;
  left: -190px;
  bottom: -230px;
  box-shadow: 0 0 0 18px rgba(19,113,50,0.04), 0 0 0 38px rgba(19,113,50,0.025);
}

.gams-ring-2 {
  width: 280px;
  height: 280px;
  top: -150px;
  right: 32%;
  box-shadow: 0 0 0 14px rgba(19,113,50,0.035), 0 0 0 30px rgba(19,113,50,0.02);
}

.gams-dot-pattern {
  position: absolute;
  right: 34px;
  top: 32px;
  width: 92px;
  height: 92px;
  opacity: .18;
  background-image: radial-gradient(var(--gams-gray) 2px, transparent 2px);
  background-size: 13px 13px;
}

.gams-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(520px, 1.2fr) minmax(260px, .55fr);
  gap: 34px;
  align-items: center;
}

.gams-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--gams-green-soft);
  color: var(--gams-green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .035em;
}

.gams-hero-copy h1 {
  margin: 18px 0 16px;
  font-family: Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(44px, 4.6vw, 78px);
  line-height: .96;
  letter-spacing: -.055em;
  color: #172033;
}

.gams-hero-copy h1 strong {
  display: block;
  color: var(--gams-green);
}

.gams-hero-copy p {
  max-width: 700px;
  margin: 0;
  color: #334155;
  font-size: 18px;
  line-height: 1.45;
}

.gams-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.gams-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 13px;
  text-decoration: none;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.gams-btn:hover {
  transform: translateY(-2px);
}

.gams-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--gams-green), var(--gams-green-dark));
  box-shadow: 0 15px 28px rgba(19,113,50,.24);
}

.gams-btn-outline {
  color: var(--gams-green);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(19,113,50,.36);
}

.gams-security-note {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gams-gray);
  font-weight: 700;
}

.gams-map-visual {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}

.gams-map-card {
  width: min(620px, 100%);
  height: 390px;
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgba(19,113,50,.08), rgba(219,153,0,.08)),
    repeating-linear-gradient(35deg, rgba(19,113,50,.06) 0 1px, transparent 1px 22px);
  border: 1px solid rgba(19,113,50,.14);
  box-shadow: 0 28px 55px rgba(15,23,42,.15);
  position: relative;
  transform: perspective(900px) rotateX(9deg) rotateZ(-2deg);
}

.gams-map-shape {
  position: absolute;
  inset: 52px 62px;
  border-radius: 36% 44% 38% 48%;
  background:
    radial-gradient(circle at 20% 30%, rgba(19,113,50,.22), transparent 18%),
    radial-gradient(circle at 70% 58%, rgba(19,113,50,.18), transparent 20%),
    linear-gradient(135deg, #eef8f2, #dceee5);
  border: 8px solid #ffffff;
  outline: 2px solid rgba(19,113,50,.22);
  box-shadow: 0 18px 24px rgba(15,23,42,.15);
  overflow: hidden;
}

.gams-map-road,
.gams-map-river {
  position: absolute;
  border-radius: 999px;
  opacity: .78;
}

.gams-map-road {
  height: 7px;
  background: rgba(92,91,95,.23);
}

.road-1 {
  width: 84%;
  left: 8%;
  top: 42%;
  transform: rotate(-16deg);
}

.road-2 {
  width: 76%;
  left: 12%;
  top: 62%;
  transform: rotate(19deg);
}

.gams-map-river {
  width: 86%;
  height: 12px;
  left: 8%;
  top: 50%;
  background: rgba(56, 189, 248, .28);
  transform: rotate(-4deg);
}

.pin {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 999px 999px 999px 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  border: 4px solid #fff;
  box-shadow: 0 14px 22px rgba(15,23,42,.25);
  transform: rotate(-45deg);
  animation: pinFloat 3.4s ease-in-out infinite;
}

.pin > * {
  transform: rotate(45deg);
}

.pin-green { background: var(--gams-green); left: 17%; top: 10%; }
.pin-blue { background: #0ea5e9; left: 48%; top: 42%; animation-delay: .3s; }
.pin-gold { background: var(--gams-gold); right: 14%; bottom: 22%; animation-delay: .7s; }
.pin-orange { background: #f59e0b; left: 55%; top: 8%; animation-delay: .5s; }
.pin-gray { background: var(--gams-gray); right: 22%; top: 26%; animation-delay: .9s; }

@keyframes pinFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

.gams-floating-card {
  position: absolute;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(19,113,50,.14);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 18px 34px rgba(15,23,42,.12);
}

.gams-floating-card b {
  display: block;
  color: var(--gams-green);
  font-size: 14px;
}

.gams-floating-card span {
  display: block;
  color: var(--gams-gray);
  font-size: 12px;
  margin-top: 3px;
}

.card-one { left: 10px; bottom: 32px; }
.card-two { right: 10px; top: 34px; }

.gams-kpi-stack {
  display: grid;
  gap: 15px;
}

.gams-kpi-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  padding: 17px;
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(19,113,50,.14);
  box-shadow: 0 16px 34px rgba(15,23,42,.10);
  border-right: 6px solid var(--gams-green);
}

.gams-kpi-gold {
  border-right-color: var(--gams-gold);
}

.gams-kpi-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gams-green);
  color: #fff;
  font-size: 24px;
}

.gams-kpi-gold .gams-kpi-icon {
  background: var(--gams-gold);
}

.gams-kpi-card span {
  display: block;
  color: var(--gams-gray);
  font-weight: 800;
  font-size: 13px;
}

.gams-kpi-card strong {
  display: block;
  color: var(--gams-green);
  font-size: 30px;
  line-height: 1;
  margin-top: 4px;
}

.gams-kpi-card small {
  display: block;
  color: #64748b;
  margin-top: 3px;
}

.gams-module-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 18px;
}

.gams-module-card {
  min-height: 166px;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(19,113,50,.12);
  box-shadow: 0 14px 30px rgba(15,23,42,.08);
  text-decoration: none;
  color: var(--gams-text);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.gams-module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px rgba(15,23,42,.13);
  border-color: rgba(19,113,50,.30);
}

.module-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gams-green);
  color: #fff;
  font-size: 24px;
  margin-bottom: 14px;
}

.gams-module-card h2 {
  margin: 0 0 7px;
  font-size: 20px;
}

.gams-module-card p {
  margin: 0 0 12px;
  color: #475569;
  line-height: 1.35;
}

.gams-module-card b {
  color: var(--gams-green);
  font-size: 14px;
}

.gams-dashboard-preview {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
}

.gams-preview-card {
  background: #fff;
  border-radius: 26px;
  border: 1px solid rgba(19,113,50,.12);
  box-shadow: 0 16px 36px rgba(15,23,42,.08);
  padding: 22px;
}

.preview-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.preview-title span {
  display: block;
  color: var(--gams-green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
}

.preview-title h2 {
  margin: 4px 0 0;
  font-size: 24px;
}

.preview-title a {
  color: var(--gams-green);
  text-decoration: none;
  font-weight: 900;
}

.mini-map {
  height: 230px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(rgba(255,255,255,.1), rgba(255,255,255,.1)),
    repeating-linear-gradient(0deg, rgba(92,91,95,.08) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(92,91,95,.08) 0 1px, transparent 1px 28px),
    #eef5f1;
  border: 1px solid rgba(19,113,50,.14);
}

.mini-map::after {
  content: "";
  position: absolute;
  inset: 34px 44px;
  border: 3px solid rgba(19,113,50,.72);
  border-radius: 42% 38% 45% 36%;
}

.mini-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 3px solid #fff;
  box-shadow: 0 5px 13px rgba(15,23,42,.28);
  z-index: 3;
}

.mini-pin.green { background: var(--gams-green); left: 22%; top: 46%; }
.mini-pin.blue { background: #0ea5e9; left: 52%; top: 37%; }
.mini-pin.gold { background: var(--gams-gold); right: 24%; top: 55%; }
.mini-pin.red { background: #ef4444; left: 63%; bottom: 24%; }

.mini-cluster {
  position: absolute;
  left: 42%;
  top: 53%;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--gams-green) 0 38%, #0ea5e9 38% 67%, var(--gams-gold) 67% 100%);
  color: #fff;
  border: 5px solid #fff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(15,23,42,.28);
  z-index: 4;
}

.mini-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.mini-summary-grid div {
  padding: 14px;
  border-radius: 16px;
  background: #f8fbf9;
  border: 1px solid rgba(19,113,50,.10);
}

.mini-summary-grid b {
  display: block;
  color: var(--gams-green);
  font-size: 24px;
}

.mini-summary-grid span {
  display: block;
  color: var(--gams-gray);
  font-size: 13px;
  font-weight: 700;
}

.timeline-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  position: relative;
}

.timeline-step {
  text-align: center;
  position: relative;
}

.timeline-step::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -50%;
  width: 100%;
  height: 3px;
  background: #d7ded9;
  z-index: 0;
}

.timeline-step:first-child::before {
  display: none;
}

.timeline-step i {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  border: 3px solid #cfd8d3;
  color: #94a3b8;
  font-style: normal;
  font-weight: 900;
}

.timeline-step.done i,
.timeline-step.active i {
  border-color: var(--gams-green);
  color: var(--gams-green);
}

.timeline-step.active i {
  border-color: var(--gams-gold);
  color: var(--gams-gold);
}

.timeline-step b {
  display: block;
  font-size: 14px;
}

.timeline-step span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.timeline-callout {
  margin-top: 22px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--gams-green-soft), #ffffff);
  border: 1px solid rgba(19,113,50,.14);
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: center;
}

.timeline-callout span {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--gams-green);
  color: #fff;
  display: grid;
  place-items: center;
}

.timeline-callout p {
  margin: 0;
  color: #334155;
  font-weight: 700;
}

.timeline-callout a {
  color: var(--gams-green);
  font-weight: 900;
  text-decoration: none;
  border: 1px solid rgba(19,113,50,.30);
  padding: 11px 14px;
  border-radius: 12px;
  background: #fff;
}

@media (max-width: 1280px) {
  .gams-hero-grid {
    grid-template-columns: 1fr;
  }

  .gams-map-visual {
    min-height: 360px;
  }

  .gams-kpi-stack {
    grid-template-columns: repeat(2, 1fr);
  }

  .gams-module-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gams-dashboard-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .home-gams-page {
    width: min(100% - 24px, 1600px);
    padding-top: 22px;
  }

  .gams-hero {
    padding: 26px;
    border-radius: 24px;
  }

  .gams-hero-copy h1 {
    font-size: 42px;
  }

  .gams-kpi-stack,
  .gams-module-grid,
  .mini-summary-grid,
  .timeline-flow {
    grid-template-columns: 1fr;
  }

  .timeline-step::before {
    display: none;
  }

  .timeline-callout {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   ENCABEZADO INSTITUCIONAL DINÁMICO - GAMS SACABA
   Verde institucional: #137132
   Gris institucional: #5C5B5F
   ========================================================= */

:root {
  --gams-green: #137132;
  --gams-green-dark: #07572a;
  --gams-green-soft: #e8f5ee;
  --gams-gray: #5c5b5f;
  --gams-gold: #db9900;
  --gams-text: #172033;
  --gams-header-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

/* Contenedor general del encabezado */
.site-topbar,
.topbar,
.gams-modern-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.94)) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(19, 113, 50, 0.14) !important;
  box-shadow: var(--gams-header-shadow);
}

/* Línea institucional inferior */
.site-topbar::after,
.topbar::after,
.gams-modern-header::after {
  content: "";
  display: block;
  height: 4px;
  background:
    linear-gradient(90deg,
      rgba(19,113,50,0.08) 0%,
      rgba(19,113,50,0.34) 18%,
      var(--gams-green) 48%,
      rgba(219,153,0,0.72) 74%,
      rgba(19,113,50,0.08) 100%
    );
}

/* Ancho y respiración visual */
.site-topbar-inner,
.topbar-inner,
.gams-modern-header .site-topbar-inner,
.gams-modern-header .topbar-inner {
  width: min(96vw, 1760px) !important;
  max-width: min(96vw, 1760px) !important;
  margin: 0 auto !important;
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Bloque de marca */
.site-brand,
.brand,
.brand-wrap,
.logo-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Marco dinámico del escudo */
.gams-seal-frame {
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  isolation: isolate;
}

/* Aro institucional giratorio alrededor del escudo */
.gams-seal-frame::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  background:
    conic-gradient(
      from 0deg,
      rgba(19,113,50,0.05),
      rgba(19,113,50,0.95),
      rgba(219,153,0,0.75),
      rgba(19,113,50,0.95),
      rgba(19,113,50,0.05)
    );
  z-index: -2;
  animation: gamsSealHaloSpin 7s linear infinite;
}

.gams-seal-frame::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: #ffffff;
  z-index: -1;
}

/* Escudo redondo */
.gams-rotating-seal {
  border-radius: 999px;
  transform-origin: center;
  transition:
    transform .75s cubic-bezier(.2,.8,.2,1),
    filter .25s ease,
    box-shadow .25s ease;
  filter: drop-shadow(0 8px 16px rgba(19,113,50,0.16));
}

/* Giro con interacción */
.gams-seal-frame:hover .gams-rotating-seal,
.gams-rotating-seal:hover {
  transform: rotate(360deg) scale(1.035);
  filter: drop-shadow(0 12px 24px rgba(19,113,50,0.28));
}

/* Pulso muy sutil */
.gams-rotating-seal {
  animation: gamsSealPulse 3.8s ease-in-out infinite;
}

@keyframes gamsSealHaloSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes gamsSealPulse {
  0%, 100% {
    scale: 1;
  }
  50% {
    scale: 1.018;
  }
}

/* Accesos directos / navegación */
.gams-nav-link,
.site-topbar nav a,
.topbar nav a,
.site-nav a,
.nav a {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px !important;
  border-radius: 999px;
  color: var(--gams-text) !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  line-height: 1;
  transition:
    background .18s ease,
    transform .18s ease,
    color .18s ease,
    box-shadow .18s ease;
}

/* Icono del acceso */
.gams-nav-ico {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--gams-green);
  background:
    linear-gradient(135deg, rgba(19,113,50,0.12), rgba(19,113,50,0.04));
  border: 1px solid rgba(19,113,50,0.18);
  font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.50);
}

/* Hover institucional */
.gams-nav-link:hover,
.site-topbar nav a:hover,
.topbar nav a:hover,
.site-nav a:hover,
.nav a:hover {
  color: var(--gams-green) !important;
  background: rgba(19,113,50,0.08) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(19,113,50,0.10);
}

.gams-nav-link:hover .gams-nav-ico,
.site-topbar nav a:hover .gams-nav-ico,
.topbar nav a:hover .gams-nav-ico,
.site-nav a:hover .gams-nav-ico,
.nav a:hover .gams-nav-ico {
  background: var(--gams-green);
  color: #ffffff;
}

/* Estado activo */
.gams-nav-link.is-active,
.site-topbar nav a.is-active,
.topbar nav a.is-active,
.site-nav a.is-active,
.nav a.is-active {
  color: var(--gams-green) !important;
  background: var(--gams-green-soft) !important;
  box-shadow: inset 0 0 0 1px rgba(19,113,50,0.14);
}

.gams-nav-link.is-active::after,
.site-topbar nav a.is-active::after,
.topbar nav a.is-active::after,
.site-nav a.is-active::after,
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -8px;
  height: 4px;
  border-radius: 999px;
  background: var(--gams-green);
}

/* Botón principal */
.gams-register-btn,
a[href*="/participa/"].gams-register-btn,
a[href*="/participa/"]:has(.gams-nav-ico) {
  color: #ffffff !important;
  background:
    linear-gradient(135deg, var(--gams-green), var(--gams-green-dark)) !important;
  border: 1px solid rgba(19,113,50,0.18) !important;
  box-shadow:
    0 16px 32px rgba(19,113,50,0.24),
    inset 0 1px 0 rgba(255,255,255,0.18) !important;
  padding-inline: 20px !important;
  overflow: hidden;
}

.gams-register-btn .gams-nav-ico {
  width: 26px;
  height: 26px;
  color: #ffffff;
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.18);
}

.gams-register-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  translate: -120% 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.24), transparent);
  transition: translate .55s ease;
}

.gams-register-btn:hover::before {
  translate: 120% 0;
}

.gams-register-btn:hover {
  color: #ffffff !important;
  transform: translateY(-3px);
}

/* Ajuste del título de plataforma en el header */
.site-title,
.brand-title,
.platform-title,
.header-title {
  color: var(--gams-text) !important;
  font-weight: 900 !important;
}

.site-subtitle,
.brand-subtitle,
.platform-subtitle,
.header-subtitle {
  color: #475569 !important;
}

/* Accesibilidad: reducir animación si el sistema lo solicita */
@media (prefers-reduced-motion: reduce) {
  .gams-seal-frame::before,
  .gams-rotating-seal {
    animation: none !important;
  }

  .gams-seal-frame:hover .gams-rotating-seal,
  .gams-rotating-seal:hover {
    transform: none !important;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .site-topbar-inner,
  .topbar-inner,
  .gams-modern-header .site-topbar-inner,
  .gams-modern-header .topbar-inner {
    min-height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .gams-nav-link,
  .site-topbar nav a,
  .topbar nav a,
  .site-nav a,
  .nav a {
    min-height: 38px;
    font-size: 14px;
  }

  .gams-nav-ico {
    width: 25px;
    height: 25px;
    font-size: 13px;
  }
}


/* =========================================================
   HEADER - LOGO INSTITUCIONAL DINÁMICO
   ========================================================= */

.site-brand-split {
  display: flex !important;
  align-items: center !important;
  gap: 13px !important;
  text-decoration: none !important;
}

/* Escudo redondo recortado desde el logo horizontal */
.site-seal-spin {
  position: relative;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  isolation: isolate;
}

.site-seal-spin::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  background: conic-gradient(
    from 0deg,
    rgba(19,113,50,0.05),
    #137132,
    #db9900,
    #137132,
    rgba(19,113,50,0.05)
  );
  z-index: -2;
  animation: gamsSealRingSpin 7s linear infinite;
}

.site-seal-spin::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: #ffffff;
  z-index: -1;
}

.site-seal-img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  object-position: left center;
  border-radius: 999px;
  filter: drop-shadow(0 8px 16px rgba(19,113,50,0.18));
  transition: transform .75s cubic-bezier(.2,.8,.2,1), filter .25s ease;
}

/* Giro del escudo al pasar el mouse */
.site-seal-spin:hover .site-seal-img,
.site-brand-split:hover .site-seal-img {
  transform: rotate(360deg) scale(1.045);
  filter: drop-shadow(0 12px 24px rgba(19,113,50,0.32));
}

/* Movimiento vivo pero sutil */
.site-seal-img {
  animation: gamsSealPulse 3.8s ease-in-out infinite;
}

@keyframes gamsSealRingSpin {
  to { transform: rotate(360deg); }
}

@keyframes gamsSealPulse {
  0%, 100% { scale: 1; }
  50% { scale: 1.018; }
}

/* Logotipo horizontal fijo */
.site-wordmark-wrap {
  display: flex;
  align-items: center;
  max-width: 245px;
  overflow: hidden;
}

.site-wordmark-logo {
  height: 66px !important;
  width: auto !important;
  max-width: 245px !important;
  object-fit: contain !important;
}

/* =========================================================
   HEADER - ACCESOS DIRECTOS MÁS DINÁMICOS
   ========================================================= */

.site-topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.96) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(19,113,50,0.14) !important;
  box-shadow: 0 14px 34px rgba(15,23,42,0.08);
}

.site-topbar::after {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(
    90deg,
    rgba(19,113,50,0.08),
    rgba(19,113,50,0.42),
    #137132,
    rgba(219,153,0,0.75),
    rgba(19,113,50,0.08)
  );
}

.site-topbar-inner {
  width: min(96vw, 1760px) !important;
  max-width: min(96vw, 1760px) !important;
  min-height: 86px;
  margin: 0 auto !important;
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Navegación */
.site-nav,
.site-topbar nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.site-nav a,
.site-topbar nav a {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px !important;
  border-radius: 999px;
  color: #172033 !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.site-nav a:hover,
.site-topbar nav a:hover {
  color: #137132 !important;
  background: rgba(19,113,50,0.08) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(19,113,50,0.10);
}

/* Íconos de accesos si ya están como emoji/texto */
.site-nav a::first-letter,
.site-topbar nav a::first-letter {
  color: #137132;
}

/* Botón de aporte */
.site-nav a[href*="participa"],
.site-topbar nav a[href*="participa"] {
  color: #ffffff !important;
  background: linear-gradient(135deg, #137132, #07572a) !important;
  padding-inline: 22px !important;
  box-shadow:
    0 16px 32px rgba(19,113,50,0.24),
    inset 0 1px 0 rgba(255,255,255,0.18) !important;
  overflow: hidden;
}

.site-nav a[href*="participa"]:hover,
.site-topbar nav a[href*="participa"]:hover {
  color: #ffffff !important;
  transform: translateY(-3px);
}

.site-nav a[href*="participa"]::after,
.site-topbar nav a[href*="participa"]::after {
  content: "";
  position: absolute;
  inset: 0;
  translate: -120% 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.24), transparent);
  transition: translate .55s ease;
}

.site-nav a[href*="participa"]:hover::after,
.site-topbar nav a[href*="participa"]:hover::after {
  translate: 120% 0;
}

/* Título plataforma */
.site-title,
.brand-title,
.platform-title,
.header-title {
  color: #172033 !important;
  font-weight: 900 !important;
}

.site-subtitle,
.brand-subtitle,
.platform-subtitle,
.header-subtitle {
  color: #475569 !important;
}

/* Responsive */
@media (max-width: 980px) {
  .site-topbar-inner {
    min-height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .site-seal-spin {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .site-seal-img {
    width: 56px;
    height: 56px;
  }

  .site-wordmark-wrap {
    max-width: 205px;
  }

  .site-wordmark-logo {
    height: 56px !important;
    max-width: 205px !important;
  }

  .site-nav,
  .site-topbar nav {
    flex-wrap: wrap;
    width: 100%;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-seal-spin::before,
  .site-seal-img {
    animation: none !important;
  }

  .site-seal-spin:hover .site-seal-img,
  .site-brand-split:hover .site-seal-img {
    transform: none !important;
  }
}


/* =========================================================
   HEADER FINAL - MARCA SACABA DINÁMICA
   ========================================================= */

:root {
  --brand-green: #137132;
  --brand-green-dark: #07572a;
  --brand-green-soft: #e8f5ee;
  --brand-gray: #5c5b5f;
  --brand-gold: #db9900;
  --brand-text: #172033;
}

.site-topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(19,113,50,.14) !important;
  box-shadow: 0 14px 34px rgba(15,23,42,.08) !important;
}

.site-topbar::after {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(
    90deg,
    rgba(19,113,50,.08),
    rgba(19,113,50,.42),
    var(--brand-green),
    rgba(219,153,0,.75),
    rgba(19,113,50,.08)
  );
}

.site-topbar-inner {
  width: min(96vw, 1760px) !important;
  max-width: min(96vw, 1760px) !important;
  min-height: 86px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 22px !important;
}

/* Marca separada: escudo + wordmark */
.site-brand-refined {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  text-decoration: none !important;
  flex: 0 0 auto !important;
}

.brand-seal-orbit {
  position: relative;
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  isolation: isolate;
}

.brand-seal-orbit::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  background: conic-gradient(
    from 0deg,
    rgba(19,113,50,.04),
    var(--brand-green),
    var(--brand-gold),
    var(--brand-green),
    rgba(19,113,50,.04)
  );
  z-index: -2;
  animation: brandSealOrbit 7s linear infinite;
}

.brand-seal-orbit::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: #ffffff;
  z-index: -1;
}

.brand-seal-img {
  width: 66px !important;
  height: 66px !important;
  object-fit: cover !important;
  border-radius: 999px !important;
  filter: drop-shadow(0 8px 16px rgba(19,113,50,.20));
  animation: brandSealPulse 3.8s ease-in-out infinite;
  transition: transform .75s cubic-bezier(.2,.8,.2,1), filter .25s ease;
}

.site-brand-refined:hover .brand-seal-img {
  transform: rotate(360deg) scale(1.045);
  filter: drop-shadow(0 12px 24px rgba(19,113,50,.34));
}

@keyframes brandSealOrbit {
  to { transform: rotate(360deg); }
}

@keyframes brandSealPulse {
  0%, 100% { scale: 1; }
  50% { scale: 1.018; }
}

.brand-wordmark-wrap {
  display: flex !important;
  align-items: center !important;
  max-width: 250px !important;
  overflow: hidden !important;
}

.brand-wordmark-img {
  height: 64px !important;
  width: auto !important;
  max-width: 250px !important;
  object-fit: contain !important;
}

/* Título plataforma */
.site-title,
.platform-title,
.brand-title,
.site-topbar h1,
.site-topbar .title {
  color: var(--brand-text) !important;
  font-weight: 900 !important;
}

.site-subtitle,
.platform-subtitle,
.brand-subtitle,
.site-topbar small,
.site-topbar p {
  color: #475569 !important;
}

/* Navegación dinámica */
.site-nav,
.site-topbar nav {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-left: auto !important;
}

.site-nav a,
.site-topbar nav a {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 42px !important;
  padding: 9px 13px !important;
  border-radius: 999px !important;
  color: var(--brand-text) !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  line-height: 1 !important;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}

.site-nav a:hover,
.site-topbar nav a:hover {
  color: var(--brand-green) !important;
  background: rgba(19,113,50,.08) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 18px rgba(19,113,50,.10) !important;
}

/* Activo según atributo aria/current o clase */
.site-nav a.active,
.site-topbar nav a.active,
.site-nav a.is-active,
.site-topbar nav a.is-active,
.site-nav a[aria-current="page"],
.site-topbar nav a[aria-current="page"] {
  color: var(--brand-green) !important;
  background: var(--brand-green-soft) !important;
  box-shadow: inset 0 0 0 1px rgba(19,113,50,.14) !important;
}

/* Botón registrar */
.site-nav a[href*="participa"],
.site-topbar nav a[href*="participa"] {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark)) !important;
  padding-inline: 22px !important;
  box-shadow: 0 16px 32px rgba(19,113,50,.24), inset 0 1px 0 rgba(255,255,255,.18) !important;
  overflow: hidden !important;
}

.site-nav a[href*="participa"]::after,
.site-topbar nav a[href*="participa"]::after {
  content: "";
  position: absolute;
  inset: 0;
  translate: -120% 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.24), transparent);
  transition: translate .55s ease;
}

.site-nav a[href*="participa"]:hover::after,
.site-topbar nav a[href*="participa"]:hover::after {
  translate: 120% 0;
}

.site-nav a[href*="participa"]:hover,
.site-topbar nav a[href*="participa"]:hover {
  color: #ffffff !important;
  transform: translateY(-3px) !important;
}

/* Responsive */
@media (max-width: 980px) {
  .site-topbar-inner {
    min-height: auto !important;
    padding: 12px 0 !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
  }

  .brand-seal-orbit,
  .brand-seal-img {
    width: 56px !important;
    height: 56px !important;
    flex-basis: 56px !important;
  }

  .brand-wordmark-wrap {
    max-width: 210px !important;
  }

  .brand-wordmark-img {
    height: 56px !important;
    max-width: 210px !important;
  }

  .site-nav,
  .site-topbar nav {
    width: 100% !important;
    margin-left: 0 !important;
    flex-wrap: wrap !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-seal-orbit::before,
  .brand-seal-img {
    animation: none !important;
  }

  .site-brand-refined:hover .brand-seal-img {
    transform: none !important;
  }
}


/* =========================================================
   CRONOGRAMA - CONTROLES ENTRE CALENDARIO Y GANTT
   ========================================================= */

.controls-after-calendar {
  margin: 24px 0 22px !important;
  padding: 18px 20px !important;
  border-radius: 24px !important;
  background:
    linear-gradient(135deg, rgba(19,113,50,0.08), rgba(255,255,255,0.94)) !important;
  border: 1px solid rgba(19,113,50,0.14) !important;
  box-shadow: 0 14px 32px rgba(15,23,42,0.08) !important;
}

.controls-after-calendar .filters,
.controls-after-calendar .view-buttons {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.controls-after-calendar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
}

@media (max-width: 900px) {
  .controls-after-calendar {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .controls-after-calendar .filters,
  .controls-after-calendar .view-buttons {
    justify-content: flex-start !important;
  }
}


/* =========================================================
   HOME - IMAGEN CENTRAL HERO PARTICIPATIVA
   ========================================================= */

.gams-hero-image-visual {
  position: relative;
  min-height: 560px !important;
  display: grid;
  place-items: center;
}

.gams-hero-image-card {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 3 / 4;
  border-radius: 34px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(19,113,50,0.18);
  box-shadow:
    0 30px 65px rgba(15,23,42,0.18),
    0 0 0 10px rgba(19,113,50,0.04);
  transform: perspective(1000px) rotateX(2deg) rotateZ(-1deg);
  transition: transform .25s ease, box-shadow .25s ease;
}

.gams-hero-image-card:hover {
  transform: perspective(1000px) rotateX(0deg) rotateZ(0deg) translateY(-4px);
  box-shadow:
    0 38px 76px rgba(15,23,42,0.22),
    0 0 0 10px rgba(19,113,50,0.06);
}

.gams-hero-main-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Brillo institucional sutil encima de la imagen */
.gams-hero-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16), transparent 38%),
    radial-gradient(circle at 78% 12%, rgba(219,153,0,0.16), transparent 28%);
}

/* Reubicar tarjetas flotantes sobre la imagen */
.gams-hero-image-visual .card-one {
  left: 4%;
  bottom: 7%;
}

.gams-hero-image-visual .card-two {
  right: 4%;
  top: 7%;
}

/* En esta versión ya no se usa el mapa CSS anterior */
.gams-hero-image-visual .gams-map-card,
.gams-hero-image-visual .gams-map-shape {
  display: none !important;
}

@media (max-width: 1280px) {
  .gams-hero-image-visual {
    min-height: 520px !important;
  }

  .gams-hero-image-card {
    width: min(520px, 100%);
  }
}

@media (max-width: 760px) {
  .gams-hero-image-visual {
    min-height: auto !important;
    padding: 18px 0;
  }

  .gams-hero-image-card {
    width: min(100%, 430px);
    border-radius: 24px;
  }

  .gams-hero-image-visual .gams-floating-card {
    position: relative;
    inset: auto;
    margin-top: 12px;
    width: 100%;
  }
}


/* =========================================================
   HOME - REEMPLAZO REAL DEL MAPA CENTRAL POR IMAGEN
   ========================================================= */

.gams-hero-image-visual {
  position: relative !important;
  min-height: 620px !important;
  display: grid !important;
  place-items: center !important;
}

.gams-hero-image-card {
  position: relative !important;
  width: min(560px, 100%) !important;
  aspect-ratio: 3 / 4 !important;
  border-radius: 34px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid rgba(19,113,50,0.18) !important;
  box-shadow:
    0 30px 65px rgba(15,23,42,0.18),
    0 0 0 10px rgba(19,113,50,0.04) !important;
}

.gams-hero-main-image {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
}

.gams-hero-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), transparent 38%),
    radial-gradient(circle at 78% 12%, rgba(219,153,0,0.14), transparent 28%);
}

.gams-hero-image-visual .card-one {
  left: 2% !important;
  bottom: 7% !important;
}

.gams-hero-image-visual .card-two {
  right: 2% !important;
  top: 7% !important;
}

/* Ocultar cualquier resto del mapa CSS anterior */
.gams-hero-image-visual .gams-map-card,
.gams-hero-image-visual .gams-map-shape,
.gams-hero-image-visual .gams-map-road,
.gams-hero-image-visual .gams-map-river,
.gams-hero-image-visual .pin {
  display: none !important;
}

@media (max-width: 1280px) {
  .gams-hero-image-visual {
    min-height: 560px !important;
  }

  .gams-hero-image-card {
    width: min(520px, 100%) !important;
  }
}

@media (max-width: 760px) {
  .gams-hero-image-visual {
    min-height: auto !important;
    padding: 18px 0 !important;
  }

  .gams-hero-image-card {
    width: min(100%, 430px) !important;
    border-radius: 24px !important;
  }
}


/* =========================================================
   CRONOGRAMA - FECHA ACTUAL EN CALENDARIO
   ========================================================= */

#social-calendar-grid .is-today,
#social-calendar-grid .calendar-today {
  position: relative !important;
  border: 2px solid #137132 !important;
  background:
    linear-gradient(135deg, rgba(19,113,50,0.16), rgba(255,255,255,0.96)) !important;
  box-shadow:
    0 0 0 4px rgba(19,113,50,0.10),
    0 14px 28px rgba(19,113,50,0.18) !important;
  transform: translateY(-2px);
}

#social-calendar-grid .is-today::after,
#social-calendar-grid .calendar-today::after {
  content: "HOY";
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #137132;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
}

#social-calendar-grid .is-today::before,
#social-calendar-grid .calendar-today::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  border: 2px solid rgba(19,113,50,0.22);
  pointer-events: none;
}


/* =========================================================
   CRONOGRAMA - MARCAR FECHA ACTUAL / HOY
   ========================================================= */

#social-calendar-grid .calendar-today,
#social-calendar-grid .is-today {
  position: relative !important;
  border: 3px solid #137132 !important;
  background: linear-gradient(135deg, rgba(19,113,50,0.22), rgba(255,255,255,0.96)) !important;
  box-shadow:
    0 0 0 5px rgba(19,113,50,0.12),
    0 16px 32px rgba(19,113,50,0.20) !important;
  transform: translateY(-3px) !important;
}

#social-calendar-grid .calendar-today::after,
#social-calendar-grid .is-today::after {
  content: "HOY";
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  padding: 5px 9px;
  border-radius: 999px;
  background: #137132;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  box-shadow: 0 8px 16px rgba(19,113,50,0.24);
}

#social-calendar-grid .calendar-today > *,
#social-calendar-grid .is-today > * {
  position: relative;
  z-index: 2;
}


/* =========================================================
   CRONOGRAMA - CALENDARIO LIMPIO ÚNICO
   ========================================================= */

#social-calendar-grid .calendar-day {
  position: relative !important;
}

#social-calendar-grid .calendar-day.has-events {
  background: linear-gradient(135deg, rgba(19,113,50,0.12), rgba(255,255,255,0.98)) !important;
  border-color: rgba(19,113,50,0.28) !important;
}

#social-calendar-grid .calendar-day.calendar-today,
#social-calendar-grid .calendar-day.is-today {
  border: 3px solid #137132 !important;
  background: linear-gradient(135deg, rgba(19,113,50,0.22), rgba(255,255,255,0.96)) !important;
  box-shadow:
    0 0 0 5px rgba(19,113,50,0.12),
    0 16px 32px rgba(19,113,50,0.20) !important;
  transform: translateY(-3px) !important;
}

#social-calendar-grid .today-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 42px !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  background: #137132 !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: .06em !important;
  margin-left: auto !important;
}

#social-calendar-grid .event-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 22px !important;
  height: 22px !important;
  border-radius: 999px !important;
  background: #137132 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

#social-calendar-grid .calendar-day.selected {
  outline: 3px solid rgba(219,153,0,0.38) !important;
  outline-offset: 2px !important;
}


/* ===== Calendario socializaciones: corregir HOY superpuesto ===== */
#social-calendar-grid .calendar-day-number {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

#social-calendar-grid .day-number-value {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  font-weight: 800 !important;
}

#social-calendar-grid .calendar-day-badges {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex: 0 0 auto !important;
  margin-left: auto !important;
}

#social-calendar-grid .calendar-day-badges .today-badge,
#social-calendar-grid .calendar-day-badges .event-count {
  position: static !important;
  top: auto !important;
  right: auto !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}

#social-calendar-grid .calendar-day-badges .today-badge {
  min-width: auto !important;
  padding: 4px 10px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

#social-calendar-grid .calendar-day-badges .event-count {
  min-width: 24px !important;
  height: 24px !important;
  padding: 0 6px !important;
  line-height: 24px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

