:root {
    --fuenteHeading: 'PT Sans', sans-serif;
    --fuenteParrafo: 'Open Sans', sans-serif;
    --negro: #000000;
    --blanco: #FFF;
    --claro: #E1E1E1;
    --secundario: #98092b;
}

html {
    box-sizing: border-box;
    font-size: 62.5%;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}


/* Globales */
body {
    font-family: var(--fuenteParrafo);
    font-size: 1.6rem;
    line-height: 2;
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 4rem;
    text-align: center;
}

h3 {
    font-size: 3.2rem;
}

h4 {
    font-size: 2.8rem;
    margin-bottom: 0;
}


h1,
h2,
h3,
h4 {
    font-family: var(--fuenteHeading);
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.boton {
    display: block;
    font-size: 1.8rem;
    font-family: var(--fuenteHeading);
    color: var(--blanco);
    padding: 1rem 3rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    text-align: center;
    margin-bottom: 2rem;
}

.boton:hover {
    cursor: pointer;
}

.boton--primario {
    background-color: var(--negro);
}

.boton--secundario {
    background-color: var(--secundario);
}

.boton--formulario {
    width: 100%;
}

@media (min-width: 768px) {
    .boton--formulario {
        width: auto;
    }
}

@media (min-width: 768px) {
    .boton {
        display: inline-block;
    }
}

/* utilidades */
.contenedor {
    width: min(90%, 120rem);
    margin: 0 auto;
}

.no-margin {
    margin: 0;
}

.centrar-texto {
    text-align: center;
}

/* header */

.header {
    background-image: url(../img/fondo.webp);
    background-position: bottom;
    height: 60rem;
    background-size: cover;
    background-repeat: no-repeat;
}


.barra {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    width: 20rem;
    margin-top: 2rem;
    border-radius: .5rem;
}

@media (min-width: 768px) {
    .barra {
        flex-direction: row;
        justify-content: space-between;
    }

}

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

@media (min-width: 768px) {
    .navegacion {
        flex-direction: row;
        margin-top: 5rem;
    }
}

.navegacion__enlace {
    text-align: center;
    font-size: 2.2rem;
    font-family: var(--fuenteParrafo);
    padding: 1rem;
    font-weight: bold;
    color: var(--blanco);
}


.header__contenido {
    color: var(--blanco);
    text-align: center;
    margin-top: 2rem;
    font-weight: bold;
}

.activo {
    color: var(--claro);
    font-weight: 900;
}


@media (min-width: 768px) {
    .header__contenido {
        margin-top: 10rem;
    }
}

/* contenido principal */
@media (min-width: 768px) {
    .principal {
        display: grid;
        grid-template-columns: 2fr 1fr;
        column-gap: 2rem;
    }
}

.secciones {
    border-bottom: 2px solid var(--claro);
    margin-bottom: 4rem;
}

.secciones:last-of-type {
    border: none;
    margin-bottom: 0;
}

.oferta__precio {
    font-weight: 700;
    font-size: 1.8rem;
}

.footer {
    margin-top: 3rem;
    background-color: var(--negro);
}

/*nosotros*/

@media (min-width: 768px) {
    .nosotros {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;
    }
}

/* contacto */
.contacto__fondo {
    background-image: url(../img/contacto.webp);
    height: 40rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
}

.formulario {
    background-color: var(--blanco);
    margin: -5rem auto 0 auto;
    width: 95%;
    padding: 5rem;
}

.campo {
    display: flex;
    margin-bottom: 2rem;
}

.campo__label {
    flex: 0 0 9rem;
    text-align: right;
    padding-right: 2rem;
}

.campo__input {
    flex: 1;
    border: 1px solid var(--claro);
    overflow: auto;
}

.campo--textarea {
    height: 20rem;
}

/*reservacion*/

@media (min-width: 768px) {
    .reservacion {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.reservacion_horario {
    background-color: var(--secundario);
    color: var(--blanco);
}

.dia {
    font-weight: 700;
}

.calendario {
    list-style: none;
    margin: 0;
    padding: 0;
}

li {
    padding: 2rem;
}

.imagen_reservacion {
    width: 100%;
    max-height: 30rem;
}

/*modal*/

.modal {
    position: fixed;
    inset: 0;

    background-color: rgba(0, 0, 0, .5);
    display: grid;
    place-items: center;

    animation: fadeIn ease-in 0.5s;
}

.modal img {
    max-width: 100%;
}

@media (min-width: 768px) {
    .modal img {
        max-width: 80rem;
    }    
}



.overflow-hidden {
    overflow: hidden;
}

.fade-out {
    animation: fadeOut ease-in 0.5s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}