@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';
   
}

/*------------- BOTON INGRESO ----*/
header{
    background:#0f6436;
    padding:12px 30px;
}

.header-wrapper{
    max-width:1200px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.logo img{
    height:55px;
}

#btn-ingreso{

    display:flex;
    align-items:center;
    gap:10px;

    background:#fff;
    color:#0f6436;

    padding:12px 28px;

    border-radius:15px;

    border:2px solid #e5e5e5;

    text-decoration:none;

    font-size:22px;
    font-weight:bold;

    transition:.3s;
}

#btn-ingreso:hover{

    background:#f5f5f5;

    color:#0a4d29;

    box-shadow:0 5px 15px rgba(0,0,0,.20);

    transform:translateY(-2px);

}
/*--------------------------------*/

.tienda{
    margin: 0px;
    left: 10px;

}
/*header{
    height: 55px;
    display: flex;
    justify-content: space-between;
    background-color: rgba(15, 100, 54, 0.9);
   /* background-color:  rgb(54, 144, 204);*/
/**    align-items: center;
    padding: 10px;
    flex-direction: column;
   
}*/
/*.logo{
    display: flex;
    align-items: center;
    margin-right: 10px;
}*/
.nombre-empresa{
    color: #fff;
    padding: 10px;
}
.logo img{
    height: 50px;
}

header h1{
    text-align: center;
    font-size: 35px;
    /* background-color: #000; */
    color: #fafafa;
    padding: 30px 0;
}
.contenedor{
    max-width: 1200px;
    padding: 10px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    /* oculto lo que queda fuera del .contenedor */
    contain: paint;
    
    /*background-color: rgb(247, 247, 247);*/
}
/* SECCION CONTENEDOR DE ITEMS */
.contenedor .contenedor-items{
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    grid-gap:30px;
    grid-row-gap: 30px;
    /* width: 60%; */
    width: 100%;
    transition: .3s;
}
.contenedor .contenedor-items .item{
    max-width: 200px;
    margin: auto;
    border: 1px solid #666;
    border-radius: 10px;
    padding: 20px;
    transition: .3s;
}
.contenedor .contenedor-items .item .img-item{
    width: 100%;
}
.contenedor .contenedor-items .item:hover{
    box-shadow: 0 0 10px #666;
    scale: 1.05;
}
.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 carrito */
.carrito{
    border: 1px solid #666;
    width: 35%;
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: auto;
    position: sticky !important;
    top: 0;
    transition: .3s;
    /* Estilos para ocultar */
    margin-right: -100%;
    opacity: 0;
}
.carrito .header-carrito{
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}
.carrito .carrito-item{
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    position: relative;
    border-bottom: 1px solid #666;
    padding: 20px;
}
.carrito .carrito-item img{
    margin-right: 20px;
}
.carrito .carrito-item .carrito-item-titulo{
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.carrito .carrito-item .selector-cantidad{
    display: inline-block;
    margin-right: 25px;
}
.carrito .carrito-item .carrito-item-cantidad{
    border: none;
    font-size: 18px;
    background-color: transparent;
    display: inline-block;
    width:30px;
    padding: 5px;
    text-align: center;
}
.carrito .carrito-item .selector-cantidad i{
    font-size: 18px;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    border: 1px solid #000;
    cursor: pointer;
}
.carrito .carrito-item .carrito-item-precio{
    font-weight: bold;
    display: inline-block;
    font-size: 18px;
    margin-bottom: 5px;
}
.carrito .carrito-item .btn-eliminar{
    position: absolute;
    right: 15px;
    top: 15px;
    color: #000;
    font-size: 20px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    border: 1px solid #000;
    cursor: pointer;
    display: block;
    background: transparent;
    z-index: 20;
}
.carrito .carrito-item .btn-eliminar i{
    pointer-events: none;
}

.carrito-total{
    background-color: #f3f3f3;
    padding: 30px;
}
.carrito-total .fila{
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}
.carrito-total .btn-pagar{
    display: block;
    width: 100%;
    border: none;
    background: #000;
    color: #fff;
    border-radius: 5px;
    font-size: 18px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: .3s;
}
.carrito-total .btn-pagar:hover{
    scale: 1.05;
}

/*-----------------BOTON INICIO -----------------*/


.botoninicio{
    display: flex;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    z-index: 100;

cursor: default;
    background: #7e3636;
    font-size: 23px;
    /*bottom: 50px;*/
    color: #961b1b;
    /*width: 55px;
    height: 55px;*/
    /*line-height: 55px;*/
    /*text-align: center;*/
    /*border-radius: 50%;*/
}
.back-to-top::before {
    content: "\f106";
    font-family: FontAwesome;
    position: absolute;
    color: #f5f0ec;
    z-index: 111;
    width: 100%;
    height: 100%;
    text-align: center;
    display: inline-block;
    top: 0;
    left: 0;
    right: 0;
}
/*------------------FIN BOTON INICIO ----------------*/







/* SECCION RESPONSIVE */
@media screen and (max-width: 850px) {
    .contenedor {
      display: block;
    }
    .contenedor-items{
        width: 100% !important;
    }
    .carrito{
        width: 100%;
    }

    header{
        flex-direction: column;
        height: 80px;
    }
  }



/* ------------------------------------ MEDIA --------------------------------------*/

  @media(max-width:991px){

  }

@media (max-width:768px){

    .header-wrapper{
        flex-direction:unset;
        gap:15px;
    }

    .nombre-empresa{
        font-size:19px;
    }

    #btn-ingreso{
        font-size:21px;
        padding:5px 10px;
    }

    #btn-ingreso i{
        font-size:22px;
    }
    .logo{
        display: flex;
        align-items: center;
        margin-right: 15px;
    }
    
    .logo img{
        height:55px;
    }

  
}