:root {
  --lc-vino: #590f3d;
  --lc-azul: #007baa;
  --lc-verde: #75a044;
  --lc-oro: #d6a52d;
}
.header-principal, .header-principal.header-compacto, .interna-page .header-principal {
  background: linear-gradient(100deg,rgba(89,15,61,.98),rgba(89,15,61,.84) 54%,rgba(0,76,91,.84)),url('../img/frontis_muni.jpeg') center 48%/cover !important;
  border-bottom: 3px solid var(--lc-oro) !important;
}
.header-principal .navbar-brand img.logo-muni, .footer-municipal .footer-logo, .logo-banner {
  background: white; padding: .35rem .65rem; border-radius: .65rem; object-fit: contain; filter: none !important;
}
#contenido-municipal {padding-top: 148px;}
.lc-portada {margin:0 auto;padding:clamp(20px,3vw,42px) max(5vw,calc((100vw - 1240px)/2));display:flex;align-items:end;justify-content:space-between;gap:16px;background:#faf7f5;border-bottom:1px solid #e9dfde}
.lc-portada h1 {font:700 clamp(1.6rem,3.4vw,3.15rem)/1.12 Georgia,serif;letter-spacing:-.035em;margin:0;color:var(--lc-vino)}
.lc-portada a {color:var(--lc-azul);font-weight:700;text-underline-offset:.28em}
#noticias-recientes h2 {color:var(--lc-vino)!important}
#noticias-recientes .card-noticia {border-radius:16px;overflow:hidden;box-shadow:0 4px 20px #590f3d12!important}
.acceso-funcionarios {max-width:1140px;margin:40px auto 0;padding:24px clamp(20px,4vw,42px);display:flex;align-items:center;justify-content:space-between;gap:16px;background:#f5f0f3;border-left:5px solid var(--lc-vino)}
.acceso-funcionarios strong,.acceso-funcionarios div span {display:block}
.acceso-funcionarios strong {color:var(--lc-vino);font-size:1.25rem}
.acceso-funcionarios a {background:var(--lc-vino);color:white;padding:11px 20px;border-radius:6px;font-weight:700;text-decoration:none}
.acceso-funcionarios a:focus-visible,.lc-portada a:focus-visible {outline:3px solid var(--lc-azul);outline-offset:3px}
@media(max-width:767px){#contenido-municipal{padding-top:100px}.lc-portada{align-items:flex-start;flex-direction:column}.acceso-funcionarios{margin-inline:12px;flex-wrap:wrap}}
body.dark-mode .lc-portada,body.dark-mode .acceso-funcionarios {background:#231e22;color:#fff}
body.dark-mode .lc-portada h1,body.dark-mode .lc-portada a,body.dark-mode .acceso-funcionarios strong {color:#fff}
@media(prefers-reduced-motion:no-preference){#chat-btn.lc-hablando img {animation:lc-habla .48s ease-in-out infinite alternate}@keyframes lc-habla{to{transform:translateY(-3px) rotate(2deg)}}}

#contenido-municipal {background:#fff}
#contenido-municipal section[id] {scroll-margin-top:110px}
#contenido-municipal #comuna-avanza h2, #contenido-municipal #servicios .text-center h2 {
  color:var(--lc-vino)!important;font-family:Georgia,serif;font-size:clamp(1.8rem,3.4vw,2.8rem);
}
#contenido-municipal .municipal-panel-carousel {max-width:1360px;margin:1rem auto 0;padding-inline:clamp(.5rem,2vw,2rem)}
#contenido-municipal .municipal-panel-carousel__box {border-bottom:4px solid var(--lc-oro)}
#contenido-municipal .municipal-panel-carousel__media, #contenido-municipal .municipal-panel-carousel__media img {background:#24242a}
#contenido-municipal .portal-card:focus-visible,#contenido-municipal .municipal-panel-carousel__link:focus-visible {outline:4px solid var(--lc-oro);outline-offset:-5px}
#menuPrincipal .dropdown-submenu>.dropdown-menu.show {display:block!important;opacity:1;visibility:visible;pointer-events:auto;transform:none}
@media(max-width:991px) {#menuPrincipal .dropdown-submenu>.dropdown-menu.show {position:static; margin:.25rem .5rem;border-left:3px solid var(--lc-oro)}}
body #chat-btn {width:76px;height:76px;border:3px solid var(--lc-oro)}
body #chat-box {bottom:105px}
body #chat-box .chat-header {background:linear-gradient(110deg,#590f3d 55%,#097d66);border-bottom:3px solid #d6a52d}
body #chat-box .quick-reply:focus-visible {outline:3px solid #007baa}
body.dark-mode #contenido-municipal {background:#211d21}
@media(prefers-reduced-motion:reduce){body #chat-btn,body #chat-btn img {animation:none!important}}
