:root{
    --primario: #e2deda;
    --primarioOscuro:  #cab093;
    --secundario: #1900ff;
    --secundarioOscuro: rgb(233,287,2);
    --blanco: #FFF;
    --negro: #363535;

    --fuentePrincipal: .staatliches-regular "Staatliches", sans-serif;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: antiquewhite;
}
html {
    box-sizing: border-box;
    font-size: 62.5%;
  }

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

/** Globales **/
body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--primario);
    font-size: 1.6rem;
    line-height: 1.5;
    padding-top: 5px;
}
p {
    font-size: 1.8rem;
    font-family: Arial, Helvetica, sans-serif;
    color:rgb(62, 62, 65);
    text-align: justify;
}
a {
    text-decoration: none;
    text-align: center;
}
img {

    object-fit: cover;
    max-width: 100%;
    justify-self: center;

}
.contenedor {
    max-width: 100rem;
    margin: 1 auto;
}
h1, h2, h3 {
    text-align: center;
    color:rgb(61, 61, 68);
    font-family: 'Montserrat', sans-serif;
}
h1 {
    font-size: 4rem;
    text-align: center;
    color:rgb(61, 61, 68);
    font-family: 'Montserrat', sans-serif;
}
h2 {
    font-size: 3.2rem;
}
h3 {
    font-size: 2.4rem;
}
h4 {
    font-size: 1.2rem;
    text-align: center;
}

/** Header **/
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15%;
    top: 0;
}
.header__logo {
    margin: 0 rem 0;
    height: 100%;
}
/** footer **/
.footer {
    background-color:rgb(216, 224, 226);
    color: gold;
    padding: 0,5rem 0;
    margin-top: 1rem;
    text-align: center;
}
.footer__texto {
    font-family: var(--blanco);
    text-align: center;
    font-size: 1.5rem;
}
.contacto_texto {
    font-family: var(--blanco);
    text-align: center;
    font-size: 2rem;
}

/** publicidad **/
.publicidad {
    display: flex;
    justify-content: center;  
}

/** navegacion **/
.navegacion {
    background-color: rgb(44, 44, 46);
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.navegacion__enlace {
    font-family: var(--fuentePrincipal);
    color:rgb(190, 190, 197);
    font-size: 1.2rem;
   justify-content: end;
}
.navegacion__enlace:hover {
    color:gold;
}

/** grid **/
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-content: center;
}
@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        justify-content: center;
    }
}

/** productos **/
.producto {
    background-color: var(--primarioOscuro);
    padding: 1rem;
    grid-template-columns: 2, 1fr;
}
.producto__imagen {
    grid-row: 1 / 2;
    width: 100%;
}

.producto__nombre {
    font-size: 2rem;
    color: rgb(192, 192, 201);
}
.producto__precio {
    font-size: 5rem;
    color: rgb(201, 201, 211);
}
.producto__nombre,
.producto__precio{
    font-family: var(--secundario);
    margin: 1rem;
    text-align: center;
    
}

/** Nosotros **/
.nosotros {
    display: grid;
    grid-template-rows: repeat(2, auto);
}
@media (min-width: 768px) {
    .nosotros {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;  
    }
}
.nosotros__imagen {
    grid-row: 1 / 2;
    width: 550px;
    height: 420px;
    background-size: cover;
    border: 2px solid rgb(214, 119, 55);
    display: flex;
}
@media (min-width: 768px) {
    .nosotros__imagen {
        grid-column: 2 / 3;
    }
}
.nosotros_contenido{
    font-size: 1.5rem;
    text-align: center;
    margin: 10rem;
    border: 2px solid rgb(214, 119, 55);
}

.nosotros_contenido P {
    font-size: 1;
    margin: 2rem;
    border: 2px solid rgb(214, 119, 55);
}

/** Bloques**/
.bloques {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-area: 2rem;
}
@media (min-width: 768px) {
    .bloques {
        grid-template-columns: repeat(4, 1fr);
    }
}
.bloque {
    text-align: center;
}

.bloque__titulo {
    margin: 0;
}
.bloque_parrafo {
    font-size: 1.5rem;
    margin: 0;
    text-align: center;
}

.bloque_texto {
    font-size: 1.5rem;
    margin: 0;
    text-align: center;
}
.bloque__imagen {
    justify-content: center;
}


/** Contacto **/
.formulario {
    max-width: 500px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.formulario p {
    font-size: 1.2rem;
}

label {
    display: block;
    margin-top: 15px;
}

input[type="number"] {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

button {
    display: block;
    width: 100%;
    padding: 10px;
    background: #5cb85c;
    border: none;
    color: white;
    font-size: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

button:hover {
    background: #aea74c;
}

.contenedor--campos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1rem;
}

.campo:nth-child(3){
    grid-column: 1 / 3;
}


.campo {
    margin-bottom: 1rem;
}

.campo label {
    color:gold;
    font-weight: bold;
    margin-bottom: .5rem;
    display: block;
}
.campo textarea {
    height: 20rem;
}


.input-text {
    width: 100%;
    border: none;
    padding: 1.5rem;
    border-radius: .5rem;
}

.boton {
    background-color: rgb(3, 8, 54);
    color: gold;
    padding: 1rem 3rem;
    margin-top: 3rem;
    font-size: 2rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: .5rem;width: 90%;
    text-align: center;
    border: none;
}
@media (min-width: 768px){
    .boton {
        width: auto;
    }
}
.boton:hover {
    cursor: pointer;
}
.enviar .boton {
    width: 100%;
}

/** Estilos **/
.slider {
    width: 100%;
    overflow: hidden;
   }
.slider ul{
    display: flex;
    animation: cambio 25s infinite alternate linear;
    width: 400%;
}
.slider li{
    width: 100%;
    list-style:none;
}
.slider img{
    width: 100%;
    height: 100%;
}

@keyframes cambio{
    00%{margin-left: 0%;}
    40%{margin-left: -30%;}

    45%{margin-left: -150%;}
    65%{margin-left: -165%;}

    70%{margin-left: -270%;}
    90%{margin-left: -300%;}
    }

    @import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600&family=Titillium+Web:wght@200;300;400;600;700&display=swap');
    *{
        margin: 0;
        padding:0;
        font-family: 'Open Sans';
    }
    header{
        background: url(img/008.jpg);
        background-size: cover;
        background-position:center;
        height: 300px;
    }
    header h1{
        text-align: center;
        font-size: 35px;
        /* background-color: #000; */
        color: #272222;
        padding: 30px 0;
    }

    /* SECCION CONTENEDOR DE ITEMS */
    .contenedor .contenedor-items{
        margin-top: 10px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        grid-gap:30px;
        grid-row-gap: 20px;
        /* width: 60%; */
        width: 100%;
        transition: .3s;
    }
    .contenedor .contenedor-items .item{
        max-width: 270px;
        margin: auto;
        border: 1px solid #666;
        border-radius: 10px;
        padding: 10px;
        transition: .3s;
    }
    .contenedor .contenedor-items .item .img-item{
        width: 100%;
    }
    .contenedor .contenedor-items .item:hover{
        box-shadow: 0 0 10px #666;
        scale: 1.12;
    }
    .contenedor .contenedor-items .item .titulo-item{
        display: block;
        font-weight: bold;
        text-align: center;
        text-transform: uppercase;
    }
    .contenedor .contenedor-items .item .precio-item{
        display: block;
        text-align: center;
        font-weight: bold;
        font-size: 22px;
    }
    
    .contenedor .contenedor-items .item .boton-item{
        display: block;
        margin: 10px auto;
        border: none;
        background-color: black;
        color: #fff;
        padding: 5px 15px;
        border-radius: 5px;
        cursor: pointer;
    }

    /* SECCION RESPONSIVE */
    @media screen and (max-width: 850px) {
        .contenedor-items{
            width: 100% !important;
        }
        .carrito{
            width: 100%;
        }
    }
  /* CARRITO DE COMPRAS */

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: rgb(46, 37, 63);
}

.scroll{
    background-color: rgb(17, 18, 19);
    box-shadow: .1rem .2rem .3rem #333;
}
.scroll img{
    filter: invert(15%);
}           
.scroll h1{
    color: #1b1c1d;
}
.carrito{
    filter: invert(100%);
    width: 45px;
    height: auto;
}
.contenedor{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1230px;
    margin-bottom: 20px;
    padding: 10px;
    margin: auto;
    display: flex;
    justify-content: center;
    /* oculto lo que queda fuera del .contenedor */
    contain: paint;
}
.contenedor>div{
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
    background-color: #d6d9df;
    border-radius: 20px;
}
.contenedor>div:hover{
    background-color: #c4c6c9;
}

.informacion{
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap:15px;
}
.informacion>p:first-child{
    font-family: 'Montserrat', sans-serif;
    font-size: 25px;
    font-weight: 300;
}
.informacion .precio {
    font-size: 30px;
    font-weight: 500;
}
.informacion .precio span{
    font-size: 17px;
    font-weight: 300;
}
.informacion button{
    background-color: #e2752d;
    width: 100px;
    height: 35px;
    border-radius: 10px;
    border: none;
    font-size: 17px;
    font-weight: 300;
    cursor: pointer;
}
.informacion button:hover{
    background-color: #eeec6d;
}
/* COMPRAS */

.comprasa>body{
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--primario);
    padding-top: 800px;
}
.comprasa {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50PX;
    margin-bottom: 20px;
}
.comprasa_imagen {
    width: 320px;
    height: 340px;
    object-fit: cover;
    border-radius: 20px 20px 0px 0px;
    border: 2px solid rgb(214, 119, 55);
}

.comprasa>div{
    box-shadow: 0px 0px 5px 0px rgba(2, 2, 2, 0.75);
    background-color: #e4b991;
    border-radius: 20px;
}
.comprasa>div:hover{
    background-color: #d8976c;
}
.comprasa>header{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15%;
    height: 70px;
    top: 0;
    position: fixed;
    width: 100%;
}

.container{
    width: 90%;
    padding: 20px;
    margin: 100px auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.box {
    width: 250px;
    height: 100%;
    margin: 0 10px auto;
    box-shadow: 0 0 20px 2px rgba(0, 0, 0, 0.1);
    transition: 1s;
}

.box img{
    width: 100%;
    display: block;
    width: 100%;
    border-radius: 10px 10px 10px 10px;
    border: 2px solid rgb(214, 119, 55);
    }

.box:hover{
    transform: scale(1.5);
    z-index: 2;
}

.box p {
    font-size: 1rem;
    color: #0c0701;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* BARRA */

.barra {
    font-family: 'Lato', sans-serif;
    /**Alto y ancho de donde se va a activar cuando pase el mouse**/
    width:10%;
    height:9%;
    /*Para que este siempre en la misma parte de la pantalla aunque se haga scroll*/
    position:fixed;
    /*Tiempo en el que va a transitar la animacion*/
    transition: .4s all ;
    /*este arriba de todo en la pantalla*/
    z-index: 1;  
}

.barra ul{
    /*solucionar espacios no deseados*/
    padding:0px;
    text-align: center;
        
}
.barra  li{
    /*Velocidad de transicion del contenido*/
    transition:all .3s;
    list-style: none; 
}

.barra a{
    text-decoration: none;
    
    font-weight: normal;
    
    /*La letra crece con el menu de esta manera no se va a ver como se ajusta al margen mientras crece*/
    transition: .3s all ;
    /*Se ocultan los elementos*/
    font-size: 0px;
    padding:0px;
}

.barra  h2{
    text-align: center;
    color:white;
    padding:7px;
    padding-bottom:7px;

    /*Se oculta el h2*/
    font-size:0px;   
}

.barra img{
    padding-top: 90px;
    padding-left: 10px;
}

.barra:hover{
    /*Tamaño cuando el cursor señale la barra*/
    width: 70%;
    height: 100vh;
    
    /*Color*/
    background:  rgb(44, 44, 46);
}
.barra:hover h2{
    /*posicion dentro de barra del h2*/
    padding:15px;
    font-size: 35px;
}
.barra:hover a{ 
    font-size:20px ;
    color:white;
    /*Se usa el display block para que el enlace respete el margin*/
    display: block;
    padding:20px;
}
.barra:hover img{
    /*Desaparecer la imagen*/
    height:0px;
}


.barra:hover li{
    border-top:1px solid #1b9feb;
    /*Espacios entre las lineas y el contenido*/
    
    width:100%;
        
}
.barra:hover ul:last-of-type{


    border-bottom: 1px solid #1b9feb;
}

.barra:hover a:hover{ 
    font-size: 25px;
    padding: 30px 0px; 
    background: rgba(5, 51, 63, 0.98);  
}

@media (min-width: 768px){
    .barra:hover{
    width: 25%;
    }
}
