/* Variables */
:root {
    --primary-color: #3B4734;
    --secondary-color: #2D3528;
    --accent-color: #B57255;
    --light-color: #EDE9DA;
    --font-primary: 'Raleway', sans-serif;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--primary-color);
    line-height: 1.6;
}

/* Navegación */
#main-nav {
    background: var(--secondary-color);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 80px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links .active {
    color: var(--accent-color);
}

.menu-hamburguesa {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-hamburguesa span {
    width: 25px;
    height: 3px;
    background: var(--light-color);
    margin: 5px 0;
}


/* Hero */
.hero {
    background: linear-gradient(rgba(45, 53, 40, 0.6), rgba(45, 53, 40, 0.6)), 
                url("/assets/img/portada/hero.jpg") no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-color);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background: var(--accent-color);
    color: var(--light-color);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: var(--light-color);
    color: var(--accent-color);
}

/* Sección Destacada */
.featured {
    padding: 4rem 1rem;
    background: var(--light-color);
    text-align: center;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.card {
    background: var(--light-color);
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); 
}

.card a {
    text-decoration: none;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover; 
    border-bottom: 5px solid var(--secondary-color); 
}

.card img:hover {
    filter: brightness(1.1); /* Brilla un poco más */
}

.card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-top: 1rem;
}

.card p {
    color: var(--secondary-color);
    font-size: 1rem;
    text-align: center;
    margin: 1rem;
    line-height: 1.5;
}



/* Estilos para Preguntas Frecuentes */
.faq {
    background: url('/assets/img/background/faq-background.jpg') no-repeat center center/cover;
    padding: 4rem 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    background-blend-mode: overlay;
}

.faq .container {
    max-width: 800px;
    margin: 0 auto;
}

.faq h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.faq-grid {
    display: grid;
    gap: 1rem;
}

.faq-item {
    background: var(--light-color);
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.faq-toggle {
    display: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-color);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
}

.faq-toggle:checked + .faq-question i {
    transform: rotate(180deg);
}

.faq-toggle:checked ~ .faq-answer {
    max-height: 500px;
    padding: 1rem;
}



/* Hero de About */
.about-hero {
    background: linear-gradient(rgba(45, 53, 40, 0.6), rgba(45, 53, 40, 0.6)), 
                url("/assets/img/portada/hero.jpg") no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-color);
}

.about-hero .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.about-hero .hero-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Sección Introducción */
.about-intro {
    padding: 4rem 1rem;
    text-align: center;
    background: var(--light-color);
}

.about-intro h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-intro p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--secondary-color);
    line-height: 1.8;
}

/* Estilos para la sección de Historia y Slider */
.history {
    padding: 4rem 1rem;
    background: var(--light-color);
}

.history h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.history p {
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--secondary-color);
    line-height: 1.8;
    text-align: center;
}

.timeline-gallery {
    padding: 2rem 0;
}

.timeline-gallery h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

/* Estilos del Slider */

.slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 1rem;
    margin-bottom: 2rem;
    background-color: var(--background-color);
    border-radius: 10px;
}

.slider--inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.history-slide {
    flex: 0 0 calc(33.333% - 20px); /* Ajuste para 3 items por fila */
    min-width: calc(33.333% - 20px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

/* Efecto hover para el slider */
.history-slide:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    opacity: 0.9; /* Efecto sutil en hover */
}

.history-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--accent-color);
    transition: opacity 0.3s ease;
}

/* Ajuste para los textos dentro de cada slide */
.slide-content {
    padding: 1.5rem;
}

.slide-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.slide-content p {
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin: 0;
    text-align: left;
}


/* Botones del Slider */
.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-color);
    color: var(--light-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.slider-button:hover {
    background: var(--primary-color);
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

/* Botón Ver Más */
.history-cta {
    text-align: center;
    margin-top: 2rem;
}

.history-cta .cta-button {
    background: var(--accent-color);
    color: var(--light-color);
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.history-cta .cta-button:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsividad */
@media (max-width: 992px) {
    .history-slide {
        flex: 0 0 calc(50% - 20px);
        min-width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .history-slide {
        flex: 0 0 calc(100% - 20px);
        min-width: calc(100% - 20px);
    }
    
    .slider-button {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .history h2 {
        font-size: 2rem;
    }
    
    .timeline-gallery h3 {
        font-size: 1.5rem;
    }
}

/* Sección Valores */
.values {
    padding: 4rem 1rem;
    background: var(--secondary-color);
    color: var(--light-color);
    text-align: center;
}

.values h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.value-card {
    background: var(--light-color);
    color: var(--primary-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.value-card p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Sección Historia */
.history {
    padding: 4rem 1rem;
    background: var(--light-color);
    text-align: center;
}

.history h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.history p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--secondary-color);
    line-height: 1.8;
    text-align: justify;
}

/* Sección Equipo */
.team {
    padding: 4rem 1rem;
    background: var(--secondary-color);
    color: var(--light-color);
    text-align: center;
}

.team h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.team-member {
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.team-member h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.team-member p {
    font-size: 1rem;
    color: var(--accent-color);
}

/* Ajustes Responsivos */
@media (max-width: 768px) {
    .about-hero .hero-content h1 {
        font-size: 2rem;
    }

    .about-hero .hero-content p {
        font-size: 1rem;
    }

    .values-grid, .team-grid {
        grid-template-columns: 1fr;
    }
}


/* Hero específico para comités */
.hero-committees {
    background: linear-gradient(rgba(45, 53, 40, 0.6), rgba(45, 53, 40, 0.6)),
        url('../img/comittees/hero-committees.jpg') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-color);
}

.hero-committees .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-committees .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.hero-committees .cta-button {
    background: var(--accent-color);
    color: var(--light-color);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.hero-committees .cta-button:hover {
    background: var(--light-color);
    color: var(--accent-color);
}

/* Sección de comités */
.committees {
    padding: 4rem 1rem;
    background: var(--light-color);
}

.committees h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.committees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.committee-card {
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.committee-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.committee-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 150px;
    margin: auto; 
    display: block; 
}

.committee-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    margin: 1rem 0 0.5rem;
}

.committee-card p {
    font-size: 1rem;
    color: var(--secondary-color);
    text-align: center;
    margin: 0 1rem 1.5rem;
}

.committee-card .cta-button {
    display: block;
    margin: 0 auto 1rem;
    text-align: center;
    background: var(--accent-color);
    color: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.committee-card .cta-button:hover {
    background: var(--light-color);
    color: var(--accent-color);
}

/* Sección de recursos */
.resources {
    padding: 3rem 1rem;
    background: var(--primary-color);
    color: var(--light-color);
}

.resources h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--light-color);
}

.resources ul {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

.resources li {
    background: var(--secondary-color);
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.resources li:hover {
    background: var(--accent-color);
}

.resources li i {
    font-size: 1.5rem;
    color: var(--light-color);
}

.resources li a {
    text-decoration: none;
    color: var(--light-color);
    font-size: 1.1rem;
    font-weight: bold;
    flex-grow: 1;
}

.resources li a:hover {
    text-decoration: underline;
}

/* Responsividad */
@media (max-width: 768px) {
    .hero-committees {
        height: 50vh;
    }

    .hero-committees .hero-content h1 {
        font-size: 2rem;
    }

    .hero-committees .hero-content p {
        font-size: 1rem;
    }

    .resources li {
        flex-direction: column;
        align-items: flex-start;
    }
}



/* Formulario de Registro */
.registro {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #f9f9f9;
}

.registro h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

.registro p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.registro-boton {
    display: inline-block;
    background-color: #004080;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.registro-boton:hover {
    background-color: #002f5c;
}




/* Hero del Blog */
.blog-hero {
    background: linear-gradient(rgba(45, 53, 40, 0.6), rgba(45, 53, 40, 0.6)),
                url('../img/blog/hero.jpg') no-repeat center center/cover;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-color);
}

/* Blog */
.blog {
    padding: 4rem 1rem;
    background: var(--light-color);
    text-align: center;
}

.blog h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-post {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-10px);
}

.blog-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
    text-align: left;
}

.post-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.post-content p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.post-content .cta-button {
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: var(--light-color);
    border-radius: 5px;
    transition: background 0.3s ease;
}

.post-content .cta-button:hover {
    background: var(--secondary-color);
}




/* Miembros de ICNI */ 
/* Sección de Miembros */
.members {
    background: linear-gradient(135deg, rgba(45, 53, 40, 0.8), rgba(59, 71, 52, 0.9)),
                url("../img/background/members-bg.jpg") no-repeat center center/cover;
    padding: 6rem 2rem;
    text-align: center;
    color: var(--light-color);
    position: relative;
    margin-top: 100px;
}

.members-container {
    background: rgba(237, 233, 218, 0.95);
    border-radius: 15px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    margin: 0 auto;
}

.members h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.members p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.members-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    color: var(--light-color);
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.cta-register {
    background: var(--accent-color);
}

.cta-register:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.cta-login {
    background: var(--primary-color);
}

.cta-login:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.cta-button i {
    font-size: 1.5rem;
}

/* Fondo decorativo */
.members::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 53, 40, 0.7);
    z-index: -1;
    mix-blend-mode: multiply;
}



/* Estilos para Footer */
footer {
    background: var(--secondary-color);
    color: var(--light-color);
    padding: 3rem 1rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li,
.footer-column a {
    color: var(--light-color);
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--light-color);
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center; /* Centra el texto horizontalmente */
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* Línea superior opcional */
    font-size: 0.9rem;
    color: var(--light-color);
}

/* Estilos para la galería en estilo Mosaico (Masonry) */
.galeria {
    padding: 3rem 1rem;
    background-color: #f9f9f9;
}

.galeria h2 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.galeria .subheading {
    font-size: 1.1rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 2rem;
}

/* Usamos una grid con un diseño más libre */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Mosaico responsivo */
    gap: 1rem;
    grid-auto-rows: 200px; /* Establecemos una altura predeterminada para las filas */
}

.foto {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Acomodamos las imágenes con más libertad */
.foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto de hover para las imágenes */
.foto img:hover {
    transform: scale(1.05); /* Aumenta ligeramente la imagen al pasar el cursor */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Usamos diferentes tamaños para las imágenes para hacer el diseño más aleatorio */
.foto:nth-child(odd) {
    grid-row: span 2; /* Algunas imágenes ocuparán 2 filas */
}

.foto:nth-child(even) {
    grid-column: span 2; /* Otras imágenes ocuparán 2 columnas */
}

/* Ajuste responsivo para pantallas pequeñas */
@media screen and (max-width: 768px) {
    .galeria-grid {
        grid-template-columns: 1fr; /* Un solo item por fila en pantallas pequeñas */
    }

    .foto:nth-child(odd), .foto:nth-child(even) {
        grid-column: span 1; /* Restablecemos el tamaño de las imágenes para pantallas pequeñas */
    }
}



@media (max-width: 768px) {
    .menu-hamburguesa {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--secondary-color);
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    /* Animación para el botón hamburguesa */
    .menu-hamburguesa.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-hamburguesa.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-hamburguesa.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .menu-hamburguesa span {
        transition: all 0.3s ease-in-out;
    }
}



/* Estilos para las ediciones ICNIMUN */
.icnimun-editions {
    padding: 3rem 1rem;
    background-color: #f9f9f9;
}

.icnimun-edition {
    margin-bottom: 2rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.icnimun-edition h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.icnimun-edition a {
    text-decoration: none;
}

.icnimun-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.edition-img {
    max-width: 500px;
    border-radius: 10px;
}

.edition-text {
    max-width: 600px;
    text-align: left;
}

.edition-text p {
    color: var(--secondary-color);
    font-size: 1rem;
}

/* Estilos responsivos */
@media screen and (max-width: 768px) {
    .icnimun-info {
        flex-direction: column;
    }

    .edition-img {
        max-width: 100%;
    }
}





/* Sección ICNIMUN */
.icnimun-2023 {
    background-color: #f9f9f9;
    padding: 3rem 1rem;
    text-align: center;
}

.icnimun-2023-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.icnimun-img {
    max-width: 500px;
    border-radius: 10px;
}

.icnimun-text {
    max-width: 600px;
    text-align: left;
}

/* Sección Comisiones */
.comisiones {
    padding: 3rem 1rem;
    background-color: var(--background-color);
}

.comisiones h2 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.comisiones .subheading {
    font-size: 1.1rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.comisiones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Adaptable según el tamaño de pantalla */
    gap: 1.5rem;
    margin-top: 2rem;
    justify-items: center; /* Centra las tarjetas */
}

.comision-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    width: 100%; /* Asegura que las tarjetas no se distorsionen */
    max-width: 350px; /* Limita el tamaño máximo de las tarjetas */
}

.comision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.comision-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.comision-card p {
    color: var(--secondary-color);
    font-size: 1rem;
    margin: 0;
}



/* Estilos responsivos */
@media screen and (max-width: 768px) {
    .comisiones-grid {
        grid-template-columns: 1fr; /* Un solo item por fila en pantallas pequeñas */
        gap: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .comisiones h2 {
        font-size: 1.6rem; /* Reducir tamaño de título en pantallas más pequeñas */
    }

    .comision-card {
        padding: 1.5rem; /* Ajustar el padding en pantallas más pequeñas */
    }

    .comision-card h3 {
        font-size: 1.2rem; /* Ajustar el tamaño del texto del título */
    }
}


/* ========== SECCIÓN ICNIMUN 2.0 ========== */
.icnimun-2020 {
    background-color: #f9f9f9;
    padding: 3rem 1rem;
    text-align: center;
}

.icnimun-2020-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.icnimun-img {
    max-width: 500px;
    border-radius: 10px;
}

.icnimun-text {
    max-width: 600px;
    text-align: left;
}

/* ========== SECCIÓN COMISIONES ========== */
.comisiones {
    padding: 3rem 1rem;
    background-color: var(--background-color);
}

.comisiones h2 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.comisiones .subheading {
    font-size: 1.1rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.comisiones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    justify-items: center;
}

/* ========== TARJETAS DE COMISIONES ========== */
.comision-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    width: 100%;
    max-width: 350px;
}

.comision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.comision-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.comision-card p {
    color: var(--secondary-color);
    font-size: 1rem;
    margin: 0;
}

/* ========== MESA DIRECTIVA ========== */
.mesa-directiva {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.mesa-directiva h4 {
    text-align: center;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.miembro {
    text-align: center;
    max-width: 150px;
}

.miembro-img {
    width: 100%;
    max-width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 3px solid var(--primary-color);
}

/* ========== SECCIÓN GALERÍA ========== */
.galeria {
    padding: 3rem 1rem;
    background-color: #f9f9f9;
    text-align: center;
}

.galeria h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.galeria .subheading {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    justify-items: center;
}

.foto img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.foto img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* ========== RESPONSIVIDAD ========== */
@media screen and (max-width: 768px) {
    .icnimun-2020-info {
        flex-direction: column;
        text-align: center;
    }

    .comisiones-grid {
        grid-template-columns: 1fr;
    }

    .mesa-directiva {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 480px) {
    .comisiones h2, .galeria h2 {
        font-size: 1.6rem;
    }

    .comision-card {
        padding: 1.5rem;
    }

    .comision-card h3 {
        font-size: 1.2rem;
    }
}




/* Zona privada */
.calendario {
    padding: 3rem 1rem;
    text-align: center;
}

.calendario h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.calendario p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}


/* Estilos generales */
.calendario {
    text-align: center;
    padding: 2rem;
}

.calendario h2 {
    font-size: 2rem;
    color: #2C3E50;
    margin-bottom: 1rem;
}

.calendario p {
    font-size: 1.1rem;
    color: #7F8C8D;
    margin-bottom: 2rem;
}

/* Estilos generales */
.calendario {
    text-align: center;
    padding: 3rem 1rem;
}

.calendario h2 {
    font-size: 2.5rem;
    color: #2C3E50;
    margin-bottom: 1rem;
}

.calendario p {
    font-size: 1.3rem;
    color: #7F8C8D;
    margin-bottom: 2rem;
}

/* Contenedor del calendario */
.calendar {
    width: 100%;
    max-width: 900px; /* Se agrandó el calendario */
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Encabezado del calendario */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    padding: 1rem;
    background: #34495E;
    color: #FFF;
    border-radius: 8px 8px 0 0;
}

.calendar-header button {
    background: none;
    border: none;
    color: #FFF;
    font-size: 2rem;
    cursor: pointer;
}

/* Diseño de la cuadrícula del calendario */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 2rem;
}

/* Estilos para los nombres de los días */
.day-label {
    font-weight: bold;
    padding: 1rem;
    text-align: center;
    background: #ECF0F1;
    font-size: 1.4rem;
}

/* Estilos para los días del mes */
.day {
    padding: 2rem;
    text-align: center;
    background: #FFF;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.5rem;
}

/* Días con eventos */
.day.event {
    background: #E74C3C;
    color: #FFF;
    font-weight: bold;
    font-size: 1.6rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.day.event:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Días vacíos al inicio del mes */
.day.empty {
    background: transparent;
    box-shadow: none;
}

/* Responsividad para dispositivos pequeños */
@media screen and (max-width: 768px) {
    .calendar {
        max-width: 100%;
        padding: 1rem;
    }

    .calendar-header {
        font-size: 1.5rem;
    }

    .calendar-grid {
        padding: 1rem;
    }

    .day {
        padding: 1.5rem;
        font-size: 1.3rem;
    }

    .day-label {
        font-size: 1.2rem;
    }
}


/* Ajustes en dispositivos móviles */
@media screen and (max-width: 768px) {
    #calendar {
        max-width: 100%;
        padding: 0.5rem;
    }
}
