
<style>

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

*{
    font-family:'Poppins',sans-serif;
}

html,
body{
    height:100%;
    margin:0;
}

body{
    background:#111;
    display:flex;
    flex-direction:column;
}

/* CONTENIDO PRINCIPAL */
.main-content{
    flex:1;
    background:#f7f7f7;
    padding-bottom:90px;
}
/* =========================
HEADER
========================= */

.header{
    background:
    var(--color-principal);
    color:white;
    padding:25px;
    border-radius:0 0 30px 30px;
    box-shadow:0 5px 20px rgba(0,0,0,0.15);
    position:sticky;
    top:0;
    z-index:999;
}

.logo{
    font-size:32px;
    font-weight:800;
    letter-spacing:1px;
}

.logo span{
    color:#ffb703;
}

.subtitulo{
    color:#ddd;
    font-size:14px;
}

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

.banner{
    margin-top:25px;
    background:
    linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),
    url('../uploads/banner.png');
    background-size:cover;
    background-position:center;
    border-radius:25px;
    padding:70px 40px;
    color:white;
    position:relative;
    overflow:hidden;
}

.banner h1{
    font-size:48px;
    font-weight:800;
}

.banner p{
    font-size:18px;
    max-width:600px;
    color:#f1f1f1;
}

.btn-banner{
    background:#ffb703;
    color:#111;
    border:none;
    padding:14px 28px;
    border-radius:14px;
    font-weight:700;
    transition:.3s;
}

.btn-banner:hover{
    transform:translateY(-3px);
    background:white;
}

/* =========================
CATEGORIAS
========================= */

.categorias{

    display:flex;

    flex-wrap:wrap;

    gap:8px;

}

.categorias::-webkit-scrollbar{
    display:none;
}

.btn-cat{
    border-radius:50px;
    margin-right:8px;
    padding:11px 22px;
    font-weight:600;
    transition:.3s;
}

.btn-cat:hover{
    transform:translateY(-2px);
}

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

.card-producto{

    border:none;



    height:100%;
    
    border-radius:24px;

    overflow:hidden;

    background:white;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

    transition:.3s;

    width:100%;

}

.card-producto:hover{
    transform:translateY(-6px);
    box-shadow:0 12px 30px rgba(0,0,0,0.15);
}

.card-producto img{

    width:100%;

    height:220px;

    object-fit:contain;

    background:white;

    padding:15px;

    transition:.3s;

}

.card-producto:hover img{

    transform:scale(1.05);

}


.nombre-producto{
    font-size:20px;
    font-weight:700;
    color:#111;
}

.precio{
    color:#e63946;
    font-size:26px;
    font-weight:800;
}

.descripcion{
    min-height:45px;
}

/* =========================
BOTON AGREGAR
========================= */

.btn-agregar{
    border-radius:14px;
    padding:12px;
    font-weight:700;
    background:#111;
    border:none;
    transition:.3s;
}

.btn-agregar:hover{
    background:var(--color-secundario);;
    color:#111;
    transform:scale(1.03);
}

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

.carrito-float{
    position:fixed;
    bottom:25px;
    right:25px;
    z-index:999;
}

.carrito-btn{
    width:70px;
    height:70px;
    border-radius:50%;
    font-size:28px;
    border:none;
    background:#e63946;
    box-shadow:0 10px 25px rgba(0,0,0,.25);
}

.badge-carrito{
    position:absolute;
    top:-5px;
    right:-5px;
    background:#111;
    color:white;
    border-radius:50%;
    width:28px;
    height:28px;
    font-size:13px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
}


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

@media(max-width:768px){

    .banner{
        padding:45px 25px;
    }

    .banner h1{
        font-size:32px;
    }

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

    .logo{
        font-size:24px;
    }

    .card-producto img{
        height:170px;
    }

    .nombre-producto{
        font-size:16px;
    }

    .precio{
        font-size:22px;
    }

}

/* =========================
MENU CATEGORIAS MOBILE
========================= */

.mobile-categorias{
    display:none;
}

.btn-menu-cat{
    width:100%;
    background:var(--color-principal);
    border:none;
    border-radius:18px;
    padding:15px 18px;
    font-weight:700;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.btn-menu-cat i{
    font-size:22px;
}

.modal-categorias .modal-content{
    border:none;
    border-radius:30px 30px 0 0;
    max-height:85vh;
    overflow:hidden;
}

.modal-categorias .modal-dialog{
    position:fixed;
    bottom:0;
    margin:0;
    width:100%;
    max-width:100%;
}

.modal-header-cat{
    background:var(--color-secundario);
    color:white;
    padding:22px;
}

.lista-categorias{

    padding:20px;

    max-height:70vh;

    overflow-y:auto;

}
    
    .lista-categorias::-webkit-scrollbar{

    width:6px;

}

.lista-categorias::-webkit-scrollbar-thumb{

    background:#ccc;

    border-radius:20px;

}

.item-categoria{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:16px 18px;
    border-radius:18px;
    text-decoration:none;
    color:#111;
    background:#f8f8f8;
    margin-bottom:12px;
    font-weight:600;
    transition:.3s;
}

.item-categoria:hover{
    background:var(--color-secundario);
    color:#111;
    transform:translateX(4px);
}

.item-categoria.active{
    background:var(--color-secundario);
    color:white;
}

/* =========================
MEJORAS MOBILE
========================= */

@media(max-width:768px){

    .desktop-categorias{
        display:none;
    }

    .mobile-categorias{
        display:block;
    }

    .header{
        padding:18px;
    }

    .banner{
        margin-top:18px;
        border-radius:22px;
        padding:35px 22px;
    }

    .banner h1{
        font-size:28px;
        line-height:1.2;
    }

    .banner p{
        font-size:14px;
    }

    .btn-banner{
        width:100%;
    }

    .card-producto{
        border-radius:20px;
    }

    .card-producto img{
        height:150px;
    }

    .card-body{
        padding:14px;
    }

    .nombre-producto{
        font-size:15px;
    }

    .descripcion{
        font-size:12px;
        min-height:38px;
    }

    .precio{
        font-size:20px;
    }

    .btn-agregar{
        font-size:14px;
        padding:10px;
    }

    .carrito-btn{
        width:62px;
        height:62px;
        font-size:24px;
    }

}

/* =========================
BUSCADOR
========================= */

.search-box{
    position:relative;
    margin-bottom:25px;
}

.search-input{
    width:100%;
    border:none;
    background:white;
    border-radius:20px;
    padding:16px 20px 16px 55px;
    font-size:15px;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
    transition:.3s;
}

.search-input:focus{
    outline:none;
    box-shadow:0 8px 25px rgba(0,0,0,.12);
}

.search-icon{
    position:absolute;
    left:20px;
    top:50%;
    transform:translateY(-50%);
    color:#999;
    font-size:20px;
}

.no-resultados{
    background:white;
    padding:40px;
    border-radius:25px;
    text-align:center;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
    display:none;
}

@media(max-width:768px){

    body{
        padding-bottom:75px;
    }

}
.cerrado-icono{

    width:120px;
    height:120px;

    margin:auto;

    border-radius:50%;

    background:
    linear-gradient(
        135deg,
        #111827,
        #374151
    );

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

    font-size:60px;

    color:white;

    box-shadow:
    0 15px 35px rgba(0,0,0,.25);

    animation:
    flotarCerrado 2s ease-in-out infinite;

}

@keyframes flotarCerrado{

    0%{
        transform:translateY(0);
    }

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

    100%{
        transform:translateY(0);
    }

}
/* =========================
MODAL VARIANTES
========================= */

#modalVariantes .modal-content{

    border:none;

    border-radius:30px;

    overflow:hidden;

    box-shadow:
    0 20px 50px rgba(0,0,0,.25);

}

#modalVariantes .modal-header{

    background:
    linear-gradient(
        135deg,
        var(--color-principal),
        var(--color-secundario)
    );

    color:white;

    padding:20px 25px;

    border:none;

}

#modalVariantes .modal-header h5{

    font-weight:700;

    margin:0;

}

#modalVariantes .btn-close{

    filter:invert(1);

}

#modalVariantes .modal-body{

    padding:25px;

    background:#f8fafc;

}

/* BOTONES VARIANTES */

.btn-variante{

    border:none !important;

    border-radius:18px !important;

    padding:16px !important;

    font-weight:600;

    background:white !important;

    color:#111 !important;

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

    transition:.3s;

}

.btn-variante:hover{

    transform:
    translateY(-3px);

    background:
    var(--color-principal)
    !important;

    color:white !important;

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

}

.btn-variante:active{

    transform:scale(.98);

}
/* =========================
MODAL PRODUCTO AGREGADO
========================= */

.modal-agregado{

    border:none;

    border-radius:30px;

    overflow:hidden;

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

}

.modal-agregado .modal-body{

    padding:40px 30px;

    background:
    linear-gradient(
        180deg,
        #ffffff,
        #f8fafc
    );

}

.icono-ok{

    width:100px;

    height:100px;

    margin:auto;

    border-radius:50%;

    background:
    linear-gradient(
        135deg,
        #22c55e,
        #16a34a
    );

    display:flex;

    align-items:center;

    justify-content:center;

    color:white;

    font-size:55px;

    box-shadow:
    0 10px 25px rgba(34,197,94,.35);

    animation:
    pulseOk 1.5s infinite;

}

@keyframes pulseOk{

    0%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.05);
    }

    100%{
        transform:scale(1);
    }

}

.titulo-ok{

    font-weight:800;

    margin-top:20px;

    color:#111827;

}

.producto-agregado{

    font-size:16px;

    color:#6b7280;

    margin-top:10px;

    margin-bottom:0;

}

.btn-seguir{

    border-radius:16px;

    padding:14px;

    font-weight:700;

    border:2px solid #e5e7eb;

    background:white;

    transition:.3s;

}

.btn-seguir:hover{

    transform:translateY(-2px);

    border-color:
    var(--color-principal);

}

.btn-carrito{

    border:none;

    border-radius:16px;

    padding:14px;

    font-weight:700;

    color:white;

    background:
    linear-gradient(
        135deg,
        var(--color-principal),
        var(--color-secundario)
    );

    transition:.3s;

}

.btn-carrito:hover{

    color:white;

    transform:translateY(-2px);

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

}
/* =========================
WHATSAPP SOPORTE
========================= */

.whatsapp-soporte{

    position:fixed;

    left:20px;

    bottom:25px;

    z-index:999;

    display:flex;

    align-items:center;

    gap:10px;

    text-decoration:none;

    background:
    linear-gradient(
        135deg,
        #25D366,
        #128C7E
    );

    color:white;

    padding:14px 18px;

    border-radius:50px;

    font-weight:700;

    box-shadow:
    0 10px 25px rgba(37,211,102,.35);

    transition:.3s;

}

.whatsapp-soporte:hover{

    color:white;

    transform:
    translateY(-3px);

    box-shadow:
    0 15px 35px rgba(37,211,102,.45);

}

.whatsapp-soporte i{

    font-size:26px;

}

.whatsapp-soporte span{

    white-space:nowrap;

}

/* MOBILE */

@media(max-width:768px){

    .whatsapp-soporte{

        width:60px;

        height:60px;

        padding:0;

        border-radius:50%;

        justify-content:center;

    }

    .whatsapp-soporte span{

        display:none;

    }

    .whatsapp-soporte i{

        font-size:30px;

    }

}

/* =========================
PROMOCION MODAL
========================= */

.promo-modal{

    border:none;

    border-radius:30px;

    overflow:hidden;

    box-shadow:
    0 25px 60px rgba(0,0,0,.25);

}

.promo-imagen{

    position:relative;

}

.promo-imagen img{

    width:100%;

    height:280px;

    object-fit:cover;

}

.promo-badge{

    position:absolute;

    top:15px;

    right:15px;

    background:#dc2626;

    color:white;

    padding:8px 15px;

    border-radius:50px;

    font-weight:700;

}

.precio-promo{

    color:var(--color-principal);

    font-weight:800;

    margin:20px 0;

}

.btn-promo{

    border:none;

    padding:14px;

    border-radius:16px;

    color:white;

    font-weight:700;

    background:
    linear-gradient(
        135deg,
        var(--color-principal),
        var(--color-secundario)
    );

}

/* =========================
PROMOCIONES HOME
========================= */

.card-promo{

    position:relative;

    overflow:hidden;

    border:none;

    border-radius:25px;

    background:white;

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

    transition:.3s;

}

.card-promo:hover{

    transform:translateY(-6px);

    box-shadow:
    0 20px 40px rgba(0,0,0,.15);

}

.card-promo img{

    width:100%;

    height:240px;

    object-fit:cover;

}

.promo-ribbon{

    position:absolute;

    top:15px;

    right:-40px;

    background:#dc2626;

    color:white;

    padding:10px 50px;

    font-size:12px;

    font-weight:700;

    transform:rotate(45deg);

    z-index:10;

    box-shadow:
    0 5px 15px rgba(220,38,38,.35);

}

.precio-promo{

    font-size:28px;

    font-weight:800;

    color:var(--color-principal);

}

.btn-promo-agregar{

    border:none;

    border-radius:15px;

    padding:10px 18px;

    color:white;

    font-weight:700;

    background:
    linear-gradient(
        135deg,
        var(--color-principal),
        var(--color-secundario)
    );

    transition:.3s;

}

.btn-promo-agregar:hover{

    color:white;

    transform:translateY(-2px);

}

@keyframes slidePromo{

    from{

        opacity:0;

        transform:
        translateY(-20px);

    }

    to{

        opacity:1;

        transform:
        translateY(0);

    }

}
html{
    scroll-behavior:smooth;
}

[id]{
    scroll-margin-top:100px;
}


.arriba-float{
    position: fixed;
    right: 30px;
    bottom: 105px; /* encima del carrito */
    z-index: 9999;
}

.arriba-float .btn{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    box-shadow:0 5px 15px rgba(0,0,0,.25);
}

</style>