* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: white;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: linear-gradient(120deg, #000000 52%, #007bff 52%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* position: relative; */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    gap: 1rem;
}

.logo h1 {
    color: white;
    font-size: 28px;
    white-space: nowrap;
    font-weight: 770;
    text-shadow:
        2px 2px 4px rgba(3, 3, 3, 0.65);

}

.logo-pe {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;

    background: #1f62f1;

    padding: 5px 5px;
    border-radius: 6px;

}

.menu {
    display: flex;
    align-items: center;
}

.menu a {
    text-decoration: none;
    color: white;
    margin-left: 25px;
    font-weight: bold;
    transition: 0.3s;
}


/* HERO */
.hero {
    height: 450px;
    background: url("../img/ban6.jpg") center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 40px;
    color: white;
    border-radius: 16px;
    margin: 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 450px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    background: #f59e0b;
    color: black;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: 0.3s;
}

.btn:hover {
    transform: scale(1.05);
}

/* CATEGORIAS */
.categorias {
    padding: 60px;
}

.categorias h2 {
    margin-bottom: 30px;
}

/* TABS */
.tabs {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tab {
    padding: 10px 18px;
    border: none;
    background: #eee;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.tab:hover {
    background: #ddd;
}

.tab.active {
    background: #007bff;
    color: white;
}


/* BUSCADOR */
.search-container {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.search-container input {
    width: 100%;
    max-width: 500px;
    padding: 14px 18px;
    border: none;
    outline: none;
    border-radius: 14px;
    background: #f5f7fb;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
    font-size: 15px;
    transition: 0.3s;
}

.search-container input::placeholder {
    color: #888;
}

.search-container input:focus {
    background: white;
    box-shadow:
        0 0 0 3px rgba(0, 123, 255, 0.2),
        0 6px 18px rgba(0, 0, 0, 0.12);
}



/* PRODUCTOS */
.productos {
    padding: 20px;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* CARD */
.card-producto {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border: 1px solid #ddd;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.card-producto:hover {
    transform: translateY(-6px);
}

.card-producto img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: white;
    padding: 10px;
}

.card-producto h3 {
    font-size: 15px;
    padding: 10px 12px 5px;
}

.precio {
    padding: 0 12px;
    font-size: 18px;
    color: #007bff;
    font-weight: bold;
}

.categoria-producto {
    padding: 0 12px;
    font-size: 12px;
    color: #007bff;
    margin-bottom: 8px;
    font-weight: 600;
}

.card-producto button {
    margin: 12px;
    padding: 10px;
    font-size: 14px;
    border-radius: 8px;
    border: none;
    background: #007bff;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.card-producto button:hover {
    background: #0056b3;
}

/* FOOTER */
.footer {
    background: #000;
    color: white;
    text-align: center;
    padding: 35px 20px;
    position: relative;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, #000000 60%, #007bff 60%);
    z-index: 0;
}

.footer h2,
.footer p {
    position: relative;
    z-index: 1;
}

.footer h2 {
    font-size: 20px;
    margin-bottom: 5px;
}

.footer p {
    font-size: 13px;
    opacity: 0.9;
}

/*==================================
BOTON LOGIN
==================================*/

.btn-login {

    display: flex;
    align-items: center;
    gap: 14px;

    padding: 6px;

    margin-left: 25px;

    background: linear-gradient(135deg, #0b72e7, #0057d9);

    border-radius: 50px;

    text-decoration: none;

    transition: .35s;

    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);

    position: relative;

    overflow: hidden;

}

.btn-login::before {

    content: "";

    position: absolute;

    left: -120%;

    width: 80px;

    height: 90%;

    background: rgba(255, 255, 255, .25);

    transform: skewX(-25deg);

    transition: .6s;

}

.btn-login:hover::before {

    left: 130%;

}

.login-circle {

    width: 45px;

    height: 45px;

    background: #fff;

    border-radius: 50%;

    display: flex;

    justify-content: center;

    align-items: center;

    transition: .35s;

}

.login-circle i {

    color: #0b72e7;

    font-size: 18px;

}

.btn-login span {

    color: white;

    font-weight: bold;

    font-size: 15px;

    white-space: nowrap;

}

.arrow {

    color: white;

    margin-right: 15px;

    transition: .35s;

}

.btn-login:hover {

    transform: translateY(-4px);

    box-shadow: 0 15px 30px rgba(0, 0, 0, .35);

}

.btn-login:hover .login-circle {

    transform: rotate(12deg);

}

.btn-login:hover .arrow {

    transform: translateX(6px);

}

/*==================================
BOTON CARRITO
==================================*/

.btn-carrito {

    display: flex;
    align-items: center;
    gap: 14px;

    padding: 6px;

    margin-left: 20px;

    background: linear-gradient(135deg, #0b72e7, #0057d9);

    border-radius: 50px;

    text-decoration: none;

    transition: .35s;

    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);

    position: relative;

    overflow: hidden;

}

.btn-carrito::before {

    content: "";

    position: absolute;

    left: -120%;

    width: 80px;

    height: 90%;

    background: rgba(255, 255, 255, .25);

    transform: skewX(-25deg);

    transition: .6s;

}

.btn-carrito:hover::before {

    left: 130%;

}

.carrito-circle {

    width: 45px;

    height: 45px;

    background: #fff;

    border-radius: 50%;

    display: flex;

    justify-content: center;

    align-items: center;

    transition: .35s;

}

.carrito-circle i {

    color: #0b72e7;

    font-size: 18px;

}

.btn-carrito span {

    color: #fff;

    font-weight: bold;

    font-size: 15px;

    white-space: nowrap;

}

.btn-carrito:hover {

    transform: translateY(-4px);

    box-shadow: 0 15px 30px rgba(0, 0, 0, .35);

}

.btn-carrito:hover .carrito-circle {

    transform: rotate(-12deg);

}

.btn-carrito:hover .arrow {

    transform: translateX(6px);

}

.contador-carrito {

    background: #ef4444;

    color: #fff;

    min-width: 22px;

    height: 22px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 12px;

    font-weight: bold;

    padding: 0 6px;

}

/*==================================
PANEL LATERAL CARRITO
==================================*/
/* Bloquear scroll de la página cuando el carrito está abierto */
body.carrito-abierto {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.overlay-carrito {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, .45);

    backdrop-filter: blur(3px);

    opacity: 0;

    visibility: hidden;

    transition: .35s;

    z-index: 1998;

}

.overlay-carrito.active {

    opacity: 1;

    visibility: visible;

}

.panel-carrito {

    position: fixed;

    top: 0;

    right: -430px;

    width: 430px;

    max-width: 100%;

    height: 100dvh;

    background: #f5f7fb;

    box-shadow: -8px 0 30px rgba(0, 0, 0, .25);

    display: flex;

    flex-direction: column;

    transition: .35s;

    z-index: 1999;

}

.panel-carrito.active {

    right: 0;

}

.carrito-header {

    background: linear-gradient(135deg, #0b72e7, #0057d9);

    color: #fff;

    padding: 22px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    box-shadow: 0 4px 15px rgba(0, 0, 0, .15);

}

.carrito-header h2 {

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 22px;

}

.cerrar-carrito {

    width: 42px;

    height: 42px;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, .18);

    color: white;

    cursor: pointer;

    font-size: 20px;

    transition: .35s;

}

.cerrar-carrito:hover {

    background: white;

    color: #0b72e7;

    transform: rotate(90deg) scale(1.08);

}

.carrito-body {

    flex: 1;

    overflow-y: auto;

    padding: 25px;

}

.carrito-vacio {

    height: 100%;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    color: #777;

    text-align: center;

}

.carrito-vacio i {

    font-size: 70px;

    color: #d0d0d0;

    margin-bottom: 20px;

}

.carrito-vacio p {

    font-size: 18px;

    font-weight: bold;

}

.carrito-footer {

    border-top: 1px solid #e5e5e5;

    padding: 20px;

    background: #fff;

    flex-shrink: 0;
}

.totales {

    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-bottom: 20px;

}

.totales div {

    display: flex;

    justify-content: space-between;

    font-size: 17px;

}

.btn-finalizar {

    width: 100%;

    padding: 15px;

    border: none;

    border-radius: 12px;

    background: #0b72e7;

    color: #fff;

    font-size: 16px;

    font-weight: bold;

    cursor: not-allowed;

    opacity: .6;

}


/*==================================
ITEM DEL CARRITO
==================================*/

.item-carrito {

    background: #fff;

    border-radius: 18px;

    padding: 15px;

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 18px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);

    transition: .3s;

}

.item-carrito:hover {

    transform: translateY(-3px);

}

.item-carrito img {

    width: 85px;

    height: 85px;

    object-fit: contain;

    background: #fff;

    border-radius: 12px;

    border: 1px solid #ececec;

    padding: 6px;

}

.info-item {

    flex: 1;

}

.info-item h3 {

    font-size: 16px;

    margin-bottom: 5px;

}

.categoria-item {

    color: #0b72e7;

    font-size: 13px;

    font-weight: bold;

}

.precio-item {

    margin: 10px 0;

    color: #111;

    font-size: 18px;

    font-weight: bold;

}

.cantidad {

    display: flex;

    align-items: center;

    gap: 10px;

}

.cantidad button {

    width: 32px;

    height: 32px;

    border: none;

    border-radius: 50%;

    background: #0b72e7;

    color: white;

    cursor: pointer;

    font-size: 18px;

    transition: .3s;

}

.cantidad button:hover {

    transform: scale(1.08);

}

.cantidad span {

    font-weight: bold;

    min-width: 20px;

    text-align: center;

}

.eliminar-item {

    width: 42px;

    height: 42px;

    border: none;

    border-radius: 50%;

    background: #f3f3f3;

    color: #e53935;

    cursor: pointer;

    transition: .3s;

}

.eliminar-item:hover {

    background: #e53935;

    color: white;

}

.lista-carrito {

    display: none;

}

/*==================================
RESUMEN DEL CARRITO
==================================*/

.total-final {

    margin: 18px 0;

    padding: 18px;

    background: linear-gradient(135deg, #0b72e7, #0057d9);

    border-radius: 14px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    color: #fff;

}

.total-final span {

    font-size: 16px;

    font-weight: bold;

    letter-spacing: 1px;

}

.total-final strong {

    font-size: 24px;

}

.btn-finalizar {

    width: 100%;
    height: 52px;
    border: none;
    border-radius: 12px;
    background: #0b72e7;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: .3s;

}

/* DESACTIVAR PRODUCTO CARD DESAPARECE */
.producto-inactivo {
    display: none !important;
}





/*===================================================================================================
MODAL FINALIZAR PEDIDO
======================================================================================================*/
/* ===========================
   FORMULARIO DEL PEDIDO
=========================== */

.input-whatsapp {
    display: flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: .3s;
}



#codigo-pais {
    width: 110px;
    border: none;
    outline: none;
    background: #f8f8f8;
    padding: 12px;
    font-size: 15px;
    cursor: pointer;
}

#whatsapp-cliente {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 15px;
    font-size: 15px;
    background: white;
}

/* ===========================
   MODAL PEDIDO
=========================== */

#formulario-pedido {
    position: fixed;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(0, 0, 0, .55);

    z-index: 9999;
}

#formulario-pedido.oculto {
    display: none;
}

.pedido-contenido {

    width: 90%;
    max-width: 500px;

    max-height: 90vh;

    background: #fff;

    border-radius: 12px;

    padding: 25px;

    box-sizing: border-box;

    box-shadow: 0 15px 40px rgba(0, 0, 0, .25);

    animation: aparecerModal .25s ease;

    display: flex;
    flex-direction: column;
    overflow: hidden;


}

.pedido-contenido h2 {
    margin: 0 0 20px;
    text-align: center;
    color: #333;
}

.pedido-contenido h3 {
    margin: 20px 0 15px;
    color: #444;
}

.grupo-input {
    margin-bottom: 18px;
}

.grupo-input label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #555;
}

.grupo-input input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
}

.grupo-input input:focus {
    outline: none;
    border-color: #0b72e7;
}

#lista-pedido {
    height: 180px;
    max-height: 180px;
    overflow-y: auto;
    display: block;
}

#lista-pedido p {
    margin: 5px 0;
    padding: 8px;
    font-size: 14px;
}

.total-pedido {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    font-size: 18px;
    font-weight: bold;
}

#enviar-pedido {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #0b72e7;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: .3s;
}

#enviar-pedido:hover {
    background: #095dc0;
}

.pedido-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 20px;
    padding-bottom: 15px;

    border-bottom: 1px solid #eee;
}

.pedido-header h2 {
    margin: 0;
    color: #333;
}

#cerrar-pedido {
    position: relative;
    top: 5px;
    right: 5px;

    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, .06);

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;

    transition: all .3s ease;
}

#cerrar-pedido i {
    font-size: 22px;
    color: #555;
    transition: all .3s ease;
}

#cerrar-pedido:hover {
    background: #0b72e7;
    transform: rotate(90deg);
}

#cerrar-pedido:hover i {
    color: #fff;
}

#lista-pedido::-webkit-scrollbar {
    width: 10px;
}

#lista-pedido::-webkit-scrollbar-thumb {
    background: #0b72e7;
    border-radius: 10px;
}


/*===================================================================================================
AQUI ACABA MODAL FINALIZAR PEDIDO
======================================================================================================*/


/* MENU RESPONSIVE */
.menu-toggle {
    display: none;
    font-size: 32px;
    color: white;
    cursor: pointer;
}


/* =========================
   ALERTA PERSONALIZADA
========================= */

.alerta-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.25s ease;

    z-index: 9999;
}


/* ALERTA VISIBLE */

.alerta-overlay.mostrar {
    opacity: 1;
    visibility: visible;
}


/* CAJA */

.alerta-personalizada {
    position: relative;

    width: 100%;
    max-width: 420px;

    background: #ffffff;

    border-radius: 16px;

    padding: 30px 25px 25px;

    text-align: center;

    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);

    transform: translateY(-15px) scale(0.95);

    transition: transform 0.25s ease;
}


/* ANIMACIÓN */

.alerta-overlay.mostrar .alerta-personalizada {
    transform: translateY(0) scale(1);
}


/* ICONO */

.alerta-icono {
    width: 70px;
    height: 70px;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: #fff3cd;

    display: flex;
    align-items: center;
    justify-content: center;
}


.alerta-icono i {
    font-size: 34px;

    color: #f0ad00;
}


/* CONTENIDO */

.alerta-contenido h3 {
    margin: 0 0 10px;

    font-size: 21px;

    font-weight: 700;

    color: #222;
}


.alerta-contenido p {
    margin: 0 auto;

    max-width: 340px;

    font-size: 15px;

    line-height: 1.5;

    color: #666;
}


/* BOTÓN */

.cerrar-alerta {
    width: 100%;

    margin-top: 25px;

    padding: 12px 20px;

    border: none;

    border-radius: 8px;

    background: #0b72e7;

    color: #ffffff;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition: background 0.2s ease;
}


.cerrar-alerta:hover {
    background: #095dbb;
}

#cerrar-alerta:focus,
#cerrar-alerta:active {
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

/* Evitar selección de texto en la alerta*/

.alerta-personalizada,
.alerta-personalizada {
    user-select: none;
}

/* Quitar borde de foco del botón finalizar */

#btn-finalizar:focus {
    outline: none;
    box-shadow: none;
}


















/* =========================
   SLIDER PRINCIPAL
========================= */

.slider {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
}

.slider-contenedor {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.6s ease,
        visibility 0.6s ease;
}

.slide.activo {
    opacity: 1;
    visibility: visible;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* OSCURECER UN POCO LA IMAGEN */

.slide::after {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.35);
}

/* =========================
   CONTENIDO DEL SLIDE
========================= */

.slide-contenido {
    position: absolute;

    top: 50%;
    left: 10%;

    transform: translateY(-50%);

    z-index: 2;

    max-width: 550px;

    color: #ffffff;
}

.slide-contenido h2 {
    margin: 0 0 18px;

    font-size: 52px;
    line-height: 1.05;

    font-weight: 800;

    color: #ffffff;

    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.65);
}

.slide-contenido p {
    margin: 0 0 22px;

    font-size: 22px;

    color: #ffffff;

    text-shadow:
        1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* =========================
   FLECHAS
========================= */

.slider-anterior,
.slider-siguiente {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    z-index: 5;

    width: 48px;
    height: 48px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.85);

    color: #0b72e7;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;

    transition: 0.2s ease;
}

.slider-anterior:hover,
.slider-siguiente:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

.slider-anterior {
    left: 25px;
}

.slider-siguiente {
    right: 25px;
}

/* =========================
   INDICADORES
========================= */

.slider-indicadores {
    position: absolute;

    bottom: 25px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 5;

    display: flex;
    gap: 9px;
}

.indicador {
    width: 11px;
    height: 11px;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.55);

    cursor: pointer;

    transition: 0.2s ease;
}

.indicador.activo {
    width: 28px;
    border-radius: 10px;

    background: #ffffff;
}









/* =========================
   BOTÓN DEL SLIDER
========================= */

.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 18px;

    padding: 12px 18px 12px 28px;

    /* background: #4aa51ccc; */
    background: #0b72e7;
    color: #ffffff;

    border-radius: 50px;

    text-decoration: none;

    font-size: 18px;
    font-weight: 700;

    transition: 0.25s ease;
}

.slide-btn:hover {
    /* background: #3d8f17; */
    background: #095fbd;

    transform: translateY(-2px);
}

.slide-btn i {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;
    color: #4aa51c;

    border-radius: 50%;

    font-size: 17px;
}


/* =========================
   DECORACIÓN DEL SLIDER
========================= */

.slide-decoracion {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 0 0 25px;
}

.slide-decoracion span {
    width: 285px;
    height: 3px;

    background: #4aa51c;

    border-radius: 5px;
}

.slide-decoracion i {
    color: #4aa51c;
    font-size: 28px;

    transform: rotate(-15deg);
}





/* =========================================
   PAGINACIÓN PRODUCTOS - INDEX
========================================= */

#paginacion-productos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}


/* BOTONES DE PAGINACIÓN */

#paginacion-productos .pagina-btn {
    width: 40px;
    height: 40px;

    border: 1px solid #d9e2ec;
    border-radius: 8px;

    background: #ffffff;
    color: #333;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.2s ease;
}


/* HOVER */

#paginacion-productos .pagina-btn:hover {
    background: #eaf3ff;
    color: #0b72e7;
    border-color: #0b72e7;

    transform: translateY(-2px);
}


/* PÁGINA ACTUAL */

#paginacion-productos .pagina-btn.activo {
    background: #0b72e7;
    color: white;

    border-color: #0b72e7;

    box-shadow: 0 3px 8px rgba(11, 114, 231, 0.25);

    cursor: default;
}


/* EVITAR QUE LA ACTIVA CAMBIE AL PASAR EL RATÓN */

#paginacion-productos .pagina-btn.activo:hover {
    background: #0b72e7;
    color: white;
    border-color: #0b72e7;

    transform: none;
}


/* =========================================
   CELULAR
========================================= */

@media (max-width: 600px) {

    #paginacion-productos {
        gap: 5px;
        margin: 25px 10px;
    }

    #paginacion-productos .pagina-btn {
        width: 35px;
        height: 35px;

        font-size: 13px;
        border-radius: 7px;
    }

}


/* =========================================
   CELULARES PEQUEÑOS
========================================= */

@media (max-width: 380px) {

    #paginacion-productos {
        gap: 4px;
    }

    #paginacion-productos .pagina-btn {
        width: 32px;
        height: 32px;

        font-size: 12px;
    }

}


/* =========================================
   FLECHAS LATERALES DE PAGINACIÓN
========================================= */

.flecha-paginacion-lateral {
    position: fixed;

    top: 50%;

    width: 42px;
    height: 70px;

    border: none;
    border-radius: 10px;

    background: #0b72e7;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;

    cursor: pointer;
    z-index: 1000;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


/* APARECER */

.flecha-paginacion-lateral.mostrar {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* IZQUIERDA */

#flecha-pagina-anterior {
    left: 8px;
}


/* DERECHA */

#flecha-pagina-siguiente {
    right: 8px;
}


/* HOVER */

.flecha-paginacion-lateral.mostrar:hover {
    background: #095fbd;
}


/* CELULAR */

@media (max-width: 600px) {

    .flecha-paginacion-lateral {
        width: 32px;
        height: 55px;
        font-size: 14px;
    }

    #flecha-pagina-anterior {
        left: 3px;
    }

    #flecha-pagina-siguiente {
        right: 3px;
    }
}


/* CELULARES PEQUEÑOS */

@media (max-width: 380px) {

    .flecha-paginacion-lateral {
        width: 30px;
        height: 52px;
        font-size: 13px;
    }

    #flecha-pagina-anterior {
        left: 2px;
    }

    #flecha-pagina-siguiente {
        right: 2px;
    }
}

/* =========================
    RESPONSIVE CELULAR
 ========================= */

@media (max-width: 768px) {

    .slider {
        height: 430px;
    }

    .slide-contenido {
        left: 7%;
        right: 7%;

        max-width: none;

        text-align: center;
    }

    .slide-contenido h2 {
        font-size: 34px;
        line-height: 1.1;
    }

    .slide-contenido p {
        font-size: 17px;
        margin-bottom: 20px;
    }

    /* DECORACIÓN */

    .slide-decoracion {
        justify-content: center;
        margin-bottom: 20px;
    }

    .slide-decoracion span {
        width: 150px;
    }

    .slide-decoracion i {
        font-size: 24px;
    }

    /* BOTÓN */

    .slide-btn {
        font-size: 16px;
        padding: 10px 16px 10px 22px;
        gap: 12px;
    }

    .slide-btn i {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    /* FLECHAS */

    .slider-anterior,
    .slider-siguiente {
        width: 40px;
        height: 40px;

        font-size: 15px;
    }

    .slider-anterior {
        left: 12px;
    }

    .slider-siguiente {
        right: 12px;
    }

    /* INDICADORES */

    .slider-indicadores {
        bottom: 18px;
    }

}


/* =========================
    CELULARES PEQUEÑOS
 ========================= */

@media (max-width: 480px) {

    .slider {
        height: 380px;
    }

    .slide-contenido {
        left: 12%;
        right: 12%;
    }

    .slide-contenido h2 {
        font-size: 28px;
    }

    .slide-contenido p {
        font-size: 15px;
        margin-bottom: 18px;
    }

    .slide-decoracion span {
        width: 100px;
    }

    .slide-decoracion i {
        font-size: 21px;
    }

    .slide-btn {
        font-size: 15px;
        padding: 8px 12px 8px 18px;
        gap: 8px;
    }

    .slide-btn i {
        width: 32px;
        height: 32px;

        font-size: 14px;
    }

    .slider-anterior,
    .slider-siguiente {
        width: 36px;
        height: 36px;

        font-size: 14px;
    }

    .slider-anterior {
        left: 8px;
    }

    .slider-siguiente {
        right: 8px;
    }

}



































/* =========================
   ALERTA EN CELULAR
========================= */

@media (max-width: 480px) {

    .alerta-personalizada {
        max-width: 100%;

        padding: 25px 20px 20px;

        border-radius: 14px;
    }


    .alerta-icono {
        width: 62px;
        height: 62px;

        margin-bottom: 15px;
    }


    .alerta-icono i {
        font-size: 30px;
    }


    .alerta-contenido h3 {
        font-size: 19px;
    }


    .alerta-contenido p {
        font-size: 14px;
    }

}







/* TABLET */
@media(max-width:1000px) {

    .grid-productos {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media(max-width:480px) {

    .carrito-header {
        padding: 15px;
    }


    .carrito-header h2 {
        font-size: 18px;
    }


    .carrito-body {
        padding: 15px;
    }


    .item-carrito {

        padding: 10px;
        gap: 10px;

    }


    .item-carrito img {

        width: 65px;
        height: 65px;

    }


    .precio-item {

        font-size: 15px;

    }


    .btn-finalizar {

        height: 48px;

    }

}

/* CELULAR */
@media(max-width:768px) {
    /* .logo h1 {
        color: white;
        font-size: px;
        white-space: nowrap;
    } */

    .header {
        padding: 20px;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #000;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 25px 0;
        transform: translateY(-150%);
        transition: 0.4s;
        z-index: 1000;
    }

    .menu.active {
        transform: translateY(0);
    }

    .menu a {
        margin-left: 0;
        font-size: 18px;
    }

    .hero {
        height: 350px;
        padding: 25px;
    }

    .logo {
        gap: 4%;

    }

    .logo h1 {
        font-size: 20px;
    }

    .logo-pe {
        font-size: 12px !important;
        width: 50px;
        height: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
    }


    .hero p {
        font-size: 16px;
    }

    .categorias {
        padding: 25px 15px;
    }

    .search-container {
        padding: 0;
    }

    .productos {
        padding: 10px;
    }

    .grid-productos {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .card-producto img {
        height: 110px;
        padding: 5px;
    }

    .card-producto h3 {
        font-size: 11px;
        padding: 6px;
    }

    .precio {
        font-size: 14px;
        padding: 0 6px;
    }

    .categoria-producto {
        font-size: 10px;
        padding: 0 6px;
    }

    .card-producto button {
        margin: 6px;
        padding: 7px;
        font-size: 11px;
    }



}


@media(max-width:600px) {

    .pedido-contenido {

        width: 95%;
        max-height: 90vh;

        padding: 20px;

    }


    #lista-pedido {

        height: 220px;
        max-height: 220px;

    }





}