/* Municipalidad de Colazo — estilos del sitio
   Colores y medidas tomados del sitio original (colazo.org). */
:root {
  --rojo: #cc123f;
  --verde: #5aaa30;
  --verde-tabs: #6dab3c;
  --naranja: #f79468;
  --oscuro: #1f252b;
  --texto: #616161;
  --gris-fondo: #f3f3f3;
  --borde: #dfdfdf;
  --footer: #333333;
  --wrap: 1170px;
  --f-title: 'Montserrat', sans-serif;
  --f-body: 'Hind', sans-serif;
}

/* La escala tipografica del tema cambia segun el ancho, igual que el original */
html { font-size: 17px; }
@media (max-width: 1279px) { html { font-size: 15px; } }
@media (max-width: 1023px) { html { font-size: 13px; } }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--f-body); font-size: 1rem; line-height: 1.53; color: var(--texto); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; border: 0; vertical-align: top; }
a { color: var(--verde); text-decoration: none; transition: color .2s, background-color .2s, border-color .2s; }
a:hover { color: var(--rojo); }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-title); color: var(--oscuro); margin: 0; }
p { margin: 0 0 1.5em; }
button { font: inherit; cursor: pointer; }
.wrap { width: var(--wrap); max-width: calc(100% - 30px); margin: 0 auto; }
.center { text-align: center; }

/* ---------------------------------------------------------------- Header */
.site-header { background: #fff; position: relative; z-index: 50; }
.header-inner { display: flex; align-items: flex-start; min-height: 8.68rem; }
.logo { align-self: center; padding: 0 1.6rem 0 0; margin-right: auto; position: relative; }
.logo a { display: flex; align-items: center; gap: .75rem; color: #1f1f1f; }
.logo a:hover { color: #1f1f1f; }
.logo img { width: 66px; height: 66px; display: block; flex: none; }
.logo-text { display: flex; flex-direction: column; font-family: var(--f-body); line-height: 1.05; white-space: nowrap; }
.logo-name { font-weight: 500; font-size: 1.18rem; color: #1f1f1f; }
.logo-prov { font-weight: 400; font-size: .9rem; color: #3a3a3a; margin-top: .3rem; }
.logo::after { content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%); height: 5.9rem; width: 1px; background: #e8e8e8; }
.main-nav { margin: .55rem 3.6rem 0 0; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; }
.main-nav li { position: relative; }
.main-nav > ul > li > a { display: block; font-family: var(--f-title); font-weight: 700; font-size: .882rem; line-height: 2; padding: 1.59rem .7rem 1.94rem; color: var(--oscuro); position: relative; }
.main-nav > ul > li > a:hover, .main-nav > ul > li.current > a { color: var(--rojo); }
.main-nav > ul > li.current > a::after { content: ''; position: absolute; left: .7rem; right: .7rem; bottom: 1.85rem; height: 2px; background: var(--rojo); }
.sub-menu { list-style: none; margin: 0; padding: .6rem 0; position: absolute; left: 0; top: 100%; min-width: 12rem; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.1); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s; }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: .45rem 1.3rem; font-family: var(--f-title); font-size: .8rem; font-weight: 400; color: var(--oscuro); }
.sub-menu a:hover { color: var(--rojo); }
.header-search { position: relative; margin-top: 1.85rem; width: 211px; }
.header-search input { width: 100%; height: 2.585rem; border: 1px solid var(--borde); padding: .45rem .5rem .4rem 2.5rem; font: inherit; color: var(--oscuro); background: transparent; border-radius: 0; outline: none; }
.header-search input:focus { border-color: #bbb; }
.header-search button { position: absolute; left: 0; top: 0; height: 100%; width: 2.5rem; background: none; border: 0; color: var(--oscuro); font-size: .85rem; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--oscuro); padding: .5rem; }

/* ---------------------------------------------------------------- Barra de titulo (paginas internas) */
.title-bar { background: var(--rojo); color: #fff; }
.title-bar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 4.41rem; gap: 1rem; }
.bar-title { font-family: var(--f-title); font-size: .824rem; font-weight: 700; text-transform: uppercase; color: #fff; line-height: 2.14; }
.breadcrumbs { font-size: .87rem; color: #fff; white-space: nowrap; }
.breadcrumbs a, .breadcrumbs span { color: #fff; }
.breadcrumbs a:hover { color: rgba(255,255,255,.75); }
.breadcrumbs .sep { margin: 0 1em; }

/* ---------------------------------------------------------------- Contenido general */
body.inner { background: var(--gris-fondo); }
.content-wrap { padding: 3.8rem 0 5.4rem; }
.page-content h2 { font-size: 2.94rem; font-weight: 400; line-height: 1.2; margin: 0 0 .25rem; }
.page-content h2 + p, .page-content p + h2 { margin-top: 1.5rem; }
.page-content h3, .page-content h2.h3 { font-size: 2.25rem; font-weight: 700; line-height: 1.3; text-transform: uppercase; margin: 0 0 1.02em; }
.page-content p { text-align: justify; }
.page-content ul { padding-left: 1.2em; }
.page-content li { margin-bottom: .5rem; }

/* Galeria de Municipio */
.image-grid { list-style: none; padding: 0 !important; margin: 2rem 0; display: flex; flex-wrap: wrap; }
.image-grid li { margin: 0; }
.image-grid img { display: block; width: 300px; height: 200px; object-fit: cover; }

/* ---------------------------------------------------------------- Botones */
.btn { display: inline-block; font-family: var(--f-title); font-weight: 700; font-size: .765rem; line-height: 1.29; text-transform: uppercase; color: #fff; background: var(--rojo); border: 2px solid var(--rojo); border-radius: 2px; padding: .8rem 4.13rem .88rem; }
.btn:hover { background: transparent; color: var(--rojo); }
.btn-sm { padding: .8rem .96rem .88rem; }

/* ---------------------------------------------------------------- Home: slider */
.hero { position: relative; height: min(872px, 70.32vw); overflow: hidden; background: #222; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .3s ease-in-out; }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-shade { position: absolute; inset: 0; background: rgba(0,0,0,.3); }
.hero-caption { position: absolute; left: 50%; top: 50%; color: #fff; text-align: left; white-space: nowrap; }
.hero-title { font-family: var(--f-title); font-weight: 700; color: #fff; text-transform: uppercase; font-size: min(80px, 6.4516vw); line-height: 1.25; position: absolute; left: 0; top: 0; transform: translate(calc(-50% - min(41px, 3.306vw)), calc(-50% - min(122px, 9.839vw))); overflow: hidden; }
.hero-sub { font-family: 'Damion', cursive; font-size: min(35px, 2.8226vw); line-height: 1.14; margin: 0; position: absolute; left: 0; top: 0; transform: translate(calc(-50% - min(10px, .806vw)), calc(-50% - min(42px, 3.387vw))); overflow: hidden; }
.hero-title span, .hero-sub span { display: block; transform: translateY(-100%); opacity: 0; }
.hero-sub span { transform: translateY(100%); }
.hero-slide.active .hero-title span { animation: capIn .3s ease-in-out .5s forwards; }
.hero-slide.active .hero-sub span { animation: capIn .3s ease-in 2.06s forwards; }
@keyframes capIn { to { transform: none; opacity: 1; } }
.hero-dots { position: absolute; left: 50%; bottom: calc(min(872px, 70.32vw) * .322); transform: translateX(-50%); z-index: 3; display: flex; gap: 5px; }
.hero-dots button { width: 13px; height: 13px; padding: 0; border: 0; border-radius: 50%; background: rgba(229,229,229,.75); transition: background .2s; }
.hero-dots button.active, .hero-dots button:hover { background: #fff; }

/* Home: barra de iconos */
.icon-bar { position: relative; z-index: 5; background: rgba(204,18,63,.8); margin-top: -10.75rem; }
.icon-cols { display: flex; padding: 2.9rem 0 3.4rem; }
.icon-col { flex: 1; text-align: center; position: relative; padding-right: 30px; }
.icon-col + .icon-col::before { content: ''; position: absolute; left: -15px; top: .9rem; height: 4.14rem; width: 1px; background: rgba(255,255,255,.2); }
.icon-col a { display: block; color: #fff; }
.icon-col .fa { font-size: 3.8rem; line-height: 1; display: block; margin-top: -.16em; }
.icon-col .icon-title { display: block; font-family: var(--f-title); color: #fff; font-size: .8235rem; font-weight: 700; line-height: 1.3; text-transform: uppercase; margin-top: .5rem; }
.icon-col a:hover .fa, .icon-col a:hover .icon-title { color: rgba(255,255,255,.8); }

/* Home: noticias */
.home-news { background: linear-gradient(to bottom, #f3f3f3, #dde3e8); }
.home-news-head { display: flex; justify-content: space-between; align-items: center; padding: 4.94rem 0 2.94rem; }
.section-title { font-size: 2.353rem; font-weight: 700; line-height: 1.3; text-transform: uppercase; }
.carousel-nav { display: flex; gap: .6rem; }
.carousel-nav button { background: none; border: 0; padding: 0 .2rem; font-size: 1.76rem; line-height: 1; color: #c9cacb; }
.carousel-nav button:hover { color: var(--rojo); }
.carousel { overflow: hidden; margin: 0 -15px; }
.carousel-track { display: flex; transition: transform .5s ease; }
.news-card { flex: 0 0 33.3333%; padding: 0 15px; }
.news-card > * { background: #fff; }
.news-thumb { display: block; overflow: hidden; }
.news-thumb img { width: 100%; height: 190px; object-fit: cover; display: block; transition: transform .4s; }
.news-thumb:hover img { transform: scale(1.05); }
.news-body { text-align: center; padding: 1.55rem 1.9rem 2.6rem; min-height: 15.6rem; }
.news-date { display: inline-block; font-family: var(--f-title); font-weight: 700; font-size: .706rem; line-height: 1.5; text-transform: uppercase; color: #fff; background: var(--rojo); padding: .21rem .49rem .14rem; }
.news-date:hover { color: #fff; background: var(--oscuro); }
.news-title { font-family: var(--f-body); font-weight: 500; font-size: 1.353rem; line-height: 1.3; margin: 2.1rem 0 .84rem; }
.news-title a { color: var(--oscuro); }
.news-title a:hover { color: var(--rojo); }
.news-more, .readmore { font-family: var(--f-title); font-weight: 700; font-size: .706rem; line-height: 2.12; text-transform: uppercase; color: var(--rojo); display: inline-block; margin-top: 1.48rem; }
.news-more::after, .readmore::after { content: '\f105'; font-family: FontAwesome; margin-left: .5em; }
.news-more:hover, .readmore:hover { color: var(--oscuro); }
.home-news .btn { margin: 2.83rem 0 3.98rem; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--footer); color: #fff; font-size: .88rem; padding-top: 4.14rem; }
.footer-cols { display: flex; }
.footer-col { flex: 1; padding-right: 30px; margin-bottom: 1.32rem; }
.footer-col h5 { color: #fff; font-size: 1.19rem; font-weight: 700; line-height: 1.3; margin: -2px 0 2.14rem; }
.footer-col p { margin: 0; }
.footer-col a { color: var(--rojo); }
.footer-col a:hover { color: #fff; }
.footer-col .footer-social { display: flex; gap: 10px; margin-top: 1.1rem; }
.footer-social a { width: 32px; height: 32px; border-radius: 50%; background: var(--rojo); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; }
.footer-social a:hover { background: #fff; color: var(--rojo); }
.copyright { background: var(--verde); color: rgba(255,255,255,.5); font-size: .88rem; padding: .79rem 0 3.08rem; }
.to-top { position: fixed; right: 2.1rem; bottom: -4rem; width: 51px; height: 51px; line-height: 51px; text-align: center; color: #fff; background: var(--rojo); font-size: 1.4rem; z-index: 60; transition: bottom .3s, background .2s; }
.to-top.show { bottom: 2.1rem; }
.to-top:hover { color: #fff; background: var(--oscuro); }
.whatsapp { position: fixed; left: 20px; bottom: 20px; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 34px; box-shadow: 1px 6px 24px 0 rgba(7,94,84,.24); z-index: 60; transition: transform .2s; }
.whatsapp:hover { color: #fff; transform: scale(1.06); }

/* ---------------------------------------------------------------- Autoridades */
.autoridades-row { display: grid; margin-bottom: 100px; }
.autoridades-row:first-child { margin-bottom: 0; }
.autoridades-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.autoridades-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
.autoridades-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
.autoridad { text-align: center; margin-top: 100px; padding: 0 15px; }
.autoridades-row:first-child .autoridad { margin-top: 0; }
.autoridad .fa { font-size: 70px; line-height: 70px; color: var(--rojo); display: block; margin: 0 auto 1.5em; }
.autoridad p { text-align: center; margin: 0; }
.autoridad b { color: #333; text-transform: uppercase; }

/* ---------------------------------------------------------------- Tramites */
.btn-impuestos { display: block; text-align: center; color: #fff; background: var(--naranja); border-radius: 5px; padding: 18px 25px; font-size: 16px; line-height: 1.5; }
.btn-impuestos:hover { color: #fff; background: #f57e4a; }
.sep { border: 0; border-top: 1px solid #ebebeb; margin: 1.2rem 0 2rem; }
.tabs { display: flex; gap: 35px; align-items: flex-start; }
.tabs-nav { list-style: none; margin: 0; padding: 0 !important; flex: 0 0 228px; }
.tabs-nav li { margin: 0 0 15px; }
.tab, .panel-heading a { display: flex; align-items: center; gap: .9rem; border: 2px solid var(--verde-tabs); color: var(--verde-tabs); padding: 14px 20px; line-height: 1.53; }
.tab .fa, .panel-heading .fa { font-size: 1.15rem; width: 1.3rem; text-align: center; }
.tab:hover, .tab.active, .panel-heading a:hover { background: var(--verde-tabs); color: #fff; }
.tabs-panels { flex: 1; min-width: 0; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.page-content .panel-heading { display: none; }
.panel-body img { display: block; margin-bottom: 1rem; }
.panel-body h3 { margin-top: 5.85rem; text-transform: uppercase; }
.panel-body p { text-align: left; }

/* ---------------------------------------------------------------- Contacto */
.contacto-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 30px; }
.contacto-datos p { text-align: left; }
.btn-whatsapp { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--f-title); font-weight: 700; font-size: .882rem; text-transform: uppercase; color: #fff; background: #25d366; border-radius: 2px; padding: 1rem 1.8rem; }
.btn-whatsapp .fa { font-size: 1.6rem; }
.btn-whatsapp:hover { color: #fff; background: #1ebe5a; }
.social { display: flex; align-items: center; gap: 8px; }
.social img { display: block; }
.social-ig { width: 25px; height: 25px; border-radius: 50%; background: var(--rojo); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; }
.social-ig:hover { color: #fff; background: var(--oscuro); }
.contacto .ubicacion { margin-top: 3.5rem; }
.mapa iframe { width: 100%; height: 375px; display: block; }

/* ---------------------------------------------------------------- Servicios para el vecino (hoverbox) */
.hoverbox { position: relative; height: 259px; margin-bottom: 25px; perspective: 1000px; outline: none; }
.hoverbox-front, .hoverbox-back { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; backface-visibility: hidden; transition: transform .5s ease-in-out; }
.hoverbox-front { background-size: cover; background-position: center; }
.hoverbox-back { transform: rotateY(180deg); }
.hoverbox:hover .hoverbox-front, .hoverbox:focus .hoverbox-front { transform: rotateY(-180deg); }
.hoverbox:hover .hoverbox-back, .hoverbox:focus .hoverbox-back { transform: rotateY(0); }
.hoverbox h2, .page-content .hoverbox-sub { margin: 0 0 .25rem; }
.page-content .hoverbox-sub { font-size: 2.94rem; font-weight: 400; line-height: 1.2; text-transform: none; }
.hoverbox a { color: var(--rojo); }
.hoverbox p { text-align: center; margin: 0; }

/* Ordenanzas */
.btn-outline { display: inline-block; border: 2px solid var(--verde-tabs); color: var(--verde-tabs); padding: 18px 25px; font-size: 16px; line-height: 1.5; margin-top: 15px; }
.btn-outline:hover { background: var(--verde-tabs); color: #fff; }

/* ---------------------------------------------------------------- Noticias (grilla) */
.noticias-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin: 1.65rem 0 3rem; }
.page-h1 { font-size: 3.3rem; font-weight: 400; line-height: 1.3; text-transform: uppercase; }
.filters { display: flex; gap: 4px; flex-wrap: wrap; }
.filters button { font-family: var(--f-title); font-weight: 700; font-size: .706rem; text-transform: uppercase; border: 0; background: #e6e6e6; color: var(--oscuro); padding: .7rem 1.1rem; }
.filters button:hover, .filters button.active { background: var(--verde); color: #fff; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-item.hidden { display: none; }
.grid-card { background: #fff; height: 100%; }
.grid-thumb { display: block; overflow: hidden; }
.grid-thumb img { width: 100%; aspect-ratio: 740 / 524; object-fit: cover; display: block; transition: transform .4s; }
.grid-thumb:hover img { transform: scale(1.05); }
.grid-body { padding: 1.5rem 1.8rem 1.8rem; }
.grid-title, .page-content .grid-title { font-family: var(--f-body); font-weight: 500; font-size: 1.353rem; line-height: 1.3; margin: .6rem 0 .8rem; }
.grid-title a { color: var(--oscuro); }
.grid-title a:hover { color: var(--rojo); }

/* ---------------------------------------------------------------- Blog: listados y nota */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: start; }
.post-title { font-size: 2.25rem; font-weight: 700; line-height: 1.3; text-transform: uppercase; margin: -.27em 0 1.15em; }
.post-title a { color: var(--oscuro); }
.post-title a:hover { color: var(--rojo); }
.post-info { font-size: .8235rem; line-height: 1.29; margin-bottom: 2.4em; display: flex; flex-wrap: wrap; gap: 1.6em; }
.post-info a { color: var(--texto); }
.post-info a:hover { color: var(--rojo); }
.post-info .info-date, .post-info .info-date a, .grid-card .info-date { font-family: var(--f-title); font-weight: 700; font-size: .706rem; text-transform: uppercase; color: var(--rojo); }
.post-info .fa { margin-right: .3em; }
.grid-body .post-info { margin-bottom: 0; gap: 1em; }
.post-thumb { display: block; margin-bottom: 2.5rem; overflow: hidden; }
.post-thumb img { display: block; width: 100%; height: auto; }
.post-excerpt { margin-bottom: 4.5rem; }
.post-descr p { margin: 0; }
.post-descr .readmore { display: block; margin-top: 2.19rem; }
.single .post-content p { text-align: justify; }
.post-content iframe { max-width: 100%; }
.post-content img.aligncenter, .post-content .aligncenter { display: block; margin: 0 auto 1.5em; }
.post-content .gallery { display: flex; flex-wrap: wrap; margin: 0 -5px 1.5em; }
.post-content .gallery-item { margin: 10px 0 0; padding: 0 5px; text-align: center; }
.post-content .gallery-columns-1 .gallery-item { width: 100%; }
.post-content .gallery-columns-2 .gallery-item { width: 50%; }
.post-content .gallery-columns-3 .gallery-item { width: 33.333%; }
.post-content .gallery-columns-4 .gallery-item { width: 25%; }
.post-content .gallery-columns-5 .gallery-item { width: 20%; }
.post-content .gallery img { border: 2px solid #cfcfcf; width: 100%; height: auto; }
.post-content dl, .post-content dt { margin: 0; }
.post-author { background: var(--verde); color: #fff; padding: 2rem; margin: 2.5rem 0 2rem; display: flex; gap: 1.5rem; align-items: center; }
.post-author .avatar img { border-radius: 50%; display: block; }
.post-author .post-author-title { color: #fff; font-size: .9rem; font-weight: 400; }
.post-author a { color: #fff; }
.pagination { display: flex; gap: 6px; margin-top: 1rem; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .6rem; font-family: var(--f-title); font-weight: 700; font-size: .8rem; background: #fff; color: var(--oscuro); }
.pagination .current, .pagination a:hover { background: var(--rojo); color: #fff; }

/* Sidebar */
.widget { background: #fff; padding: 0 1.8rem 2.35rem; margin-bottom: 1.8rem; }
.widget-title { background: var(--verde); color: #fff; font-size: .8235rem; font-weight: 700; line-height: 1.3; text-transform: uppercase; padding: 1.4rem 1.65rem 1.36rem; margin: 0 -1.8rem 2.35rem; }
.widget-search { position: relative; }
.widget-search input { width: 100%; font: inherit; border: 1px solid var(--gris-fondo); padding: .45rem 2.5rem .4rem .5rem; height: 2.76rem; color: var(--texto); outline: none; }
.widget-search button { position: absolute; right: 0; top: 0; height: 100%; width: 2.5rem; border: 0; background: none; color: var(--rojo); }
.widget-list { list-style: none; margin: 0; padding: 0; }
.widget-list li { position: relative; padding-left: 1.24rem; margin-bottom: .84rem; font-size: .8857rem; font-weight: 500; line-height: 1; }
.widget-list li::before { content: '\f105'; font-family: FontAwesome; position: absolute; left: 0; top: 0; color: var(--texto); }
.widget-list a { color: var(--texto); border-bottom: 1px solid #c9c9c9; }
.widget-list a:hover { color: var(--rojo); }

/* Pagina 404 */
.error-404 { text-align: center; max-width: min(640px, calc(100% - 30px)); }
.e404-code { font-family: var(--f-title); font-weight: 700; font-size: 9rem; line-height: 1; color: var(--rojo); margin: 0 0 .2em; text-align: center !important; }
.page-content .e404-title { font-size: 2.25rem; font-weight: 700; text-transform: uppercase; margin-bottom: .6rem; }
.error-404 .e404-text { text-align: center; }
.e404-search { max-width: 420px; margin: 2rem auto; }
.e404-search input { background: #fff; }
.e404-links { list-style: none; padding: 0 !important; margin: 0 0 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.6rem; }
.e404-links a { font-family: var(--f-title); font-weight: 700; font-size: .882rem; color: var(--oscuro); }
.e404-links a:hover { color: var(--rojo); }
@media (max-width: 767px) { .e404-code { font-size: 6rem; } .page-content .e404-title { font-size: 1.7rem; } }

/* Busqueda */
.search-empty { font-size: 1.1rem; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1023px) {
  .menu-toggle { display: block; margin: 2.2rem 0 0 1rem; order: 3; }
  .header-search { order: 2; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: #fff; box-shadow: 0 6px 12px rgba(0,0,0,.1); order: 4; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; }
  .main-nav > ul > li > a { padding: .9rem 15px; border-top: 1px solid #eee; }
  .main-nav > ul > li.current > a::after { display: none; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 .5rem 1rem; }
  .with-sidebar { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-card { flex-basis: 50%; }
  .tabs { flex-direction: column; }
  .tabs-nav { display: none; }
  .tab-panel { display: block; margin-bottom: 15px; }
  .page-content .panel-heading { display: block; font-family: var(--f-body); font-weight: 400; font-size: 1rem; line-height: 1.53; margin: 0; }
  .tab-panel .panel-body { display: none; padding-top: 1.5rem; }
  .tab-panel.active .panel-body { display: block; }
  .tab-panel.active .panel-heading a { background: var(--verde-tabs); color: #fff; }
}
@media (max-width: 767px) {
  .header-inner { flex-wrap: wrap; min-height: 0; padding-bottom: 1rem; }
  .logo::after { display: none; }
  .header-search { width: 160px; }
  .hero { height: max(70.32vw, 330px); }
  .icon-bar { margin-top: 0; }
  .icon-cols { flex-wrap: wrap; padding: 2rem 0 1rem; }
  .icon-col { flex: 0 0 50%; padding: 0 10px 1.6rem; }
  .icon-col + .icon-col::before { display: none; }
  .news-card { flex-basis: 100%; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-cols { flex-direction: column; }
  .footer-col { margin-bottom: 2rem; }
  .contacto-grid { grid-template-columns: 1fr; }
  .autoridades-row.cols-3, .autoridades-row.cols-4, .autoridades-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .autoridades-row { margin-bottom: 0; }
  .autoridad { margin-top: 3rem !important; }
  .image-grid img { width: 50vw; max-width: 300px; height: auto; aspect-ratio: 3/2; }
  .page-content h2 { font-size: 2.2rem; }
  .page-content h3, .page-content h2.h3, .post-title { font-size: 1.7rem; }
  .content-wrap { padding: 3rem 0 4rem; }
  .breadcrumbs { white-space: normal; text-align: right; }
}
@media (max-width: 479px) {
  .logo img { width: 44px; height: 44px; }
  .logo a { gap: .5rem; }
  .logo-name { font-size: 1.05rem; }
  .logo-prov { font-size: .8rem; margin-top: .2rem; }
  .logo { padding: 1rem 0 0; align-self: flex-start; }
  .header-search { margin-top: 1.2rem; width: 140px; }
  .menu-toggle { margin-top: 1rem; }
}

/* Accesibilidad */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--rojo); color: #fff; padding: .6rem 1rem; }
.skip-link:focus { top: 1rem; color: #fff; }
