
:root{
  --verde:#0b6b35;
  --verde-claro:#138447;
  --verde-oscuro:#064d29;
  --verde-suave:#edf7f0;
  --amarillo:#f5c515;
  --amarillo-suave:#fff8d8;
  --crema:#fbfaf4;
  --blanco:#fff;
  --texto:#26372d;
  --gris:#65736b;
  --borde:#dce7df;
  --sombra:0 10px 28px rgba(12,74,42,.10);
  --radio:20px;
  --ancho:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  padding:8px 0 0;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--texto);
  background:linear-gradient(180deg,#fff 0%,#fbfcfa 70%,#f6faf7 100%);
  line-height:1.5;
}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
button{font:inherit}
.contenedor{width:min(calc(100% - 28px),var(--ancho));margin:auto}

.saltar{
  position:absolute;left:-9999px
}
.saltar:focus{
  left:16px;top:16px;z-index:9999;padding:10px 14px;border-radius:10px;
  background:var(--amarillo);color:var(--verde-oscuro);font-weight:800
}
:focus-visible{outline:3px solid var(--amarillo);outline-offset:3px}

.encabezado{
  padding:7px 9px;
  background:#fff;
  border:1px solid var(--borde);
  border-radius:20px;
  overflow:hidden;
  box-shadow:var(--sombra);
}
.encabezado a{display:block}
.encabezado img{width:100%;height:auto;object-fit:contain}

.miga{
  display:flex;align-items:center;gap:8px;
  padding:12px 4px 10px;
  color:var(--gris);
  font-size:.9rem
}
.miga a{
  color:var(--verde);
  font-weight:700;
  text-decoration:none
}
.miga a:hover{text-decoration:underline}

.hero-gobierno{
  position:relative;
  min-height:315px;
  display:flex;
  align-items:center;
  overflow:hidden;
  border-radius:24px;
  color:#fff;
  box-shadow:var(--sombra);
  background:
    linear-gradient(90deg,rgba(4,55,29,.95) 0%,rgba(4,55,29,.82) 48%,rgba(4,55,29,.35) 100%),
    url("imagenes/hero-convivencia.png") center/cover no-repeat;
}
.hero-gobierno::after{
  content:"";
  position:absolute;
  width:420px;height:420px;
  right:-120px;bottom:-230px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(245,197,21,.30),transparent 70%)
}
.hero-contenido{
  position:relative;z-index:2;
  padding:44px 48px;
  max-width:750px
}
.etiqueta{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.12);
  font-size:.82rem;
  font-weight:800
}
.hero-gobierno h1{
  margin:10px 0;
  font-size:clamp(2.2rem,5vw,4.4rem);
  line-height:1
}
.hero-gobierno h1 span{color:var(--amarillo)}
.hero-gobierno p{
  max-width:650px;
  margin:0;
  font-size:1.07rem
}
.hero-acciones{
  display:flex;flex-wrap:wrap;gap:10px;margin-top:20px
}
.boton{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 16px;
  border-radius:999px;
  text-decoration:none;
  font-weight:800
}
.boton-principal{
  background:var(--amarillo);
  color:var(--verde-oscuro)
}
.boton-secundario{
  color:#fff;
  border:1px solid rgba(255,255,255,.45);
  background:rgba(255,255,255,.10)
}
.boton-verde{
  background:var(--verde);
  color:#fff
}
.hero-icono{
  position:absolute;
  right:60px;top:50%;
  transform:translateY(-50%);
  width:138px;height:138px;
  display:grid;place-items:center;
  border-radius:30px;
  z-index:2;
  color:var(--amarillo);
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.25);
  backdrop-filter:blur(4px)
}
.hero-icono svg{
  width:82px;height:82px;
  fill:none;stroke:currentColor;stroke-width:2.1;
  stroke-linecap:round;stroke-linejoin:round
}

.introduccion{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:28px;
  align-items:center;
  padding:28px;
  margin:20px 0;
  background:#fff;
  border:1px solid var(--borde);
  border-radius:22px
}
.sobretitulo{
  color:var(--verde);
  text-transform:uppercase;
  font-size:.76rem;
  letter-spacing:.08em;
  font-weight:900
}
.introduccion h2,
.encabezado-seccion h2,
.cierre-gobierno h2{
  margin:5px 0 8px;
  color:var(--verde-oscuro);
  font-size:clamp(1.6rem,3vw,2.35rem)
}
.linea-destacada{
  width:95px;height:5px;
  margin:12px 0 18px;
  border-radius:999px;
  background:var(--amarillo)
}
.introduccion p{
  margin:0;
  color:#3e5045;
  line-height:1.7
}
.principios{
  display:flex;flex-wrap:wrap;gap:8px;margin-top:16px
}
.principios span{
  padding:7px 11px;
  border-radius:999px;
  background:var(--verde-suave);
  border:1px solid #d7e8dc;
  color:var(--verde-oscuro);
  font-size:.86rem;
  font-weight:800
}
.introduccion-imagen img{
  width:100%;
  max-height:355px;
  object-fit:cover;
  border-radius:20px;
  box-shadow:0 10px 24px rgba(12,74,42,.12)
}

.ruta-participacion{
  padding:28px;
  margin:20px 0;
  border-radius:22px;
  background:linear-gradient(120deg,var(--verde-suave),var(--amarillo-suave))
}
.encabezado-seccion{text-align:center;max-width:760px;margin:0 auto 20px}
.encabezado-seccion p{margin:6px auto 0;color:var(--gris)}
.pasos{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px
}
.paso{
  padding:20px;
  background:#fff;
  border:1px solid rgba(11,107,53,.12);
  border-radius:18px;
  box-shadow:0 6px 16px rgba(12,74,42,.05)
}
.numero{
  display:inline-grid;
  place-items:center;
  min-width:48px;height:34px;
  padding:0 10px;
  border-radius:999px;
  background:var(--verde-oscuro);
  color:#fff;
  font-weight:900;
  font-size:.82rem
}
.paso h3{margin:12px 0 5px;color:var(--verde-oscuro)}
.paso p{margin:0;color:var(--gris);font-size:.92rem}

.resultados{
  padding:28px;
  margin:20px 0;
  background:#fff;
  border:1px solid var(--borde);
  border-radius:22px
}
.galeria-resultados{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px
}
.resultado{
  appearance:none;
  border:1px solid var(--borde);
  padding:8px;
  border-radius:16px;
  background:#fff;
  text-align:left;
  cursor:pointer;
  transition:.18s ease
}
.resultado:hover{
  transform:translateY(-3px);
  border-color:var(--amarillo);
  box-shadow:var(--sombra)
}
.resultado img{
  width:100%;
  height:220px;
  object-fit:contain;
  border-radius:12px;
  background:#fafafa
}
.resultado span{
  display:block;
  padding:10px 7px 5px
}
.resultado strong{
  display:block;
  color:var(--verde-oscuro)
}
.resultado small{
  display:block;
  color:var(--gris);
  margin-top:3px
}
.nota-historica{
  margin-top:18px;
  padding:12px 14px;
  border-left:4px solid var(--amarillo);
  border-radius:10px;
  background:var(--amarillo-suave);
  color:#4f4827;
  font-size:.88rem
}

.cierre-gobierno{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  padding:24px 28px;
  margin:20px 0;
  border-radius:22px;
  background:var(--verde-suave);
  border:1px solid #d8e8dd
}
.cierre-gobierno h2{margin-bottom:0;max-width:780px}

.pie{padding:0 0 18px}
.pie img{
  width:100%;
  border:1px solid var(--borde);
  border-radius:20px;
  box-shadow:var(--sombra)
}

/* Modal */
.modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
  padding:20px
}
.modal[hidden]{display:none}
.modal-fondo{
  position:absolute;inset:0;
  background:rgba(2,27,14,.76);
  backdrop-filter:blur(4px)
}
.modal-contenido{
  position:relative;
  width:min(960px,100%);
  max-height:92vh;
  overflow:auto;
  padding:20px;
  border-radius:20px;
  background:#fff;
  box-shadow:0 24px 70px rgba(0,0,0,.25)
}
.modal-contenido h2{
  margin:0 50px 14px 0;
  color:var(--verde-oscuro)
}
.modal-contenido img{
  width:100%;
  max-height:68vh;
  object-fit:contain;
  border-radius:14px;
  background:#f7f7f7
}
.modal-contenido .boton{margin-top:14px}
.modal-cerrar{
  position:absolute;
  right:14px;top:12px;
  width:40px;height:40px;
  border:0;
  border-radius:50%;
  background:var(--verde-oscuro);
  color:#fff;
  cursor:pointer;
  font-size:1.7rem;
  line-height:1
}

@media(max-width:900px){
  .hero-icono{display:none}
  .introduccion{grid-template-columns:1fr}
}
@media(max-width:720px){
  body{padding-top:4px}
  .contenedor{width:min(calc(100% - 16px),var(--ancho))}
  .encabezado{border-radius:15px}
  .hero-gobierno{min-height:350px;border-radius:18px}
  .hero-contenido{padding:34px 22px}
  .introduccion,.ruta-participacion,.resultados{padding:18px;border-radius:18px}
  .pasos,.galeria-resultados{grid-template-columns:1fr}
  .cierre-gobierno{align-items:flex-start;flex-direction:column;padding:20px}
  .resultado img{height:auto}
}
@media(prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important;transition:none!important}
}
