header,
.navbar,
.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
}

.map-shell,
#map,
.map-canvas {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.leaflet-control-container,
.leaflet-top,
.leaflet-bottom {
  z-index: 500;
}

.hero-public{
  position: relative;
  background: radial-gradient(1000px 600px at 15% 15%, rgba(60,120,255,.25), transparent 50%),
              radial-gradient(900px 500px at 85% 20%, rgba(0,255,200,.12), transparent 55%),
              linear-gradient(180deg, #0b1220 0%, #0b1220 60%, #0f172a 100%);
  color: #fff;
  overflow: hidden;
}

/* Escritorio: la portada llena la pantalla bajo el encabezado (115px) y lo blanco aparece al bajar */
@media (min-width: 992px){
  .hero-public{
    min-height: calc(100vh - 115px);
    min-height: calc(100svh - 115px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero-public > .container{
    width: 100%;
  }
}

/* Indicador para bajar a las obras */
.hero-bajar{
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  color: rgba(255,255,255,.75);
  font-size: .8rem;
  text-decoration: none;
}
.hero-bajar:hover,
.hero-bajar:focus-visible{
  color: #fff;
}
.hero-bajar .bi{
  font-size: 1.2rem;
}
@media (min-width: 992px){
  .hero-bajar{ display: flex; }
}
@media (min-width: 992px) and (prefers-reduced-motion: no-preference){
  .hero-bajar .bi{ animation: hero-bajar 1.8s ease-in-out infinite; }
}
@keyframes hero-bajar{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(5px); }
}

.hero-bg{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.06), transparent 45%),
    radial-gradient(circle at 70% 15%, rgba(255,255,255,.05), transparent 40%);
  opacity: 1;
  pointer-events: none;
}

.hero-badge{
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.9);
  padding: .55rem .8rem;
  border-radius: 999px;
  /* .badge de Bootstrap no corta línea; en móvil el texto se salía */
  white-space: normal;
  text-align: left;
  line-height: 1.35;
}

.hero-title{
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.hero-subtitle{
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
  max-width: 52ch;
}

.hero-btn{
  border-radius: 14px;
  padding: .85rem 1.1rem;
}

/* Buscador de la portada */
.hero-search{
  display: flex;
  gap: .5rem;
  max-width: 600px;
  padding: .45rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.hero-search-campo{
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  padding: 0 .7rem;
  color: #5b6170;
}
.hero-search-campo input{
  flex: 1;
  min-width: 0;
  min-height: 46px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: #141418;
}
.hero-search-btn{
  min-height: 46px;
  padding: 0 1.3rem;
  border: 0;
  border-radius: 12px;
  background: #891b35;
  color: #fff;
  font-weight: 700;
}
.hero-search-btn:hover,
.hero-search-btn:focus-visible{
  background: #6d1529;
}
.hero-search:focus-within{
  box-shadow: 0 0 0 3px rgba(188,150,92,.6), 0 10px 30px rgba(0,0,0,.25);
}

/* Accesos rápidos por municipio */
.hero-sugerencias{
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
}
.hero-sugerencias-label{
  font-size: .85rem;
  color: rgba(255,255,255,.7);
}
.hero-sugerencia{
  padding: .4rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}
.hero-sugerencia:hover,
.hero-sugerencia:focus-visible{
  background: rgba(255,255,255,.22);
  color: #fff;
}

.hero-note{
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,.75);
  font-size: .95rem;
}

.hero-panel{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  padding: 1.1rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 45px rgba(0,0,0,.28);
}

.hero-panel-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
}

.hero-panel-title{
  font-weight: 700;
  font-size: 1.05rem;
}

.hero-panel-sub{
  color: rgba(255,255,255,.7);
  font-size: .9rem;
}

.hero-pill{
  border-radius: 999px;
  padding: .35rem .65rem;
  font-size: .85rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
}

.kpi-card{
  display: flex;
  gap: .9rem;
  padding: .9rem;
  border-radius: 16px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .15s ease, border-color .15s ease;
}

.kpi-card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.22);
}

.kpi-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 1.2rem;
}

.kpi-label{
  color: rgba(255,255,255,.70);
  font-size: .9rem;
}

.kpi-value{
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.1;
}

.kpi-help{
  color: rgba(255,255,255,.60);
  font-size: .82rem;
}


.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-title{
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-sub{
  color: rgba(15,23,42,.70);
  max-width: 70ch;
}

/* Filtros del listado (mismos campos que la lista de obras de intranet) */
.filtros-obras{
  display: grid;
  gap: .75rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
  box-shadow: 0 10px 30px rgba(2, 6, 23, .04);
}
.filtros-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: .6rem;
}
@media (max-width: 575.98px){
  .filtros-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.filtro{
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin: 0;
  min-width: 0;
}
.filtro-label{
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: rgba(15,23,42,.60);
}
.filtro .form-select{
  border-radius: 12px;
  text-overflow: ellipsis;
}
.btn-maroon{
  background: #891b35;
  border: 1px solid #891b35;
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: 0 1.1rem;
  text-decoration: none;
}
.btn-maroon:hover,
.btn-maroon:focus-visible{
  background: #6d1529;
  border-color: #6d1529;
  color: #fff;
}

.filtros-barra{
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.filtros-barra .searchbox{
  flex: 999 1 320px;
}
.filtros-barra .searchbox input{
  min-height: 46px;
}
.btn-mas-filtros{
  flex: 1 1 170px;
  white-space: nowrap;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 0 1rem;
  border-radius: 12px;
  border: 1px solid #d5d6dc;
  background: #fff;
  font-weight: 600;
  color: #141418;
}
.btn-mas-filtros[aria-expanded="true"]{
  border-color: #891b35;
  color: #891b35;
}
.filtros-contador{
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: #891b35;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filtros-activos{
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.filtros-activos.d-none{ display: none; }
.filtros-activos-label{
  font-size: .82rem;
  font-weight: 600;
  color: #4b5260;
}
.filtros-chips{
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
.chip-filtro{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 32px;
  padding: 0 .65rem 0 .8rem;
  border-radius: 999px;
  border: 1px solid #e3c6ce;
  background: #fbf1f3;
  color: #6d1529;
  font-size: .82rem;
  font-weight: 600;
}
.chip-filtro:hover{
  background: #f6e3e8;
}
.chip-filtro .bi{
  font-size: .7rem;
}
.btn-limpiar{
  min-height: 32px;
  padding: 0 .4rem;
  border: 0;
  background: transparent;
  color: #891b35;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: underline;
}

/* Resumen de las obras filtradas */
.resumen-obras{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}
.resumen-card{
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .85rem 1.1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
}
.resumen-label{
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #4b5260;
}
.resumen-valor{
  font-size: 1.45rem;
  font-weight: 800;
  color: #141418;
}
@media (max-width: 575.98px){
  .resumen-obras{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
  }
  .resumen-card{
    padding: .6rem .7rem;
  }
  .resumen-label{
    font-size: .62rem;
  }
  .resumen-valor{
    font-size: 1.05rem;
  }
}

/* Resalta los filtros con valor */
.filtro .form-select:not([name="orden"]):has(option:checked:not([value=""])){
  border-color: #891b35;
  box-shadow: 0 0 0 .15rem rgba(137,27,53,.12);
}

.searchbox{
  position: relative;
}
.searchbox i{
  position:absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .6;
}
.searchbox input{
  padding-left: 38px;
  border-radius: 14px;
}

.nice-table{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
  box-shadow: 0 10px 30px rgba(2, 6, 23, .06);
  overflow: hidden;
}

/* ===== Tabla de obras ===== */
.tabla-scroll{
  overflow-x: auto;
}
.nice-table-head,
.nice-row{
  display: grid;
  grid-template-columns: minmax(0, 2.8fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.3fr) 24px;
  gap: 1rem;
  align-items: center;
  min-width: 940px;
}
.nice-table-head{
  padding: .85rem 1.25rem;
  background: #f7f7f9;
  border-bottom: 1px solid rgba(15,23,42,.08);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #4b5260;
}

.th-orden{
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  color: inherit;
}
.th-orden:hover,
.th-orden.is-activo{ color: #891b35; }
.th-orden:focus-visible{
  outline: 2px solid #891b35;
  outline-offset: 2px;
  border-radius: 4px;
}
.th-avance{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.nice-table-body{
  display: flex;
  flex-direction: column;
}

.nice-row{
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-bottom: 1px solid #eeeef1;
  transition: background .15s ease, box-shadow .15s ease;
}
.nice-row:hover,
.nice-row:focus-visible{
  background: #fbf6f7;
  box-shadow: inset 4px 0 0 #891b35;
  outline: none;
}

.col-obra{
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  min-width: 0;
}
.obra-texto{
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
}
/* Nombre a máximo 2 líneas; el nombre completo queda en title y en el detalle */
.obra-title{
  font-weight: 700;
  line-height: 1.35;
  color: #141418;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.obra-meta{
  font-size: .78rem;
  color: #5b6170;
}

.col-ubicacion{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  min-width: 0;
}
.ubicacion{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
  font-size: .9rem;
  color: #141418;
}
.ubicacion.is-vacio,
.monto.is-vacio{
  color: #6b7180;
  font-weight: 600;
}
.etiqueta-fuente{
  padding: .1rem .5rem;
  border-radius: 6px;
  background: #f1f1f4;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: #4b5260;
}

/* Estatus: píldora suave con punto de color (no alarma) */
.th-estatus,
.col-estatus{
  justify-self: center;
  text-align: center;
}
.estatus-pill{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  background: #f1f1f4;
  color: #4b5260;
}
.estatus-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af;
}
.estatus--en_proceso{ background: #fef3c7; color: #854d0e; }
.estatus--en_proceso .estatus-dot{ background: #d97706; }
.estatus--terminada{ background: #dcfce7; color: #166534; }
.estatus--terminada .estatus-dot{ background: #16a34a; }
.estatus--inicio{ background: #dbeafe; color: #1e40af; }
.estatus--inicio .estatus-dot{ background: #2563eb; }

.col-monto{
  justify-self: start;
}
.monto{
  font-weight: 800;
  font-size: 1rem;
  color: #141418;
  white-space: nowrap;
}

.col-avance{
  display: flex;
  align-items: center;
  gap: .6rem;
}
.avance-num{
  min-width: 2.6rem;
  text-align: right;
  font-weight: 800;
  font-size: .9rem;
}
.col-ir{
  color: #891b35;
  font-size: 1rem;
}

.progressline{
  flex: 1;
  height: 8px;
  background: #ececf0;
  border-radius: 999px;
  overflow: hidden;
}
.progressline .bar{
  height: 100%;
  border-radius: 999px;
  transition: width .25s ease, background-color .25s ease;
}
.progressline .bar-rojo{ background: #dc2626; }
.progressline .bar-naranja{ background: #ea580c; }
.progressline .bar-amarillo{ background: #ca8a04; }
.progressline .bar-verde{ background: #16a34a; }

.nice-table-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: .85rem 1rem;
  background: rgba(15,23,42,.02);
}

/* Paginación numerada (formato intranet) */
.paginacion-meta{
  font-size: .82rem;
  color: #4b5260;
}
.paginacion-obras{
  gap: .3rem;
  flex-wrap: wrap;
}
.paginacion-obras .page-link{
  min-width: 2.1rem;
  text-align: center;
  border-radius: 10px !important;
  border-color: rgba(15,23,42,.15);
  color: #891b35;
  font-weight: 600;
}
.paginacion-obras .page-item.active .page-link{
  background: #891b35;
  border-color: #891b35;
  color: #fff;
}
.paginacion-obras .page-item.disabled .page-link{
  color: rgba(15,23,42,.35);
  background: transparent;
}
.paginacion-obras .page-link:focus-visible{
  box-shadow: 0 0 0 .2rem rgba(137,27,53,.25);
}


/* Móvil: cada obra como tarjeta compacta */
@media (max-width: 767.98px){
  .tabla-scroll{
    overflow-x: visible;
  }
  .nice-table-head{
    display: none;
  }
  .nice-row{
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "obra obra"
      "ubicacion ubicacion"
      "estatus monto"
      "avance avance";
    gap: .7rem;
    padding: 1rem;
  }
  .col-obra{ grid-area: obra; }
  .col-estatus{ grid-area: estatus; justify-self: start; }
  .col-monto{ grid-area: monto; justify-self: end; }
  .col-avance{ grid-area: avance; }
  /* Ubicación y fuente en una línea bajo el nombre */
  .col-ubicacion{
    grid-area: ubicacion;
    flex-direction: row;
    align-items: center;
    gap: .5rem;
  }
  .col-ir{
    display: none;
  }
}



/* MAPA */
.map-shell{
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
  box-shadow: 0 10px 30px rgba(2, 6, 23, .06);
  overflow: hidden;
}

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

.map-float{
  position: absolute;
  right: 16px;
  top: 16px;
  width: min(320px, 92%);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 12px 30px rgba(2,6,23,.14);
  backdrop-filter: blur(8px);
  padding: 12px 12px;
}

.map-float-title{
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.map-float-meta{
  color: rgba(15,23,42,.68);
  font-size: .85rem;
  margin-top: 4px;
}

.map-float-row{
  display:flex;
  gap: 10px;
}

.map-kpi{
  flex: 1;
  border-radius: 12px;
  padding: 10px;
  background: rgba(15,23,42,.04);
  border: 1px solid rgba(15,23,42,.08);
}

.map-kpi-label{
  color: rgba(15,23,42,.65);
  font-size: .78rem;
}

.map-kpi-value{
  font-weight: 800;
}


/* =========================
   DATOS GENERALES (CARD PRO)
========================== */

.dg-card{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #eee;
  background:#fff;
  box-shadow: 0 10px 30px rgba(2,6,23,.05);
}

.dg-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  border-bottom: 1px solid #eee;
}

.dg-head-left{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.dg-icon{
  width:40px;
  height:40px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(125, 19, 19, .08);
  color:#7D1313;
  font-size:18px;
  flex: 0 0 auto;
}

.dg-main-title{
  font-weight: 900;
  font-size: 1.18rem;
  line-height: 1.15;
  letter-spacing: -.01em;
  color:#111;
}

.dg-sub{
  margin-top:4px;
  font-size:.85rem;
  color:#666;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.dg-folio{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  background:#fff;
  border:1px solid #eee;
  color:#333;
  font-weight:700;
  font-size:.8rem;
}

.dg-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  background:#7D1313;
  color:#fff;
  font-size:.82rem;
  font-weight:700;
  white-space:nowrap;
}

/* ✅ Título de sección abajo del header */
.dg-section-title{
  font-weight: 900;
  color:#111;
  font-size: .95rem;
  letter-spacing: .2px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e6e6e6;
  display:flex;
  align-items:center;
  gap:10px;
}

.dg-section-title::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:999px;
  background:#7D1313;
}

/* ✅ Items */
.dg-grid .dg-item{
  height:100%;
  padding:12px;
  border-radius:14px;
  border:1px solid #eee;
  background:#fcfcfd;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.dg-grid .dg-item:hover{
  background:#fff;
  border-color:#e2e2e2;
  transform: translateY(-1px);
}

.dg-label{
  font-size:.74rem;
  color:#7a7a7a;
  margin-bottom:4px;
}

.dg-value{
  font-weight:800;
  color:#111;
  line-height:1.25;
  word-break: break-word;
}

/* ✅ Responsive: header en columna */
@media (max-width: 767.98px){
  .dg-head{
    flex-direction: column;
    align-items:flex-start;
  }
  .dg-status{
    margin-top:8px;
  }
}

/* ===== Status Colors ===== */

.status-inicio{
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(239,68,68,.35);
}

.status-proceso{
  background: linear-gradient(135deg, #facc15, #eab308);
  color: #000;
  border: none;
  box-shadow: 0 4px 12px rgba(250,204,21,.35);
}

.status-ok{
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(34,197,94,.35);
}

.status-default{
  background: linear-gradient(135deg, #7D1313, #5c0f0f);
  color:#ffffff;
  border:none;
  box-shadow: 0 4px 12px rgba(125,19,19,.35);
}

/* ====== COMPENSAR HEADER FIJO ====== */
:root{
  --header-h: 90px; /* ajusta si tu header mide diferente */
  /* Mismos valores que --app-accent/--app-accent-dark/--app-border-soft de intranet (app_shell.css) */
  --app-accent: #891b35;
  --app-accent-dark: #a82040;
  --app-border-soft: #ede0da;
}

/* Cuando navegas a #mapa */
#mapa{
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* Baja los controles de Leaflet */
#mapa .leaflet-top{
  top: calc(var(--header-h) + 10px) !important;
}

/* ===== BLOQUE QUEJA BONITO ===== */

.queja-box {
  background: linear-gradient(180deg, #ffffff 0%, #faf7f7 100%);
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
  transition: all .25s ease;
}

.queja-box:hover {
  box-shadow: 0 16px 40px rgba(15,23,42,.12);
  transform: translateY(-2px);
}

.queja-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(125,19,19,.08);
  color: #7D1313;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.queja-title {
  font-size: 1.15rem;
  letter-spacing: .2px;
}

/* Botón vino elegante */
.btn-queja {
  background: #7D1313;
  border: 1px solid #7D1313;
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 600;
  transition: all .2s ease;
}

.btn-queja:hover {
  background: #661010;
  border-color: #661010;
  color: #fff;
  transform: translateY(-1px);
}

.graficas-wrapper{ margin-top: 8px; }

.grafica-card{
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
  overflow: hidden;
  position: relative;
}

.grafica-card::before{
  content:"";
  position:absolute; inset:-2px;
  pointer-events:none;
  opacity:.9;
}

.grafica-card > *{ position: relative; z-index: 1; }

.grafica-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.grafica-title{
  font-weight:900;
  letter-spacing:-0.01em;
  color: #000;
}

.grafica-sub{
  font-size:12px;
  color: #000;
  margin-top:2px;
}

.grafica-kpi{
  text-align:right;
  white-space:nowrap;
}

.grafica-kpi .val{
  font-weight:900;
  font-size:18px;
  line-height:1;
  color: #000;
}

.grafica-kpi .tag{
  font-size:12px;
  color: #000;
}

.chart-box{
  height: 260px;
  padding: 6px 4px 2px;
}

.grafica-hint{
  margin-top: 8px;
  font-size: 12px;
  color: #000;
  display:flex;
  gap:8px;
  align-items:center;
}
.grafica-hint i{ opacity:.9; }

@media (max-width: 576px){
  .chart-box{ height: 240px; }
}

.grafica-card canvas{ max-width: 100%; }

.grafica-card{
  color: #0f172a;
}

.chart-box{
  position: relative;
}

.grafica-card .grafica-head,
.grafica-card .grafica-hint{
  color: #0f172a;
}

/* ===== Modal de detalle desde el mapa (base: .app-modal-content) ===== */
.md-head{
  align-items: flex-start;
  gap: 1rem;
}
.md-head-texto{ min-width: 0; }
.md-kicker{
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #667085;
  margin-bottom: 2px;
}
.md-kicker i{ color: var(--app-accent); }
.md-titulo{
  font-size: 1.05rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.md-chips{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}

.md-chip{
  display: inline-flex;
  align-items: center;
  padding: .25rem .65rem;
  border: 1px solid var(--app-border-soft);
  border-radius: 999px;
  background: #fff;
  font-size: .8rem;
  color: #374151;
}

.md-datos{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}
.md-dato{
  border: 1px solid var(--app-border-soft);
  border-radius: 12px;
  padding: .7rem .9rem;
  background: #fff;
  min-width: 0;
}
.md-dato--ancho{ grid-column: 1 / -1; }
.md-dato-label{
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #667085;
  margin-bottom: .25rem;
}
.md-dato-label b{ color: #1f2937; margin-left: .35rem; }
.md-dato-valor{
  font-weight: 600;
  color: #1f2937;
  overflow-wrap: anywhere;
}
.md-dato .progressline{ margin-top: .45rem; }

.md-seccion{
  border-left: 4px solid var(--app-accent);
  background: #fafafa;
  border-radius: 12px;
  padding: .8rem 1rem;
}
.md-descripcion{
  margin: 0;
  max-height: 11rem;
  overflow-y: auto;
  white-space: pre-line;
  overflow-wrap: anywhere;
  color: #374151;
}

@media (max-width: 575.98px){
  .md-datos{ grid-template-columns: 1fr; }
}
/* ===== Carrusel dentro del modal ===== */
.md-carrusel-card{
  margin-top: 12px;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}

.md-carrusel-title{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight: 800;
  color:#7D1313;
  margin-bottom:10px;
}

.mdCarouselViewport{
  height: 240px;     /* antes 320 */
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

#mdCarousel .carousel-inner { height: 240px; }

#mdCarousel .carousel-item { height: 100%; } /* ok */

#mdCarousel .md-slide{
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

#mdCarousel .md-slide img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#mdCarousel .md-slide-error{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  color: #667085;
  font-weight: 600;
}
#mdCarousel .md-slide-error i{ font-size: 1.8rem; }

.modal-title {
    color: #BC965C;
    letter-spacing: 0.4px;
}

/* Botón vino (reutilizable en home y detalle de obra) */
.btn-maroon{
  background: #7D1313;
  border: 1px solid #7D1313;
  color: #fff;
}
.btn-maroon:hover{ background:#661010; border-color:#661010; color:#fff; }

/* Modal estandarizado (mismo que intranet: app_list.css .app-modal-content/.btn-app-*) */
.app-modal-content {
  border-radius: 14px;
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
}
.app-modal-content .modal-header { border-bottom: 1px solid var(--app-border-soft); }
.app-modal-content .modal-title { color: var(--app-accent); font-weight: 700; }
.app-modal-content .modal-footer { border-top: 1px solid var(--app-border-soft); }

/* Nombre de obra en el badge de la queja: no lo dejes salirse del modal con nombres largos. */
.queja-badge-obra {
  white-space: normal;
  text-align: left;
  max-width: 100%;
}
.app-modal-content .modal-body { padding: 1.6rem 1.75rem; }

/* Validaciones del formulario de queja (mismo criterio que login/registro de RUTEM). */
.form-control.is-invalid {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, .08);
}
.queja-feedback {
  min-height: 16px;
  margin-top: 4px;
  font-size: .78rem;
  color: #b91c1c;
}
.btn-app-cancelar {
  min-height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #dde3ea;
  color: #667085;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none !important;
}
.btn-app-cancelar:hover { border-color: #c7cdd6; color: #4b5563; }

.btn-app-vino {
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--app-accent);
  color: #fff;
  font-weight: 800;
  padding: 0 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  transition: all .25s ease;
  cursor: pointer;
  text-decoration: none !important;
}
.btn-app-vino:hover {
  background: var(--app-accent-dark);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none !important;
}
.btn-app-vino:disabled,
.btn-app-vino.disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}
.info-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
}

.info-icon:hover {
  background: #d1d5db;
}

/* =========================================================
   Explora por municipio: mapa (INEGI, sin mapa base) + panel
   Rampa guinda validada (una sola tinta, luminosidad monótona)
========================================================= */
.mapa-controles { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mapa-metrica {
  display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px;
  background: #f3eee9; border: 1px solid rgba(15,23,42,.06);
}
.mapa-metrica button {
  border: 0; background: transparent; color: #5b5450; font-weight: 600; font-size: .85rem;
  padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s;
}
.mapa-metrica button[aria-checked="true"] { background: #fff; color: #86193a; box-shadow: 0 2px 8px rgba(88,14,38,.14); }
.mapa-metrica button:focus-visible { outline: 2px solid #86193a; outline-offset: 2px; }

.mapa-explora {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start;
}
.mapa-explora__mapa {
  position: relative; border-radius: 24px; padding: 8px 8px 14px;
  background: radial-gradient(120% 90% at 50% 40%, #fffaf6 0%, #f6efe8 70%, #efe6dd 100%);
  border: 1px solid rgba(120,60,60,.08);
}
.mapa-explora .map-canvas { height: min(74vh, 720px); background: transparent; }
.mapa-explora .leaflet-container { background: transparent; font-family: inherit; }
/* El estado "flota" sobre el fondo */
.mapa-explora .leaflet-overlay-pane svg { filter: drop-shadow(0 14px 18px rgba(88,14,38,.18)); }
.mapa-explora .leaflet-interactive { transition: fill .45s ease, fill-opacity .45s ease; }
.mapa-explora .leaflet-control-attribution { background: transparent; font-size: 10px; }

.mapa-leyenda { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; font-size: .78rem; color: #5b5450; }
.mapa-leyenda__titulo { font-weight: 700; color: #2b2523; margin-right: 4px; }
.mapa-leyenda__paso { display: inline-flex; align-items: center; gap: 6px; }
.mapa-leyenda__paso i { width: 22px; height: 10px; border-radius: 3px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.mapa-leyenda__punto { display: inline-flex; align-items: center; gap: 6px; }
.mapa-leyenda__punto i { width: 10px; height: 10px; border-radius: 50%; background: #2b2523; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(43,37,35,.25); }

/* Tooltip que sigue al cursor */
.leaflet-tooltip.mapa-tip {
  background: #fff; border: 0; border-radius: 12px; padding: 10px 12px; color: #2b2523;
  box-shadow: 0 10px 28px rgba(43,37,35,.18); font-size: .8rem; line-height: 1.35;
  /* Leaflet los trae con nowrap: un nombre largo estiraba el globo a todo el ancho */
  white-space: normal; width: max-content; max-width: 280px;
}
.leaflet-tooltip.mapa-tip::before { display: none; }
.mapa-tip__valor { display: block; font-size: 1.15rem; font-weight: 800; color: #2b2523; }
.mapa-tip__nombre {
  display: -webkit-box; font-weight: 600; color: #5b5450; overflow-wrap: anywhere;
  -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.mapa-tip__extra { display: block; color: #7a716b; margin-top: 2px; }

/* Panel lateral */
.mapa-panel {
  background: #fff; border-radius: 24px; padding: 22px; min-height: 100%;
  box-shadow: 0 18px 40px rgba(43,37,35,.08); border: 1px solid rgba(15,23,42,.05);
  animation: mapaPanelEntra .35s ease;
}
@keyframes mapaPanelEntra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mapa-panel__kicker { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #86193a; }
.mapa-panel__titulo { font-size: 1.45rem; font-weight: 800; line-height: 1.15; margin: 4px 0 16px; color: #2b2523; }
.mapa-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.mapa-stat { border-radius: 16px; padding: 12px 14px; background: #f8f4f0; }
.mapa-stat--hero { grid-column: 1 / -1; background: linear-gradient(135deg, #86193a, #580e26); color: #fff; }
.mapa-stat__valor { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.mapa-stat--hero .mapa-stat__valor { font-size: 1.9rem; }
.mapa-stat__etiqueta { display: block; font-size: .76rem; opacity: .8; margin-top: 2px; }
.mapa-panel__sub { font-size: .8rem; font-weight: 700; color: #5b5450; margin: 4px 0 10px; text-transform: uppercase; letter-spacing: .06em; }
.mapa-ranking { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.mapa-ranking button {
  width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center;
  border: 0; background: transparent; text-align: left; padding: 8px 10px; border-radius: 12px; cursor: pointer; color: #2b2523;
}
.mapa-ranking button:hover, .mapa-ranking button:focus-visible { background: #f8f1f3; outline: none; }
.mapa-ranking__nombre { font-weight: 600; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mapa-ranking__valor { font-weight: 700; font-size: .85rem; }
.mapa-ranking__barra { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: #f1e9ec; overflow: hidden; }
.mapa-ranking__barra span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #cc6d8a, #86193a); }
.mapa-obras { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-height: 340px; overflow: auto; }
.mapa-obras button {
  width: 100%; border: 1px solid #f1e9ec; background: #fff; border-radius: 14px; padding: 10px 12px; text-align: left; cursor: pointer; color: #2b2523;
}
.mapa-obras button:hover, .mapa-obras button:focus-visible { border-color: #cc6d8a; outline: none; box-shadow: 0 6px 16px rgba(134,25,58,.1); }
.mapa-obras__nombre { display: block; font-weight: 600; font-size: .86rem; line-height: 1.3; }
.mapa-obras__meta { display: flex; justify-content: space-between; gap: 8px; font-size: .76rem; color: #7a716b; margin-top: 6px; }
.mapa-obras__avance { height: 5px; border-radius: 999px; background: #f1e9ec; margin-top: 6px; overflow: hidden; }
.mapa-obras__avance span { display: block; height: 100%; background: #2e8b57; border-radius: 999px; }
.mapa-panel__vacio { color: #7a716b; font-size: .88rem; }
.mapa-panel__volver { margin-top: 16px; }

@media (max-width: 991.98px) {
  .mapa-explora { grid-template-columns: 1fr; }
  .mapa-explora .map-canvas { height: 520px; }
}
@media (max-width: 575.98px) {
  .mapa-explora .map-canvas { height: 380px; }
  .mapa-panel { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mapa-explora .leaflet-interactive, .mapa-panel { transition: none; animation: none; }
}

/* =====================================================
   Lista + mapa (opción A)
   - Pantallas anchas (≥1200px): lista a la izquierda en tarjetas,
     mapa fijo a la derecha mientras se baja por la lista.
   - Pantallas angostas: el mapa queda debajo de la lista.
   ===================================================== */
.obras-split__mapa{
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 2rem;
}
.obras-mapa-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: .75rem;
  flex-wrap: wrap;
}
.obras-mapa-titulo{
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}
.obras-mapa-sub{
  margin: .15rem 0 0;
  font-size: .88rem;
  color: #4b5260;
}

@media (min-width: 1200px){
  .obras-split{
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
  }
  /* Lista y mapa terminan al mismo nivel: el mapa se estira al alto de la lista */
  .obras-split{
    align-items: stretch;
  }
  .obras-split__mapa{
    margin-top: 0;
  }
  .obras-split .mapa-explora,
  .obras-split .mapa-explora__mapa{
    flex: 1;
    display: flex;
    flex-direction: column;
    /* Siempre todo el ancho de la columna; si no, la tarjeta toma el ancho
       de la leyenda y cambia de tamaño entre "Obras" e "Inversión". */
    align-items: stretch;
  }
  .obras-split .mapa-explora .map-canvas{
    flex: 1;
    height: auto;
    min-height: 420px;
  }
  /* El panel del mapa va debajo del mapa en media pantalla */
  .obras-split .mapa-explora{
    grid-template-columns: 1fr;
    gap: .75rem;
  }
  .obras-split .mapa-explora .map-canvas{
    height: min(52vh, 460px);
  }

  /* Filas como tarjetas compactas en la columna izquierda */
  .obras-split .tabla-scroll{ overflow-x: visible; }
  .obras-split .nice-table-head{ display: none; }
  .obras-split .nice-row{
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "obra monto"
      "ubicacion estatus"
      "avance avance";
    gap: .55rem 1rem;
    padding: 1rem 1.1rem;
  }
  .obras-split .col-obra{ grid-area: obra; }
  .obras-split .col-monto{ grid-area: monto; justify-self: end; align-self: start; }
  .obras-split .col-ubicacion{
    grid-area: ubicacion;
    flex-direction: row;
    align-items: center;
    gap: .5rem;
  }
  .obras-split .col-estatus{ grid-area: estatus; justify-self: end; }
  .obras-split .col-avance{ grid-area: avance; }
  .obras-split .col-ir{ display: none; }
}

/* =====================================================
   Tarjeta "reportar un problema" (partials/cta_queja.html)
   La misma en home y en el detalle de obra.
   ===================================================== */
.cta-queja{
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #ece7e3;
  box-shadow: 0 6px 20px rgba(43,37,35,.05);
}
.cta-queja__icono{
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbeaee;
  color: #891b35;
  font-size: 1.35rem;
}
.cta-queja__texto{
  flex: 1 1 280px;
  min-width: 0;
}
.cta-queja__titulo{
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #141418;
}
.cta-queja__sub{
  margin: .2rem 0 0;
  font-size: .92rem;
  color: #4b5260;
}
.cta-queja__btn{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 46px;
  padding: 0 1.2rem;
  border: 1px solid #891b35;
  border-radius: 12px;
  background: #891b35;
  color: #fff;
  font-weight: 700;
}
.cta-queja__btn:hover,
.cta-queja__btn:focus-visible{
  background: #6d1529;
  border-color: #6d1529;
}
@media (max-width: 575.98px){
  .cta-queja__btn{ width: 100%; justify-content: center; }
}


/* Portada pública: composición compacta y paisaje del Estado de México. */
.hero-public-landscape {
  min-height: 420px;
  background: radial-gradient(ellipse at 70% 0%, #123447 0%, transparent 65%), #031b2b;
  border-top: 2px solid #891b35;
  justify-content: flex-start;
}
.hero-public-landscape > .container { max-width: 1440px; padding: 42px 48px 84px !important; z-index: 1; }
.hero-public-landscape .hero-layout { --bs-gutter-x: 3rem; }
.hero-public-landscape .hero-badge { padding: 0; border: 0; background: none; border-radius: 0; font-size: .65rem; font-weight: 400; text-transform: uppercase; letter-spacing: .12em; }
.hero-public-landscape .hero-title { max-width: 20ch; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(2rem, 3vw, 2.85rem); line-height: 1.08; letter-spacing: 0; margin-bottom: .65rem !important; }
.hero-public-landscape .hero-subtitle { font-size: .9rem; margin-bottom: 2.25rem !important; }
.hero-public-landscape .hero-search { border-radius: 7px; padding: 5px; margin-top: 0; margin-bottom: 1.5rem !important; }
.hero-public-landscape .hero-search-campo input { min-height: 36px; font-size: .85rem; }
.hero-public-landscape .hero-search-btn { min-height: 36px; border-radius: 5px; font-size: .8rem; }
.hero-public-landscape .hero-search-btn::after { content: ' →'; }
.hero-public-landscape .hero-sugerencias { gap: .35rem; margin-bottom: 1.4rem !important; }
.hero-public-landscape .hero-sugerencias-label { font-size: .65rem; }
.hero-public-landscape .hero-sugerencia { padding: .25rem .55rem; font-size: .65rem; background: #102e40; border-color: #355368; font-weight: 400; }
.hero-public-landscape .hero-btn { padding: .65rem 1.1rem; border-radius: 6px; font-size: .85rem; }
.hero-public-landscape .hero-btn.btn-primary { background: #dfb96e; border-color: #dfb96e; color: #122332; }
.hero-public-landscape .hero-btn.btn-outline-light { background: #031827; border-color: #ae9055; color: #fff; }
.hero-public-landscape .hero-btn:hover { filter: brightness(1.12); }
.hero-public-landscape .hero-note { font-size: .7rem; margin-top: 1.75rem !important; }
.hero-public-landscape .hero-panel { padding: 0; border: 0; background: none; box-shadow: none; backdrop-filter: none; border-radius: 0; }
.hero-public-landscape .hero-panel-title { font-size: 1rem; }
.hero-public-landscape .hero-panel-sub, .hero-public-landscape .hero-panel-footer, .hero-public-landscape .kpi-help { display: none; }
.hero-public-landscape .hero-pill { border: 0; background: none; padding: 0; font-size: .65rem; }
.hero-public-landscape .hero-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin: 1rem 0 0 !important; }
.hero-public-landscape .hero-kpis > div { width: auto; padding: 0; margin: 0; }
.hero-public-landscape .hero-kpis > div:nth-child(3) { order: 4; }
.hero-public-landscape .kpi-card { height: 158px; padding: 18px 6px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; text-align: center; border: 1px solid #365568; border-radius: 9px; background: linear-gradient(145deg, #13364b, #082334); }
.hero-public-landscape .kpi-icon { width: auto; height: auto; padding: 0; border: 0; border-radius: 0; background: none; color: #e8b665; font-size: 2.35rem; }
.hero-public-landscape .kpi-body { display: flex; flex-direction: column; align-items: center; }
.hero-public-landscape .kpi-value { order: -1; font-size: 1.35rem; white-space: nowrap; }
.hero-public-landscape .kpi-label { font-size: .62rem; color: #d2dce4; }
.hero-public-landscape .hero-bajar { display: none; }
.hero-landscape { position: absolute; bottom: 0; right: 0; width: 100%; height: 210px; color: #39718a; opacity: .55; pointer-events: none; }
@media (max-width: 991.98px) {
  .hero-public-landscape > .container { padding: 32px 24px 70px !important; }
  .hero-public-landscape .hero-panel { margin-top: 8px; }
  .hero-public-landscape .hero-title { max-width: 24ch; }
}
@media (max-width: 479.98px) {
  .hero-public-landscape .hero-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-public-landscape .kpi-card { height: 130px; }
  .hero-public-landscape .hero-pill { max-width: 110px; text-align: right; }
}

/* Margen lateral de la portada: aproximadamente 5 cm en escritorio. */
@media (min-width: 992px) {
  .hero-public-landscape > .container {
    max-width: none;
    padding-left: clamp(24px, 10vw, 5cm) !important;
    padding-right: clamp(24px, 10vw, 5cm) !important;
  }
}

/* Título protagonista, con el salto de línea solicitado. */
.hero-public-landscape .hero-copy { container-type: inline-size; }
.hero-public-landscape .hero-title {
  max-width: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 8.2cqi, 4rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  margin-bottom: 1rem !important;
}
.hero-public-landscape .hero-title-line { display: block; }

/* Paisaje completo, con trazos finos y espacio propio bajo el contenido. */
.hero-public-landscape { background: radial-gradient(ellipse at 72% 10%, #103044 0%, transparent 68%), #021d30; }
.hero-public-landscape > .container {
  padding-bottom: clamp(110px, 8vw, 170px) !important;
}
.hero-public-landscape .hero-landscape {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 344;
  opacity: .72;
}
.hero-public-landscape .hero-landscape :is(path, rect, circle) {
  vector-effect: non-scaling-stroke;
  stroke-width: .65px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-public-landscape .hero-landscape path[stroke="#c99b54"],
.hero-public-landscape .hero-landscape path[stroke="#d5ab64"],
.hero-public-landscape .hero-landscape path[stroke="#d6ac65"] {
  stroke-width: 1px;
}

/* Iconos del resumen con mayor presencia. */
.hero-public-landscape .hero-pill .bi {
  display: inline-block;
  font-size: 1rem;
  vertical-align: middle;
}

/* Resumen general con tarjetas y franja de avance. */
.hero-public-landscape .hero-panel {
  padding: 20px 14px 18px;
  background: linear-gradient(135deg, rgba(9,39,61,.48), rgba(8,35,55,.38));
  border: 1px solid #254b63;
  border-radius: 22px;
  box-shadow: 0 14px 34px #00132140;
}
.hero-public-landscape .hero-panel-header { padding: 0 4px; gap: 12px; }
.hero-public-landscape .hero-panel-title { border-left: 3px solid #dfb96e; padding-left: 18px; font-size: 1rem; }
.hero-public-landscape .hero-pill { padding: 6px 10px; border-radius: 20px; background: #1c425c; font-size: .65rem; white-space: nowrap; }
.hero-public-landscape .hero-pill .bi { font-size: .75rem; }
.hero-public-landscape .hero-kpis { gap: 10px; margin-top: 18px !important; }
.hero-public-landscape .kpi-card { height: 172px; padding: 16px 6px; gap: 12px; border: 1px solid #1c4058; border-radius: 15px; background: linear-gradient(145deg, #10314a40, #102c4030); }
.hero-public-landscape .kpi-icon { width: 66px; height: 66px; flex: 0 0 66px; border-radius: 50%; background: #ffffff0b; color: #e8b665; font-size: 2rem; }
.hero-public-landscape .kpi-value { font-size: clamp(1.2rem, 1.8vw, 1.7rem); }
.hero-public-landscape .kpi-label { margin-top: 6px; font-size: .7rem; }
.hero-public-landscape .hero-panel-footer { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #24445a; padding: 16px 8px 0; gap: 20px; }
.summary-progress, .summary-list-link { display: flex; align-items: center; gap: 14px; min-width: 0; }
.summary-footer-icon { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: 0 0 46px; background: #ffffff0b; border-radius: 50%; color: #e6eef5; font-size: 1.4rem; }
.summary-progress-body { flex: 1; min-width: 0; }
.summary-footer-label { display: block; color: #bdcedb; font-size: .65rem; }
.summary-progress-value { display: flex; align-items: center; gap: 12px; }
.summary-progress-value strong { font-size: 1.5rem; }
.summary-progress-value progress { appearance: none; width: 100%; min-width: 0; height: 7px; border: 0; border-radius: 10px; overflow: hidden; background: #34526b; color: #dfb96e; }
.summary-progress-value progress::-webkit-progress-bar { background: #34526b; border-radius: 10px; }
.summary-progress-value progress::-webkit-progress-value { background: #dfb96e; border-radius: 10px; }
.summary-progress-value progress::-moz-progress-bar { background: #dfb96e; border-radius: 10px; }
.summary-list-link { border-left: 1px solid #24445a; padding-left: 20px; color: #fff; text-decoration: none; font-size: .75rem; }
.summary-list-link small { display: block; margin-top: 5px; color: #aec3d2; font-size: .6rem; }
.summary-list-link:hover { color: #e8b665; }
@media (max-width: 575.98px) {
  .hero-public-landscape .hero-panel-header { flex-wrap: wrap; }
  .hero-public-landscape .hero-panel-footer { grid-template-columns: 1fr; gap: 14px; }
  .summary-list-link { border-left: 0; border-top: 1px solid #24445a; padding: 14px 0 0; }
}

/* Resumen translúcido con iconografía blanca. */
.hero-public-landscape .hero-panel .kpi-icon,
.hero-public-landscape .hero-panel .summary-footer-icon,
.hero-public-landscape .hero-panel .hero-pill .bi { color: #fff; }
.hero-public-landscape .hero-panel .hero-pill { background: #1c425c80; }

/* Portada hasta el borde inferior de la pantalla y paisaje en blanco. */
@media (min-width: 992px) {
  .hero-public-landscape {
    min-height: calc(100vh - 75px);
    min-height: calc(100svh - 75px);
  }
}
.hero-public-landscape .hero-landscape path[stroke="#ffffff"] {
  stroke-width: 1px;
  stroke-opacity: .7;
}

/* El tren recorre el tramo inferior del viaducto sin invadir el resumen. */
@media (prefers-reduced-motion: no-preference) {
  .hero-train-motion { animation: obras-train-travel 25s linear infinite; }
}
@keyframes obras-train-travel {
  0% { transform: translate(-20px, 4px); opacity: 0; }
  8% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(240px, -48px); opacity: 0; }
}

/* Paleta crema, arena y vino; conserva la composición y sus animaciones. */
.hero-public-landscape {
  background: radial-gradient(ellipse at 72% 10%, #faf5ee 0%, transparent 68%), #f2e9df;
  color: #292727;
}
.hero-public-landscape .hero-bg {
  background: radial-gradient(circle at 30% 30%, #ffffff55, transparent 45%), radial-gradient(circle at 70% 15%, #e9d8c733, transparent 40%);
}
.hero-public-landscape .hero-title { color: #292727; }
.hero-public-landscape .hero-title-line:last-child { color: #861b3c; }
.hero-public-landscape .hero-badge,
.hero-public-landscape .hero-subtitle { color: #393332; }
.hero-public-landscape .hero-note,
.hero-public-landscape .hero-sugerencias-label { color: #655852; }
.hero-public-landscape .hero-search { background: #fffdfb; box-shadow: 0 10px 30px #653c2415; }
.hero-public-landscape .hero-search-campo { color: #a58263; }
.hero-public-landscape .hero-search-campo input { color: #292727; }
.hero-public-landscape .hero-search-campo input::placeholder { color: #897b74; }
.hero-public-landscape .hero-search-btn { background: #891b3d; color: #fff; }
.hero-public-landscape .hero-search-btn:hover,
.hero-public-landscape .hero-search-btn:focus-visible { background: #70152f; }
.hero-public-landscape .hero-sugerencia { background: #f4ece380; border-color: #d9c9bb; color: #393332; }
.hero-public-landscape .hero-sugerencia:hover,
.hero-public-landscape .hero-sugerencia:focus-visible { background: #e8d8c8; color: #70152f; }
.hero-public-landscape .hero-btn.btn-primary { background: #891b3d !important; border-color: #891b3d; color: #fff !important; }
.hero-public-landscape .hero-btn.btn-outline-light { background: #eadbc9 !important; border-color: #d9c6b4; color: #342b29 !important; }
.hero-public-landscape .hero-panel { background: linear-gradient(135deg, #faf5ee7a, #f2e9df61); border-color: #dfcfc1; box-shadow: 0 14px 34px #77533b15; }
.hero-public-landscape .hero-panel-title { color: #292727; border-left-color: #891b3d; }
.hero-public-landscape .hero-panel .hero-pill { background: #e7d9cd80; color: #55413c; }
.hero-public-landscape .kpi-card { background: linear-gradient(145deg, #f8f1e940, #ecdfd230); border-color: #dfcfc1; }
.hero-public-landscape .hero-panel .kpi-icon,
.hero-public-landscape .hero-panel .summary-footer-icon { background: #e8d7c699; color: #891b3d; }
.hero-public-landscape .hero-panel .hero-pill .bi { color: #891b3d; }
.hero-public-landscape .kpi-value { color: #292727; }
.hero-public-landscape .kpi-label,
.hero-public-landscape .summary-footer-label { color: #554b46; }
.hero-public-landscape .hero-panel-footer,
.hero-public-landscape .summary-list-link { border-color: #dfcfc1; }
.hero-public-landscape .summary-progress-value strong,
.hero-public-landscape .summary-list-link { color: #292727; }
.hero-public-landscape .summary-list-link small { color: #655852; }
.hero-public-landscape .summary-list-link:hover { color: #891b3d; }
.hero-public-landscape .summary-progress-value progress { background: #dccdc0; color: #891b3d; }
.hero-public-landscape .summary-progress-value progress::-webkit-progress-bar { background: #dccdc0; }
.hero-public-landscape .summary-progress-value progress::-webkit-progress-value { background: #891b3d; }
.hero-public-landscape .summary-progress-value progress::-moz-progress-bar { background: #891b3d; }
.hero-public-landscape .hero-search:focus-within { box-shadow: 0 0 0 3px #891b3d40, 0 10px 30px #653c2415; }
.hero-public-landscape .hero-landscape [stroke]:not([stroke="none"]) { stroke: #a7636a; }
.hero-public-landscape .hero-landscape [fill]:not([fill="none"]):not([fill^="url("]) { fill: #efe2d5; }
.hero-public-landscape .hero-landscape #obras-hill stop:first-child { stop-color: #efe2d5; }
.hero-public-landscape .hero-landscape #obras-hill stop:last-child { stop-color: #e5d4c3; }
.hero-public-landscape .hero-landscape #obras-viaduct stop:first-child { stop-color: #ead8c7; }
.hero-public-landscape .hero-landscape #obras-viaduct stop:last-child { stop-color: #f2e8dd; }

/* Paisaje tenue sobre la paleta crema. */
.hero-public-landscape .hero-landscape {
  opacity: .55;
  filter: drop-shadow(0 2px 2px #75402d24);
}
.hero-public-landscape .hero-landscape :is(path, rect, circle) {
  stroke-width: .95px;
}
.hero-public-landscape .hero-landscape [stroke]:not([stroke="none"]) {
  stroke: #94434f;
}
.hero-public-landscape .hero-landscape path[stroke="#ffffff"] {
  stroke-width: 1.2px;
  stroke-opacity: .85;
}
.hero-public-landscape .hero-landscape [fill]:not([fill="none"]):not([fill^="url("]) {
  fill: #e9d7c6;
}
.hero-public-landscape .hero-landscape #obras-hill stop:first-child { stop-color: #e9d7c6; }
.hero-public-landscape .hero-landscape #obras-hill stop:last-child { stop-color: #d9bea6; }
.hero-public-landscape .hero-landscape #obras-viaduct stop:first-child { stop-color: #d9bba2; }
.hero-public-landscape .hero-landscape #obras-viaduct stop:last-child { stop-color: #ecddce; }

/* Sombreado interior de ilustración, sin sombra exterior. */
.hero-public-landscape .hero-landscape { filter: none; }
.hero-public-landscape .hero-landscape [fill="#062336"],
.hero-public-landscape .hero-landscape [fill="#082639"],
.hero-public-landscape .hero-landscape [fill="#12344a"] {
  fill: url(#obras-object-shade) !important;
}
.hero-public-landscape .hero-landscape [fill="#0b2c43"] {
  fill: url(#obras-pier-shade) !important;
}
.hero-public-landscape .hero-landscape #obras-viaduct stop:first-child { stop-color: #c8a18a; }
.hero-public-landscape .hero-landscape #obras-viaduct stop:last-child { stop-color: #f0e2d4; }
.hero-public-landscape .hero-landscape #obras-hill stop:first-child { stop-color: #efe3d7; }
.hero-public-landscape .hero-landscape #obras-hill stop:last-child { stop-color: #ddc6b1; }

/* Contornos vino más definidos en el paisaje. */
.hero-public-landscape .hero-landscape :is(path, rect, circle) {
  stroke-width: 1.5px;
}
.hero-public-landscape .hero-landscape path[stroke="#ffffff"] {
  stroke-width: 1.8px;
}

/* Nota informativa al pie del paisaje. */
.hero-public-landscape .hero-bottom-note {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  z-index: 2;
  max-width: none;
  margin: 0 !important;
  padding: 0 clamp(24px, 10vw, 5cm);
  justify-content: flex-start;
  text-align: left;
}
@media (max-width: 991.98px) {
  .hero-public-landscape .hero-bottom-note { padding: 0 24px; }
}

/* Avance y acceso al listado antes de los indicadores. */
.hero-public-landscape .hero-panel-footer {
  border-top: 0;
  border-bottom: 1px solid #dfcfc1;
  padding: 8px 8px 20px;
  margin-top: 20px !important;
}
.hero-public-landscape .summary-footer-icon {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  font-size: 1.9rem;
}
.hero-public-landscape .summary-footer-label { font-size: .9rem; }
.hero-public-landscape .summary-progress-value strong { font-size: 2rem; }
.hero-public-landscape .summary-progress-value progress { height: 9px; }
.hero-public-landscape .summary-list-link { font-size: 1rem; }
.hero-public-landscape .summary-list-link small { font-size: .8rem; }

/* Fondo crema continuo en toda la página de obras. */
body { background-color: #f2e9df; }
body > main {
  background: radial-gradient(ellipse 1000px 700px at 72% 0%, #faf5ee 0%, transparent 68%), #f2e9df;
}

/* Título del listado en vino institucional. */
#obras .section-head .section-title { color: #891b3d; font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.15; }

/* Identidad y separación fina sobre el título del listado. */
#obras .obras-section-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  color: #554b46;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
#obras .obras-section-eyebrow::after {
  content: "";
  flex: 1 1 80px;
  height: 1px;
  background: #891b3d;
  opacity: .65;
}
#obras .section-title .obras-title-dark { color: #171717; }

/* Encabezado editorial compacto, como la referencia. */
#obras .obras-section-eyebrow {
  gap: 10px;
  margin-bottom: 4px;
  color: #891b3d;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .015em;
}
#obras .obras-section-eyebrow::after { flex: 0 0 48px; }
#obras .section-head .section-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.035em;
}

/* Frase de transparencia más visible y línea extendida. */
#obras .obras-section-eyebrow {
  font-size: .8rem;
  gap: 14px;
}
#obras .obras-section-eyebrow::after { flex: 0 1 160px; min-width: 80px; }
#obras .section-head .section-title { color: #891b3d; }

/* Línea junto a la frase de transparencia, sin salto de renglón. */
#obras .obras-section-eyebrow {
  flex-wrap: nowrap;
  white-space: nowrap;
  font-size: clamp(.45rem, 1.5vw, .8rem);
  gap: clamp(6px, 1.5vw, 14px);
}
#obras .obras-section-eyebrow::after {
  flex: 0 1 320px;
  min-width: 24px;
}

/* Curvas topográficas decorativas, suaves y sin interferir con el contenido. */
#obras > .section-head {
  position: relative;
  isolation: isolate;
}
#obras > .section-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -65px;
  bottom: -8px;
  right: -12px;
  width: 65%;
  background: url("../img/obras-topografia.svg") center right / cover no-repeat;
  opacity: .12;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%);
  mask-image: linear-gradient(to right, transparent, #000 45%);
  pointer-events: none;
}
@media (max-width: 767.98px) {
  #obras > .section-head::before { width: 80%; opacity: .07; }
}

/* Título del listado con la misma tipografía que el título principal. */
#obras .section-head .section-title {
  color: #171717;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -.035em;
}

/* Botones de filtros y métricas en vino institucional. */
#obras .btn-mas-filtros,
#obras .mapa-metrica button {
  background: #891b3d;
  color: #fff;
  border: 1px solid #891b3d;
}
#obras .btn-mas-filtros:hover,
#obras .btn-mas-filtros[aria-expanded="true"],
#obras .mapa-metrica button:hover { background: #70152f; color: #fff; }
#obras .mapa-metrica { gap: 4px; }
#obras .mapa-metrica button[aria-checked="true"] {
  background: #70152f;
  color: #fff;
  box-shadow: inset 0 -3px 0 #e5c7a3;
}
#obras .btn-mas-filtros:focus-visible,
#obras .mapa-metrica button:focus-visible {
  outline: 2px solid #891b3d;
  outline-offset: 3px;
}

/* Superficies beige claro para distinguirlas del fondo arena. */
#obras .filtros-obras,
#obras .resumen-card,
#obras .nice-table,
#obras .nice-row {
  background: #fcf7ef;
  border-color: #e5d9cc;
}
#obras .searchbox .form-control,
#obras .filtros-grid .form-control,
#obras .filtros-grid .form-select {
  background-color: #fffaf3;
  border-color: #e1d5c8;
}
#obras .nice-row:hover,
#obras .nice-row:focus-visible { background: #f5eadc; }

/* La métrica seleccionada en vino; la otra en beige claro. */
#obras .mapa-metrica button[aria-checked="false"] {
  background: #fcf7ef;
  color: #655852;
  border-color: #e5d9cc;
  box-shadow: none;
}
#obras .mapa-metrica button[aria-checked="false"]:hover {
  background: #f5eadc;
  color: #891b3d;
}
#obras .mapa-metrica button[aria-checked="true"] {
  background: #891b3d;
  color: #fff;
  border-color: #891b3d;
  box-shadow: 0 2px 6px #891b3d20;
}

/* Indicadores con iconos y detalles en vino y arena. */
#obras .resumen-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 124px;
  padding: 24px 88px 24px 24px;
  justify-content: center;
  gap: 8px;
  border-radius: 20px;
  border: 1px solid #e5d5c5;
  background: linear-gradient(120deg, #fffaf3, #f8efe4);
  box-shadow: 0 5px 18px #6d452908;
}
#obras .resumen-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  bottom: 26px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #891b3d;
}
#obras .resumen-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -30px;
  bottom: -65px;
  width: 160px;
  height: 160px;
  border: 1px solid #891b3d0d;
  border-radius: 50%;
  box-shadow: 0 0 0 18px #891b3d03, 0 0 0 36px #891b3d03;
}
#obras .resumen-icon {
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid #891b3d12;
  border-radius: 16px;
  background: #891b3d08;
  color: #891b3d;
  font-size: 1.5rem;
}
#obras .resumen-label { font-size: .7rem; color: #891b3d; letter-spacing: .06em; }
#obras .resumen-valor { font-size: clamp(1.6rem, 2.3vw, 2rem); line-height: 1.15; color: #351d25; }
@media (max-width: 767.98px) {
  #obras .resumen-obras { grid-template-columns: 1fr; }
  #obras .resumen-card { min-height: 108px; padding: 20px 84px 20px 22px; }
}

/* Colores del encabezado del listado. */
#obras .obras-section-eyebrow { color: #171717; }
#obras .section-head .section-title { color: #891b3d; }

/* Título del mapa en vino institucional. */
#obras .obras-mapa-titulo { color: #891b3d; }

/* Encabezados de gráficas en vino institucional. */
#graficas > div > .section-title {
  color: #891b3d;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
}
#graficas .grafica-title,
#graficas .grafica-card > .fw-semibold { color: #891b3d; }

/* El monto completo se adapta al ancho de su tarjeta. */
#obras #resumenMonto { font-size: clamp(1.1rem, 1.65vw, 1.65rem); overflow-wrap: anywhere; }

/* Título ligeramente más alto y separado del buscador. */
#obras > .section-head {
  margin-top: -12px;
  margin-bottom: 28px !important;
}

/* Cantidades del resumen ajustadas al ancho interior de cada tarjeta. */
.hero-public-landscape .hero-panel .kpi-card {
  container-type: inline-size;
  min-width: 0;
  padding-inline: 12px;
}
.hero-public-landscape .hero-panel .kpi-body {
  width: 100%;
  min-width: 0;
}
.hero-public-landscape .hero-panel .kpi-value {
  max-width: 100%;
  font-size: clamp(.85rem, 14cqi, 1.7rem);
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}
.hero-public-landscape .hero-panel .kpi-label {
  max-width: 100%;
  line-height: 1.4;
  text-align: center;
}

/* Curvas decorativas del encabezado de gráficas, como en Obras y proyectos. */
#graficas > div:first-child {
  position: relative;
  isolation: isolate;
}
#graficas > div:first-child::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -65px;
  bottom: -8px;
  right: -12px;
  width: 65%;
  background: url("../img/obras-topografia.svg") center right / cover no-repeat;
  opacity: .12;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%);
  mask-image: linear-gradient(to right, transparent, #000 45%);
  pointer-events: none;
}
@media (max-width: 767.98px) {
  #graficas > div:first-child::before { width: 80%; opacity: .07; }
}

/* Reportes del inicio: separación de las gráficas y paleta institucional. */
.home-quejas {
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
}
.home-quejas .cta-queja {
  gap: 1.25rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: #f2e9df;
  border-color: #e3d4c5;
  box-shadow: 0 8px 24px rgba(70, 43, 31, .08);
}
.home-quejas .cta-queja__icono {
  background: #e8d7c6;
  color: #891b3d;
}
.home-quejas .cta-queja__titulo { color: #891b3d; }
.home-quejas .cta-queja__sub {
  color: #554b46;
  line-height: 1.6;
}
.home-quejas .cta-queja__btn {
  background: #891b3d;
  border-color: #891b3d;
}
.home-quejas .cta-queja__btn:hover,
.home-quejas .cta-queja__btn:focus-visible {
  background: #6d152f;
  border-color: #6d152f;
}
@media (max-width: 575.98px) {
  .home-quejas .cta-queja { gap: 1rem; }
  .home-quejas .cta-queja__texto { flex-basis: calc(100% - 68px); }
}
