/* Estilo general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

body {
    margin: 0;
    padding: 0;
}
/* Estilo del header */
header {
    width: 100%;
    top: 0;
    z-index: 800;
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
    background-color: #ffffff; 
    padding-bottom: 1rem; 
    margin-bottom: 20px;
}

/* Contenedor del header */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1050px;
    margin: 0 auto; 
    padding: 0.5rem;
    position: relative; 
}

/* Dropdown menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    list-style: none;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000; 
    padding: 0;
    margin: 0;
}

.dropdown-content li {
    padding: 0;
    margin: 0;
}

.dropdown-content li a {
    padding: 10px 20px;
    color: black;
    text-decoration: none;
    display: block;
}

.dropdown-content li a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Estilo de la sombra */
.shadow-header::after {
    content: "";
    display: block;
    width: 100%;
    height: 20px; 
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
    position: absolute;
    bottom: 0; 
    left: 0;
    right: 0;
}

/* Logo */
.logo {
    width: 2000px; 
    max-width: 8rem;
    padding: 0.5rem;
}

/* Estilo del menú de navegación */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    text-decoration: none;
    color: #000;
    padding: 10px 20px;
    display: block;
}

.nav-list > li > a:hover {
    background-color: #f1f1f1;
}

/* Botones de abrir y cerrar menú */
.abrir-menu, .cerrar-menu {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
}

@media screen and (max-width: 550px) {
    .abrir-menu,
    .cerrar-menu {
        display: block;
        border: 0;
        font-size: 2rem;
        background-color: transparent;
        cursor: pointer;
    }

    .abrir-menu {
        color: #1c1c1c;
    }

    .cerrar-menu {
        color: #ececec;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .nav {
        opacity: 0;
        visibility: hidden;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 50%; 
        background-color: #1c1c1c;
        padding: 4rem 2rem 2rem 2rem; 
        box-shadow: 0 0 0 200vmax rgba(0, 0, 0, .5); 
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 20;
    }

    .nav.visible {
        opacity: 1;
        visibility: visible;
        right: 0; 
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin-top: 0.5rem; 
    }

    .nav-list li {
        width: 100%;
        text-align: right; 
    }

    .nav-list li a {
        width: 100%;
        padding: 1rem 0;
        color: #ececec;
        text-align: left;
    }

    .nav-list li a:hover {
        background-color: #333; 
    }

    /* Estilos adicionales del encabezado */
    .header-container .news-container { 
        max-width: 100%;
        padding: 0.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    .nav-list {
        gap: 1rem;
        flex-direction: column;
    }
    
  /* Dropdown menu */
    .dropdown-content li {
        padding: 0;
        margin: 0;
        background-color: #1c1c1c; 
        list-style: none; 
        box-shadow: none; 
    }

    .dropdown-content li a {
        padding: 10px 20px;
        color: #ececec; 
        text-align: left;
        display: block;
    }

    .dropdown-content li a:hover {
        background-color: #333; 
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    /* Estilos de la galería de congresistas */
    .congress-gallery {
        max-width: 100%;
        padding: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .member {
        width: calc(50% - 10px);
        max-width: 100%;
        margin-bottom: 20px;
        text-align: center; 
    }

    .member img {
        width: 100%;
        height: auto; 
        border-radius: 10px; 
    }

    .member div {
        padding: 15px;
        text-align: center;
    }

    .member h3 {
        font-size: 1em;
        margin-bottom: 5px;
    }

    .member p {
        font-size: 0.9em;
        margin-bottom: 5px;
    }

    .member p1 {
        font-size: 0.8em; 
        color: #555;
    }

    /* Estilos del pie de página */
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        width: 100%;
        text-align: center;
    }

    .social-icons {
        justify-content: center; 
    }

    .social-icons a {
        display: flex;
        align-items: center; 
    }
    
    .interest-links {
        justify-content: center; 
    }
}


/* Estilo de la sección de dirigentes */
.congress-section {
    padding: 20px;
    text-align: center;
}

.congress-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.congress-section p {
    font-size: 1.2em;
    margin-bottom: 50px;
}

.congress-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 1200px; 
    margin: 0 auto; 
}

.member {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    width: calc(25% - 20px); 
    max-width: 250px; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px; 
}

.member img {
    width: 100%;
    height: auto;
    display: block; 
}

.member div {
    padding: 15px;
    text-align: left;
}

.member h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.member p {
    font-size: 1em;
    margin-bottom: 5px;
}

.member p1 {
    font-size: 0.9em;
    color: #555;
}

/* Estilos del pie de página */
.footer {
    background-color: #f8f8f8;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.footer-section {
    flex: 1;
    margin: 10px;
    min-width: 200px;
}

.footer-section h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.footer-section p {
    font-size: 1em;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 5px;
}

.footer-section ul li a {
    color: #333;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a img {
    width: 30px;
    height: 29.5px;
}

.interest-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.interest-links a img {
    width: 100px;
    height: auto;
}

.footer-bottom {
    text-align: center;
    padding: 10px;
    background-color: #eaeaea;
    border-top: 1px solid #ddd;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9em;
}

@media screen and (max-width: 1024px) {
    .member {
        width: calc(33.33% - 20px);
    }
}

@media screen and (max-width: 768px) {
    .member {
        width: calc(50% - 20px);
    }
}

@media screen and (max-width: 480px) {
    .member {
        width: 100%; 
    }
}

/* Estilos del modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
    padding-top: 100px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 600px; 
    border-radius: 10px;
}

.modal-content hr {
    border: none;
    border-top: 1px solid #888;
    margin: 10px 0;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
/* Estilo del formulario */
.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f7f7f7;
    padding: 20px;
}

.form-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
}

h1, h2 {
    text-align: center;
    margin-bottom: 20px;
}

.contact-section {
    margin-top: 40px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.map-container {
    flex: 1 1 50%;
    min-width: 300px;
}

.contact-details {
    flex: 1 1 50%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    background: #f1f1f1;
    border-radius: 8px;
}

.contact-details p {
    margin: 10px 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    grid-column: span 2;
}

input, select, textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

.carousel {
    position: relative;
    width: 100%;
    height: 400px; /* Altura más razonable */
    margin: 0 auto;
    cursor: grab;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    flex: 0 0 100%;
}

.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel-control-prev, .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: #333;
}

/* Media Query para pantallas de 550px o menos */
@media (max-width: 550px) {
    .carousel {
        height: 300px; 
    }
    
    .carousel-item img {
        height: 300px; 
        object-fit: contain;
    }
    
    .carousel-control-prev, .carousel-control-next {
        font-size: 20px; 
    }
    
    .indicator {
        width: 8px; 
        height: 8px;
    }
}

/* Noticias */
.news {
    padding: 20px;
    background-color: white;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.news h2 {
    text-align: center;
    margin-bottom: 20px;
}

.news-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.news-item .pdf-preview img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  display: block;
}


.news-item {
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    transition: transform 0.3s ease;
    position: relative;  
    margin-bottom: 10px; 
    width: 100%;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 1;
    pointer-events: none;
    opacity: 0; 
    transition: opacity 0.3s ease; 
}

.news-item:hover .overlay-text {
    opacity: 0.7; 
}

.news-item video {
    transition: opacity 0.3s ease; 
    position: relative;
    z-index: 0;
    width: 100%; 
    height: auto; 
    object-fit: cover;
}

.video-container {
    display: flex;
    flex-direction: column; 
    align-items: stretch; 
}

.news-item:hover video {
    opacity: 0.7; 
}

/* Asegúrate de que los controles del video permanezcan visibles */
.news-item video::-webkit-media-controls {
    z-index: 10;
}

.news-item video, .news-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.news-item h3 {
    font-size: 1.5rem; 
    text-align: center;
    margin-top: 10px; 
    color: #333; 
}

.news-item p {
    font-size: 14px;
    color: #555;
}

.news-item a {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
}

.news-item a:hover {
    text-decoration: underline;
}

.news-item .date {
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}

/*Nosotros*/

.info-section {
    padding: 20px;
    text-align: center;
    background-color: #f7f7f7;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.info-text {
    padding: 20px;
}

h1, h2 {
    color: #333;
}

p {
    color: #666;
    line-height: 1.6;
}

/* Estilos de la sección de equipo */
.team-members {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.team-member {
    text-align: center;
    flex: 1 1 calc(33.333% - 40px);
    max-width: 250px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.team-member img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.team-member h3 {
    margin: 10px 0 5px;
    font-size: 1.2em;
}

.team-member p {
    font-size: 1em;
    color: #555;
}
@media (max-width: 550px) {
    .team-member {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .news-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .news-item {
        flex: 1 1 100%;
        max-width: 90%; 
        margin-bottom: 15px; 
        text-align: center; 
    }

    .news-item img {
        width: 100px; 
        height: auto;
    }

    .news-item h3 {
        font-size: 1.2em; 
        margin: 10px 0;
    }

    .news-item p {
        font-size: 0.9em;
        margin: 5px 0; 
    }

    .news-item a {
        font-size: 0.9em; 
    }

    .news-item .date {
        font-size: 0.8em; 
        margin-top: 5px; 
    }
}

/*galeria*/
.gallery {
    max-width: 800px; 
    margin: 20px auto; 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px; 
    padding: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    position: relative;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    border-radius: 8px;
    transition: transform 0.3s ease; 
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/*Ideario*/
.ideario-container {
    max-width: 800px;
    width: 90%;
    text-align: center;
    margin: 0 auto;
}

.ideario-title h1 {
    color: #1f1f1f;
}

.ideario-content p {
    color: #333;
    margin-bottom: 20px;
}

.ideario-pdf {
    margin-bottom: 20px;
    height: 600px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.pdf-preview {
    width: 100%;
    height: 100%;
    border: none;
}

.button-container {
    display: flex;
    justify-content: center;
}

.ideario-button {
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    text-decoration: none;
}

.ideario-button:hover {
    background-color: #1a252f;
}

/* Media query para pantallas más pequeñas */
@media (max-width: 550px) {
    .ideario-pdf {
        height: 600px; 
    }

    .pdf-preview {
        width: 100%;
        height: 100%;
    }
}

/*Sintesis*/
.sintesis-container {
    max-width: 800px;
    width: 90%;
    text-align: center;
    margin: 0 auto;
}

.sintesis-title h1 {
    color: #1f1f1f;
}

.sintesis-content p {
    color: #333;
    margin-bottom: 20px;
}

.sintesis-pdf {
    margin-bottom: 20px;
    height: 600px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.pdf-preview {
    width: 100%;
    height: 100%;
    border: none;
}

.button-container {
    display: flex;
    justify-content: center;
}

.sintesis-button {
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    text-decoration: none;
}

.sintesis-button:hover {
    background-color: #1a252f;
}

/* Media query para pantallas más pequeñas */
@media (max-width: 550px) {
    .sintesis-pdf {
        height: 600px; 
    }

    .pdf-preview {
        width: 100%;
        height: 100%;
    }
}

/* Estatuto */

.estatuto-container {
    max-width: 800px;
    width: 90%;
    text-align: center;
    margin: 0 auto;
}

.estatuto-title h1 {
    color: #1f1f1f;
}

.estatuto-content p {
    color: #333;
    margin-bottom: 20px;
}
.estatuto-pdf {
    margin-bottom: 20px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pdf-preview {
    width: 100%;
    height: 100%;
    border: none;
}

.button-container {
    display: flex;
    justify-content: center;
}

.estatuto-button {
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    text-decoration: none;
}

.estatuto-button:hover {
    background-color: #1a252f;
}

/* Media query para pantallas más pequeñas */
@media (max-width: 550px) {
    .estatuto-pdf {
        height: 600px;
    }

    .pdf-preview {
        width: 100%;
        height: 100%;
    }
}

/* Reglamento */

.reglamento-container {
    max-width: 800px;
    width: 90%;
    text-align: center;
    margin: 0 auto;
}

.reglamento-title h1 {
    color: #1f1f1f;
}

.reglamento-content p {
    color: #333;
    margin-bottom: 20px;
}

.reglamento-pdf {
    margin-bottom: 20px;
    height: 600px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.pdf-preview {
    width: 100%;
    height: 100%;
    border: none;
}

.button-container {
    display: flex;
    justify-content: center;
}

.reglamento-button {
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    text-decoration: none;
}

.reglamento-button:hover {
    background-color: #1a252f;
}

/* Media query para pantallas más pequeñas */
@media (max-width: 550px) {
    .reglamento-pdf {
        height: 600px; 
    }

    .pdf-preview {
        width: 100%;
        height: 100%;
    }
}


/* Ajustes para dispositivos móviles */
@media screen and (max-width: 550px) {
    .dropdown:hover .dropdown-content,
    .dropdown:focus .dropdown-content {
        display: block;
    }
}

/* Estilos para el modal de imágenes */
#image-modal {
    display: none; 
    position: fixed; 
    z-index: 999; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); 
    justify-content: center; 
    align-items: center; 
}

.modal-image {
    max-width: 90%; 
    max-height: 90%; 
    margin: auto;
}

.prev, .next {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 30px;
    cursor: pointer;
    user-select: none;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}