* {
    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 - CORREGIDO */
.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 - CORREGIDO */
.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 - CORREGIDO */
.news-img {
    width: 100%;
    height: auto;
    max-height: 200px;             /*Altura controlada para que se vea */
    object-fit: cover;
    display: block;
}

/* 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;
}

.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;
}
.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);
}

/* 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;
    height: auto;
    min-height: fit-content;
    overflow: hidden;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.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;
}

/* Footer de Contacto - CORREGIDO */
.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 - CORREGIDO */
.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;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-top: 2px solid #E92683;
    }

    .submenu {
        position: static;
        box-shadow: none;
        border: none;
        border-top: 2px solid #88A945;
        margin-left: 20px;
    }

    .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);
}

.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;
}