* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100vh;
  font-family: "Nunito", sans-serif;
  background: #ec1d83;
  color: #333;
  overflow-x: hidden;
  width: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Banner de Noticias */
.news-banner {
  background: #ec1d83;
  color: white;
  padding: 0; /*Sin padding para que se vea completo */
  overflow: hidden;
  position: relative;
  width: 100vw; /*Ocupa todo el ancho */
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.news-slider {
  display: flex;
  animation: slide 20s infinite linear;
}

.news-item {
  min-width: 100%;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  padding: 0; /*Sin padding para mostrar imagen completa */
}

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(-200%);
  }
  75% {
    transform: translateX(-300%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Header Principal */
.main-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 100vw; /*Ocupa todo el ancho de la ventana */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  flex-direction: column;
}

/* Banner de lado a lado*/
.banner-logo {
  width: 100vw;
  margin: 0;
  padding: 0;
  max-width: none;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  line-height: 0; /* elimina espacio fantasma debajo de img */
}

.banner-logo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  aspect-ratio: 1551 / 285; /* Mantiene la relación de aspecto */
}

.logo {
  font-size: 2.5em;
  font-weight: 800;
  background: linear-gradient(45deg, #e92683, #88a945);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}
/* Logo adaptativo */
@media (max-width: 600px) {
  .banner-logo img {
    min-height: 100px;
  }
}

/* Imágenes del banner de noticias */
.news-img {
  width: 100%;
  height: auto;
  max-height: 200px; /*Altura controlada para que se vea */
  object-fit: cover;
  display: block;
}

/*Sección de Inicio - Noticias */
.img-inicio-sola {
  display: block;
  margin: 30px auto; /* Centrada con márgenes arriba y abajo */
  width: 100%;
  max-width: 800px; /* No será más grande que 800px */
  height: auto;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
  .img-inicio-sola {
    max-width: 95%;
  }
}

/* Navegación del Index */
.main-nav {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 20px 30px;
  color: #333;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

/* Forzar negrita en los enlaces principales del menú */
.nav-item > .nav-link {
  font-weight: 800 !important;
}

.nav-link:hover {
  color: #e92683;
  border-bottom-color: #e92683;
  background-color: rgba(233, 38, 131, 0.1);
}

/* Menú desplegable del Index */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  min-width: 250px;
  display: none;
  z-index: 1000;
  border: 2px solid #e92683;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.dropdown-menu.show {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.dropdown-link:hover {
  background-color: rgba(233, 38, 131, 0.1);
  color: #e92683;
  border-left-color: #e92683;
}

/* Submenú del Index */
.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  min-width: 250px;
  display: none;
  z-index: 1000;
  border: 2px solid #88a945;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
}

.submenu .submenu {
  top: 0;
  left: 100%;
  transform: translateX(-10px);
}
.submenu .submenu.show {
  transform: translateX(0);
}

.submenu.show {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu-link {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.submenu-link:hover {
  background-color: rgba(136, 169, 69, 0.1);
  color: #88a945;
  border-left-color: #88a945;
}

/* Añadir flechas a los enlaces con submenú */
.has-submenu > a::after {
  content: " ▼";
  font-size: 0.7em;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

/* Animación de la flecha cuando se abre */
.has-submenu .submenu.show ~ a::after {
  transform: rotate(180deg);
}

/* Contenido Principal */
.main-content {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  flex: 1; /*Toma el espacio disponible */
}

.content-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: none; /* Oculto por defecto */
  height: auto;
  min-height: fit-content;
  overflow: hidden;
}

.content-section.active {
  display: block; /* Visible solo si tiene clase active */
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.content-section h2 {
  color: #e92683;
  font-size: 2.5em;
  font-weight: 800;
  margin-bottom: 20px;
  text-align: center;
}

.content-section h3 {
  color: #88a945;
  font-size: 1.8em;
  font-weight: 700;
  margin: 30px 0 15px 0;
  text-align: center;
}

.content-section p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 15px;
  color: #555;
}

.highlight {
  background: linear-gradient(45deg, #e92683, #88a945);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Listas generales */
ul,
ol {
  padding-left: 25px;
  margin-top: 10px;
  margin-bottom: 20px;
}

ul li,
ol li {
  color: #333; /* Texto igual que el resto de la web */
  font-size: 1.05em;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* Viñetas verdes y en negrita */
ul li::marker {
  color: #88a945; /* Verde institucional */
  font-weight: bold; /* Solo la viñeta en negrita */
  font-size: 1.2em;
}

/* Números verdes y en negrita */
ol li::marker {
  color: #88a945; /* Verde institucional */
  font-weight: bold; /* Solo el número en negrita */
}

/* Footer de Contacto */
.footer-contact {
  background: #ec1d83;
  padding: 40px 20px;
  margin: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  margin-top: auto; /*Se empuja hacia abajo */
}

.footer-contact h3 {
  color: white;
  text-align: center;
  font-size: 2em;
  font-weight: 800;
  margin-bottom: 30px;
}

.footer-contact-container {
  display: flex;
  flex-wrap: nowrap; /*NO permite saltos de línea */
  justify-content: center;
  align-items: center;
  gap: 8px; /*Gap muy pequeño */
  max-width: 1200px;
  margin: 0 auto;
  overflow: visible; /*Sin scroll */
  padding: 10px 0;
}

.footer-contact-logo {
  max-width: 100%;
  height: auto;
  display: block;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 10px; /*Padding muy pequeño */
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex: 0 0 110px; /*Ancho fijo pequeño */
  max-width: 110px;
  min-width: 90px;
}

.footer-contact-item:nth-child(even) .footer-contact-logo {
  color: #88a945;
}

.footer-contact-item:hover .footer-contact-logo {
  background: white;
  transform: rotate(360deg);
}

.footer-contact-label {
  font-size: 10px; /*Texto muy pequeño */
  font-weight: 700;
  color: white;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-top: 5px;
  line-height: 1.2; /*Interlineado ajustado */
}

/* Contenedor de imagen adaptativo */
.img-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto clamp(10px, 2vw, 20px);
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.img-wrapper img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Footer Copyright */
.footer-copyright {
  background: #333;
  color: white;
  text-align: center;
  padding: 20px 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0;
  margin-bottom: 0; /*Sin margen inferior */
}

.footer-copyright p {
  font-size: 14px;
  font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 15px;
    text-align: center;
  }

  /* Menú desplegable en móvil */
  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    border-top: 2px solid #e92683;
    border-radius: 0;
    background: #f8f9fa;

    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .dropdown-menu.show {
    display: block;
  }

  /* Submenús en móvil */
  .submenu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    border-top: 2px solid #88a945;
    margin-left: 20px;

    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .submenu.show {
    display: block;
  }

  .header-container {
    flex-direction: column;
    gap: 20px;
  }

  .logo {
    font-size: 2em;
  }
}

/* Footer responsive */
.footer-contact-container {
  flex-wrap: wrap; /*En móvil sí permite wrap */
  gap: 8px;
}

.footer-contact-item {
  flex: 1 1 100px;
  max-width: 120px;
}

.footer-contact-label {
  font-size: 9px;
}

/* Carrusel de publicaciones adaptativo */
.carousel {
  position: relative;
  overflow: hidden;
  margin: 30px auto;
  border-radius: 15px;
  background: white;
  width: 100%;
  max-width: 800px;
  height: auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  padding: 10px 15px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

/* Publicaciones PDF */
.pdf-publicacion {
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.pdf-publicacion h3 {
  margin-bottom: 15px;
}

.pdf-publicacion iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.pdf-boton-descarga {
  margin-top: 15px;
}

.pdf-boton-descarga a {
  display: inline-block;
  background: #e92683;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s ease;
}

.pdf-boton-descarga a:hover {
  background: #88a945;
}

/*sinergiarte PDF*/
.pdf-sinergiarte {
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.pdf-sinergiarte h3 {
  margin-bottom: 15px;
  color: #e92683;
  font-weight: 800;
  font-size: 1.6em;
}

.pdf-sinergiarte iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.boton-instagram {
  margin-top: 15px;
}

.boton-instagram a {
  display: inline-block;
  background: #e92683;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s ease;
}

.boton-instagram a:hover {
  background: #88a945;
}
/* Responsive - Mejoras para menús móviles */
@media (max-width: 1024px) {
  .nav-menu {
    flex-direction: column;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  /* Menús desplegables móviles */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-top: 2px solid #e92683;
    border-radius: 0;
    width: 100%;
    background: #f8f9fa;
  }

  .dropdown-link {
    padding: 12px 20px;
    border-left: 4px solid transparent;
    border-bottom: 1px solid #eee;
  }

  /* Submenús anidados móviles */
  .submenu {
    position: static;
    box-shadow: none;
    border: none;
    border-top: 2px solid #88a945;
    border-radius: 0;
    width: 100%;
    background: #f0f2f5;
    margin-left: 20px;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .submenu-link {
    padding: 10px 15px;
    border-left: 4px solid transparent;
    border-bottom: 1px solid #ddd;
    font-size: 0.95rem;
  }

  /* Submenús nivel 3 */
  .submenu .submenu {
    background: #e8eaf0;
    margin-left: 40px;
    border-top: 2px solid #88a945;
  }

  /* Animaciones para móviles */
  .dropdown-menu,
  .submenu {
    display: none;
    transition: none;
  }

  .dropdown-menu.show,
  .submenu.show {
    display: block;
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      max-height: 0;
    }
    to {
      opacity: 1;
      max-height: 500px;
    }
  }

  /* Indicadores visuales para elementos con submenús */
  .has-submenu > a::after {
    content: " ▼";
    font-size: 0.7em;
    margin-left: 5px;
    transition: transform 0.3s ease;
    float: right;
  }

  .has-submenu .submenu.show ~ a::after,
  .has-submenu .dropdown-menu.show ~ a::after {
    transform: rotate(180deg);
  }

  /* Mejorar la visibilidad de los enlaces activos */
  .dropdown-link:hover,
  .submenu-link:hover {
    background-color: rgba(233, 38, 131, 0.1);
    color: #e92683;
  }

  .submenu .submenu-link:hover {
    background-color: rgba(136, 169, 69, 0.1);
    color: #88a945;
  }

  /* Header adaptativo */
  .header-container {
    flex-direction: column;
    gap: 20px;
  }

  .logo {
    font-size: 2em;
  }

  /* Footer responsive */
  .footer-contact-container {
    flex-wrap: wrap;
    gap: 8px;
  }

  .footer-contact-item {
    flex: 1 1 100px;
    max-width: 120px;
  }

  .footer-contact-label {
    font-size: 9px;
  }
}

/* Ajustes específicos para tablets */
@media (max-width: 768px) and (min-width: 481px) {
  .submenu {
    margin-left: 15px;
  }

  .submenu .submenu {
    margin-left: 30px;
  }
}

/* Ajustes específicos para móviles pequeños */
@media (max-width: 480px) {
  .submenu {
    margin-left: 10px;
  }

  .submenu .submenu {
    margin-left: 20px;
  }

  .dropdown-link,
  .submenu-link {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}

/* Estilos para enlaces de video con botón de reproducción */
.video-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

.video-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  margin: 0 auto;
}

.video-link img {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.video-link:hover img {
  transform: scale(1.03);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-link:hover .play-button {
  background: #88a945;
  transform: translate(-50%, -50%) scale(1.1);
}

/* =========================
   ACORDEÓN DE NOTICIAS
========================= */

.noticia-texto {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  padding: 0 0;
  font-weight: normal; /* 🔧 CORRECCIÓN */
}

.noticia-texto.activo {
  max-height: 1000px;
  padding: 10px 0;
  font-weight: normal; /* 🔧 CORRECCIÓN */
}

.noticia-texto p,
.noticia-texto span,
.noticia-texto div {
  font-weight: normal; /* 🔧 CORRECCIÓN */
}

.noticia-titulo {
  cursor: pointer;
  color: #e92683;
  transition: color 0.3s ease;
}

.noticia-titulo:hover {
  color: #ff6600;
}

.noticia-multimedia {
  margin-top: 10px;
}

.noticia-titulo {
  cursor: pointer;
  color: #e92683;
  transition: color 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.noticia-titulo:hover {
  color: #ff6600;
}

.noticia-flecha {
  margin-left: 10px;
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.noticia-abierta .noticia-flecha {
  transform: rotate(180deg);
}

.noticia-multimedia {
  margin-top: 10px;
}

.noticia-texto {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  padding: 0 0;
  font-weight: normal; /* 🔧 CORRECCIÓN */
}

.noticia-texto.activo {
  max-height: 1000px;
  padding: 10px 0;
  font-weight: normal; /* 🔧 CORRECCIÓN */
}

.noticia-flecha {
  color: #e92683;
  font-size: 1.2em;
  transition: transform 0.3s ease, color 0.3s ease;
}

.noticia-titulo:hover .noticia-flecha {
  color: #ff4da6;
}

.noticia-abierta .noticia-flecha {
  transform: rotate(180deg);
}

/* Acordeón de noticias */
.noticia-texto {
  display: none;
  margin-top: 15px;
  animation: fadeIn 0.3s ease;
  font-weight: normal; /* 🔧 CORRECCIÓN */
}

.noticia-texto.activo {
  display: block;
  font-weight: normal; /* 🔧 CORRECCIÓN */
}

.noticia-titulo {
  cursor: pointer;
}

.noticia-abierta .noticia-titulo {
  color: #e92683;
  font-weight: 600; /* SOLO EL TÍTULO */
}

/* Animación de la flecha */
.noticia-flecha {
  display: inline-block;
  transition: transform 0.3s ease;
}

.noticia-abierta .noticia-flecha {
  transform: rotate(180deg);
}

/* Normalizar peso de texto dentro de noticias */
.noticia-texto p,
.noticia-texto span,
.noticia-texto div,
.noticia-texto ul,
.noticia-texto ol,
.noticia-texto li {
  font-weight: 400;
}

/* Normalizar texto en noticias SIEMPRE visibles */
.noticia-texto-fijo,
.noticia-texto-fijo p,
.noticia-texto-fijo span,
.noticia-texto-fijo div,
.noticia-texto-fijo ul,
.noticia-texto-fijo ol,
.noticia-texto-fijo li {
  font-weight: 400;
}

/* =========================
   BOTÓN ONEDRIVE
========================= */

.btn-onedrive {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: #e92683;
  color: #fff;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(233, 38, 131, 0.35);
  transition: all 0.3s ease;
}

.btn-onedrive:hover {
  background: #d31f73;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(233, 38, 131, 0.5);
}
