body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    overflow-x: hidden;
}


/*
header {
    background: rgb(51,51,51);
    background: linear-gradient(0deg, rgba(51,51,51,1) 0%, rgba(3,2,2,1) 100%);
    color: #baae0a98;
    padding: 10px 0;
    text-align: center;
}
*/
header {
    background: rgb(2, 90, 255);
    background: linear-gradient(0deg, rgba(51,51,51,1) 0%, rgba(3,2,2,1) 100%);
    color: #ffffff;
    padding: 10px 0;
    text-align: center;
}
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    height: 50px;
}
/*
.top-header h1 {
    text-shadow: 
        -1px -1px 0 #fff,  
         1px -1px 0 #fff,
        -1px  1px 0 #fff,
         1px  1px 0 #fff;
    left: 70px;
    position: absolute;
    font-size: 24px;
}
*/

nav {
    background: rgb(121,9,9);
    background: linear-gradient(0deg, rgba(121,9,9,1) 0%, rgba(66,25,25,1) 100%);
}

.main-menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: left;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    color: #ffffff;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    overflow: hidden;
}

.buttons-section {
    text-align: center;
    margin-bottom: 20px;
}

.buttons-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.info-button {
    background-color: #ffffff;
    color: rgb(131, 14, 14);
    box-shadow: 1px 1px 1px 1px rgb(0, 0, 0);;
    border: none;
    border-radius: 5px;
    padding: 2px;
    text-align: center;
    cursor: pointer;
    align-content: center;
}

.info-button h3 {
    margin: 0;
    font-size: 14px;
}

.info-button p {
    margin: 5px 0 0;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    border-style:outset;
    border-color:rgb(131, 14, 14) ;
}

.column {
    flex: 1 1 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .column {
        flex: 1;
    }
}

.carousel .item {
    display: flex;
    align-items: stretch;
    background-color: #f8f8f8;
    padding: 0px;
    border-radius: 5px;
    overflow: hidden;
    box-sizing: border-box;
    height: 300px; /* Altura fija para el carrusel */
}

.carousel-content {
    display: flex;
    width: 100%;
    align-items: stretch;
    background-color: white;
    border-radius: 10px;
    padding: 10px;

}

.carousel img {
    width: 70%;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    flex-shrink: 0;
    height: 100%; /* Ajusta la altura de la imagen */
    object-fit: cover; /* Mantiene la proporción de la imagen */
}

.carousel-description {
    width: 30%;
    padding-left: 20px;
    box-sizing: border-box;
    background: rgb(51,51,51);
    background: linear-gradient(0deg, rgba(51,51,51,1) 0%, rgba(3,2,2,1) 100%);
    color: #ddd;
    padding: 10px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Asegura que la descripción ocupe toda la altura */
}

.carousel-description h3,
.carousel-description p {
    margin: 5px 0;
}
.carousel-description h3{
    font-weight: 700;
    font-size: 50px;
}
.carousel-description h2{
    font-weight: 700;
    font-size: 12px;
    color: #d8ca01;
}
.more-button {
    background-color:rgb(131, 14, 14);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    align-content: left;
    align-self: flex-end; /* Asegura que el botón esté en la parte inferior */
}

.announcements {
    margin-top: 5px;
}

.announcement {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-style:outset;
    border-color:rgb(131, 14, 14) ;
}

.announcement h2,
.announcement p {
    margin: 5px 0;
}

.announcement-content {
    display: flex;
    align-items: center;
    margin-top: 10px; /* Espacio entre el encabezado y el contenido */
}

.announcement img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover; /* Mantiene la proporción de la imagen sin distorsión */
}

.announcement-details {
    padding-left: 20px;
    box-sizing: border-box;
}

.announcement-details p {
    margin: 5px 0;
}

.announcement a {
    display: block;
    margin-top: 10px;
    color: #007BFF;
    text-decoration: none;
}

.read-more {
    background-color: rgb(131, 14, 14);;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    display: block;
    margin-top: 10px;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}


/*HISTORIA*/
.history-section {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-top: 20px;
}

.history-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.history-content {
    line-height: 1.6;
}

.history-content h3 {
    font-size: 24px;
    margin-top: 20px;
}

.history-content p {
    margin: 10px 0;
    text-align: justify;
}
/*DIRECTIVA NACIONAL*/

.directiva-section {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-top: 20px;
}

.directiva-section h2 {
    background: rgb(121,9,9);
    background: linear-gradient(0deg, rgba(121,9,9,1) 0%, rgba(66,25,25,1) 100%);
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.main-photo {
    flex: 0 0 80%;
    text-align: center;
    margin-bottom: 20px;
}
#fotdes{
    display: flex;
    max-height: 200px;
    width: 100%;
}
.main-directiva-img {
    flex: 0 0 70%;
    width: 100%;
    height: 400px;
    border-radius: 10px;
    object-fit: cover;
}
.main-directiva-desc {
    flex: 0 0 30%;
    width: 100%;
    height: 400px;
    border-radius: 10px;
    object-fit: cover;
}
.directiva-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.directiva-member {
    display: flex;
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 45%;
    align-items: center;
    position: relative;
}

.directiva-member::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #f4e804;
} 

.directiva-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px; 
}

.member-info {
    flex: 1;
}

.member-info h3 {
    margin: 0;
}

.member-info p {
    margin: 5px 0 0;
}

.directiva-section h2 {
    background-color: #007BFF;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.titledirectiva {
    display: flex;
}

.menu {
    width: 20%;
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color: #333;
    overflow: hidden;
}

.menu ul li {
    float: left;
    position: relative;
}

.menu ul li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.menu ul li a:hover {
    background-color: yellow;
    color: black;
}

.menu ul li .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333;
    padding: 0;
    margin: 0;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.menu ul li:hover .dropdown {
    display: block;
}

.menu ul li .dropdown li {
    float: none;
    width: 200px;
}

.menu ul li .dropdown li a {
    padding: 12px 16px;
    color: white; /* Para asegurar que el texto del submenú sea blanco */
    white-space: nowrap; /* Evita que el texto se envuelva */
}

.menu ul li .dropdown li a:hover {
    background-color: yellow;
    color: black;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: underline; /* Similar al sitio proporcionado */
}

/**/
/* Sección Directiva Nacional */
.directiva-section {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-top: 20px;
}

.directiva-section h2 {
    background: rgb(121,9,9);
    background: linear-gradient(0deg, rgba(121,9,9,1) 0%, rgba(66,25,25,1) 100%);
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.titledirectiva {
    display: flex;
}

.menus {
    width: 30%;
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.menus ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.menus ul li {
    margin-bottom: 10px;
}

.menus ul li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.menus ul li a:hover {
    background-color: yellow;
    color: black;
}

.main-photo {
    width: 70%;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slideshow {
    position: relative;
    width: 100%;
}

.slides {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.content {
    display: flex;
    width: 100%;
    align-items: center;
}

.main-directiva-img {
    width: 50%;
    height: auto;
    max-width: 300px;
    border-radius: 10px;
}

.main-directiva-desc {
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
}

.description {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    width: 100%;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}

.description h3 {
    margin: 0;
}

.description p {
    margin: 5px 0 0;
}

.directiva-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.directiva-member {
    display: flex;
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 45%;
    align-items: center;
    position: relative;
}

.directiva-member::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #f4e804;
}

.directiva-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.member-info {
    flex: 1;
}

.member-info h3 {
    margin: 0;
}

.member-info p {
    margin: 5px 0 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
}

.modal-content img {
    width: 100px; /* Ajusta el tamaño según sea necesario */
    height: auto;
    border-radius: 5px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-body p {
    margin: 10px 0;
    text-align: center;
}
/*CAPITULO*/
.chapters-section {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-top: 20px;
}

.chapters-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.chapter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.chapter-grid p{
    text-align: justify;
}

.chapter-member {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 20px;
    width: 100%;
    max-width: 900px;
    margin-bottom: 20px;
}

.chapter-member h3 {
    text-align: center;
    margin-bottom: 10px;
}

.member-content {
    display: flex;
    align-items: center;
}

.chapter-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 20px;
}

.member-details p {
    margin: 5px 0;
}

/*login estatutos*/
.login-section,
.statutes-section {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
}

.login-section form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-section label,
.login-section input {
    margin-bottom: 10px;
}

.login-section button {
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
}

#loginMessage {
    margin-top: 20px;
    color: red;
}

.statutes-section {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
}

.login-button {
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    text-decoration: none;
    margin-top: 20px;
    display: inline-block;
}

.login-button:hover {
    background-color: #0056b3;
}

/*EVENTOS*/


.events-section {
    display: flex;
    justify-content: space-between;
}

.left-column {
    width: 70%;
    padding-right: 10px;
}

.right-column {
    width: 30%;
    padding-left: 10px;
}

.left-column h2,
.right-column h2 {
    text-align: center;
    margin-bottom: 20px;
}

.blog-content {
    margin-bottom: 20px;
}

.blog-post {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.media-container {
    display: flex;
}

.media-description {
    padding-left: 20px;
}

.comments-section {
    margin-top: 10px;
}

.comments-section textarea {
    width: 100%;
    height: 60px;
    margin-bottom: 10px;
}

.comment-button {
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
}

.comments-list {
    margin-top: 10px;
}

.poster-content {
    margin-bottom: 20px;
}

.poster {
    margin-bottom: 10px;
}

.poster-img {
    width: 100%;
    height: auto;
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
}

.modal-content img {
    width: 100%;
    height: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
/*PUBLICACIONES*/
.publications-section {
    margin: 20px 0;
}

.publication {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
}

.publication.reverse {
    flex-direction: row-reverse;
}

.publication-img {
    width: 200px;
    height: 300px;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 5px;
}

.publication.reverse .publication-img {
    margin-left: 20px;
    margin-right: 0;
}

.publication-description {
    flex: 1;
}

.publication-description h3 {
    margin-top: 0;
}

.details {
    margin: 5px 0;
}

.action-button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    background-color: #007BFF;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.action-button:hover {
    background-color: #0056b3;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

/* CSS for the modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-body p {
    margin: 10px 0;
    text-align: center;
}
/*CONVENIO*/

.convenios-section {
    display: flex;
    justify-content: space-between;
}

.left-column {
    width: 30%;
    padding-right: 10px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.left-column h2 {
    background-color: #007BFF;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.convenios-menu {
    list-style-type: none;
    padding: 0;
}

.convenios-menu > li {
    margin: 10px 0;
}

.convenios-menu > li > a {
    text-decoration: none;
    color: #007BFF;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.convenios-menu > li > a:hover {
    background-color: #007BFF;
    color: white;
}

.right-column {
    width: 70%;
    padding-left: 10px;
}

.right-column #convenio-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.right-column #convenio-content h3 {
    margin-top: 0;
}

.right-column #convenio-content p {
    line-height: 1.6; 
    text-align: justify;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}
#convenio-attachments{
    align-content: center;
}
#convenio-attachments img{
    text-align: center;
    width: 50%;
    height: auto;
}
/*avisolegal*/

.legal-notice {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.legal-notice h2 {
    background-color: #007BFF;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.legal-notice p {
    line-height: 1.6;
    margin: 10px 0;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}
/*contactos*/

.contact-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.contact-section h2 {
    background-color: #007BFF;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

#contact-form {
    display: flex;
    flex-direction: column;
}

#contact-form label {
    margin-top: 10px;
    font-weight: bold;
}

#contact-form input, #contact-form textarea {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#contact-form button {
    padding: 10px 20px;
    margin-top: 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    align-self: flex-start;
}

#contact-form button:hover {
    background-color: #0056b3;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}
/*MENU SOL*/

.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    background: rgb(121,9,9);
    background: linear-gradient(0deg, rgba(121,9,9,1) 0%, rgba(66,25,25,1) 100%);
    font-size: 12px;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    display: block;
    padding: 14px 20px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.main-menu > li > a:hover {
    background-color: rgb(255, 255, 255);
    color: black;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    /*background-color: #333;*/background-color: #ffffff;
    color: #333;
    padding: 0;
    margin: 0;
    list-style: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.submenu li {
    width: 200px;
}

.submenu li a {
    display: block;
    padding: 12px 16px;
    color: rgb(0, 0, 0);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s, color 0.3s;
}

.submenu li a:hover {
    background-color: rgb(255, 255, 255);
    color: rgb(246, 0, 0); 
} 
.submenu a:hover {
    font-weight: 600;
} 

.main-menu > li:hover .submenu {
    display: block;
}

.main-menu > li > a:after {
    content: " ▼";
    font-size: 0.8em;
}

.main-menu > li:hover > a:after {
    content: " ▲";
}
/*MEJORAR CARRUSEL*/
.carousel {
    max-width: 100vw; /* Limita el ancho máximo del carrusel */
    margin: auto; /* Centra el carrusel horizontalmente */
    position: relative; /* Posicionamiento relativo para controladores */
}

.carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.carousel .owl-nav .owl-prev,
.carousel .owl-nav .owl-next {
    background: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    color: #333;
    border: 1px solid #ccc;
}

.carousel .owl-nav .owl-prev {
    left: 10px;
}

.carousel .owl-nav .owl-next {
    right: 10px;
}

.carousel .carousel-description {
    position: relative;
    width: 30%;
    padding-left: 20px;
    box-sizing: border-box;
    background: rgb(51,51,51);
    background: linear-gradient(0deg, rgba(51,51,51,1) 0%, rgba(3,2,2,1) 100%);
    color: #ddd;
    padding: 10px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; 
}

.carousel img {
    width: 70%;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    flex-shrink: 0;
    height: 100%; /* Ajusta la altura de la imagen */
    object-fit: cover; /* Mantiene la proporción de la imagen */
}
.mySlides {display:none;}
.mySlides img{
    border-radius: 10px;
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.w3-display-bottomleft{
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: rgb(51,51,51);
    background: linear-gradient(0deg, rgba(51,51,51,1) 0%, rgba(3,2,2,1) 100%);
}
.w3-display-bottomleft h3{
    font-size: 16px;
    font-weight: 900;
    border: 0;
    padding:0;
}
.w3-display-bottomleft h2{
    font-size: 12px;
    border: 0px;
    padding:0;
}
.w3-display-bottomleft p{
    font-size: 12px;
    border: 0px;
    padding:0;
}
.main-content{
    background: white;
    border-radius: 15px;
    align-content: center;
}
.w3-display-container{
    padding: 10px;
}
.w3-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: auto;
}
.w3-display-container {
    position: relative;
}
.mySlides {
    display: none;
    position: absolute;
    width: 100%;
    animation: fade 1.5s;
}
@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}
.w3-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 16px;
}
.w3-display-left {
    left: 0;
}
.w3-display-right {
    right: 0;
}
.lef{
    width: 70%;
    height: max-content;
}
.rig{
    width: 25%;
}
.actividades{
    display: flex;
    max-width: 100%; /* Asegura que no se desborde horizontalmente */
    max-height: 100px;
    border: 1px solid #ccc; /* Opcional: agrega un borde para visualizar mejor el contenedor */
    box-sizing: border-box; /* Incluye el borde en el tamaño total del contenedor */
    overflow: hidden;
    margin: 10px;
    border-radius: 10px;
}
.act-image{
    flex: 0 0 30%;
    box-sizing: border-box; /* Asegura que el padding y borde se incluyan en el tamaño total */
    overflow: hidden;
}
.act-image img{
    border-radius: 10px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.act-description{
    flex: 0 0 70%;
    box-sizing: border-box; /* Asegura que el padding y borde se incluyan en el tamaño total */
    overflow: hidden;
    padding-left: 5px;
}
.act-description h2{
    font-size: 14px;
    font-weight:700;
    text-decoration:underline;  
}
.act-description h3{
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}
.act-description p{
    font-size: 10px;
    margin: 5px 0; /* Reduce el espacio entre los elementos */
    line-height: 1.2; /* Ajusta el interlineado */
    white-space: nowrap; /* Evita que el texto se envuelva en varias líneas */
    overflow-x: hidden; /* Oculta cualquier desbordamiento */
    text-overflow: ellipsis; /* Muestra puntos suspensivos cuando el texto se desborda */
    width: 100%; /* Asegura que el elemento ocupe todo el ancho del contenedor */
    display: block;
}
.act-description h3,
.act-description h2,
.act-description p {
    margin: 5px 0; /* Reduce el espacio entre los elementos */
    line-height: 1.2; /* Ajusta el interlineado */
}

/* Estilos para el modal */
.modal-publi {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content-publi {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-radius: 10px;
    text-align: center;
}

.close-publi {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-publi:hover,
.close-publi:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
/*INFO PUCLICIDAD*/

.book-container-publi {
    position: relative;
    width: 80%;
    max-width: 1200px;
    perspective: 2000px;
}

.book-publi {
    width: 100%;
    height: 600px;
    position: relative;
    transform-style: preserve-3d;
    transform-origin: center;
    transition: transform 1s;
}

.page-publi {
    width: 50%;
    height: 100%;
    background: white;
    position: absolute;
    top: 0;
    transform-origin: left;
    backface-visibility: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    transition: transform 0.8s ease-in-out;
}

.page-publi img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: auto;
}

.page-publi:nth-child(even) {
    left: 50%;
    transform-origin: right;
}

.page-publi.flipped:nth-child(even) {
    transform: rotateY(-180deg);
    z-index: 0;
}

.page-publi.flipped:nth-child(odd) {
    transform: rotateY(180deg);
    z-index: 1;
}

.page-publi:nth-child(odd) {
    left: 0;
}

.page-publi .content {
    text-align: center;
}

.controls-publi {
    margin-top: 20px;
    text-align: center;
}

.controls-publi button {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin: 0 5px;
    border-radius: 5px;
    font-size: 16px;
}

.controls-publi button:hover {
    background-color: #555;
}

/* Estilos para el modal */
.modal-publi {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content-publi {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-radius: 10px;
    text-align: center;
}

.close-publi {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-publi:hover,
.close-publi:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}



/* Responsive Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.hamburger-menu div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
}

@media (max-width: 768px) {
    .top-header h1 {
        font-size: 18px;
    }

    .hamburger-menu {
        display: flex;
    }

    .main-menu {
        flex-direction: column;
        display: none;
    }

    .main-menu.active {
        display: flex;
    }

    .main-menu > li > a {
        padding: 10px 20px;
    }

    .submenu {
        position: relative;
    }

    .submenu li {
        width: 100%;
    }

    .buttons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive grid */
.buttons-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.info-button {
    background-color: #ffffff;
    color: rgb(131, 14, 14);
    box-shadow: 1px 1px 1px 1px rgb(0, 0, 0);;
    border: none;
    border-radius: 5px;
    padding: 2px;
    text-align: center;
    cursor: pointer;
    align-content: center;
}

@media (max-width: 1024px) {
    .buttons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .buttons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .buttons-grid {
        grid-template-columns: 1fr;
    }
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    border-style: outset;
    border-color: rgb(131, 14, 14);
}

.lef, .rig {
    width: 100%;
}

@media (min-width: 768px) {
    .lef {
        width: 70%;
    }

    .rig {
        width: 25%;
    }
}

/* Remaining styles */
.announcement, .comments-section, .contact-section, .events-section, .history-section, .login-section, .statutes-section, .convenios-section, .directiva-section, .chapters-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}
/* Estilos para el menú de hamburguesa */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.4s;
}

/* Estilos para la versión móvil del menú principal */
@media (max-width: 768px) {
    .main-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .main-menu.active {
        display: flex;
    }

    .main-menu li {
        width: 100%;
    }

    .main-menu li a {
        padding: 15px;
        text-align: center;
    }

    .hamburger-menu {
        display: flex;
    }
}