/* ========================================================
   SIMAR Sureste — Réplica local
   Paleta original: verde #0F4740, amarillo #FFDF77, gris #F2F2F2
   ======================================================== */

:root {
  --verde:        #0F4740;
  --verde-medio:  #1a5c53;
  --verde-claro:  #2a7a6f;
  --azul:         #1a52b3;   /* acento secundario — Transparencia, banners */
  --azul-dark:    #2d3190;
  --amarillo:     #FFDF77;
  --amarillo-dark:#e6c55e;
  --gris:         #F2F2F2;
  --gris-medio:   #e0e0e0;
  --negro:        #000000;
  --texto:        #1a1a1a;
  --blanco:       #ffffff;
  --fuente:       'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--fuente);
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.6;
}

/* ── ANIMACIONES DE ENTRADA ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
/* Delays escalonados para grids */
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── NAVBAR ─────────────────────────────────────────── */
.navbar {
  background: var(--blanco);
  border-bottom: 1px solid var(--gris-medio);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.navbar-brand img { height: 52px; }

.navbar-nav .nav-link {
  color: var(--negro) !important;
  font-weight: 500;
  font-size: .95rem;
  padding: 1rem .85rem !important;
  transition: color .2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--verde) !important; }

.dropdown-menu { border: none; box-shadow: 0 8px 24px rgba(0,0,0,.1); border-radius: 10px; }
.dropdown-item { font-size: .92rem; padding: .6rem 1.2rem; }
.dropdown-item:hover { background: var(--gris); color: var(--verde); }
.dropdown-item.active { background: var(--verde); color: var(--blanco) !important; }

.btn-contacto {
  background: var(--amarillo);
  color: var(--negro) !important;
  font-weight: 700;
  border-radius: 999px;
  padding: .45rem 1.4rem !important;
  transition: background .2s, transform .15s;
}
.btn-contacto:hover { background: var(--amarillo-dark); transform: scale(1.04); }

/* ── HERO ────────────────────────────────────────────── */
.hero {
  background: var(--verde);
  color: var(--blanco);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -80px; bottom: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  left: 40%; top: -40px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,223,119,.06);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.hero h1 em { color: var(--amarillo); font-style: normal; }
.hero p { font-size: 1.05rem; opacity: .88; max-width: 560px; }

.btn-hero {
  background: var(--amarillo);
  color: var(--negro);
  font-weight: 700;
  border-radius: 999px;
  padding: .75rem 2.2rem;
  border: none;
  text-decoration: none;
  display: inline-block;
  margin-top: 2rem;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(255,223,119,.35);
}
.btn-hero:hover {
  background: var(--amarillo-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,223,119,.45);
  color: var(--negro);
}

/* ── SECCIONES ───────────────────────────────────────── */
.seccion { padding: 5rem 0; }
.seccion-gris  { background: var(--gris); }
.seccion-verde { background: var(--verde); color: var(--blanco); }
.seccion-negro { background: var(--negro); color: var(--blanco); }

.seccion-titulo {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--verde);
  margin-bottom: 2rem;
  line-height: 1.2;
}
.seccion-verde .seccion-titulo { color: var(--amarillo); }
.seccion-negro .seccion-titulo { color: var(--blanco); }

/* Línea decorativa amarilla bajo el título */
.seccion-titulo-deco {
  position: relative;
  padding-bottom: .75rem;
  margin-bottom: 2rem;
}
.seccion-titulo-deco::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 48px; height: 4px;
  background: var(--amarillo);
  border-radius: 2px;
}

/* ── STAT CARDS ──────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.4rem;
}
.stat-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 2rem 1.4rem;
  text-align: center;
  transition: transform .2s, background .2s;
}
.stat-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.13); }
.stat-card .num {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--amarillo);
  line-height: 1;
}
.stat-card p { margin-top: .6rem; font-size: .88rem; opacity: .85; }

/* ── DOC CARDS ───────────────────────────────────────── */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.1rem;
}
.doc-card {
  background: var(--blanco);
  border: 1.5px solid var(--gris-medio);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--texto);
  transition: box-shadow .2s, transform .15s, border-color .2s;
}
.doc-card:hover {
  box-shadow: 0 6px 20px rgba(15,71,64,.13);
  transform: translateY(-2px);
  border-color: var(--verde);
  color: var(--verde);
}
.doc-card .icono {
  width: 42px; height: 42px;
  background: var(--verde);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--amarillo);
  font-size: 1.2rem;
}
.doc-card span { font-weight: 500; font-size: .92rem; line-height: 1.35; }

/* Variante azul — Transparencia / Artículo 8 */
.doc-card-azul .icono { background: var(--azul); color: var(--blanco); }
.doc-card-azul:hover { border-color: var(--azul); color: var(--azul); box-shadow: 0 6px 20px rgba(59,63,168,.13); }

/* ── TABS ────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  background: var(--negro);
  overflow-x: auto;
}
.tab-bar button {
  flex: 1;
  min-width: 160px;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--blanco);
  font-weight: 600;
  font-size: .93rem;
  cursor: pointer;
  transition: background .2s, color .2s;
  white-space: nowrap;
  letter-spacing: .01em;
}
.tab-bar button.activo { background: var(--verde); color: var(--amarillo); }
.tab-bar button:hover:not(.activo) { background: rgba(255,255,255,.08); }

.tab-contenido { display: none; padding: 2.5rem 0; }
.tab-contenido.activo { display: block; }

/* ── GALERÍA ─────────────────────────────────────────── */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.galeria-card {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.galeria-card img {
  width: 100%; height: 210px;
  object-fit: cover;
  transition: transform .35s;
  display: block;
}
.galeria-card:hover img { transform: scale(1.06); }
.galeria-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,71,64,.88) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .3s;
  display: flex; align-items: flex-end; padding: 1rem;
  color: white; font-size: .85rem; font-weight: 600;
}
.galeria-card:hover .overlay { opacity: 1; }

/* ── INFORME CARDS ───────────────────────────────────── */
.informe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.2rem;
}
.informe-card {
  background: var(--verde);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--blanco);
  font-weight: 700;
  font-size: 1rem;
  transition: background .2s, transform .15s, box-shadow .2s;
  display: block;
  border: 2px solid transparent;
}
.informe-card:hover {
  background: var(--verde-medio);
  color: var(--amarillo);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(15,71,64,.25);
  border-color: var(--amarillo);
}
.informe-card .anio {
  font-size: 2.4rem;
  font-weight: 900;
  display: block;
  margin-bottom: .3rem;
  color: var(--amarillo);
}

/* ── PAGE HERO ───────────────────────────────────────── */
.page-hero {
  background: var(--verde);
  color: var(--blanco);
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
/* Variante azul — para Transparencia y páginas de acento */
.page-hero.azul { background: var(--azul); }
.page-hero.azul::after { background: rgba(255,223,119,.08); }

.page-hero::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,223,119,.06);
  pointer-events: none;
}
.page-hero h1 { font-size: 2.2rem; font-weight: 800; }
.page-hero p  { opacity: .82; margin-top: .5rem; font-size: 1.05rem; }

/* Línea amarilla bajo el h1 del page-hero */
.page-hero h1::after {
  content: '';
  display: block;
  width: 48px; height: 4px;
  background: var(--amarillo);
  border-radius: 2px;
  margin-top: .75rem;
}

/* ── SECCIÓN AZUL ────────────────────────────────────── */
.seccion-azul {
  background: var(--azul);
  color: var(--blanco);
}
.seccion-azul .seccion-titulo { color: var(--amarillo); }
.seccion-azul .doc-card { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.07); color: var(--blanco); }
.seccion-azul .doc-card .icono { background: rgba(255,255,255,.15); color: var(--amarillo); }
.seccion-azul .doc-card:hover { background: rgba(255,255,255,.14); border-color: var(--amarillo); color: var(--amarillo); }

/* ── VIÑETAS AMARILLAS ───────────────────────────────── */
.lista-simar {
  list-style: none;
  padding: 0;
}
.lista-simar li {
  padding: .35rem 0 .35rem 1.4rem;
  position: relative;
}
.lista-simar li::before {
  content: '';
  position: absolute;
  left: 0; top: .75rem;
  width: 8px; height: 8px;
  background: var(--amarillo);
  border-radius: 50%;
}

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--negro);
  color: rgba(255,255,255,.72);
  padding: 3.5rem 0 1.5rem;
}
footer .logo-footer img { height: 48px; filter: brightness(0) invert(1); }
footer a { color: rgba(255,255,255,.72); text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--amarillo); }
footer .footer-titulo {
  color: var(--blanco);
  font-weight: 700;
  margin-bottom: .9rem;
  letter-spacing: .03em;
  font-size: .9rem;
  text-transform: uppercase;
}
footer .divider { border-color: rgba(255,255,255,.1); margin: 2rem 0 1rem; }
footer .copy { font-size: .82rem; opacity: .45; }
footer .social-icon { opacity: .65; transition: opacity .2s, transform .2s; display: inline-block; }
footer .social-icon:hover { opacity: 1; transform: translateY(-2px); }

/* ── UTILIDADES ──────────────────────────────────────── */
.btn-primary-simar {
  background: var(--verde);
  color: var(--blanco);
  border: none;
  border-radius: 999px;
  padding: .55rem 1.6rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: background .2s, transform .15s;
}
.btn-primary-simar:hover {
  background: var(--verde-medio);
  color: var(--blanco);
  transform: translateY(-1px);
}

.chip {
  display: inline-block;
  background: rgba(15,71,64,.1);
  color: var(--verde);
  border-radius: 999px;
  padding: .2rem .9rem;
  font-size: .8rem;
  font-weight: 600;
}

/* Borde izquierdo amarillo */
.borde-amarillo {
  border-left: 4px solid var(--amarillo) !important;
}

/* Card info verde */
.card-verde {
  background: var(--verde);
  color: var(--blanco);
  border-radius: 14px;
  padding: 2rem;
}
.card-verde h5 { color: var(--amarillo); }

/* Número grande estilo SIMAR */
.num-grande {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--verde);
  line-height: 1;
}

@media (max-width: 768px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 1.75rem; }
  .seccion { padding: 3rem 0; }
  .tab-bar button { font-size: .82rem; padding: .75rem 1rem; min-width: 130px; }
  .stat-card .num { font-size: 2.5rem; }
}

/* ── SECCIÓN SISTEMA DE INFORMACIÓN ─────────────────── */
.seccion-sistema {
  padding: 5rem 0 0;
  background: var(--gris);
  position: relative;
}
/* Franja verde inferior */
.seccion-sistema::after {
  content: '';
  display: block;
  height: 280px;
  background: var(--verde);
  margin-top: -240px;
}
.seccion-sistema > .container {
  position: relative;
  z-index: 1;
  /* Baja el container para que la tarjeta se monte sobre la franja */
  padding-bottom: 0;
  margin-bottom: -40px;
}

.sistema-card {
  background: var(--amarillo);
  border-radius: 20px;
  padding: 4rem 3.5rem;
  position: relative;
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
  z-index: 2;
}

/* Hojas decorativas */
.hoja {
  position: absolute;
  pointer-events: none;
}
.hoja-1 {
  width: 240px;
  right: -40px;
  top: -40px;
  opacity: .9;
}
.hoja-2 {
  width: 160px;
  right: 100px;
  bottom: -30px;
  opacity: .8;
}
.hoja-3 {
  width: 100px;
  right: 260px;
  top: 20px;
  opacity: .6;
}

.sistema-contenido {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.sistema-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--verde);
  opacity: .6;
  margin-bottom: .5rem;
}

.sistema-titulo {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--verde);
  line-height: 1.15;
  margin-bottom: 2rem;
}

.sistema-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sistema-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--verde);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(15,71,64,.2);
  transition: gap .2s, color .2s, padding-left .2s;
  gap: 1rem;
}
.sistema-link:last-child { border-bottom: none; }
.sistema-link:hover {
  color: var(--verde);
  padding-left: .5rem;
}
.sistema-link svg {
  flex-shrink: 0;
  transition: transform .2s;
}
.sistema-link:hover svg { transform: translateX(4px); }

@media (max-width: 768px) {
  .sistema-card { padding: 2.5rem 1.8rem; border-radius: 14px; }
  .hoja-1 { width: 160px; right: -20px; top: -20px; }
  .hoja-2 { display: none; }
  .hoja-3 { display: none; }
  .seccion-sistema { padding: 3rem 0; }
}

/* ── NOSOTROS ────────────────────────────────────────── */

/* Hero */
.hero-nosotros {
  background: var(--gris);
  padding: 5rem 0 4rem;
}
.hero-nosotros h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--negro);
  line-height: 1.15;
  max-width: 600px;
}
.hero-nosotros h1 em {
  color: var(--verde);
  font-style: normal;
  display: block;
}

/* Apoyamos */
.apoyamos-grid {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.apoyamos-item { text-align: center; max-width: 140px; }
.apoyamos-icon {
  width: 64px; height: 64px;
  background: var(--verde);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.6rem;
}
.apoyamos-item p { font-size: .88rem; font-weight: 600; color: var(--texto); }

/* Principios */
.principios-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media(max-width:768px) { .principios-wrap { grid-template-columns: 1fr; } }

.principios-intro h3 {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--negro);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.principios-intro p { font-size: .95rem; color: #555; }
.principios-intro .num-principios {
  font-size: 4rem;
  font-weight: 900;
  color: var(--verde);
  line-height: 1;
  display: block;
  margin-bottom: .5rem;
}

/* Accordion */
.accordion-simar { border-top: 1px solid var(--gris-medio); }
.accordion-simar-item { border-bottom: 1px solid var(--gris-medio); }
.accordion-simar-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: .97rem;
  color: var(--negro);
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  transition: color .2s;
}
.accordion-simar-btn:hover { color: var(--verde); }
.accordion-simar-btn .icono-acc {
  width: 28px; height: 28px;
  border: 2px solid var(--gris-medio);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: .85rem;
  transition: transform .3s, background .2s, border-color .2s;
  color: var(--verde);
}
.accordion-simar-btn.open .icono-acc {
  transform: rotate(45deg);
  background: var(--verde);
  border-color: var(--verde);
  color: white;
}
.accordion-simar-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.accordion-simar-body-inner {
  padding: 0 0 1.2rem;
  font-size: .92rem;
  color: #555;
  line-height: 1.7;
}
.accordion-simar-body-inner strong { color: var(--negro); }

/* Director */
.director-card {
  background: var(--azul);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  min-height: 220px;
}
@media(max-width:576px) { .director-card { grid-template-columns: 1fr; } }
.director-info { padding: 2.5rem; color: white; }
.director-info h4 { font-weight: 900; font-size: 1.2rem; margin-bottom: .2rem; }
.director-info .cargo {
  color: var(--amarillo);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 1rem;
}
.director-info p { font-size: .9rem; opacity: .85; line-height: 1.6; }
.director-foto { width: 200px; align-self: flex-end; }
.director-foto img { width: 100%; display: block; }

/* Consejo */
.consejo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}
.consejo-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--blanco);
  border: 1.5px solid var(--gris-medio);
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.consejo-card:hover {
  border-color: var(--verde);
  box-shadow: 0 4px 16px rgba(15,71,64,.1);
}
.consejo-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--verde);
  display: flex; align-items: center; justify-content: center;
  color: var(--amarillo);
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
}
.consejo-info strong { font-size: .92rem; display: block; line-height: 1.3; }
.consejo-info span { font-size: .78rem; color: #777; line-height: 1.3; display: block; margin-top: .2rem; }

/* Sección colaborativo */
.seccion-colaborativo {
  background: var(--gris);
  padding: 4rem 0;
  text-align: center;
}
.seccion-colaborativo h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--negro);
}
.seccion-colaborativo h2 strong { font-weight: 900; }

/* ── ESTADÍSTICA — layout preview + docs ─────────────── */
.estadistica-bloque {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3rem;
  align-items: start;
}
.estadistica-preview img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  border: 1px solid var(--gris-medio);
}
.estadistica-titulo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--negro);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .estadistica-bloque {
    grid-template-columns: 1fr;
  }
  .estadistica-preview { max-width: 320px; }
}

/* ── INFORMACIÓN GEOGRÁFICA ──────────────────────────── */

/* Hero split pantalla completa */
.geo-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}
.geo-hero-left {
  padding: 4rem 3.5rem;
  background: var(--blanco);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.geo-hero-left h1 {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  color: var(--negro);
}
.geo-hero-left h1 strong { font-weight: 900; }
.geo-hero-left p { font-size: .97rem; color: #555; max-width: 460px; }

.geo-hero-right {
  background: var(--azul);
  color: var(--blanco);
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.geo-hashtag {
  font-size: .8rem;
  letter-spacing: .12em;
  opacity: .65;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.geo-hero-right h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 1rem;
}
.geo-hero-right p { font-size: .97rem; opacity: .88; max-width: 380px; margin: 0 auto; }

/* Sección municipios + mapa */
.geo-municipios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}
.geo-lista {
  padding: 3.5rem;
  background: var(--gris);
}
.geo-lista h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--negro);
  margin-bottom: .5rem;
}
.geo-lista hr { border-color: var(--gris-medio); margin: .5rem 0 1rem; }

.geo-ol {
  padding-left: 1.2rem;
  margin: 0;
}
.geo-ol li { margin-bottom: .4rem; }
.geo-ol a {
  color: var(--texto);
  text-decoration: none;
  font-size: .95rem;
  transition: color .2s;
  padding: .1rem 0;
  display: inline-block;
}
.geo-ol a:hover,
.geo-ol a.activo { color: var(--verde); font-weight: 700; }

/* Mapa + tooltip */
.geo-mapa-wrap {
  position: relative;
  overflow: hidden;
}
.geo-mapa-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.geo-tooltip {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: var(--blanco);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
  min-width: 220px;
  font-size: .85rem;
  line-height: 1.6;
  animation: fadeIn .25s ease;
}
.geo-tooltip strong { font-size: 1rem; display: block; margin-bottom: .4rem; color: var(--negro); }
.geo-tooltip p { margin: 0; color: #555; }
.geo-tt-label { font-weight: 700; color: var(--negro) !important; margin-top: .5rem !important; }

@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

@media (max-width: 768px) {
  .geo-hero,
  .geo-municipios { grid-template-columns: 1fr; }
  .geo-hero-left,
  .geo-hero-right,
  .geo-lista { padding: 2.5rem 1.5rem; }
  .geo-mapa-wrap { min-height: 300px; }
  .geo-tooltip { bottom: 1rem; right: 1rem; left: 1rem; }
}
/* ── SUBNAV SISTEMA ──────────────────────────────────── */
.subnav-sistema {
  display: flex;
  align-items: stretch;
  background: var(--negro);
  overflow-x: auto;
}
.subnav-label {
  background: var(--negro);
  color: var(--blanco);
  padding: 1rem 2rem;
  font-size: .95rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(255,255,255,.1);
}
.subnav-sistema a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  padding: 1rem 1.8rem;
  font-size: .92rem;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  transition: background .2s, color .2s;
  border-bottom: 3px solid transparent;
}
.subnav-sistema a:hover { color: var(--blanco); background: rgba(255,255,255,.05); }
.subnav-sistema a.activo {
  color: var(--blanco);
  background: var(--verde);
  border-bottom-color: var(--amarillo);
  font-weight: 700;
}
/* ── CERTIFICACIONES ─────────────────────────────────── */
.cert-anio-titulo {
  font-size: 1rem;
  font-weight: 900;
  color: var(--verde);
  margin: 2rem 0 .8rem;
}
.cert-anio-titulo:first-child { margin-top: 0; }

.cert-grupo-titulo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--negro);
  margin-bottom: .5rem;
}
.cert-grupo-hr {
  border-color: var(--gris-medio);
  margin-bottom: 1.5rem;
}

/* ── ARTÍCULO 8 SUBPÁGINAS ───────────────────────────── */
.subnav-art8 {
  background: var(--gris);
  border-bottom: 1px solid var(--gris-medio);
  padding: .6rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .8rem;
  align-items: center;
  font-size: .83rem;
}
.subnav-art8 a {
  color: var(--texto) !important;
  text-decoration: none !important;
  padding: .25rem .6rem;
  border-radius: 6px;
  transition: background .2s, color .2s;
  white-space: nowrap;
  background: var(--blanco);
  border: 1px solid var(--gris-medio);
  font-size: .83rem;
}
.subnav-art8 a:hover {
  background: var(--gris-medio) !important;
  color: var(--verde) !important;
}
.subnav-art8 a.activo {
  background: var(--verde) !important;
  color: var(--blanco) !important;
  font-weight: 700;
  border-color: var(--verde);
}
.subnav-art8-sep { color: var(--gris-medio); }



.art8-doc-list { display: flex; flex-direction: column; gap: .8rem; }
.art8-doc { padding: .8rem 0; border-bottom: 1px solid var(--gris); }
.art8-doc:last-child { border-bottom: none; }
.art8-doc ul { margin: .4rem 0 0 1.2rem; font-size: .88rem; color: #666; }
.art8-link {
  color: var(--azul);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: .95rem;
  transition: color .2s;
}
.art8-link:hover { color: var(--verde); }
