/* Plantilla maestra exacta — Gaceta Municipal v2 */
html body:has(#modulo_813){
  --gm-guinda:#6b1930;--gm-guinda-oscuro:#501023;--gm-guinda-claro:#963054;
  --gm-dorado:#b08a3e;--gm-borde:#e5ddd8;--gm-texto:#392f32;--gm-gris:#655b5e;
}
html body:has(#modulo_813),
html body:has(#modulo_813) #modulo_813,
html body:has(#modulo_813) #container_lateral,
html body:has(#modulo_813) #container_lateral *{
  font-family:Aptos,"Segoe UI Variable Text","Segoe UI",system-ui,-apple-system,sans-serif!important;
  box-sizing:border-box!important;
}
html body:has(#modulo_813) > .container.clearfix:has(#modulo_813){
  display:grid!important;grid-template-columns:minmax(205px,235px) minmax(0,1fr)!important;
  align-items:start!important;gap:24px!important;width:min(1180px,calc(100% - 32px))!important;
  max-width:1180px!important;margin:0 auto!important;padding:51.2px!important;
  border:1px solid var(--gm-borde)!important;border-radius:28px!important;
  background:rgba(255,253,249,.98)!important;box-shadow:0 18px 46px rgba(76,35,47,.10)!important;
}
html body:has(#modulo_813) > .container.clearfix:has(#modulo_813) > .grid_4{
  float:none!important;width:auto!important;min-width:0!important;margin:0!important;padding:14px!important;
}
html body:has(#modulo_813) > .container.clearfix:has(#modulo_813) > .grid_8{
  float:none!important;width:auto!important;min-width:0!important;margin:0!important;padding:0!important;
}
html body:has(#modulo_813) #modulo_813{
  position:sticky!important;top:18px!important;width:auto!important;margin:0!important;padding:14px!important;
  border:1px solid var(--gm-borde)!important;border-radius:18px!important;background:#fff!important;
  box-shadow:0 8px 24px rgba(70,43,50,.07)!important;
}
html body:has(#modulo_813) #menu_lateral{
  display:grid!important;grid-template-columns:1fr!important;gap:0!important;
  width:100%!important;margin:0!important;padding:0!important;border:0!important;
  background:transparent!important;list-style:none!important;
}
html body:has(#modulo_813) #menu_lateral li{
  width:100%!important;max-width:none!important;margin:0 0 6px!important;padding:0!important;
  border:0!important;background:transparent!important;list-style:none!important;
}
html body:has(#modulo_813) #menu_lateral li:last-child{margin-bottom:0!important;}
html body:has(#modulo_813) #menu_lateral li a{
  display:flex!important;align-items:center!important;width:100%!important;min-height:48px!important;
  padding:11px 13px!important;border:1px solid transparent!important;border-radius:11px!important;
  background:transparent!important;color:var(--gm-texto)!important;font-size:14px!important;font-weight:650!important;
  line-height:1.25!important;text-transform:none!important;text-decoration:none!important;
  white-space:normal!important;overflow-wrap:anywhere!important;transition:.18s ease!important;
}
html body:has(#modulo_813) #menu_lateral li a:hover{
  transform:none!important;border-color:#eaddE1!important;background:#f8f2f4!important;
  color:var(--gm-guinda)!important;
}
html body:has(#modulo_813) #menu_lateral li.selected a{
  border-color:var(--gm-guinda)!important;
  background:linear-gradient(135deg,var(--gm-guinda-oscuro),var(--gm-guinda-claro))!important;
  color:#fff!important;box-shadow:0 7px 16px rgba(80,16,35,.16)!important;
}
html body:has(#modulo_813) #container_lateral{min-width:0!important;padding:0!important;}
html body:has(#modulo_813) #container_lateral > .modulo_Html{
  width:100%!important;max-width:none!important;margin:0!important;padding:0!important;
  border:0!important;background:transparent!important;box-shadow:none!important;
}
html body:has(#modulo_813) .gaceta-maestra{
  width:100%!important;max-width:none!important;margin:0!important;padding:0!important;
  color:var(--gm-texto)!important;background:transparent!important;
}
html body:has(#modulo_813) .gaceta-maestra .tgi-hero{
  position:relative!important;overflow:hidden!important;padding:34px 36px!important;
  border:1px solid rgba(176,138,62,.5)!important;border-radius:18px!important;
  background:linear-gradient(135deg,#501023 0%,#711b39 58%,#963054 100%)!important;
  color:#fff!important;box-shadow:0 12px 30px rgba(80,16,35,.17)!important;text-align:left!important;
}
html body:has(#modulo_813) .gaceta-maestra .tgi-hero::after{
  content:""!important;position:absolute!important;right:-60px!important;top:-80px!important;
  width:260px!important;height:260px!important;border-radius:50%!important;
  background:rgba(255,255,255,.06)!important;
}
html body:has(#modulo_813) .gaceta-maestra .tgi-eyebrow{
  position:relative!important;z-index:1!important;display:inline-flex!important;
  margin:0 0 13px!important;padding:5px 11px!important;border-radius:999px!important;
  background:#c5a055!important;color:#3b1723!important;font-size:12px!important;font-weight:800!important;
  line-height:1.2!important;letter-spacing:.45px!important;text-transform:uppercase!important;
}
html body:has(#modulo_813) .gaceta-maestra .tgi-hero h2{
  position:relative!important;z-index:1!important;margin:0!important;padding:0!important;border:0!important;
  background:transparent!important;box-shadow:none!important;color:#fff!important;font-size:34px!important;
  font-weight:780!important;line-height:1.12!important;text-align:left!important;
}
html body:has(#modulo_813) .gaceta-maestra .tgi-hero p{
  position:relative!important;z-index:1!important;max-width:720px!important;margin:13px 0 0!important;
  padding:0!important;color:#f7edf0!important;font-size:16px!important;line-height:1.6!important;text-align:left!important;
}
html body:has(#modulo_813) .gaceta-maestra .tgi-compromiso{
  margin:20px 0 0!important;padding:20px!important;border:1px solid var(--gm-borde)!important;
  border-radius:16px!important;background:#fff!important;box-shadow:0 8px 24px rgba(76,35,47,.07)!important;
}
html body:has(#modulo_813) .gaceta-maestra .tgi-seccion-titulo{
  display:flex!important;align-items:center!important;gap:11px!important;margin:0 0 15px!important;
  padding:13px 16px!important;border:1px solid #eee5e1!important;border-left:4px solid var(--gm-dorado)!important;
  border-radius:12px!important;background:linear-gradient(135deg,#fff,#fbf7f4)!important;color:var(--gm-guinda)!important;
}
html body:has(#modulo_813) .gaceta-maestra .tgi-seccion-titulo > span:first-child{
  color:var(--gm-dorado)!important;font-size:13px!important;
}
html body:has(#modulo_813) .gaceta-maestra .tgi-seccion-titulo h2{
  flex:1 1 auto!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;
  box-shadow:none!important;color:var(--gm-guinda)!important;font-size:22px!important;font-weight:760!important;line-height:1.2!important;
}
html body:has(#modulo_813) .gaceta-maestra .tgi-grid{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:13px!important;
}
html body:has(#modulo_813) .gaceta-maestra .tgi-card{
  position:relative!important;min-width:0!important;margin:0!important;padding:18px!important;
  border:1px solid #e7dfdb!important;border-radius:14px!important;background:#fff!important;
  box-shadow:0 5px 15px rgba(70,43,50,.06)!important;
}
html body:has(#modulo_813) .gaceta-maestra .tgi-numero{
  display:grid!important;place-items:center!important;width:38px!important;height:38px!important;
  margin:0 0 13px!important;border-radius:11px!important;background:linear-gradient(145deg,#501023,#9b315a)!important;
  color:#fff!important;font-size:12px!important;font-weight:800!important;box-shadow:0 5px 12px rgba(107,25,48,.2)!important;
}
html body:has(#modulo_813) .gaceta-maestra .tgi-card h3{
  margin:0 0 8px!important;color:var(--gm-guinda)!important;font-size:17px!important;
  font-weight:720!important;line-height:1.25!important;text-transform:none!important;
}
html body:has(#modulo_813) .gaceta-maestra .tgi-card p{
  margin:0!important;color:var(--gm-gris)!important;font-size:14px!important;line-height:1.55!important;
}
html body:has(#modulo_813) .gm-count{
  flex:0 0 auto!important;padding:5px 9px!important;border-radius:999px!important;
  background:#f3e8ec!important;color:var(--gm-guinda)!important;font-size:12px!important;font-weight:750!important;
}
html body:has(#modulo_813) .gm-document-grid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:11px!important;margin:0!important;padding:0!important;
}
html body:has(#modulo_813) .gm-document-card{
  display:grid!important;grid-template-columns:46px minmax(0,1fr) auto!important;
  align-items:center!important;gap:11px!important;min-width:0!important;min-height:76px!important;
  margin:0!important;padding:11px 12px!important;border:1px solid #e7dfdb!important;
  border-radius:13px!important;background:#fff!important;box-shadow:0 4px 12px rgba(70,43,50,.05)!important;
  transition:.18s ease!important;
}
html body:has(#modulo_813) .gm-document-card:hover{
  transform:translateY(-2px)!important;border-color:#cfb4bd!important;background:#fffafc!important;
  box-shadow:0 9px 20px rgba(107,25,48,.10)!important;
}
html body:has(#modulo_813) .gm-pdf{
  display:grid!important;place-items:center!important;width:44px!important;height:44px!important;
  border-radius:11px!important;background:linear-gradient(145deg,#501023,#9b315a)!important;
  color:#fff!important;font-size:10px!important;font-weight:850!important;letter-spacing:.4px!important;
  box-shadow:0 5px 12px rgba(107,25,48,.2)!important;
}
html body:has(#modulo_813) .gm-document-info{min-width:0!important;}
html body:has(#modulo_813) .gm-document-info h3{
  margin:0 0 4px!important;color:#4b2933!important;font-size:14px!important;font-weight:700!important;
  line-height:1.3!important;text-transform:none!important;overflow-wrap:anywhere!important;
}
html body:has(#modulo_813) .gm-document-info span{
  color:#806e73!important;font-size:11.5px!important;font-weight:600!important;
}
html body:has(#modulo_813) .gm-document-link{
  display:inline-flex!important;align-items:center!important;gap:4px!important;padding:7px 9px!important;
  border:1px solid #dfcbd2!important;border-radius:9px!important;background:#faf4f6!important;
  color:var(--gm-guinda)!important;font-size:12px!important;font-weight:750!important;
  line-height:1.2!important;text-decoration:none!important;white-space:nowrap!important;
}
html body:has(#modulo_813) .gm-document-link:hover{
  border-color:var(--gm-guinda)!important;background:var(--gm-guinda)!important;color:#fff!important;
}
@media(max-width:900px){
  html body:has(#modulo_813) > .container.clearfix:has(#modulo_813){
    grid-template-columns:1fr!important;gap:16px!important;padding:28px!important;
  }
  html body:has(#modulo_813) > .container.clearfix:has(#modulo_813) > .grid_4{padding:0!important;}
  html body:has(#modulo_813) #modulo_813{position:static!important;}
  html body:has(#modulo_813) #menu_lateral{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;}
  html body:has(#modulo_813) #menu_lateral li{margin:0!important;}
  html body:has(#modulo_813) .gaceta-maestra .tgi-grid{grid-template-columns:1fr!important;}
  html body:has(#modulo_813) .gm-document-grid{grid-template-columns:1fr!important;}
}
@media(max-width:640px){
  html body:has(#modulo_813) > .container.clearfix:has(#modulo_813){
    width:min(calc(100% - 20px),1180px)!important;padding:14px!important;border-radius:20px!important;
  }
  html body:has(#modulo_813) #menu_lateral{grid-template-columns:1fr!important;}
  html body:has(#modulo_813) #menu_lateral li a{min-height:40px!important;font-size:13px!important;}
  html body:has(#modulo_813) .gaceta-maestra .tgi-hero{padding:25px 21px!important;}
  html body:has(#modulo_813) .gaceta-maestra .tgi-hero h2{font-size:27px!important;}
  html body:has(#modulo_813) .gaceta-maestra .tgi-compromiso{padding:14px!important;}
  html body:has(#modulo_813) .gaceta-maestra .tgi-seccion-titulo{align-items:flex-start!important;flex-wrap:wrap!important;}
  html body:has(#modulo_813) .gaceta-maestra .tgi-seccion-titulo h2{font-size:19px!important;}
  html body:has(#modulo_813) .gm-document-card{
    grid-template-columns:44px minmax(0,1fr)!important;align-items:start!important;
  }
  html body:has(#modulo_813) .gm-document-link{
    grid-column:1 / -1!important;justify-content:center!important;width:100%!important;
  }
}