:root {
    --blanco: #ffffff;
    --oscuro: #070707;
    --oscuro_claro: #7d7d7d;
    --rojo_claro: #ff4949;
    --rojo_claro1: #ffb3b3;
    --rojo_fuerte: #a10202;
    --rojo: #e50000;
    --fuenteP: "Sanchez", serif;
    --grisC: #cfcfcf;
    
}

/*  GLOBALES */ 
html{
    box-sizing: border-box;
    font-size: 62.5%;
}

*,*::before, *::after{
    box-sizing: inherit;
}

body {  
    font-size: 16px; /*  1rem = 10px */ 
    line-height: 1.5;  /* INTERLINEADO */ 
}

.degradado{
    background-image: linear-gradient(to top, var(--rojo_claro1) 10%, var(--blanco) 60%);
}

h1{
    font-size: 4rem;
}

h2{
    font-size: 3.2rem;
}

h3{
    font-size: 2.4rem;
}

h1, 
h2,
h3{
    text-align: center;
    font-family: var(--fuenteP);
}

p{
    font-family: var(--fuenteP);
}

a{
    text-decoration: none;
}

footer{
    font-size: 1.8rem;
    text-align: center;
    font-family: var(--fuenteP);
}

.pie{
    margin-top: 10rem;
}


/* HEADER */ 

.header{
    background-color: var(--oscuro);
    padding: 1rem;
    color: var(--blanco);
    text-align: center;
}


@media (min-width: 768px) {
    .barra{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

.logo{
    color: var(--blanco);
}

.logo__nombre{
    font-weight: 400;
}

.logo__bold{
    font-weight: 700;
}


/* NAVEGACION */ 

.navegacion__enlaces{
    color: var(--blanco);
    display: block;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    transition: color .6s ease;
    margin-top: 2rem;
}

.navegacion__enlaces:hover{
    color: var(--rojo);
}

@media (min-width: 768px) {
    .navegacion{
        display: flex;
        gap: 2rem;
    }
}

.navegacion__enlaces--activo,
.navegacion__enlaces:hover{
    color: var(--rojo);
}


/* HERO */ 

.hero{
    background-image: url(../img/Reservas.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    height: 60rem;
    position:relative;
    background-position: center center;
    
}

.contenido-hero{
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); /* ANTERIOR */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contenido-hero h2,
.contenido-hero p{
    color: var(--blanco);
}

.contenido-hero .ubicacion{
    display: flex;
    align-items: flex-end;
}

/* CONTENEDOR PRINCIPAL */ 

.contenedor_principal{
    max-width: 140rem;
    text-align: center;
    margin: 0 auto; /* Centra horizontalmente */
    align-items: center; /* Alinea verticalmente */
    justify-content: center;
    flex-direction: column;
}

.contenedor_principal h2{
    text-transform: uppercase;
}


/* RESTAURANTES */

.grid{
    display: grid;
    text-align: center;
    margin-top: 2rem;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid{
        display: grid;
        grid-template-columns:repeat(2, 1fr);
        gap: 5rem;
    }
}

.restaurante{
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .restaurante img{
        height: 45rem;
        padding: 1rem;
        width: 100%;
    }
    
}

.restaurante img{
    height: 30rem;
    padding: 1rem;
    width: 100%;
}

.sombra {
    box-shadow: 0px 4px 19px 0px rgba(79,79,79,0.67);
    background-color: var(--blanco);
    padding: 2rem;
    border-radius: 1rem;
}

.restaurante__informacion{
    text-decoration: none;
    font-family: var(--fuenteP);
    color: #000;

}

.restaurante__nombre{
    font-weight: 700;
    font-size: 2.5rem;
}

.restaurante__descripcion{
    font-weight: 700;
}

/*  NOSOTROS */ 
.nosotros{ 
    display: grid;
    grid-template-rows: repeat(2, auto);
    text-align: center;
}

.nosotros__imagen{
    grid-row: 1 / 2;
    height: 28rem;
    width: 33rem;
    text-align: center;
    justify-content: center;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .nosotros__imagen{
        grid-column: 2 / 3;
    }

    .nosotros__imagen{
        width: auto;
        height: 30rem;
    }
    
}

/* BLOQUES */ 

.bloques{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .bloques{
        grid-template-columns: repeat(4, 1fr);
    }
    
}

.bloque__imagen{
    height: 10rem;
    box-shadow: 0px 4px 19px 0px rgba(79,79,79,0.67);
    background-color: var(--blanco);
    padding: 2rem;
    border-radius: 1rem;
}

.bloques{
    text-align: center;
}

.bloque__titulo{
    margin: 0;
}

.bloque__descripcion{
    text-align: justify;
    margin: 1rem 2rem;
}

/* Iniciar sesion */ 

.contenedor_inicio{
    box-shadow: 0px 4px 19px 0px rgba(79,79,79,0.67);
    background-color: var(--blanco);
    padding: 2rem;
    border-radius: 1rem;
    font-family: var(--fuenteP);
    max-width: min(60rem, 90%);
    margin: 0 auto;
    padding: 2rem;
    border-radius: 1rem;
    margin-top: 3rem;
    text-align: left;
}

/* FORMULARIO */

.formulario{
    font-family: var(--fuenteP);
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2rem;
}

.campos{
    margin-bottom: 1rem;
}

.registro{
    margin-top: 2rem;
    text-align: center;
}

.enlace{
    color: var(--rojo_fuerte);
}

.caja_txt{
    width: 100%;
    padding: 1.5rem;
    border-radius: 1rem;
}

.boton{
    background-color: var(--oscuro);
    color: var(--blanco);
    padding: 1rem 3rem;
    margin-top: 1rem;
    font-size: 2rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: .5rem;
    width: 100%;
    text-align: center;
    border: none;
    transition: background-color .6s ease;

}

.boton:hover{
    background-color: var(--rojo);
    cursor: pointer;
}

/* RESTAURANTES SECCIONES */ 

.hero1{
    background-image: url(../img/Restaurante2.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    height: 60rem;
    position:relative;
    background-position: center center;
    
}

.hero2{
    background-image: url(../img/Restaurante1.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    height: 60rem;
    position:relative;
    background-position: center center;
    
}

.hero3{
    background-image: url(../img/Restaurante3.jpeg);
    background-repeat: no-repeat;
    background-size: cover;
    height: 60rem;
    position:relative;
    background-position: center center;
    
}

.hero4{
    background-image: url(../img/Restaurante4.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    height: 60rem;
    position:relative;
    background-position: center center;
    
}

.parrafo__restaurante{
    font-size: 1.8rem;
}

.contenedor_restaurantes{
    margin: 4rem auto;
    max-width: 100rem;
}

.formulario_restaurante legend{
    font-weight: 700;
    text-transform: uppercase;
    font-size: 2rem;
}

.campos_r{
    font-family: var(--fuenteP);
    margin: 2rem auto;
}

.caja_txt_r{
    font-size: 2rem;
}

.cantidad{
    font-size: 2rem;
}

/* @media (min-width: 768px) {

    .contenedor__campos{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .campos_rh{
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
    
    .campos_rc{
        grid-column: 1 / 2;
    }
} */

.boton_r{
    font-size: 3rem;
    padding: 1rem;
    margin: .5rem auto;
    border: none;
    color: var(--blanco);
    background-color: var(--oscuro);
    text-transform: uppercase;
    transition: background-color .6s ease;
}

.boton_r:hover{
    background-color: var(--rojo);
    cursor: pointer;
}

/* GALERIA RESTAURANTES */

.galeria{
    display: flex;
    width: 35rem;
    height: 20rem;
    margin: 0 auto;
}

.galeria__imagen{
    width: 0;
    flex-grow: 1;
    object-fit: cover;
    opacity: .8;
    transition: .8 ease;
}

.galeria__imagen:hover{
    cursor: crosshair;
    width: 30rem;
    opacity: 1;
    filter: contrast(120%);
}

@media (min-width: 768px) {
    .galeria{
        display: flex;
        width: 70rem;
        height: 50rem;
        margin: 0 auto;
    }

    .galeria__imagen:hover{
        cursor: crosshair;
        width: 60rem;
        opacity: 1;
        filter: contrast(120%);
    }
}

/* MENÚ */

.menu{
    text-align: center;
}
.menu__imagen{
    width: 35rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .menu__imagen{
        width: 60rem;
    }
}

.reserva{
    font-family: var(--fuenteP);
}

/* REGISTRAR RESTAURANTE */

.enlace_registrar_rest{
    display: flex;
}

fieldset{
    border: none;
}

.enlace_registrar_rest{
    margin: auto;
    text-align: center;
}

/* MENSAJE ERROR */ 

.mensaje_error{
    margin-top: 2rem;
    color: var(--rojo);
}

/* SOLICITUD */
.solicitud{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.botonAdmin{
    text-transform: uppercase;
    padding: 1rem 2rem;
    font-family: var(--fuenteP);
    font-weight: 700;
    background-color: var(--oscuro);
    color: var(--blanco);
    border-radius: .5rem;
    border: none;
    transition: color .7s ease;
    margin: 1rem;
    display: flex;
    flex-direction: row;
}

.botonAdmin:hover{
    color: var(--rojo);
}

.mostrarsolicitud{
    display: block;
}

ul{
    justify-content: flex-start;
    font-family: var(--fuenteP);
    font-size: 2rem;
}

li{
    text-align: left;
    justify-content: left;
    margin-bottom: 1rem;

}

/* HORARIOS */
.horario-button {
    padding: 10px 15px;
    border: 1px solid var(--oscuro);
    background-color: white;
    color: var(--oscuro);
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    margin: 1rem;
    transition: background-color 0.8s;
}

.horario-button.selected {
    border: var(--rojo);
    background-color: var(--rojo);
    color: white;
}

/* NAVEGACION SECUNDARIA */ 

.nav-sec{
    font-size: 1.5rem;
    font-family: var(--fuenteP);
    margin: 2rem;
}

.nav-sec--enlaces{
    padding: 1rem;
    background-color: var(--oscuro);
    color: var(--blanco);
    text-transform: uppercase;
    border-radius: .5rem;
    font-weight: 700;
    transition: background-color .5s ease;
    border: none;
}   

@media (min-width: 768px) {
    .nav-sec{
        font-size: 2rem;
        font-family: var(--fuenteP);
        margin: 2rem;
    }

    .nav-sec--enlaces{
        padding: 1rem 2rem;
        margin: 2rem;
    
    }
}

.nav-sec--enlaces--activo,
.nav-sec--enlaces:hover{
    color: var(--blanco);
    background-color: var(--rojo);
}

.reserva{
    border-bottom: .2rem solid var(--grisC);
    margin-top: 2rem;
}

.caja_txt_f{
    padding: 1rem 4rem;
    border: .5rem solid var(--rojo);
    font-size: 2rem;
    border-radius: .5rem;
}

/* MESAS */
.botonesMesa{
    border: none;
    background-color: var(--oscuro);
    color: var(--blanco);
    padding: 1rem;
    font-size: 2rem;
    font-family: var(--fuenteP);
    margin-bottom: 2rem;
    font-weight: 700;
    border-radius: .5rem;
    transition: background-color .7s ease;
    margin: 1rem 2rem;
}

.botonesMesa:hover{
    background-color: var(--rojo);
}

aside{
    display: grid;

}

@media (min-width: 768px) {
    .con-sidebar{
        display: grid;
        grid-template-columns: 1fr 3fr;
        column-gap: 4rem;
        margin-top: 5rem;
        position: relative;
        overflow: hidden;
    }
}

article{
    box-sizing: border-box;
    max-width: 100%;
    text-align: left;
    align-items: flex-start;
    margin: 0;
    font-size: 2rem;
}

.nav-tec{
    font-size: 2rem;
    padding: 3rem .5rem;
    font-family: var(--fuenteP);
    font-weight: 700;
    border: .5rem solid var(--rojo_fuerte);
    text-align: center;
    height: 30rem;
}

@media (min-width: 768px) {
    .nav-tec{
        margin-left: 2rem;
    }

    .nav-tec--enlaces{
        display: block;
    }
    
}

.nav-tec--enlaces{
    padding: 1rem;
    margin-top: 1rem;
    text-transform: uppercase;
    color: var(--oscuro);
    font-size: 2rem;
    border-bottom: .3rem solid var(--rojo);
    border-radius: .5rem;
    display: block;
}

.nav-tec--enlaces--activo,
.nav-tec--enlaces:hover{
    background-color: var(--rojo_fuerte);
    color: var(--blanco);
}

.chart-container{
    margin-bottom: 4rem;
}


.clientes{
    text-align: left;
}

.decision{
    text-align: center;
}

.botonD{
    padding: 1rem 4rem;
    font-size: 2rem;
}

.prediccion{
    text-align: center;
}

.caja_txtP{
    border: .5rem solid var(--rojo);
    font-size: 2rem;
    margin-bottom: 2rem;

}

.botonP{
    border: none;
    color: var(--blanco);
    background-color: var(--oscuro);
    text-transform: uppercase;
    font-family: var(--fuenteP);
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    margin: 1.5rem;
    border-radius: .5rem;
    transition: background-color .7s ease;
}

.botonP:hover{
    background-color: var(--rojo);
}