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;
}
/*nuevo elecion,posesion*/

.containerdire {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.carddire {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 45%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.titdire {
    background-color: #333;
    color: white;
    padding: 10px;
    font-size: 1.2rem;
}

.imadire {
    width: 100%;
    height: auto;
}

.desdire {
    padding: 15px;
    font-size: 1rem;
    color: #555;
}
/*NUEVO MENUSOL*/

.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: " ▲";
}
/* styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    text-align: center;
}

header {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
}

h1 {
    margin: 0;
    font-size: 24px;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
}

.gallery-item {
    width: calc(25% - 20px);
    margin: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    cursor: pointer;
    display: block;
    object-fit: cover;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.caption {
    margin: 15px 0;
    color: #ccc;
    text-align: center;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .gallery-item {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .gallery-item {
        width: calc(100% - 20px);
    }
}

/* 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;
    }
}