/* Ajustes mínimos de integración externa. No altera la línea estética aprobada. */
:root {
    --muni-pink: #D82D81;
    --muni-gray: #F1F1F2;
}

.fondoAgenda {
    background-image: var(--agenda-bg-desktop, url('../img/fondos/agenda_pc.webp'));
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: #fff;
}

@media (max-width: 768px) {
    .fondoAgenda {
        background-image: var(--agenda-bg-mobile, url('../img/fondos/agenda_movil.png'));
        padding: 50px 0;
    }
}

.navbar-brand img { max-height: 72px; object-fit: contain; }
main { min-height: 55vh; }

/* Integración v0.1.1: botones destacados consumidos desde Suite / Gestor Web Pública */
.icono-circulo .icono-texto-grande{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:100%;
    font-size:3.5rem;
    line-height:1;
}
.boton-destacado[target="_blank"] .texto-boton::after,
.boton-estilo[target="_blank"]::after{
    content:" ↗";
    font-size:.85em;
}


/* v0.1.2 - Accesos secundarios desde Gestor Web Pública */
.boton-secundario-web {
    min-height: 58px;
    white-space: normal;
}
.boton-secundario-icono {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 auto;
}
.boton-secundario-emoji {
    font-size: 1.35rem;
    line-height: 1;
}


/* Agenda conectada a suite */
.agenda-card-web { color: inherit; }
.agenda-caption-web {
    margin-top: .65rem;
    color: #fff;
    font-family: 'Inter Tight', sans-serif;
    line-height: 1.15;
}
.agenda-caption-web strong { display: block; font-size: 1.05rem; }
.agenda-caption-web small { display: block; opacity: .9; margin-top: .25rem; }
.agenda-list-card {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    color: #222;
    box-shadow: 0 10px 26px rgba(20,20,20,.08);
    transition: transform .18s ease, box-shadow .18s ease;
}
.agenda-list-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(20,20,20,.12); color: #222; }
.agenda-date { color: #D82D81; font-weight: 800; font-family: 'Inter Tight', sans-serif; }
.evento-hero { max-height: 460px; object-fit: cover; border-radius: 22px; }
.contenido-evento { font-size: 1.05rem; line-height: 1.75; }


/* Buscador / IA Municipal v0.1.7 */
.hero-sub-label {
    color: rgba(255,255,255,.92);
    font-size: .88rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.buscador-page .titulo-pink { color: var(--muni-pink); font-family:'Inter Tight', sans-serif; font-weight:900; }
.buscador-panel {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(15,23,42,.10);
    border: 1px solid rgba(216,45,129,.12);
}
.buscador-badge {
    background: rgba(216,45,129,.12);
    color: var(--muni-pink);
    border-radius: 999px;
}
.buscador-btn {
    background: var(--muni-pink);
    color: #fff;
    font-weight: 800;
}
.buscador-btn:hover { background: #bf236f; color: #fff; }
.ia-respuesta-card {
    background: linear-gradient(135deg, rgba(216,45,129,.09), rgba(241,241,242,.85));
    border: 1px solid rgba(216,45,129,.16);
    border-radius: 22px;
}
.ia-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--muni-pink);
    display: inline-block;
}
.ia-texto { line-height: 1.65; }
.fuente-badge {
    background: #fff;
    color: #3b3b3b;
    border: 1px solid rgba(0,0,0,.08);
    text-decoration: none;
    border-radius: 999px;
    padding: .55rem .75rem;
}
.resultado-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 10px 26px rgba(20,20,20,.06);
    transition: transform .18s ease, box-shadow .18s ease;
}
.resultado-card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(20,20,20,.10); }
.resultado-card h3 a { color: #111827; text-decoration: none; }
.resultado-card h3 a:hover { color: var(--muni-pink); }
.resultado-tipo {
    color: var(--muni-pink);
    font-weight: 900;
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .03em;
}
.resultado-meta { color: #64748b; font-size: .9rem; }
.resultado-link { color: var(--muni-pink); font-weight: 800; text-decoration: none; }
.resultado-link:hover { text-decoration: underline; }

/* Información dinámica por área · Mi Lincoln v0.1.8-r2 */
.municipio-info-page {
    background: #fff;
    color: #202124;
}
.info-hero {
    background: linear-gradient(135deg, #f7f7f8 0%, #ffffff 62%, #fdeaf4 100%);
    border-bottom: 1px solid rgba(216, 45, 129, .16);
    padding: 2.25rem 0 2rem;
}
.info-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    align-items: center;
    color: #6c6f75;
    font-size: .95rem;
    margin-bottom: 1.5rem;
}
.info-breadcrumb i {
    font-size: .75rem;
    color: #d82d81;
}
.info-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #d82d81;
    color: #fff;
    font-weight: 700;
    padding: .38rem .75rem;
    font-size: .82rem;
    margin-bottom: .85rem;
}
.info-hero h1 {
    font-size: clamp(1.875rem, calc(5vw - 2px), 4.375rem);
    line-height: .98;
    margin: 0;
    font-weight: 850;
    letter-spacing: -.04em;
    color: #141414;
}
.info-lead {
    margin: 1rem 0 0;
    max-width: 760px;
    color: #4a4d53;
    font-size: clamp(1.05rem, 2.1vw, 1.35rem);
    line-height: 1.45;
}
.info-path {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1rem;
    padding: .55rem .75rem;
    border: 1px solid rgba(216, 45, 129, .2);
    border-radius: 14px;
    background: #fff;
    color: #d82d81;
    max-width: 100%;
}
.info-path code {
    color: #34363a;
    white-space: normal;
    word-break: break-word;
}
.info-identity-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 28px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 18px 45px rgba(20,20,20,.08);
}
.info-identity-card img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    border-radius: 20px;
    background: #f1f1f2;
    padding: .55rem;
}
.info-identity-card strong {
    display: block;
    font-size: 1.05rem;
}
.info-identity-card span {
    display: block;
    color: #6c6f75;
    font-size: .92rem;
}
.info-layout {
    padding-top: 2rem;
    padding-bottom: 3rem;
}
.info-content-card,
.info-side-card,
.info-child-card {
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(20,20,20,.06);
}
.info-content-card {
    padding: clamp(1.25rem, 2.7vw, 2rem);
}
.info-markdown h2,
.info-extra-block h2,
.info-related h2,
.info-side-card h2 {
    color: #151515;
    font-weight: 800;
    letter-spacing: -.02em;
}
.info-markdown h2 {
    font-size: 1.65rem;
    margin: 1.2rem 0 .7rem;
}
.info-markdown h2:first-child {
    margin-top: 0;
}
.info-markdown h3 {
    font-size: 1.2rem;
    margin: 1rem 0 .45rem;
    color: #d82d81;
    font-weight: 800;
}
.info-markdown p,
.info-markdown li,
.info-extra-block p,
.info-extra-block li {
    font-size: 1.03rem;
    line-height: 1.72;
    color: #3f4248;
}
.info-markdown ul,
.info-extra-block ul {
    padding-left: 1.25rem;
}
.info-markdown a,
.info-extra-block a {
    color: #d82d81;
    font-weight: 700;
}
.info-extra-block {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(216,45,129,.16);
}
.info-extra-block h2,
.info-related h2,
.info-side-card h2 {
    font-size: 1.25rem;
    margin-bottom: .85rem;
}
.info-child-card {
    display: block;
    height: 100%;
    padding: 1rem;
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.info-child-card:hover {
    transform: translateY(-2px);
    border-color: rgba(216,45,129,.35);
    box-shadow: 0 14px 35px rgba(216,45,129,.12);
}
.info-child-card span {
    display: inline-flex;
    color: #d82d81;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .4rem;
}
.info-child-card strong {
    display: block;
    font-size: 1.08rem;
    margin-bottom: .35rem;
}
.info-child-card small {
    display: block;
    color: #6c6f75;
    line-height: 1.45;
}
.info-side-card {
    padding: 1rem;
}
.info-side-card dl {
    margin: 0;
}
.info-side-card dt {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #7b7f86;
    margin-top: .8rem;
}
.info-side-card dt:first-child {
    margin-top: 0;
}
.info-side-card dd {
    margin: .15rem 0 0;
    color: #202124;
}
.info-side-card code {
    white-space: normal;
    word-break: break-word;
}
.info-search-form {
    display: grid;
    gap: .65rem;
}
.info-search-form .btn-primary,
.info-side-card .btn-outline-primary:hover {
    background: #d82d81;
    border-color: #d82d81;
}
.info-side-card .btn-outline-primary {
    color: #d82d81;
    border-color: #d82d81;
    font-weight: 700;
}
.info-doc-list {
    padding-left: 1.1rem;
    margin-bottom: 0;
}
.info-doc-list a {
    color: #d82d81;
    font-weight: 700;
}
.info-admin-note p {
    color: #6c6f75;
    margin-bottom: .35rem;
}
.info-admin-note .btn-link {
    color: #d82d81;
    font-weight: 700;
}
@media (max-width: 767.98px) {
    .info-hero {
        padding-top: 1.5rem;
    }
    .info-identity-card {
        border-radius: 20px;
    }
}

/* v0.1.8-r3 - URLs limpias y menu Municipio */
.municipio-main-nav {
    background-color: #F1F1F2;
    border-bottom: 4px solid #D82D81;
}
.municipio-main-nav .navbar-toggler i {
    color: #D82D81;
}
.municipio-main-nav .nav-link {
    color: #101114;
}
.municipio-main-nav .nav-link:hover,
.municipio-main-nav .nav-link:focus,
.municipio-main-nav .dropdown-toggle.show {
    color: #D82D81;
}
.municipio-main-nav .nav-mi-lincoln {
    color: #D82D81;
}
.municipio-dropdown-menu {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    padding: .6rem;
    min-width: min(320px, calc(100vw - 2rem));
    box-shadow: 0 18px 45px rgba(20,20,20,.10);
}
.municipio-dropdown-menu .dropdown-item {
    border-radius: 12px;
    padding: .65rem .75rem;
    display: grid;
    gap: .1rem;
    white-space: normal;
}
.municipio-dropdown-menu .dropdown-item span {
    font-weight: 800;
    color: #202124;
}
.municipio-dropdown-menu .dropdown-item small {
    color: #72757d;
    font-size: .78rem;
}
.municipio-dropdown-menu .dropdown-item:hover,
.municipio-dropdown-menu .dropdown-item:focus {
    background: rgba(216,45,129,.08);
}
.municipio-dropdown-menu .dropdown-item:hover span,
.municipio-dropdown-menu .dropdown-item:focus span {
    color: #D82D81;
}


/* v0.1.11 · Home completo controlado por Gestor Web Pública */
.home-destacados{background:#fff}
.home-accesos-rapidos{background:#fff}
.acceso-rapido-web{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.65rem;text-decoration:none;color:#252525;background:#fff;border:1px solid #e9e9ee;border-radius:18px;padding:1rem .65rem;min-height:132px;box-shadow:0 8px 24px rgba(20,20,20,.06);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.acceso-rapido-web:hover{transform:translateY(-3px);box-shadow:0 13px 30px rgba(20,20,20,.11);border-color:#D82D81;color:#D82D81}
.acceso-rapido-icono{width:58px;height:58px;border-radius:50%;background:#f7e5f0;display:flex;align-items:center;justify-content:center;font-size:1.55rem;overflow:hidden;color:#D82D81}
.acceso-rapido-icono img{width:100%;height:100%;object-fit:cover}
.acceso-rapido-titulo{font-family:'Inter Tight',sans-serif;font-weight:800;line-height:1.05;text-align:center;font-size:.98rem}
.home-secundarios{background:#fff}
.footer-links-web a{display:inline-flex;align-items:center;min-height:36px;padding:.4rem .7rem;border:1px solid rgba(255,255,255,.55);border-radius:999px;color:#fff;text-decoration:none;font-weight:700;font-size:.88rem}
.footer-links-web a:hover{background:#fff;color:#D82D81}
@media(max-width:575.98px){.acceso-rapido-web{min-height:116px;padding:.8rem .45rem}.acceso-rapido-icono{width:50px;height:50px}.acceso-rapido-titulo{font-size:.9rem}}


/* v0.1.13 · landings propias del Gestor Web Pública */
.access-landing-hero{background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);border-bottom:1px solid #e9eef5}.access-landing-kicker{font-size:.78rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#d82d81}.access-landing-breadcrumb{font-size:.9rem;color:#64748b}.access-landing-breadcrumb a{color:#d82d81;text-decoration:none;font-weight:700}.access-landing-icon{width:64px;height:64px;border-radius:20px;background:#eef4ff;display:flex;align-items:center;justify-content:center;font-size:1.8rem}.access-landing-card{display:flex;align-items:center;gap:1rem;padding:1rem 1.1rem;border:1px solid #e2e8f0;border-radius:18px;text-decoration:none;color:#0f172a;background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.05);transition:.18s ease}.access-landing-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(15,23,42,.09);color:#0f172a}.access-landing-card-icon{width:44px;height:44px;border-radius:14px;background:#fce7f3;color:#be185d;display:flex;align-items:center;justify-content:center;font-weight:900;flex:0 0 auto}.access-landing-card-body{display:flex;flex-direction:column;gap:.2rem;flex:1}.access-landing-card-body small{color:#64748b}.access-landing-empty{display:flex;gap:1rem;align-items:flex-start;border:1px dashed #cbd5e1;background:#f8fafc;border-radius:18px;padding:1.2rem}.access-landing-empty i{font-size:1.6rem;color:#d82d81}

/* v0.1.14 · Landings de navegación propias de Gestor Web Pública */
.access-landing-summary { max-width: 780px; line-height: 1.65; }
.access-landing-cover {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(16,24,40,.10);
}
.access-landing-card-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
}


/* v0.1.15 · Landings del Gestor con estética unificada de Municipio */
.access-landing-page .access-landing-hero {
  padding: 2.25rem 0 2rem;
}

.access-landing-page .access-landing-breadcrumb {
  margin-bottom: 1.5rem;
}

.access-landing-page .access-landing-breadcrumb a,
.access-landing-page .access-landing-breadcrumb span {
  color: #6c6f75;
  text-decoration: none;
  font-weight: 600;
}

.access-landing-page .access-landing-breadcrumb a:hover {
  color: #d82d81;
}

.access-landing-page .access-landing-breadcrumb i {
  color: #d82d81;
}

.access-landing-page .info-pill {
  margin-bottom: .65rem;
}

.access-landing-page .info-hero h1 {
  margin-bottom: .65rem;
}

.access-landing-page .access-landing-summary {
  max-width: 820px;
  margin-bottom: 0;
}

.access-landing-page .info-related > h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  margin-bottom: 1rem;
}

.access-child-card {
  min-height: 142px;
  padding: 1.35rem 1.25rem;
}

.access-child-card span {
  font-size: .79rem;
  margin-bottom: .55rem;
}

.access-child-card strong {
  font-size: 1.12rem;
  line-height: 1.3;
  margin-bottom: .45rem;
}

.access-child-card small {
  font-size: .96rem;
  line-height: 1.5;
}

@media (max-width: 767.98px) {
  .access-child-card {
    min-height: auto;
    padding: 1.15rem;
  }
}

/* v0.1.16 · Navegación principal administrada desde Gestor Web Pública */
.municipio-main-nav .gestor-main-nav-link {
  white-space: nowrap;
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .municipio-main-nav .navbar-nav {
    gap: .15rem !important;
  }
  .municipio-main-nav .gestor-main-nav-link,
  .municipio-main-nav .municipio-dropdown > .nav-link,
  .municipio-main-nav .nav-mi-lincoln {
    font-size: .88rem;
    padding-left: .42rem;
    padding-right: .42rem;
  }
  .municipio-social-nav {
    gap: .3rem !important;
  }
}
@media (max-width: 767.98px) {
  .municipio-main-nav .gestor-main-nav-link {
    white-space: normal;
    padding-top: .55rem;
    padding-bottom: .55rem;
  }
}


/* v0.1.20 · Cabecera blanca + tarjetas de Noticias estabilizadas */

/* La cabecera debe compartir el mismo blanco del cuerpo de la web. */
.municipio-main-nav {
    background-color: #fff !important;
}

/* Noticias: una tarjeta consistente y con el zoom contenido dentro de la foto. */
.noticia-card {
    --noticia-title-height: 90px;
    display: flex !important;
    flex-direction: column;
    padding: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    overflow: hidden;
}

.noticia-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f1f2;
}

.noticia-media .noticia-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform .35s ease;
    transform: scale(1);
}

.noticia-card:hover .noticia-media .noticia-img,
.noticia-card:focus-visible .noticia-media .noticia-img {
    transform: scale(1.055);
}

/* Anula el hover antiguo aplicado directamente a la imagen.
   El efecto ahora depende de la tarjeta y queda recortado por .noticia-media. */
.noticia-media .noticia-img:hover {
    transform: scale(1.055);
}

.noticia-card .noticia-texto {
    width: 100%;
    height: var(--noticia-title-height);
    min-height: var(--noticia-title-height);
    max-height: var(--noticia-title-height);
    margin: 0;
    padding: 12px 14px;
    background: #D82D81;
    border-bottom: 2px solid #D2D3D5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-family: 'Inter Tight', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.25;
    overflow: hidden;
}

.noticia-card .noticia-texto span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.noticia-card-listado .noticia-resumen {
    flex: 1 1 auto;
    padding: .8rem .25rem .1rem;
    background: #fff;
    color: #6c757d;
    font-size: .875rem;
    line-height: 1.5;
}

.noticia-card:hover,
.noticia-card:focus,
.noticia-card:active,
.noticia-card:visited {
    color: #fff !important;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .noticia-card {
        --noticia-title-height: 84px;
    }
}


/* v0.1.21 · Paginador municipal de Noticias */
.noticias-listado-meta{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:.45rem;
    color:#777984;
    font-size:.92rem;
    font-weight:600;
}
.noticias-meta-separator{color:#D82D81;font-weight:900}
.municipio-pagination-wrap{padding:.75rem 0 1.5rem}
.municipio-pagination{gap:.45rem}
.municipio-pagination .page-item{margin:0}
.municipio-pagination .page-link{
    min-width:42px;
    height:42px;
    border:1px solid #e1e2e6;
    border-radius:12px!important;
    background:#fff;
    color:#454650;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:.4rem;
    padding:.55rem .8rem;
    font-family:'Inter Tight',system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    font-weight:800;
    line-height:1;
    box-shadow:0 5px 14px rgba(31,31,40,.045);
    transition:border-color .18s ease,color .18s ease,background-color .18s ease,transform .18s ease;
}
.municipio-pagination .page-link:hover,
.municipio-pagination .page-link:focus{
    color:#D82D81;
    border-color:rgba(216,45,129,.42);
    background:#fff;
    box-shadow:0 7px 18px rgba(216,45,129,.08);
    transform:translateY(-1px);
}
.municipio-pagination .page-item.active .page-link{
    color:#fff;
    background:#D82D81;
    border-color:#D82D81;
    box-shadow:0 8px 18px rgba(216,45,129,.22);
}
.municipio-pagination .page-item.disabled .page-link{
    color:#aaaeb6;
    background:#f7f7f8;
    border-color:#ececee;
    box-shadow:none;
    transform:none;
}
.municipio-pagination .page-link-nav{min-width:104px}
.municipio-pagination .pagination-ellipsis .page-link{
    min-width:32px;width:32px;border-color:transparent;background:transparent;padding-left:0;padding-right:0
}
@media(max-width:575.98px){
    .municipio-pagination{gap:.32rem}
    .municipio-pagination .page-link{min-width:38px;height:38px;border-radius:10px!important;padding:.45rem .65rem;font-size:.9rem}
    .municipio-pagination .page-link-nav{min-width:auto}
    .municipio-pagination .page-link-nav span:not([aria-hidden="true"]){display:none}
}


/* v0.1.22 · Redes y teléfonos administrados por Gestor Web Pública */
.municipio-social-nav .social-link {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    text-decoration: none;
    transition: transform .18s ease, opacity .18s ease;
}

.municipio-social-nav .social-link:hover,
.municipio-social-nav .social-link:focus-visible {
    transform: translateY(-1px) scale(1.05);
    opacity: .88;
}

.municipio-social-nav .social-link img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.social-link-fallback {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: #D82D81;
    color: #fff;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1;
}

.footer-phone-list {
    max-width: 760px;
}

.footer-phone-link {
    display: inline-flex;
    align-items: flex-start;
    gap: .4rem;
    line-height: 1.4;
}

.footer-phone-link img {
    flex: 0 0 auto;
    margin-top: .08rem;
}

@media (max-width: 767.98px) {
    .municipio-social-nav {
        padding-top: .25rem;
        padding-bottom: .15rem;
    }

    .footer-phone-link {
        align-items: flex-start;
    }
}


/* v0.1.23 · Centrado vertical del logo institucional del footer */
.footer-brand-col {
    justify-content: center;
    min-height: 100%;
}

.footer-brand-col .footer-links-web {
    width: 100%;
    margin-bottom: 1.25rem;
}

.footer-brand-logo {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    margin-top: auto;
    margin-bottom: auto;
    object-fit: contain;
}

/* Sin enlaces institucionales el logo queda exactamente centrado
   respecto de la altura disponible de la fila del footer. */
.footer-brand-col-logo-only {
    justify-content: center;
}

.footer-brand-col-logo-only .footer-brand-logo {
    margin-top: 0;
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .footer-brand-col,
    .footer-brand-col-logo-only {
        align-items: flex-start !important;
        justify-content: flex-start;
    }

    .footer-brand-logo,
    .footer-brand-col-logo-only .footer-brand-logo {
        margin-top: 1.25rem;
        margin-bottom: 0;
    }
}


/* v0.1.24 · Corrección definitiva del centrado del logo del footer */
.footer-brand-col {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.footer-brand-col .footer-links-web {
    flex: 0 0 auto;
    width: 100%;
    margin-bottom: 1rem;
}

.footer-brand-logo-wrap {
    flex: 1 1 auto;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.footer-brand-logo {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    margin: 0 !important;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .footer-brand-col {
        min-height: auto;
    }

    .footer-brand-logo-wrap {
        min-height: auto;
        justify-content: flex-start;
        padding-top: 1.25rem;
    }
}


/* v0.1.25 · Apariencia Home/Agenda administrada desde Gestor Web Pública */
.fondoAgenda {
    background-image: var(--agenda-bg-desktop, url('../img/fondos/agenda_pc.webp'));
}

@media (max-width: 768px) {
    .fondoAgenda {
        background-image: var(--agenda-bg-mobile, url('../img/fondos/agenda_movil.png'));
    }
}


/* v0.1.26 · Contenido editorial de landings desde Contenido Web Pública */
.content-landing-heading {
    max-width: 900px;
}

.content-landing-cover-wrap {
    margin-top: -0.25rem;
    margin-bottom: 2rem;
}

.content-landing-cover {
    display: block;
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid #e5e7eb;
    background: #f6f6f7;
}

.content-landing-layout {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.content-landing-main {
    max-width: 930px;
}

.content-section {
    padding: 1.55rem 0;
    border-top: 1px solid #e6e7eb;
}

.content-section:first-child,
.content-section-main:first-child {
    border-top: 0;
    padding-top: 0;
}

.content-section h2 {
    margin: 0 0 .8rem;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    font-weight: 800;
}

.content-section h3 {
    margin: 1.15rem 0 .55rem;
    font-size: 1.15rem;
    font-weight: 800;
}

.content-section p,
.content-section li {
    font-size: 1rem;
    line-height: 1.7;
    color: #555861;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-section a {
    color: #D82D81;
    font-weight: 700;
}

.content-list {
    margin: 0;
    padding-left: 1.35rem;
}

.content-list li {
    margin: .55rem 0;
    padding-left: .15rem;
}

.content-steps {
    counter-reset: item;
}

.content-notice {
    margin: 1.3rem 0;
    padding: 1.15rem 1.25rem;
    background: #fff4f9;
    border-left: 5px solid #D82D81;
    border-radius: 0 14px 14px 0;
    color: #4b4d54;
    line-height: 1.6;
}

.content-notice strong {
    display: block;
    margin-bottom: .25rem;
    color: #232429;
}

.content-downloads {
    margin: 1.15rem 0;
    padding: 1.4rem;
    background: #f7f7f8;
    border: 1px solid #e6e7eb;
    border-radius: 18px;
}

.content-download-list {
    display: grid;
}

.content-download-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: .8rem 0;
    border-top: 1px solid #e0e1e5;
    color: #44464d;
}

.content-download-row:first-child {
    border-top: 0;
}

.content-download-pending {
    flex: 0 0 auto;
    padding: .35rem .6rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dddfe4;
    color: #777a83;
    font-size: .76rem;
    font-weight: 800;
}

.content-helper {
    color: #858892;
    font-size: .8rem;
}

.content-contact {
    margin: 1rem 0;
    padding: 1.35rem;
    border: 1px solid #e3e4e8;
    border-radius: 18px;
}

.content-cta {
    margin: 1.75rem 0;
    padding: 1.55rem 1.65rem;
    border-radius: 20px;
    background: #D82D81;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.content-cta span {
    display: block;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    margin-bottom: .25rem;
}

.content-cta h2 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 850;
}

.content-cta p {
    margin: .45rem 0 0;
    color: rgba(255,255,255,.9);
}

.content-cta-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .7rem 1.05rem;
    border-radius: 11px;
    background: #fff;
    color: #D82D81;
    font-weight: 850;
    text-decoration: none;
}

.content-cta-button:hover {
    color: #b91f69;
    background: #fff;
}

.content-image-block {
    margin: 1.5rem 0;
}

.content-image-block img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid #e3e4e8;
}

.content-image-block figcaption {
    margin-top: .55rem;
    color: #747781;
    font-size: .86rem;
}

.content-related {
    padding-top: 1rem;
}

@media (max-width: 767.98px) {
    .content-landing-cover {
        max-height: 310px;
        border-radius: 16px;
    }

    .content-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .content-download-row {
        align-items: flex-start;
        flex-direction: column;
        gap: .45rem;
    }
}


/* v0.1.29 · Ajustes Home: buscador deshabilitado, accesos rectangulares y secundarios x4 */
.home-search-disabled .form-control:disabled,
.home-search-disabled .hero-btn:disabled {
    opacity: .72;
    cursor: not-allowed;
}

.home-search-disabled .form-control:disabled {
    background: #f5f5f6;
    color: #777a83;
}

.home-search-disabled .hero-btn:disabled {
    background: #c9c9cf;
    border-color: #c9c9cf;
    color: #fff;
}

.home-search-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .32rem .58rem;
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(0,0,0,.08);
    color: #6f727b;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.2;
}

.acceso-rapido-icono {
    width: 96px !important;
    height: 62px !important;
    border-radius: 14px !important;
    padding: .35rem;
}

.acceso-rapido-icono img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
}

@media (max-width: 575.98px) {
    .acceso-rapido-icono {
        width: 82px !important;
        height: 56px !important;
        border-radius: 12px !important;
    }
}


/* v0.1.31 · Landings internas más limpias */
.access-landing-page .info-hero h1,
.municipio-info-page .info-hero h1 {
    font-size: clamp(1.875rem, calc(5vw - 2px), 4.375rem);
}
