/* frontend/css/eventos.css */

 * {
    margin: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    scroll-behavior: smooth;
    }

.header {
     display: flex;
     width: 100%;
     justify-content: center;
     padding: 20px 0px;
     position: fixed;
     transition: background-color 0.3s ease;
     z-index: 1000;
     top: 0;
     left: 0;
     right: 0;
 }


 .header.scrolled {
     background-color: rgba(0, 0, 0, 0.5);
     backdrop-filter: blur(10px);
     -webkit-backdrop-filter: blur(10px);
     transition: background-color 0.3s ease;
 }

 nav {
     width: 80%;
     display: flex;
     justify-content: space-between;
     align-items: center;
     color: white;
 }

 nav .logo {
     display: flex;
     gap: 20px;
 }


 nav ul {
     display: flex;
     list-style: none;
     gap: 30px;
 }

 nav ul li a {
     text-decoration: none;
     color: white;
     font-size: 12px;
     transition: 0.1s;
 }

 nav ul li a:hover {
     color: #12bcd3;
 }

 #hero {
     color: white;
     display: flex;
     flex-direction: column;
     width: 100%;
     height: 55vh; /* Ajuste: Cambiada la altura a 55vh para que sea igual a espacios y contacto */
     overflow-x: hidden;
     background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.9)), url("../assets/img/feria-del-libro.jpg");
     background-repeat: no-repeat;
     background-size: cover;
     background-position: center;
     justify-content: flex-end;
     align-items: center;
 }

 .hero_content {
     display: flex;
     width: 80%;
     height: 80%;
     justify-content: flex-start;
     align-items: flex-end;
     flex-wrap: wrap;
 }

 .hero_content h1 {
     margin-bottom: 20px;
     color: white;
     font-size: 3rem;
     text-shadow: 1px 1px 100px black;
 }

 #institucional {
     color: rgb(0, 0, 0);
     display: flex;
     flex-direction: column;
     width: 100%;
     justify-content: center;
     align-items: center;
     background-color: rgb(237, 237, 237);
 }

 .datos-institucion {
     margin: 50px 0;
     display: flex;
     width: 80%;
     flex-direction: column;
     justify-content: center;
     gap: 20px;
 }

 .autoridad-institucion {
     display: flex;
     align-items: center;
     justify-content: space-evenly;
     gap: 20px;
 }

 .autoridad-card {
     display: flex;
     width: 50%;
     height: 150px;
     justify-content: center;
     align-items: center;
     border-radius: 10px;
     gap: 20px;
     padding: 10px;
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
 }

 .autoridad-img img {
     width: 100px;
     height: 100px;
     border-radius: 50%;
 }

 .mision-institucion {
     display: flex;
     flex-direction: column;
     gap: 20px;
 }

 .funciones-institucion {
     display: flex;
     flex-direction: column;
     gap: 20px;
 }

 #information {
     margin: 50px 0;
     color: rgb(0, 0, 0);
     display: flex;
     flex-direction: column;
     width: 100%;
     height: 50vh;
     justify-content: center;
     align-items: center;
 }

 .information-cards {
     margin: 50px 0;
     display: flex;
     width: 80%;
     justify-content: space-evenly;
     align-items: center;
     flex-wrap: wrap;
     gap: 20px;
 }

 .card {
     display: flex;
     width: 30%;
     height: 80px;
     justify-content: center;
     align-items: center;
     box-shadow: 2px 7px 13px 0px rgba(0, 0, 0, 0.2);
     border-color: #000000;
     font-size: 11px;
     border-radius: 10px;
     gap: 20px;
     padding: 10px;
     text-decoration: none;
     color: rgb(42, 61, 71);
 }

 .card:hover {
     background: #12bcd3b6;
     transition: 0.1s;
     scale: 1.05;
 }

 .card img {
     width: 30px;
 }

 #footer {
     display: flex;
     width: 100%;
     height: 100%;
    background: linear-gradient(to right, #03437e, #0da8e6);


     color: white;
     justify-content: center;
     align-items: center;
 }

 .footer {
     margin: 50px 0;
     height: 100%;
     display: flex;
     width: 100%; /* Ahora ocupa el 100% del ancho del #footer */
     justify-content: space-between;
     align-items: center;
     font-size: 12px;
     padding: 0 20px; /* Añadido padding para el espaciado interno */
     box-sizing: border-box; /* Asegura que el padding no añada ancho extra */
 }

 .footer-img {
     width: 50%;
     display: flex;
     gap: 50px;
 }

 .footer-img img {
     width: 100px;
 }


 .footer-datos {
     width: 50%;
     display: flex;
     align-items: flex-end;
     flex-direction: column;
     gap: 10px;
 }

 .footer-datos img {
     margin-left: 5px;
 }

 .footer-social {
     width: 100%;
     display: flex;
     align-items: center;
     justify-content: flex-end;
     gap: 5px;
 }

 .footer-social img {
     width: 20px;
 }

.container {
    margin-top: 120px;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: black;
}
/* CONTENEDOR DE LA GRILLA - ajustado */
.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 370px)); /* 15% más grande */
    justify-content: center;
    gap: 36px;
    padding: 24px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 50px auto;
}

/* TARJETA - sin cambios en estructura */
.evento-card {
    background-color: white;
    box-shadow: 2px 7px 13px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    position: relative;
    cursor: pointer; /* Añadido para indicar que es clicable */
}

.evento-card .categoria-banda {
    width: 100%;
    height: 12px;
    display: block;
}

.evento-categoria-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.evento-card:hover {
    transform: scale(1.07);
}

.evento-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.evento-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.evento-fecha {
    font-size: 14px;
    color: #888;
}

.evento-titulo {
    font-size: 18px;
    color: #000;
}

.evento-descripcion {
    font-size: 14px;
    color: #444;
}

.paginacion {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.paginacion button {
    background: #12bcd3;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.paginacion button.activo, .paginacion button:hover {
    background: #0a8fa3;
}

/* Ajustes para la barra de filtros y búsqueda */
.filtros-bar {
    display: flex;
    justify-content: center; /* Centra los elementos horizontalmente */
    align-items: center;
    gap: 15px; /* Espacio entre los filtros */
    margin: 20px auto; /* Centra la barra de filtros y añade margen vertical */
    width: 90%; /* Ajusta el ancho de la barra de filtros */
    max-width: 800px; /* Limita el ancho máximo */
    flex-wrap: wrap; /* Permite que los elementos se envuelvan en pantallas pequeñas */
    padding: 10px; /* Añade un poco de padding interno */
    box-sizing: border-box; /* Incluye padding en el ancho */
}

.filtro-select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 15px;
    flex-grow: 1; /* Permite que los selects crezcan */
    min-width: 150px; /* Ancho mínimo para los selects */
}

.filtros-busqueda { /* Este estilo parece no usarse directamente en el HTML proporcionado, pero lo mantengo por si acaso */
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.filtros-avanzados { /* Este estilo parece ser para un menú desplegable de filtros, no para la barra principal */
    background: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    z-index: 10;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
}

@media (max-width: 900px) {
    .eventos-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
    .evento-card {
        min-height: 340px;
    }
    .filtros-avanzados {
        flex-direction: column;
        position: static;
    }
}

.filtros-wrapper { /* Este estilo también parece ser para un contenedor de filtros más amplio, no la barra principal */
    margin: 40px auto;
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.filtro-label {
    font-weight: bold;
    font-size: 16px;
}

/* El estilo .filtro-select ya está definido arriba para la barra principal */

.filtros-container { /* Este estilo parece ser para un grupo de botones de filtro, no la barra principal */
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filtro-btn {
    background-color: transparent;
    border: 1px solid #12bcd3;
    color: #12bcd3;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filtro-btn.activo,
.filtro-btn:hover {
    background-color: #12bcd3;
    color: white;
}

.mensaje-vacio {
    text-align: center;
    color: #c30135;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 30px;
}

/* Ajuste para mover el contenido principal más arriba */
main {
    margin-top: 0; /* Eliminado el margin-top para que el contenido empiece justo después del header */
}

/* Media query para centrar los filtros en pantallas pequeñas */
@media (max-width: 768px) {
    .filtros-bar {
        flex-direction: column; /* Apila los filtros verticalmente */
        align-items: center; /* Centra los elementos apilados */
        gap: 10px; /* Reduce el espacio entre ellos */
    }
    .filtro-select {
        width: 100%; /* Ocupa todo el ancho disponible */
        max-width: 300px; /* Limita el ancho máximo para que no se extienda demasiado */
    }
}

/* Estilos para el Modal de Eventos */
.modal-overlay {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fondo oscuro semi-transparente */
    z-index: 2000; /* Asegura que esté por encima de todo */
    justify-content: center;
    align-items: center;
    overflow-y: auto; /* Permite scroll si el contenido es largo */
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    transform: translateY(-50px); /* Efecto de entrada */
    opacity: 0; /* Oculto inicialmente */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.modal-content.active {
    transform: translateY(0);
    opacity: 1;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #c30135;
}

.modal-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 2rem;
    color: #222;
    margin-bottom: 10px;
}

.modal-category {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
    /* Colores dinámicos para categorías, similar a .cat-musica, etc. */
    background-color: #607d8b; /* Color por defecto */
}

.modal-date, .modal-time, .modal-location {
    font-size: 1rem;
    color: #555;
    margin-bottom: 8px;
}

.modal-description {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
    margin-top: 20px;
}

/* Responsive para el modal */
@media (max-width: 600px) {
    .modal-content {
        padding: 20px;
        max-width: 95%;
    }
    .modal-title {
        font-size: 1.5rem;
    }
    .modal-category {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    .modal-date, .modal-time, .modal-location, .modal-description {
        font-size: 0.9rem;
    }
}
