@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500&display=swap');

/* ========== ESTILO BASE ========== */
body {
  margin: 0;
  background: #ffffff;
  overflow-x: hidden;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* ========== HEADER ========== */
.main-header.transparent-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  background: transparent;
  color: #fff;
  z-index: 2000;
  transition: background 0.3s, color 0.2s, box-shadow 0.3s;
  box-shadow: none;
}
.main-header.transparent-menu.sticky {
  background: #fff !important;
  color: #32102a !important;
  box-shadow: 0 2px 18px 0 rgba(80,60,100,0.13);
}
.header-inner {
  width: 100vw;
  max-width: 100vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2vw;
  box-sizing: border-box;
  position: relative;
  height: 66px;
 
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  max-height: 48px;
}

/* ========== MENÚ DESKTOP ========== */
.main-nav { height: 100%; }
.main-nav ul.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5em;
  background: transparent;
  height: 100%;
  align-items: stretch;
}
.main-nav li {
  margin: 0;
  height: 100%;
  display: flex;
  align-items: stretch;
  position: relative;
}
.main-nav a {
  position: relative;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  font-size: 1em;
  letter-spacing: 0.03em;
  padding: 0 28px;
  min-width: 160px;
  max-width: 200px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  transition: background 0.21s, color 0.18s, box-shadow 0.16s;
  box-sizing: border-box;
  text-shadow: 0 2px 6px #0005;
  text-decoration: none !important;
  overflow: hidden;
  z-index: 2;
  color: #fff;
  border-left: 4px solid transparent;
}
.main-header.transparent-menu .main-nav a,
.main-header.transparent-menu .main-nav ul li a {
  color: #fff !important;
  text-shadow: 0 2px 6px #0004;
}
.main-nav a:hover {
  background: rgba(110, 36, 107, 0.336);
  color: #31103a !important;
  border-left: 4px solid #6e246c;
}

/* Página activa (opcional, cámbialo o déjalo neutro) */
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  background: none;   /* sin fondo */
  color: inherit;     /* mismo color que los demás */
  border-left: 4px solid transparent;
}
.main-header.transparent-menu.sticky .main-nav a,
.main-header.transparent-menu.sticky .main-nav ul li a {
  color: #31103a !important;
  text-shadow: none !important;
}
.main-nav a:focus,
.main-nav a:active {
  outline: none !important;
  box-shadow: none !important;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 10000; /* asegúrate que esté arriba */
}

/* ===== DROPDOWN DESKTOP ===== */
.nav-list li { position: relative; }
.nav-list li ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  box-shadow: 0 8px 24px #0002;
  z-index: 1000;
  padding: 0;
  border-radius: 0 0 12px 12px;
  background: none;
}
.nav-list li:hover > ul.sub-menu,
.nav-list li:focus-within > ul.sub-menu {
  display: block;
}
.nav-list li ul.sub-menu li { display: block; margin: 0; }
.nav-list li ul.sub-menu a {
  color: #fff !important;
  padding: 0.7em 1.4em;
  background: rgba(122, 36, 141, 0.12);
  font-size: 1em;
  text-align: left;
  border-left: 4px solid #7a248d;
  transition: background 0.18s, color 0.18s, border-left 0.18s;
  text-shadow: 0 2px 8px #0005;
}
.nav-list li ul.sub-menu a:hover {
  background: rgba(122, 36, 141, 0.28);
  color: #fff !important;
  border-left: 4px solid #fff;
}
.main-header.transparent-menu.sticky .nav-list li ul.sub-menu { background: #fff; }
.main-header.transparent-menu.sticky .nav-list li ul.sub-menu a {
  background: #fff !important;
  color: #7a248d !important;
  text-shadow: none;
}
.main-header.transparent-menu.sticky .nav-list li ul.sub-menu a:hover {
  background: #F4E0F4 !important;
  color: #31103a !important;
  border-left: 4px solid #7a248d;
}

/* ===== FLECHA DESKTOP ===== */
.nav-list li.menu-item-has-children > a {
  position: relative;
  padding-right: 2.5em;
  margin-bottom: 0.5em;
}
.nav-list li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  border: solid #ffffff;
  border-width: 0 3px 3px 0;
  padding: 4px;
  margin-left: 6px;
  transform: rotate(45deg);
  position: absolute;
  right: 6%;
  top: 48%;
  margin-top: -3px;
  pointer-events: none;
  transition: border-color 0.2s;
}
.main-header.transparent-menu.sticky .nav-list li.menu-item-has-children > a::after {
  border-color: #7a248d !important;
}

/* ========== MENÚ MOBILE/TABLET ========== */
@media (max-width: 1100px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 2vw;
    width: 100%;
    height: auto;
  }
  .logo { margin-bottom: 8px; }
  .main-nav { width: 100%; }
  .main-nav ul.nav-list {
    flex-direction: column;
    width: 100%;
    display: none;
    background: rgba(30,30,60,0.97);
    position: absolute;
    top: 66px;
    left: 0;
    z-index: 9999;
    padding: 20px 0;
    box-shadow: 0 12px 30px #0005;
    border-radius: 0 0 16px 16px;
    gap: 0;
    height: auto;
    align-items: flex-start;
  }
  .main-header.transparent-menu.sticky .main-nav ul.nav-list { background: #fff !important; }
  .main-nav ul.nav-list.show { display: flex; }
  .main-nav li { margin: 0 0 1em 0; text-align: center; height: auto; align-items: center; }
  .main-nav a {
    font-size: 1em;
    padding: 1.1em 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border-radius: 0;
    min-height: 56px;
    height: auto;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-left: 4px solid transparent;
    color: #fff !important;
    background: transparent;
  }
  .main-nav a:hover,
  .main-nav .current-menu-item > a,
  .main-nav .current_page_item > a {
    background: rgba(190, 74, 187, 0.17);
    color: #6e246c !important;
    border-left: 4px solid #6e246c;
  }
  .main-header.transparent-menu.sticky .main-nav a,
  .main-header.transparent-menu.sticky .main-nav ul li a {
    color: #31103a !important;
  }
  .main-header.transparent-menu.sticky .hamburger span { background: #333 !important; }
  .hamburger {
    display: flex; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer;
    width: 50px; height: 40px; position: absolute; top: 14px; right: 16px; z-index: 20000;
  }
  /* Estilos base siempre aplicados */
.hamburger span {
  display: block;
  height: 5px;
  width: 32px;
  border-radius: 3px;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

/* Si el botón tiene clase “light” (fondo oscuro detrás) */
.hamburger.light span {
  background: #fff;
}

/* Si el botón tiene clase “dark” (fondo claro detrás) */
.hamburger.dark span {
  background: #333;
}

/* Transformación a “X” cuando .open, funciona para ambas versiones */
.hamburger.open span {
  background: #fff;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* Asegúrate de que el botón esté siempre visible (sobresalga) */
.hamburger {
  z-index: 10000;  /* si hace falta, usar !important en casos extremos */
}
.hamburger.open {
  /* opcional: reafirmar visibilidad */
  display: flex !important;
}


  /* Flecha CSS solo desktop, oculta aquí */
  .nav-list li.menu-item-has-children > a::after { display: none !important; }

  /* Flecha SVG del botón, solo móvil (JS la agrega) */
  .submenu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 16px;
    top: 15%;
    transform: translateY(-50%);
    padding: 0;
    margin: 0;
    z-index: 10;
    display: inline-flex;
    align-items: center;
  }
  .submenu-toggle svg {
    width: 23px;
    height: 23px;
    display: block;
    transition: transform 0.2s;
  }
  .menu-item-has-children.submenu-open > .submenu-toggle svg {
    transform: rotate(180deg);
  }

  /* Submenús móvil: pushdown */
  .main-nav ul ul.sub-menu {
    display: none !important;
    position: static !important;
    background: #2e1d39 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding-left: 1.7em;
    width: 100%;
    min-width: 0;
    margin: 0;
    
  }
  .main-nav li.submenu-open > ul.sub-menu {
    display: block !important;
    animation: menuSlideDown 0.3s;
  }
  @keyframes menuSlideDown {
    0% { opacity: 0; transform: translateY(-12px);}
    100% { opacity: 1; transform: none;}
  }
  .main-nav ul ul.sub-menu a {
    background: #35194c !important;
    color: #fff !important;
    border-left: 4px solid #7a248d;
    font-weight: 500;
    font-size: 1em;
    padding: 1em 0 1em 24px;
  }
  .main-nav ul ul.sub-menu a:hover {
    background: #4a2367 !important;
    color: #ffd700 !important;
  }
}



/* ===== CARRUSEL PRINCIPAL ===== */
.hero-carousel { position: relative; width: 100vw; height: 100vh; overflow: hidden; min-height: 100vh; margin: 0; padding: 0; }
.carousel-slides, .slide, .carousel-overlay {
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0; left: 0;
}
.slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 0.7s; z-index: 1; }
.slide.active { opacity: 1; z-index: 2; }
.carousel-overlay {
  z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; text-align: center; background: rgba(0,0,0,0.23);
}
.logo-carrusel-muni {
  max-width: 420px; width: 36vw; margin-top: 1em;
  display: block; margin-left: auto; margin-right: auto;
  filter: drop-shadow(0 4px 32px #000b);
  
}
.inclinado { font-size: 4em; font-style: italic; transform: skew(-12deg); display: inline-block; }

/* ===== RESPONSIVE CARRUSEL ===== */
@media (max-width: 700px) {
  .header-inner { padding: 0 5px; }
  .logo img { max-height: 42px; }
  .carousel-overlay h1, .inclinado { font-size: 1.5em !important; }
  .logo-carrusel-muni { max-width: 90px; width: 56vw; margin-bottom: 0.6em; }
  .carousel-btn { font-size: 1.4em; }
  .carousel-overlay, .carousel-slides, .slide { min-height: 60vh; height: 60vh; }
}

/* ===== BOTONES DE SERVICIOS ===== */
.servicios-cuadros {
  width: 100%;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3vw;
  padding: 5.5em 0 5.5em 0;
  position: relative;
  z-index: 50;
  box-shadow: 0 8px 28px 0 rgba(40,32,97,0.16);
  transition: box-shadow 0.25s, background 0.25s;
}
.cuadro-servicio {
  background: #6e246c;
  color: #fff !important;
  min-width: 260px;
  width: 310px;
  max-width: 340px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px 0 rgba(40,32,97,0.15);
  text-align: center;
  cursor: pointer;
  user-select: none;
  border: none;
  margin-bottom: 2vw;
  transition: background 0.16s, transform 0.13s;
}
.cuadro-servicio:hover,
.cuadro-servicio:focus {
  background: linear-gradient(110deg, #1260f5 0%, #be4abb 100%);
  color: #fff;
  transform: scale(1.04);
}
.cuadro-servicio:hover a.servicio-contenido,
.cuadro-servicio:focus a.servicio-contenido {
  color: #fff !important;
}
.cuadro-servicio a.servicio-contenido {
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 1.22em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: color 0.13s;
  flex-direction: row;
  gap: 8px;
}
.icono-servicio {
  height: 54px; width: 54px; min-width: 54px; margin-left: 1em; object-fit: contain; display: block;
}
.servicio-texto {
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.22em;
  text-align: left;
  line-height: 1.1;
  letter-spacing: 0.03em;
  display: block;
  word-break: break-word;
  width: 100%;
}

/* RESPONSIVE BOTONES */
@media (max-width: 1100px) {
  .cuadro-servicio {
    min-width: 170px;
    width: 34%;
    max-width: 220px;
    height: 9%;
    min-height: 60px;
    font-size: 1em;
  }
  .icono-servicio {
    height: 38px; width: 38px; min-width: 38px;
  }
  .cuadro-servicio a.servicio-contenido {
    font-size: 1.1em;
    gap: 12px;
  }
}
@media (max-width: 700px) {
  .cuadro-servicio {
    min-width: 90%;
    width: 98%;
    max-width: 100%;
    height: 62px;
    font-size: 0.98em;
  }
  .icono-servicio {
    height: 34px; width: 34px; min-width: 34px;
  }
  .cuadro-servicio a.servicio-contenido {
    gap: 8px;
    font-size: 0.98em;
  }
  .carousel-overlay h1, .inclinado {
    font-size: 1.7em !important;
    letter-spacing: 0.03em;
  }
}
@media (max-width: 450px) {
  .servicios-cuadros { gap: 4vw; }
  .cuadro-servicio {
    min-width: 94%;
    width: 99%;
    max-width: 100%;
    height: 58px;
    font-size: 0.94em;
  }
}
@media (max-width: 1100px) and (min-width: 700px) {
  .servicios-cuadros {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2vw;
    padding: 2em 0;
  }
  .cuadro-servicio {
    flex: 1 1 320px;
    max-width: 46%;
    min-width: 260px;
    margin: 1vw;
    height: 92px;
    font-size: 1em;
  }
}

/* ===== NOTICIAS: GALERÍA SWIPER & GLIGHTBOX ===== */
.noticia-carrusel {
  width: 100%;
  max-width: 430px;
  margin: 0 auto 20px auto;
  border-radius: 14px;
  overflow: visible;
  box-sizing: border-box;
  position: relative;
}
.noticia-carrusel .swiper-slide,
.noticia-carrusel img.noticia-img {
  width: 400px;
  height: 250px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 17px;
  box-shadow: 0 2px 18px #0001;
  background: #eaeaea;
  margin: 0 auto;
  display: block;
  cursor: pointer !important;
}
.noticia-carrusel .swiper-button-next,
.noticia-carrusel .swiper-button-prev {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  color: #7a248d;
  background: none;
}
.noticia-carrusel .swiper-button-prev { left: -38px; }
.noticia-carrusel .swiper-button-next { right: -38px; }
.noticia-carrusel .swiper-button-next:after,
.noticia-carrusel .swiper-button-prev:after {
  font-size: 2.8em;
}
.noticia-carrusel .swiper-pagination-bullet-active {
  background: #7a248d;
}
/* Justificar descripción */
.noticia-desc {
  text-align: justify !important;
  margin-top: 10px;
  margin-bottom: 12px;
}
@media (max-width: 1100px) {
@media (max-width: 1100px) {
  .main-nav ul ul.sub-menu {
    display: none !important;
    position: static !important;
    background: #ffffff !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding-left: 1.7em;
    width: 100vw;
    min-width: 0;
    margin: 0 0 1em 0; /* <- Aquí el margen abajo */
    border-left: 4px solid #7a248d;
  }
  .main-nav li.submenu-open > ul.sub-menu {
    display: block !important;
    animation: menuSlideDown 0.3s;
    margin-bottom: 1em; /* <- También espacio aquí */
  }
  .main-nav ul ul.sub-menu li {
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
    background: transparent;
    margin-bottom: 0.3em;
  }
  .main-nav ul ul.sub-menu a {
    width: 100vw;
    display: block;
    background: #35194c !important;
    color: #fff !important;
    
    font-weight: 500;
    font-size: 1em;
    padding: 1em 0 1em 24px;
    box-sizing: border-box;
  }
  .main-nav ul ul.sub-menu a:hover {
    background: #4a2367 !important;
    color: #ffd700 !important;
  }
  .main-nav ul.nav-list > li {
    width: 100vw;
    position: relative;
    display: block;
    margin-bottom: 0.3em;
  }
}


  .main-nav ul ul.sub-menu a:hover {
    background: #4a2367 !important;
    color: #ffd700 !important;
  }
}

 
.tarjeta-noticia {
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 2px 24px #a98ab024;
  max-width: 350px;

  
  margin: 2.5vw;


  padding: 18px 18px 28px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-start;
}

.noticia-titulo {
  font-size: 1.21em;
  color: #552372;
  font-weight: 700;
  margin: 10px 0 8px 0;
}
.noticia-desc {
  font-size: 1.04em;
  color: #32102a;
  margin-bottom: 14px;
}
.noticia-link {
  margin-top: 12px;
  background: #7a248d;
  color: #fff !important;
  text-decoration: none;
  border-radius: 6px;
  padding: 0.5em 1.35em;
  font-weight: 600;
  transition: background 0.19s;
  display: inline-block;
  font-size: 1.02em;
}
.noticia-link:hover { background: #4d1662; }

.noticias-home {
  width: 100vw;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  background: #faf8ff;
  padding: 4vw 0;
}
@media (max-width: 900px) {
  .noticias-home { gap: 1vw; padding: 1.5vw 0; }
  .tarjeta-noticia { margin: 1vw; max-width: 97vw; }
}
.footer-muni {
  /*background: #7a248d; /* Morado institucional */
  background-image: linear-gradient(to left, #101b3a, #7a248d, #240038);

   position: relative;
  z-index: 1;
  color: #fff;
  width: 100vw;
  margin: 0;
  padding: 0;
  border-radius: 0;
  font-family: 'Montserrat', Arial, sans-serif;
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  padding: 38px 44px 12px 44px;
}

.footer-logo {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex: 0 0 115px;
}

.footer-logo img {
  width: 110px;
  height: auto;
  padding: 8px;

}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 18px;
  width: 100%;
  font-size: 1.12em;
  font-weight: 500;
}

.footer-info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 2px;
  width: 100%;
  justify-content: flex-end;
}

.footer-icon,
.footer-icon-link img {
  width: 22px;
  min-width: 22px;
  height: 22px;
  color: #fff;
  display: inline-block;
  vertical-align: middle;
}

.footer-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  margin-left: 5px;
}

.footer-link:hover { color: #7a248d; }

.footer-bottom {
  text-align: right;
  font-size: 1em;
  padding: 8px 44px 18px 44px;
  color: #fff;
  background: none;
  letter-spacing: 0.02em;
  border-top: 1px solid #fff3;
}

@media (max-width: 900px) {
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 6vw 8px 6vw;
    gap: 18px;
  }
  .footer-logo {
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 12px;
  }
  .footer-info {
    align-items: flex-start;
    font-size: 1em;
  }
  .footer-info-item {
    justify-content: flex-start;
    font-size: 1em;
  }
  .footer-bottom {
    text-align: left;
    padding: 7px 6vw 14px 6vw;
    font-size: 0.98em;
  }
}
.arbolmuni {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: flex;
  justify-content: left;
  align-items: left;
  pointer-events: none; 
  opacity: 0.15; 
}

.arbolmuni img {
  max-width: 80%;
  max-height: 90%;
  object-fit: contain;
}
@media (max-width: 768px) {
  .arbolmuni img {
    max-width: 60%;        /* Reduce el tamaño en pantallas pequeñas */
    transform: translateX(-5%); /* Opcional: mover un poco si hace falta */
  }
}

@media (max-width: 700px) {
  .hero-carousel,
  .carousel-slides,
  .carousel-overlay,
  .slide {
    min-height: 90vh !important;
    height: 90vh !important;
    max-height: 70vh;
  }
}

/* --- Dropdown menú WordPress --- */
.nav-list li {
  position: relative;
}

.nav-list li ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  
  min-width: 200px;
  box-shadow: 0 8px 24px #0002;
  z-index: 1000;
  padding: 0;
  border-radius: 0 0 12px 12px;
  color:black;
}

.nav-list li:hover > ul.sub-menu,
.nav-list li:focus-within > ul.sub-menu {
  display: block;
}

.nav-list li ul.sub-menu li {
  display: block;
  margin: 0;
}

.nav-list li ul.sub-menu a {
  color: #7a248d !important;
  padding: 0.7em 1.4em;
  background: ehite;
  font-size: 1em;
  text-align: left;
  border-left: 4px solid transparent;
  transition: background 0.15s, color 0.15s;
  text-shadow: none;
}

.nav-list li ul.sub-menu a:hover {
  background: #f1e4f9;
  color: #31103a !important;
  border-left: 4px solid #7a248d;
}
.nav-list li.menu-item-has-children > a {
  position: relative;
  padding-right: 2.5em; /* Espacio para la flecha */
  margin-bottom:0.5em;
}

.nav-list li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  border: solid #ffffff;
  border-width: 0 3px 3px 0;
  padding: 4px;
  margin-left: 6px;
  transform: rotate(45deg);
  position: absolute;
  right: 6%;
  top: 42%;
  margin-top: -3px;
  pointer-events: none;
}
.main-header.transparent-menu.sticky .nav-list li.menu-item-has-children > a::after {
  border-color: #7a248d !important;
}
/* Móvil/tablet: menú vertical, submenús "pushdown" */
@media (max-width: 1100px) {
  .main-nav ul ul.sub-menu {
    display: none;
    position: static !important;
    box-shadow: none !important;
    background: #2e1d39 !important;
    border-radius: 0 !important;
  
    width: 100%;
    min-width: 0;
    margin: 0;
  }
  .main-nav li.submenu-open > ul.sub-menu {
    display: block;
    animation: menuSlideDown 0.3s;
  }
  @keyframes menuSlideDown {
    0% { opacity: 0; transform: translateY(-12px);}
    100% { opacity: 1; transform: none;}
  }

  .submenu-toggle {
    background: none;
    border: none;
    margin-left: 10px;
    cursor: pointer;
    padding: 6px 6px 6px 0;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    position: absolute;
      
    top: 50%;
    transform: translateY(-50%);
    z-index: 9;
  }
  .main-nav .menu-item-has-children {
    position: relative;
  }
  .submenu-toggle svg {
    pointer-events: none;
    transition: transform 0.23s;
  }
  .main-nav .submenu-open > .submenu-toggle svg {
    transform: rotate(180deg);
  }
    .main-nav ul.nav-list {
    /* ...tu código... */
    z-index: 9999;
  }
  .hamburger {
    z-index: 10000 !important; /* Para estar encima del menú */
  }
}

@media (max-width: 1100px) {
  .main-nav li.menu-item-has-children > a::after { display: none !important; }
}
.datos-municipales {
   position: relative;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 170px 20px;
  background-image: url('/wp-content/themes/muni-theme/img/Fondo3.png');
  background-size: cover;
  background-position: 50% 0%;
  background-repeat: no-repeat;

  /* NO uses fixed en móvil; y para iOS no sirve */
  background-attachment: scroll;

  /* animación de paneo vertical */
  animation: dmPan 40s linear infinite;
}

/* Paneo vertical continuo (ajusta duración a tu gusto) */
@keyframes dmPan {
  0%   { background-position: 50% 0%;   }
  50%  { background-position: 50% 100%; }
  100% { background-position: 50% 0%;   }
}

/* En desktop puedes conservar el parallax si quieres */
@media (min-width: 1025px){
  .datos-municipales{
    background-attachment: fixed;  /* parallax en desktop */
    animation: none;               /* y sin paneo continuo, si prefieres */
  }
}

.datos-municipales.colapsada {
  height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Pseudoelemento que contiene la imagen cuando está colapsada */
.datos-municipales.colapsada::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('img/Fondo3.png');
  background-size: cover;
  background-position: center;
  z-index: 10;
  pointer-events: none; /* para que la imagen no intercepte clics */
}

 .titulo-datos-municipales {
 position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    font-size: 3.5em;
    font-style: italic;
    margin: 0;
    text-align: center;
    display: inline-block;
}

.dato {
  position: relative;
  width: 300px;
  height: 250px;
  margin: 30px 15px;
  background: transparent;
  overflow: hidden;
  text-align: center;
  padding: 20px;
}

.dato-bg {
  position: absolute;
  top: 10%;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: none;
  opacity: 1;
}

.personas-bg {
  background-image: url('img/personas-fondo.png');
  top: 65%;
  width: 48%;
  height: 48%;
  left: 24%;
}

.superficie-bg {
  background-image: url('img/mapa-fondo.png');
  width: 45%;
  height: 45%;
  top: 115px;
  left: 105px;
}

.clima-bg {
  background-image: url('img/Clima.png');
  width: 45%;
  height: 45%;
  top: 110px;
  left: 105px;
  position: absolute;
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 1;
}

.dato-contenido {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.numero {
  font-size: 48px;
  font-weight: bold;
  color: #ffffff;
  position: absolute;
  top: 135px;
  left: 80px;
}

.dato.superficie .numero {
 color: #000;
    background-color: transparent;
    margin-top: 50px;
    font-size: 200%;
    position: absolute;
    top: 100px;
    left: 140px;
}

.unidad {
  display: block;
    font-size: 18px;
    color: #000;
    margin-top: 5px;
    position: absolute;
    top: 190px;
    left: 130px;
}

.dato.superficie .text {
  color: #fff;
    margin-bottom: 10px;
    position: relative;
    left: 15px;
    top: -55px;
}

.dato h2 {
  color: #ffffff;
  font-size: 2rem;
}

.clima-temp, .clima-condicion {
  transition: all 0.5s ease;
}

.clima-info {
  margin-top: 20px;
  font-size: 24px;
  color: #0030d8;
}

.clima-contenido {
  text-align: left;
  padding-left: 20px;
  position: relative;
}

.clima-titulo {
  font-size: 20px;
  color: #6a00d4;
  margin-bottom: 10px;
      position: absolute;
    top: 35px;
    left: 20px;
}

.clima-temp {
  display: block;
  font-weight: bold;
  color: #000;
  margin-left: 10px;
  position: absolute;
  top: 118px;
  left: 105px;
}

.clima-condicion {
     display: block;
    font-size: 18px;
    color: #fff;
    margin-left: 10px;
    margin-top: 5px;
    position: absolute;
    top: 210px;
    left: 15px;
    font-size: 100%;
    text-align: center;
}

@media (max-width: 768px) {
  .datos-municipales {
    padding: 40px 10px; /* padding reducido para tablets */
  }

  .dato {
    position: relative;
    width: 300px;
    height: 250px;
    margin: 30px 15px;
    background: transparent;
    overflow: hidden;
    text-align: center;
    padding: 20px;
  }

  .dato-bg {
    position: absolute;
    top: 10%;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: none;
    opacity: 1;
  }

  .personas-bg {
    background-image: url('img/personas-fondo.png');
    top: 70%;
    left: 24%;
    width: 48%;
    height: 48%;
  }

  .superficie-bg {
    background-image: url('img/mapa-fondo.png');
    top: 115px;
    left: 105px;
    width: 45%;
    height: 45%;
  }

  .clima-bg {
    background-image: url('img/Clima.png');
    position: absolute;
    top: 110px;
    left: 105px;
    width: 45%;
    height: 45%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 1;
  }

  .numero {
    font-size: 36px;
  }

  .clima-temp {
    position: absolute;
    top: 125px;
    left: 115px;
  }

  .clima-condicion {
    position: absolute;
    top: 210px;
    left: 25px;
    font-size: 100%;
    text-align: center;
  }

   .titulo-datos-municipales {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  font-size: 3em;
  font-style: italic;
  margin: 0;
  text-align: center;
  display: inline-block;
}
}

/* Móviles pequeños (≤480px) */
@media (max-width: 480px) {
  .datos-municipales {
    padding: 30px 5px; /* padding aún más reducido para móviles */
  }
  .titulo-datos-municipales {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  font-size: 2em;
  font-style: italic;
  margin: 0;
  text-align: center;
  display: inline-block;
}
  .dato {
    width: 100%;
    margin: 10px 0;
  }

  .dato h2 {
    font-size: 18px;
  }

  .dato-bg {
    position: absolute;
    top: 10%;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: none;
    opacity: 1;
  }

  .personas-bg {
    background-image: url('img/personas-fondo.png');
    top: 65%;
    left: 24%;
    width: 48%;
    height: 48%;
  }

  .superficie-bg {
    background-image: url('img/mapa-fondo.png');
    top: 115px;
    left: 85px;
    width: 45%;
    height: 45%;
  }

  .clima-bg {
    background-image: url('img/Clima.png');
    position: absolute;
    top: 110px;
    left: 105px;
    width: 45%;
    height: 45%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 1;
  }

  .clima-titulo {
    font-size: 18px;
    position: absolute;
    top: 60px;
    left: 60px;
  }

  .clima-temp {
    font-size: 23px;
    position: absolute;
    top: 51%;
    left: 42%;
  }

  .clima-condicion {
    position: absolute;
    top: 210px;
    left: 30px;
    font-size: 100%;
    text-align: center;
  }
  .dato.superficie .numero {
    color: #000;
    background-color: transparent;
    margin-top: 50px;
    font-size: 200%;
    position: absolute;
    top: 100px;
    left: 100px;
}

  .unidad {
    font-size: 14px;
    position: absolute;
    top: 180px;
    left: 107px;
  }
}
/* Asegúrate de que tus secciones estén posicionadas de manera que la transición se note */

.dato-link {
  text-decoration: none;
  color: inherit; /* Mantiene el color original del texto */
}

.dato-link:hover, .dato-link:focus {
  text-decoration: none;
}

/* =========================================================
   ALCALDE EN PORTADA (vertical, centrada, misma medida)
   ========================================================= */
:root{
  --ha-photo-h: clamp(520px, 62vh, 760px);
}

.home-alcalde{
  width: min(1200px, 92%);
  margin: 60px auto 50px;
}

.ha-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:40px;
  align-items:center;
}

.ha-photo{ 
  margin:0; 
  display:flex; 
  justify-content:center; 
  align-items:center; 
}

.ha-frame{
  height: var(--ha-photo-h);
  width: auto;
  aspect-ratio: 2.5 / 4;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.ha-slider{
  position:relative;
  inset:0;
  width:100%;
  height:100%;
  overflow:hidden;
}

.ha-slide{
  position:absolute; inset:0;
  opacity:0; visibility:hidden;
  transition: opacity .45s ease, visibility 0s linear .45s;
  display:flex; align-items:center; justify-content:center;
}
.ha-slide.is-active{
  opacity:1; visibility:visible;
  transition: opacity .45s ease, visibility 0s;
}

.ha-img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  display:block;
}

.ha-title{
  margin:0 0 5px;
  font-size: clamp(26px, 3vw, 38px);
  color:#240038;
  font-weight:800;
}
.ha-subtitle{
  margin:0 0 16px;
  font-size:17px;
  color:#4b2e83;
  font-weight:600;
}
.ha-summary{
  margin:0 0 18px;
  line-height:1.7;
  text-align:justify;
  color:#1a1a1a;
  font-size: 16px;
}
.ha-btn{
  display:inline-block;
  padding:10px 18px;
  border:2px solid #240038;
  color:#240038;
  text-decoration:none;
  font-weight:700;
  transition:background .25s ease, color .25s ease;
}
.ha-btn:hover{ background:#240038; color:#fff; }

@media (max-width:1024px){
  .ha-grid{ grid-template-columns:1fr; gap:24px; }
  :root{ --ha-photo-h: clamp(460px, 58vh, 680px); }
}
@media (max-width:600px){
  :root{ --ha-photo-h: clamp(420px, 56vh, 620px); }
}

/* =========================================================
   PROYECTOS / NOTICIAS – “PRÓXIMAMENTE” (cinta con borde)
   ========================================================= */

.proyectos-wrap{
  position:relative;
  margin-top:80px;
}

/* Mantén visibles las noticias pero apagadas */
.proyectos-wrap .noticias-home{
  opacity:.25;
  pointer-events:none;
  filter:saturate(70%);
}

/* Capa blanca translúcida sobre las noticias */
.pm-overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  text-align:center;
  padding:30px;
  background: rgba(255,255,255,0.75);
  z-index:2;
}

/* Cinta con borde y fondo transparente */
.pc-ribbon{
  display:inline-block;
  color:#240038;
  font-weight:800;
  text-transform:uppercase;
  border: 3px solid #240038;
  padding:10px 20px;
  font-size: clamp(18px, 2vw, 22px);
  border-radius:8px;
  letter-spacing:.05em;
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(36,0,56,.15);
}

/* Título principal debajo */
.pc-title{
  margin:10px 0 6px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight:800;
  color:#240038;
  letter-spacing:.02em;
}

/* Texto informativo */
.pc-text{
  margin:0 auto;
  max-width:680px;
  color:#240038;
  line-height:1.6;
  font-size: 16px;
}

@media (max-width:600px){
  .pm-overlay{ background: rgba(255,255,255,0.82); padding:20px; }
  .pc-ribbon{ font-size:16px; padding:8px 14px; }
}

