/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#FFF8F0;
    color:#333;
}

/* =========================
   HEADER
========================= */

.header{
    position:sticky;
    top:0;
    z-index:1000;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:15px 8%;

    background:white;

    box-shadow:0 2px 15px rgba(0,0,0,.08);
}

.logo{
    font-size:1.4rem;
    font-weight:700;
    color:#6F4E37;
}

.btn-carrito{
    position:relative;

    border:none;

    width:55px;
    height:55px;

    border-radius:50%;

    cursor:pointer;

    background:#D4A373;
    color:white;

    font-size:1.2rem;

    transition:.3s;
}

.btn-carrito:hover{
    transform:scale(1.05);
}

.btn-carrito span{
    position:absolute;

    top:-5px;
    right:-5px;

    width:22px;
    height:22px;

    border-radius:50%;

    background:#ff4d4d;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:.75rem;
    font-weight:bold;
}

/* =========================
   HERO
========================= */

.hero{
    min-height:80vh;

    display:flex;
    justify-content:center;
    align-items:center;

    text-align:center;

    padding:40px;

    background:
    linear-gradient(
        rgba(0,0,0,.35),
        rgba(0,0,0,.35)
    ),
    url('../img/hero.jpg');

    background-size:cover;
    background-position:center;
}

.hero-content{
    max-width:700px;
}

.hero h1{
    font-size:3rem;
    color:white;
    margin-bottom:20px;
}

.hero p{
    color:white;
    font-size:1.2rem;
    margin-bottom:30px;
}

.btn-principal{
    text-decoration:none;

    display:inline-block;

    background:#D4A373;
    color:white;

    padding:15px 35px;

    border-radius:40px;

    font-weight:600;

    transition:.3s;
}

.btn-principal:hover{
    transform:translateY(-3px);
}

/* =========================
   BANNER
========================= */

.banner{
    background:#6F4E37;
    color:white;

    overflow:hidden;

    white-space:nowrap;

    padding:15px 0;

    position:relative;
}

.banner-track{

    display:flex;

    width:max-content;

    animation:
    deslizar 20s linear infinite;
}

.banner-track span{

    font-weight:600;

    font-size:1rem;

    padding-right:100px;
}

.banner-track:hover{
    animation-play-state:paused;
}
@keyframes deslizar{

    0%{
        transform:translateX(0);
    }

    100%{
        transform:translateX(-50%);
    }

}

/* =========================
   INFO
========================= */

.info{
    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(250px,1fr));

    gap:20px;

    padding:50px 8%;
}

.info-card{
    background:white;

    padding:25px;

    text-align:center;

    border-radius:15px;

    box-shadow:0 4px 15px rgba(0,0,0,.08);

    font-weight:500;
}

/* =========================
   PRODUCTOS
========================= */

.productos-section{
    padding:70px 8%;
}

.productos-section h2{
    text-align:center;

    font-size:2.2rem;

    color:#6F4E37;

    margin-bottom:40px;
}

.productos{
    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

    gap:30px;
}

.card{
    background:white;

    border-radius:20px;

    overflow:hidden;

    box-shadow:0 5px 20px rgba(0,0,0,.08);

    transition:.3s;
}

.card:hover{
    transform:translateY(-8px);
}

.card img{
    width:100%;
    height:250px;
    object-fit:cover;
}

.card-content{
    padding:20px;
}

.card h3{
    color:#6F4E37;
    margin-bottom:10px;
}

.card p{
    margin-bottom:15px;
}

.precio{
    font-size:1.3rem;
    font-weight:700;
    color:#D4A373;
}

.card button{
    width:100%;

    border:none;

    padding:12px;

    border-radius:10px;

    background:#D4A373;
    color:white;

    cursor:pointer;

    font-weight:600;

    transition:.3s;
}

.card button:hover{
    background:#bf8b5f;
}

/* =========================
   TESTIMONIOS
========================= */

.testimonios{
    padding:70px 8%;

    background:#F6E7D8;
}

.testimonios h2{
    text-align:center;

    margin-bottom:40px;

    color:#6F4E37;
}

.testimonios-grid{
    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(250px,1fr));

    gap:25px;
}

.testimonio{
    background:white;

    padding:25px;

    border-radius:15px;

    box-shadow:0 4px 15px rgba(0,0,0,.08);
}

/* =========================
   CARRITO
========================= */

/* =========================
   CARRITO
========================= */

.overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;

    background:rgba(0,0,0,.5);

    opacity:0;
    visibility:hidden;

    transition:.3s;

    z-index:9998;
}

.overlay.active{
    opacity:1;
    visibility:visible;
}

.carrito{
    position:fixed;

    top:0;
    right:-100%;

    width:420px;

    max-width:100%;

    height:100vh;

    background:#fff;

    z-index:9999;

    overflow-y:auto;

    transition:right .35s ease;

    padding:20px;

    box-shadow:
    -10px 0 30px rgba(0,0,0,.15);
}

.carrito.active{
    right:0;
}

.carrito-header{
    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:20px;

    position:sticky;
    top:0;

    background:white;

    padding:10px 0;

    z-index:10;
}

#cerrarCarrito{
    width:45px;
    height:45px;

    border:none;

    border-radius:50%;

    background:#e74c3c;

    color:white;

    font-size:24px;

    cursor:pointer;

    display:flex;
    justify-content:center;
    align-items:center;

    flex-shrink:0;
}

#cerrarCarrito:hover{
    transform:scale(1.05);
}

.cliente{
    margin-top:20px;

    display:flex;
    flex-direction:column;
    gap:12px;
}

.cliente input{
    width:100%;

    padding:12px;

    border:1px solid #ddd;

    border-radius:10px;
}

.total{
    margin:25px 0;

    font-size:1.8rem;

    font-weight:700;

    color:#6F4E37;
}

/* =========================
   TOAST
========================= */

.toast{
    position:fixed;

    bottom:30px;
    right:30px;

    background:#25D366;

    color:white;

    padding:15px 25px;

    border-radius:12px;

    font-weight:600;

    transform:translateY(150px);

    transition:.3s;

    z-index:2000;
}

.toast.active{
    transform:translateY(0);
}

/* =========================
   FOOTER
========================= */

footer{
    background:#6F4E37;

    color:white;

    text-align:center;

    padding:50px 20px;
}

footer h3{
    margin-bottom:10px;
}

footer p{
    margin-bottom:8px;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:992px){

    .hero h1{
        font-size:2.4rem;
    }

    .hero p{
        font-size:1rem;
    }

}

@media(max-width:768px){

    .header{
        padding:15px 5%;
    }

    .hero{
        min-height:70vh;
    }

    .hero h1{
        font-size:2rem;
    }

    .productos-section,
    .info,
    .testimonios{
        padding:50px 5%;
    }

    .carrito{
        width:100%;
    }

}

@media(max-width:480px){

    .hero h1{
        font-size:1.7rem;
    }

    .hero p{
        font-size:.95rem;
    }

    .logo{
        font-size:1.1rem;
    }

    .btn-principal{
        width:100%;
        text-align:center;
    }

    .card img{
        height:220px;
    }

}

.item-carrito{
    border-bottom:1px solid #eee;
    padding:15px 0;
}

.item-carrito h4{
    margin-bottom:5px;
}

.controles{
    display:flex;
    align-items:center;
    gap:10px;
    margin:10px 0;
}

.controles button{
    width:30px;
    height:30px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    background:#D4A373;
    color:white;
}

.btn-eliminar{
    border:none;
    background:#ff4d4d;
    color:white;
    padding:8px 12px;
    border-radius:8px;
    cursor:pointer;
}
/* =========================
   BOTON CERRAR CARRITO
========================= */

.carrito-header{
    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:25px;

    padding-bottom:15px;

    border-bottom:1px solid #eee;
}
.carrito-header h2{
    color:#6F4E37;
    font-size:2rem;
}
#cerrarCarrito{
    width:35px;
    height:35px;

    border:none;

    border-radius:50%;

    background:#f5f5f5;

    color:#555;

    font-size:18px;

    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;

    transition:.3s ease;
}

#cerrarCarrito:hover{
    background:#e74c3c;
    color:white;
}

@media(max-width:768px){

    .carrito{
        width:100%;
        max-width:100%;
    }

    #cerrarCarrito{
        width:50px;
        height:50px;
        font-size:28px;
    }

}
#vaciar,
#comprar{
    width:100%;

    padding:15px;

    border:none;

    border-radius:12px;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    margin-top:10px;

    transition:.3s;
}

#vaciar{
    background:#e74c3c;
    color:white;
}

#vaciar:hover{
    background:#cf3f31;
}
#comprar{
    background:#25D366;
    color:white;
}

#comprar:hover{
    background:#1ebe5d;
}

.error-texto{
    color:#e74c3c;
    font-size:13px;
    font-weight:500;
    margin-top:4px;
    min-height:18px;
}

.input-error{
    border:2px solid #e74c3c !important;
    background:#fff5f5;
}
.resumen{
    margin:25px 0;

    padding:15px;

    background:#fafafa;

    border-radius:12px;

    border:1px solid #eee;
}

.linea-resumen{
    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:10px;

    font-size:16px;
}

.total-final{
    margin-top:10px;

    padding-top:10px;

    border-top:1px solid #ddd;

    font-size:22px;

    font-weight:700;

    color:#6F4E37;
}