/* RESET GENERAL */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    /* border: 2px solid #f83434;  */
}

body {
    background: #0f0f0f;
    color: white;
}

img {
    max-width: 100%;
    height: auto;
}

/* HEADER */

.navbar {
    height: 100px;
    background: #111;
    border-bottom: 1px solid #333;
}

.nom-pag {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo {
    display: flex;
    align-items: center;
}

.img {
    width: 100px;
    height: 100px;
}

.nav-link {
    color: white;
    position: relative;
    transition: .3s;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.navbar-nav .nav-link {
    padding-bottom: 5px;
}

.nav-link:hover {
    color: #0084ff;
}

.nav-link::after {
    content: "";
    width: 0%;
    height: 2px;
    background: #3455f8;
    position: absolute;
    left: 0;
    bottom: 0;
    transition: .3s;
}

.nav-link:hover::after {
    width: 100%;
}

.menu a:hover {
    color: #0084ff;
    background: none;
}

.btn-whatsapp {
    background: #00c853;
    padding: 7px;
    margin-right: 30px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
}

.logo-wats {
    height: 30px;
}

/* HERO */

.hero {
    margin-top: 6rem;
    padding: 120px 20px;
    text-align: center;
    justify-content: center;

    background:
        linear-gradient(rgba(0, 0, 0, 0.6),
            rgba(0, 0, 0, 0.6)),
        url('./img/Hero/img-hacero2.jpg');

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

.hero h1,
.productos h2,
.hero-cucharon h1,
.mayoreo h2,
#mi-carrito h2,
.card h3 {
    font-family: 'Montserrat', sans-serif;
}

.hero h1 {
    margin-bottom: 10px;
    font-size: 55px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* PRODUCTOS */

.productos {
    padding: 60px;
}

.productos h2 {
    margin-bottom: 40px;
    font-size: 30px;
}

.contenedor-productos {
    background:
        linear-gradient(rgba(0, 0, 0, 0.8),
            rgba(0, 0, 0, 0.8)),
        url('./img/Hero/img-cards.jpg');

    background-position: center;

    border-radius: 10px;
    box-shadow: 0 0 25px rgba(199, 199, 199, 0.57);
    /* border: 2px solid red; */
}

/* SECCIONES */

.hero-cucharon {
    /* border: 2px solid red; */
    width: 100%;
}

.hero-cucharon h1 {
    /* border: 2px solid red; */
    font-size: 40px;
}

.contenedor-cucharones {
    gap: 30px;
    padding: 15px;
    /* border: 2px solid red; */
}

.card {
    width: 250px;
    padding: 20px;
    margin-top: 40px;

    background: #171717;
    color: white;

    border: 1px solid #2a2a2a;
    border-radius: 10px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, .3);

    transition: .3s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: #3455f8;
    box-shadow: 0 0 20px rgb(110, 141, 255);
}

.card img {
    object-fit: contain;
    background-size: cover;
    background-position: center;

    margin-bottom: 15px;
    border-radius: 5px;
}

.card h3 {
    min-height: 60px;
    font-size: 20px;
}

.card p {
    margin-bottom: 15px;
    color: #4F8EF7;
    font-weight: bold;
}

/* CONTROLES DE CANTIDAD */

.control-cantidad {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-mas,
.btn-menos {
    width: 40px;
    height: 40px;

    border: none;
    border-radius: 8px;

    background: #4F8EF7;
    color: white;

    font-size: 20px;
    font-weight: bold;

    cursor: pointer;
    transition: .3s;
}

.btn-mas:hover,
.btn-menos:hover {
    background: #5B9DFF;
}

.cantidad-input {
    width: 60px;
    height: 40px;

    text-align: center;

    border: 1px solid #333;
    border-radius: 8px;

    background: #111;
    color: white;
    font-weight: bold;
}

/* CARRITO PRINCIPAL */

#mi-carrito {
    width: min(600px, 90%);
    max-width: 600px;

    margin: 50px auto;
    padding: 25px;

    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;

    text-align: left;
}

#mi-carrito h2 {
    margin-bottom: 20px;
    color: #00ff88;
}

#lista-carrito {
    list-style: none;
    padding: 0;
}

#lista-carrito li {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 10px;
    padding: 12px;

    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
}

.btn-eliminar {
    background: red;
    color: white;

    border: none;
    border-radius: 5px;

    padding: 5px 10px;
    cursor: pointer;
}

#btn-whatsapp {
    width: 100%;
    margin-top: 20px;
    padding: 14px;

    background: #1ebe5d;
    color: white;

    border: none;
    border-radius: 8px;

    font-size: 16px;
    font-weight: bold;

    transition: .3s;
}

#btn-whatsapp:hover {
    background: #1a9d4e;
    box-shadow: 0 0 20px rgb(110, 141, 255);
}

#vaciar-carrito {
    width: 100%;
    margin-top: 10px;
    padding: 12px;

    background: #ff4444;
    color: white;

    border: none;
    border-radius: 8px;
}

/* CARRITO FLOTANTE */

#contador-carrito {
    position: fixed;

    bottom: 30px;
    right: 30px;

    width: 65px;
    height: 65px;

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

    background: #86fff1;
    border-radius: 50%;

    font-size: 35px;
    cursor: pointer;

    z-index: 9999;

    box-shadow: 0 0 20px rgba(255, 255, 255, .3);
    transition: .3s;
}

#contador-carrito:hover {
    transform: scale(1.1);
}

#cantidad-productos {
    position: absolute;

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

    width: 24px;
    height: 24px;

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

    background: red;
    color: white;

    border-radius: 50%;

    font-size: 12px;
    font-weight: bold;
}

/* CAMPO DE NOMBRE */

#nombre-cliente {
    width: 100%;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #111;
    color: rgb(255, 255, 255);
}

/* ANIMACIONES */

.animacion-agregado {
    animation: agregado .4s ease;
}

@keyframes agregado {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

#contador-carrito.tiene-productos {
    animation: rebote 1s infinite;
}

@keyframes rebote {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* MAYOREO */

.mayoreo {
    padding: 80px;
    background: #151515;
}

.mayoreo h2 {
    margin-bottom: 10px;
    font-size: 32px;
}

.mayoreo p {
    margin-bottom: 20px;
    color: #aaa;
}

.mayoreo button {
    padding: 12px 30px;

    background: #c0c0c0;

    border: none;
    border-radius: 6px;

    cursor: pointer;
}

.btn-cotizacion {
    text-decoration: none;
    color: #000;
    font-size: 15px;
}

/* FOOTER */

footer {
    padding: 30px;
    text-align: center;

    background: #111;
    border-top: 1px solid #333;
}

/* OFFCANVAS MOVIL */

.offcanvas {
    width: 280px;
    background: #1e1e1e93;
}

.offcanvas-header {
    border-bottom: 1px solid #707070;
    background: #000;
}

.offcanvas-title {
    color: white;
    background: #000;
    font-weight: bold;
}

.offcanvas .nav-link {
    color: white;
    padding: 15px;
    font-size: 18px;
    border-radius: 8px;
    transition: .3s;
}

.offcanvas .nav-link:hover {
    background: #1a1a1a;
    color: #0084ff;
}

/* RESPONSIVE */

@media (max-width: 991px) {

    .navbar-collapse {
        position: absolute;
        top: 100px;
        left: 0;

        width: 100%;

        background: #111;
        padding: 20px 0;

        border-top: 1px solid #333;

        z-index: 999;
    }

    .navbar-nav {
        gap: 0 !important;
    }

    .navbar-nav .nav-item {
        padding: 10px 0;
    }

    .navbar-nav .nav-link {
        font-size: 18px;
    }
}

@media (max-width: 768px) {

    .hero h1 {
        font-size: 35px;
    }

    .productos {
        padding: 30px;
    }

    .mayoreo {
        padding: 40px 20px;
    }
}

/* ===================================
RESPONSIVE TABLETS Y CELULARES
=================================== */

@media (max-width: 768px) {

    /* NAVBAR */

    .navbar {
        height: 80px;
        padding: 0 10px;
    }

    .img {
        width: 70px;
        height: 70px;
    }

    .nom-pag {
        font-size: 1rem;
    }

    /* HERO */

    .hero {
        padding: 100px 15px;
        margin-top: 5rem;
    }

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

    /* TITULOS DE SECCION */

    .hero-cucharon h1 {
        font-size: 1.8rem;
    }

    .productos {
        padding: 35px 30px;
    }

    /* CARDS */

    .contenedor-cards {
        gap: 15px !important;
    }

    .card {
        width: 185px;
        padding: 15px;
        margin-top: 15px;
    }

    .card h3 {
        font-size: 16px;
        min-height: auto;
    }

    .card p {
        font-size: 15px;
    }

    .card img {
        width: 100%;
    }

    /* BOTONES DE CANTIDAD */

    .btn-mas,
    .btn-menos {
        width: 35px;
        height: 35px;
    }

    .cantidad-input {
        width: 50px;
        height: 35px;
    }

    /* CARRITO */

    #mi-carrito {
        width: 90%;
        margin: 30px auto;
        padding: 15px;
    }

    #lista-carrito li {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* CARRITO FLOTANTE */

    #contador-carrito {
        width: 55px;
        height: 55px;
        font-size: 28px;

        right: 15px;
        bottom: 15px;
    }

    /* MAYOREO */

    .mayoreo {
        padding: 50px 20px;
        text-align: center;
    }

    .mayoreo h2 {
        font-size: 2rem;
    }

    .mayoreo button {
        width: 100%;
        max-width: 300px;
    }

}

.btn-mas,
.btn-menos,
#contador-carrito,
#btn-whatsapp,
#vaciar-carrito {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}