/* Encabezado */
.header-background {
    background: #542141;
    color: #ffffff;
    padding: 20px;
}

.header-logo img {
    max-height: 75px;
    margin: 10px;
}


/* Carrusel */
.carousel-caption h5 {
    background: rgba(0, 0, 0, 0.7);
    padding: 5px;
}

.carousel-item p {
    font-size: 1.2rem;
    color: #333;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* Controles personalizados del carrusel */
.custom-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: #542141;
    border-radius: 50%;
}

.carousel-control-prev.custom-carousel-control {
    left: -50px;
}

.carousel-control-next.custom-carousel-control {
    right: -50px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

/* Estilo de noticias */
.backnoticias {
    background: #f8f9fa;
    padding: 10px;
}


/* Tarjetas */
.card {
    height: auto;
    margin-top: 25px;
    margin-bottom: 20px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    text-align: center;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px 8px 0 0;
}

.card h5 {
    font-size: 1.2em;
    margin-top: 10px;
    color: #333;
}

.card ul {
    padding-left: 0;
    list-style-type: none;
}

.card ul li {
    font-size: 0.9em;
    color: #666;
}

/* Footer */

.footer img {
    width: 70%;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    flex-wrap: wrap;
}

.footer .footer-logo,
.footer .footer-menu,
.footer .footer-contact {
    width: 30%;
    text-align: center;
}

.footer .footer-design {
    width: 10%;
    text-align: center;
}

/* Tipografías */
.economica-regular {
    font-family: "Economica", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.economica-bold {
    font-family: "Economica", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.economica-regular-italic {
    font-family: "Economica", sans-serif;
    font-weight: 400;
    font-style: italic;
}

.economica-bold-italic {
    font-family: "Economica", sans-serif;
    font-weight: 700;
    font-style: italic;
}

/* Listas */
.list-group-item {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 5px;
    padding: 10px;
}

.list-group-item strong {
    font-size: 1.2em;
    color: #333;
}

.list-group-item span {
    display: block;
    font-size: 0.9em;
    color: #555;
}

.calendar-header {
    margin-bottom: 1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    width: 100%;
    max-width: 600px;
}

.calendar-day-name {
    font-weight: bold;
    text-align: center;
}

.calendar-day {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.calendar-day.empty {
    background-color: #f9f9f9;
    cursor: default;
}

.calendar-day.event {
    background-color: #007BFF;
    color: white;
    font-weight: bold;
}

.calendar-day:hover {
    background-color: #0056b3;
    color: white;
}

/* Responsivo */
@media (max-width: 768px) {
    .scroll-container {
        max-height: 300px;
    }

    .col-lg-8,
    .col-lg-4 {
        margin-bottom: 20px;
    }
}

/* Igualar altura de columnas en noticias */
.row {
    display: flex;
    flex-wrap: wrap;
}

.col-md-6 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.scroll-container {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Calendario */
.calendar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa; /* Color de fondo */
    padding: 10px; /* Ajuste de espaciado */
    border-radius: 8px;
    width: 100%; /* Ancho ajustado */
    max-width: 400px; /* Máximo ancho del contenedor */
    height: 100%; /* Alto ajustado */
}

.fc-toolbar-title {
    text-transform: uppercase; /* Convertir el mes a mayúscula */
    font-weight: bold; /* Resaltar el título */
    letter-spacing: 1px; /* Espaciado de letras */
}

.fc-toolbar-chunk {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Espaciado entre elementos */
}

/* Botón Hoy y flechas */
.fc-today-button, .fc-prev-button, .fc-next-button {
    margin-left: 5px; /* Espaciado adicional para separar del título */
}

.fc-today-button {
    margin-right: 10px; /* Espaciado entre el año y el botón Hoy */
}

/* Ajustar alto del calendario */
.fc-view-harness {
    min-height: 300px; /* Alto mínimo */
}

.fc-daygrid {
    height: 100%; /* Ajustar alto al contenedor */
}

/* Reducir el espacio vertical entre los días del calendario */
.fc-daygrid-day-frame {
    padding: 2px; /* Reduce el espacio interno del día */
    height: 20px; /* Ajusta la altura máxima */
}

.fc-daygrid-day-number {
    font-size: 14px; /* Tamaño de la fuente para los números */
    line-height: 1.2; /* Ajusta la altura de línea */
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%; /* Asegura que ocupen toda la altura */
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.min-vh-100 {
    min-height: 100vh; /* Altura mínima igual a la altura de la ventana */
}

.flex-grow-1 {
    flex: 1; /* Hace crecer el contenido principal */
}

.footer {
    background: #542141;
    color: #ffffff;
    padding: 20px 0;
}