* {
    font-size: 14px;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

:root {
    --color-navegacion: white;
    --altura-navecaion: 5rem;
    --altura-cabecera: 18rem;
    --color-upc-rojo: #ec1c23;
    --color-rojo-suave: #fff4f4;
    --color-gris-suave: #f6f6f6;

}

nav.container {
    background-color: var(--color-navegacion);
    height: var(--altura-navecaion);

}

nav.container .marca {
    height: inherit;
}

nav.container .marca img {
    display: block;
    height: calc(var(--altura-navecaion) - 1.5rem)
}

header {
    background-image: url('../imagenes/biblioteca.jpg');
    height: var(--altura-cabecera);
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center right;

}



.ct-rojo-upc {
    color: var(--color-upc-rojo);
}

.fondo-blanco-03 {
    background-color: rgba(255, 255, 255, .7)
}

.fondo-rojo-upc {
    background-color: var(--color-upc-rojo);
}

.fondo-rojo-suave {
    background-color: var(--color-rojo-suave);
}

.fondo-gris-suave {
    background-color: var(--color-gris-suave);
}

.altura-maxima {
    height: var(--altura-cabecera);
}

.altura-maxima-vh {
    height: 100vh !important;
}

.icono-size-1 {
    width: 1rem;
    height: 1rem;
}

.icono-size-2 {
    width: 1.65rem;
    height: 1.65rem;
}

.flex-1 {
    flex: 1;
}

.capa-1 {
    z-index: 1;
}

.capa-5 {
    z-index: 5 !important;
}

@media (min-width: 768px) {
    * {
        font-size: 15px;
    }

    :root {
        --altura-cabecera: 20rem;
    }

    nav {
        padding-left: 0rem !important;
        padding-right: 0rem !important;
    }

    main {
        padding-left: 0rem !important;
        padding-right: 0rem !important;
    }

    header {
        height: var(--altura-cabecera);
        background-position: top right;
    }

}

@media (min-width: 992px) {
    * {
        font-size: 16px;
    }

    :root {
        --altura-cabecera: 24rem;
    }
}

/*
Calenario
*/

#colores-diponibilidad-calendario li span {
    display: inline-block;
    width: .75rem;
    height: .75rem;
    border: thin solid #ec1c23;
    background-color: white;
    margin-right: .2rem;
}

#contenedor-calendario {

    width: 100%;

}

#calendario {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-top: .8rem;
}

.dia-nombre,
.dia {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.dia-nombre {
    background-color: #ec1c23e3;
    color: #fff;
    font-weight: lighter;
}

.dia {
    background-color: #f0f0f0;
    cursor: pointer;
    font-size: .94rem;
    transition: background-color 0.3s;
}

.dia:hover {
    background-color: #ec1c23;
    color: #fff;
}

.activo {
    background-color: #ec1c23 !important;
    color: #fff;
}

.deshabilitado {
    background-color: #e0e0e0;
    color: #aaa;
    cursor: not-allowed;
}

.hoy {
    border: 2px solid #ec1c23;
    background-color: #ffebeb;
}

.hoy-disponible {
    border: 2px solid #ec1c23;
    background-color: #fff;
    color: #ec1c23;
}

#disponibilidad {
    margin-top: 20px;
    width: 100%;
}

.contenedor-horas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
}

.hora {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.hora:hover {
    background-color: #ec1c23;
    color: #fff;
}

.activo {
    background-color: #ec1c23;
    color: #fff;
}
#nav-meses{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.boton-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: 700;

    border: 1px solid #ddd;
    background-color: #ec1c23;
    color: #fff;
    border-radius: 5px;
    min-width: 3rem !important;
    min-height: 3rem !important;
  
    transition: background-color 0.3s;
}

.boton-nav:hover {
    background-color: #bf171c;
}

#info-seleccionado {
   
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
    text-align: center;
}
.entrada-error {
    border: 2px solid #ec1c23 !important;
}

.mensaje-error {
    color: #ec1c23;
    font-size: 0.9em;
}
.cuadrado {
    width: 100%;
    padding-bottom: 100%; 
    position: relative;
}

.cuadrado img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
}
