/* estilos.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

.top-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    height: 50px;
}

h1 {
    font-size: 24px;
}

nav {
    background-color: #444;
}

.main-menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
    position: relative;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
}

.main-menu li:hover > .submenu {
    display: block;
}

.submenu {
    display: none;
    position: absolute;
    background-color: #444;
    list-style-type: none;
    padding: 0;
    margin: 0;
    top: 100%;
    left: 0;
}

.submenu li {
    width: 200px;
}

.submenu li a {
    padding: 10px 15px;
    display: block;
    color: #fff;
    text-decoration: none;
}

.submenu li a:hover {
    background-color: #555;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    overflow: hidden;
}

.main-content {
    display: flex;
    justify-content: space-between;
}

.left-column {
    width: 70%;
}

.right-column {
    width: 30%;
    padding-left: 20px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.blog-post p {
    text-align: justify;
}

.comments {
    margin-top: 20px;
}

.comments textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.comments button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.comments button:hover {
    background-color: #0056b3;
}

.comments-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.comments-list li {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 5px;
}

#toggle-comments {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

#toggle-comments:hover {
    background-color: #218838;
}

.affiches {
    margin-top: 20px;
}

.affiche {
    margin-bottom: 20px;
}

.affiche-img {
    width: 100%;
    height: auto;
    max-width: 200px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 5px;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

/* Modal para mostrar las imágenes en grande */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.modal-content {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.close {
    position: absolute;
    top: 50px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.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: " ▲";
}
#comment-list {
    display: none; /* Ocultar comentarios por defecto */
}


/* 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;
    }
    .main-content {
        display: flex;
        justify-content: space-between;
    }
    
    .left-column {
        width: 100%;
    }
    
    .right-column {
        width: 100%;
        padding-left: 20px;
    }
    .blog-post {
        margin: 20px 0;
        display: grid;
        gap: 20px;
    }
    .blog-post {
        grid-template-columns: 1fr;
    }
}