/* Transiciones fluidas entre páginas estilo App Nativa sin destellos blancos */
@view-transition {
    navigation: auto;
}

html {
    background-color: #0b101e !important;
    color-scheme: dark !important;
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN FLOTANTE INFERIOR - ESTILO CRISTAL LÍQUIDO IPHONE (iOS)
   ========================================================================== */
.bottom-nav-bar {
    position: fixed;
    bottom: 12px;
    left: 14px;
    right: 14px;
    width: auto;
    height: 64px;
    /* Efecto Cristal Líquido Translúcido estilo iOS */
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    /* Bisel perimetral y reflejo de luz */
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-top: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 4px 10px;
    z-index: 3000 !important;
    /* Flota por encima de todos los paneles y contenidos */
    /* Sombra multicapa flotante + resplandor interior */
    box-shadow:
        0 12px 36px -6px rgba(0, 0, 0, 0.65),
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    box-sizing: border-box;
    transition: transform 0.3s ease, background 0.3s ease;
}

/* --- Indicador Deslizante Fluido (Burbuja Líquida que viaja entre botones) --- */
.bottom-nav-indicator {
    position: absolute;
    top: 6px;
    left: 0;
    width: 58px;
    height: 52px;
    border-radius: 26px;
    /* Forma de burbuja redondeada */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
    backdrop-filter: blur(14px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.58) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.65),
        inset 0 -1px 2px rgba(0, 0, 0, 0.22),
        0 4px 14px rgba(0, 0, 0, 0.35),
        0 0 12px rgba(255, 255, 255, 0.12) !important;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transform: translateX(0);
    will-change: transform, width, opacity;
    /* Sin transición en primer frame para posicionamiento instantáneo en carga */
    transition: opacity 0.15s ease;
}

.bottom-nav-indicator.ready {
    /* Transición elástica activada para interacciones posteriores */
    transition: transform 0.36s cubic-bezier(0.34, 1.56, 0.64, 1),
        width 0.28s ease,
        opacity 0.25s ease !important;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: transparent !important;
    border: 1px solid transparent !important;
    color: #94a3b8;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
    flex: 1;
    max-width: 58px;
    /* Ancho compacto y proporcionado para forma redonda */
    height: 52px;
    margin: 0 auto;
    padding: 3px 2px;
    position: relative;
    z-index: 2;
    /* Sobre la burbuja deslizante */
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    border-radius: 26px;
    box-sizing: border-box;
}

.bottom-nav-item:active {
    transform: scale(0.92);
    /* Microinteracción elástica táctil como en iPhone */
}

.bottom-nav-item i {
    font-size: 19px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease, filter 0.2s ease;
}

.bottom-nav-item span {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 52px;
    display: block;
    text-align: center;
    line-height: 1.1;
}

.bottom-nav-item:hover,
.bottom-nav-item:focus {
    color: #f1f5f9;
}

/* Efecto en Botón Activo: Resalta tipografía sobre la burbuja deslizante */
.bottom-nav-item.active {
    color: #ffffff !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 1px solid transparent !important;
    transform: translateY(-1px);
}

.bottom-nav-item.active i {
    transform: scale(1.08) translateY(-1px);
    color: #ffffff !important;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5)) !important;
}

.bottom-nav-item.active span {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
    letter-spacing: 0.2px;
}

/* Logo IORO como ícono de Inicio - Nítido, Suave y Sin Destello Amarillo */
.bottom-nav-logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
    transition: transform 0.2s ease;
    display: block;
}

.bottom-nav-item.active .bottom-nav-logo-img {
    transform: scale(1.06) translateY(-1px);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5)) !important;
}

/* Contenedor del ícono del carrito con badge */
.bottom-nav-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bottom-nav-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #ef4444;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 10px;
    font-weight: 700;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border: 1.5px solid #ffffff;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.6);
    pointer-events: none;
    z-index: 10;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-nav-badge.badge-pill {
    width: auto !important;
    min-width: 20px !important;
    padding: 0 4px !important;
    border-radius: 10px !important;
}

/* --- Modo Normal (Tienda / Inicio): Carrito a la derecha del todo (Slot 4) --- */
.bottom-nav-bar .bottom-nav-inicio {
    order: 1;
}

.bottom-nav-bar .bottom-nav-cuenta {
    order: 2;
}

.bottom-nav-bar .bottom-nav-vender {
    order: 3;
    display: flex;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-nav-bar .bottom-nav-cart {
    order: 4;
    display: flex;
}

.bottom-nav-bar .bottom-nav-entrega {
    order: 4;
    display: none !important;
}

/* --- Modo Carrito: Carrito pasa a Slot 3 (Paso 1) y Entrega entra a la derecha en Slot 4 (Paso 2 Final) --- */
.bottom-nav-bar.cart-mode .bottom-nav-inicio {
    order: 1;
}

.bottom-nav-bar.cart-mode .bottom-nav-cuenta {
    order: 2;
}

.bottom-nav-bar.cart-mode .bottom-nav-vender {
    display: none !important;
}

.bottom-nav-bar.cart-mode .bottom-nav-cart {
    order: 3;
    display: flex !important;
    animation: navMorphCartToLeft 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.bottom-nav-bar.cart-mode .bottom-nav-entrega {
    order: 4;
    display: flex !important;
    animation: navMorphEntregaFromRight 0.34s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Animación elástica suave al deslizarse el Carrito al Slot 3 */
@keyframes navMorphCartToLeft {
    0% {
        opacity: 0.8;
        transform: scale(0.92) translateX(12px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

/* Animación elástica suave al entrar Entrega al Slot 4 (extremo derecho) */
@keyframes navMorphEntregaFromRight {
    0% {
        opacity: 0;
        transform: scale(0.65) translateX(16px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

/* Ocultar el viejo botón de usuario y menú desplegable del header en móvil (Opción 1) */
.user-actions-mobile {
    display: none !important;
}

/* Espacio inferior de seguridad en móvil para evitar que la barra tape contenido */
body {
    padding-bottom: 140px !important;
}

/* ==========================================================================
   BOTTOM SHEET DE CUENTA MÓVIL (Opción 2)
   ========================================================================== */
.bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1550;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bottom-sheet-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.bottom-sheet-account {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.86);
    backdrop-filter: blur(30px) saturate(190%);
    -webkit-backdrop-filter: blur(30px) saturate(190%);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px 28px 0 0;
    padding: 14px 20px 30px 20px;
    z-index: 1600;
    transform: translateY(105%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.28);
    box-sizing: border-box;
}

.bottom-sheet-account.active {
    transform: translateY(0);
}

.bottom-sheet-handle {
    width: 42px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin: 0 auto 16px auto;
}

.bottom-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 14px;
}

.bottom-sheet-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bottom-sheet-user-info i.avatar-icon {
    font-size: 38px;
    color: #d4af37;
}

.bottom-sheet-user-info h4 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.bottom-sheet-user-info span {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #94a3b8;
    display: block;
    margin-top: 2px;
}

.bottom-sheet-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #cbd5e1;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s;
}

.bottom-sheet-close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.bottom-sheet-body {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.bottom-sheet-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.bottom-sheet-item:hover,
.bottom-sheet-item:active {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.99);
}

.bottom-sheet-item i:not(.arrow) {
    font-size: 19px;
    width: 26px;
    text-align: center;
}

.bottom-sheet-item .arrow {
    margin-left: auto;
    color: #64748b;
    font-size: 12px;
}

.bottom-sheet-item.bottom-sheet-logout {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
    color: #f87171;
    margin-top: 5px;
}

.bottom-sheet-item.bottom-sheet-logout:hover {
    background: rgba(239, 68, 68, 0.22);
}





.session-btn {
    padding: 8px 15px;
    font-size: 14px;
    text-align: center;
    display: inline-block;
    /* Asegura que el padding y la alineación se apliquen correctamente */
}

/* Estilos responsivos para la cesta del carrito */
/* cesta del cliente */
.contenedorCompra {
    position: fixed;
    /* o static si prefieres */
    top: 139px;
    left: 0;
    /* Corrección: Cambiar vw a % para evitar el desbordamiento horizontal */
    width: 100%;
    height: 20vh;
    min-height: 83vh;
    overflow-y: auto;
    flex-direction: column !important;
    transition: max-height 0.3s;
    gap: 8px;
    z-index: 2500 !important;
    background-color: rgba(0, 0, 0, 0.808);
}



/* Ajusta el contenedor individual de cada producto*/
.productosCompra>div {
    left: 0px;
    width: 100%;
}

/* --- TARJETA DE PRODUCTO Y CONTROLES EN EL CARRITO (MÓVIL) --- */
.carrito-item {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 10px 0 !important;
    padding: 10px 12px !important;
    background: #111a2e !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

/* 1. Caja de Imagen a la izquierda (Móvil) */
.carrito-item-img-box {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    min-height: 72px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #080d18 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.carrito-producto-img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 10px !important;
    object-fit: cover !important;
    display: block !important;
}

/* 2. Columna Central: Información de Producto (Móvil) */
.carrito-item-info-principal {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 3px !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.carrito-item-titulo {
    font-size: 0.88rem !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-align: left !important;
    margin: 0 !important;
    line-height: 1.25 !important;
    font-family: 'Space Grotesk', 'Montserrat', sans-serif !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.carrito-item-talla {
    font-size: 0.78rem !important;
    color: #38bdf8 !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

.carrito-item-descripcion {
    font-size: 0.74rem !important;
    color: #94a3b8 !important;
    margin: 2px 0 0 0 !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.carrito-item-tienda-tag {
    font-size: 0.70rem !important;
    color: #d4af37 !important;
    background: rgba(212, 175, 55, 0.12) !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    padding: 2px 6px !important;
    border-radius: 5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    margin-top: 2px !important;
    font-weight: 600 !important;
}

/* 3. Columna Derecha: Precio Arriba, Controles Circulares Abajo (Móvil) */
.carrito-item-controles {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
}

.carrito-item-precio,
#contenedorCompra .carrito-item-controles #precio {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #22c55e !important;
    margin: 0 !important;
    font-family: 'Space Grotesk', 'Montserrat', sans-serif !important;
    letter-spacing: 0.2px !important;
}

.carrito-item-actions-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
}

/* Contenedor Selector Cantidad (Móvil) */
#contenedorCompra .productosCompra .selector-cantidad,
.selector-cantidad {
    position: relative !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    height: 28px !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 0 !important;
    left: auto !important;
    top: auto !important;
}

/* Botones Circulares Perfectos para Menos y Más en Móvil */
#contenedorCompra .productosCompra .selector-cantidad .restar-cantidad,
#contenedorCompra .productosCompra .selector-cantidad .sumar-cantidad,
.selector-cantidad .restar-cantidad,
.selector-cantidad .sumar-cantidad {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    font-size: 0.78rem !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

#contenedorCompra .productosCompra .selector-cantidad .restar-cantidad,
.selector-cantidad .restar-cantidad {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #e2e8f0 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) !important;
}

#contenedorCompra .productosCompra .selector-cantidad .restar-cantidad:active,
.selector-cantidad .restar-cantidad:active {
    background: rgba(239, 68, 68, 0.25) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    color: #f87171 !important;
    transform: scale(0.92) !important;
}

#contenedorCompra .productosCompra .selector-cantidad .sumar-cantidad,
.selector-cantidad .sumar-cantidad {
    background: rgba(37, 99, 235, 0.2) !important;
    border: 1px solid rgba(37, 99, 235, 0.45) !important;
    color: #38bdf8 !important;
    box-shadow: 0 2px 5px rgba(37, 99, 235, 0.25) !important;
}

#contenedorCompra .productosCompra .selector-cantidad .sumar-cantidad:active,
.selector-cantidad .sumar-cantidad:active {
    background: rgba(37, 99, 235, 0.4) !important;
    border-color: rgba(56, 189, 248, 0.7) !important;
    color: #ffffff !important;
    transform: scale(0.92) !important;
}

/* Caja de Cantidad en el medio (Móvil) */
#contenedorCompra .productosCompra .carrito-item-cantidad,
.carrito-item-cantidad {
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px !important;
    background: #0b121e !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-align: center !important;
    font-family: 'Space Grotesk', 'Montserrat', sans-serif !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Botón de Basura Circular en Móvil */
#contenedorCompra .botonTrash,
.botonTrash {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    border-radius: 50% !important;
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.28) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

#contenedorCompra .botonTrash:active,
.botonTrash:active {
    background: rgba(239, 68, 68, 0.28) !important;
    border-color: rgba(239, 68, 68, 0.55) !important;
    transform: scale(0.92) !important;
}

#contenedorCompra .botonTrash img,
.botonTrash img {
    width: 13px !important;
    height: 13px !important;
    object-fit: contain !important;
}

.informacionCompra,
.formulario-cliente {
    position: absolute;
    width: 100%;
}

/* Estilos responsivos para la cesta del carrito */
.informacionCompra {
    top: 80px;
    min-height: 490px;
}

.informacionCompra h2 {
    margin-top: -20px;
    margin-left: 0px;
    font-size: 16px;
    width: 90%;
}

.productosCompra {
    font-size: 17px;
    width: 100%;
    min-height: 400px;
    max-height: 400px;
    margin-top: 30px;
    padding: 0px;
    left: 0px;
}

.total {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 26px;
    /* Cambia el tamaño según tu preferencia */
    font-weight: 600;
    color: #fff;
    margin-top: 18px;
    font-family: 'Montserrat', sans-serif;
}


.formulario-cliente {
    top: 680px;
    left: 0px;
}


.informacionCompra {
    order: 1;
}

.formulario-cliente {
    order: 2;
}

#enviarWhatsApp {
    width: 90%;
    /* Hacemos que ocupe casi todo el ancho */
    max-width: 400px;
    /* Pero con un límite */
}

.x {
    position: fixed;
    top: 120px;
    left: 0px;
    /* Ajusta para que no se superpongan */
    width: 200px;
    z-index: 20;
    text-align: center;
    background-color: rgba(42, 98, 250, 0.932);
}

#contenedor {
    margin-top: -30px;
}



/* --- INICIO: CORRECCIÓN DEFINITIVA DEL CARRITO EN MÓVILES (Estilo App Nativa) --- */
@media (max-width: 800px) {

    /* Pestañas antiguas del carrito ocultas (ahora unificadas en la barra principal de cristal líquido) */
    .mobile-cart-tabs {
        display: none !important;
    }

    .cart-tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: #94A3B8;
        font-size: 11px;
        gap: 4px;
        cursor: pointer;
        transition: all 0.3s;
    }

    .cart-tab i {
        font-size: 22px;
        color: inherit;
        transition: transform 0.2s;
    }

    .cart-tab.active {
        color: #25D366;
        /* Verde */
        font-weight: 600;
    }

    .cart-tab.active i {
        transform: scale(1.1);
    }

    /* --- Contenedor de Acciones Móviles en Carrito (Rectangular Moderno Centrado) --- */
    .mobile-actions-container {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        width: calc(100% + 8px) !important;
        margin: 0 -4px 2px -4px !important;
        gap: 8px !important;
        position: sticky !important;
        bottom: 2px !important;
        z-index: 101 !important;
        background: rgba(15, 23, 42, 0.88) !important;
        backdrop-filter: blur(24px) saturate(190%) !important;
        -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 14px !important;
        height: 56px !important;
        padding: 6px 8px !important;
        box-shadow:
            0 10px 30px -4px rgba(0, 0, 0, 0.65),
            0 4px 12px rgba(0, 0, 0, 0.3),
            inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
        box-sizing: border-box !important;
    }

    .btn-seguir-mobile {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        color: #f1f5f9 !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.32) !important;
        padding: 0 10px !important;
        height: 42px !important;
        border-radius: 10px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        letter-spacing: -0.2px !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        flex: 1 1 0% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 2px 6px rgba(0, 0, 0, 0.25) !important;
        transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    }

    .btn-seguir-mobile i {
        font-size: 13px !important;
        color: #38bdf8 !important;
    }

    .btn-seguir-mobile:active {
        background: rgba(255, 255, 255, 0.18) !important;
        transform: scale(0.96);
    }

    .btn-siguiente-mobile {
        display: inline-flex !important;
        flex: 1 1 0% !important;
        width: 100% !important;
        min-width: 0 !important;
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.5) !important;
        color: white !important;
        padding: 0 10px !important;
        height: 42px !important;
        border-radius: 10px !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        letter-spacing: -0.2px !important;
        margin: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
        box-shadow:
            0 6px 20px -2px rgba(59, 130, 246, 0.5),
            inset 0 1px 1px rgba(255, 255, 255, 0.5),
            inset 0 -1px 2px rgba(0, 0, 0, 0.2) !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
        transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    }

    .btn-siguiente-mobile:active {
        transform: scale(0.96);
    }

    .mobile-tab-hidden {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateX(15px) !important;
    }

    .contenedorCompra {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        /* Previene el bug de altura en móviles */
        min-height: 100% !important;
        padding: 0 !important;
        display: block !important;
        background-color: #0b101e !important;
        z-index: 2000 !important;
        overflow: hidden !important;
    }

    .informacionCompra,
    .formulario-cliente {
        position: absolute !important;
        top: 0 !important;
        bottom: 76px !important;
        /* Espacio exacto por encima de la barra flotante de cristal líquido */
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        /* Desactivamos el 100vh conflictivo */
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 75px 12px 0 12px !important;
        border-radius: 0 !important;
        background-color: #0b101e !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
        display: flex !important;
        /* Convierte el panel en un contenedor flexible */
        flex-direction: column !important;
        /* Apila los elementos verticalmente */
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s !important;
    }

    .informacionCompra h2 {
        font-weight: 700 !important;
        margin: 0 0 15px 0 !important;
        font-size: 20px !important;
        width: 100% !important;
        text-align: left !important;
        color: #ffffff !important;
        font-family: 'Space Grotesk', sans-serif !important;
    }

    .formulario-cliente h3 {
        font-weight: 700 !important;
        margin: 0 0 15px 0 !important;
        font-size: 20px !important;
        text-align: left !important;
        color: #ffffff !important;
        font-family: 'Space Grotesk', sans-serif !important;
    }

    /* Cabecera de Logo y Nombre de Tienda superior en Móvil (Más arriba y sin superposiciones) */
    .cart-header-logos-container {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        margin: 0 !important;
        position: fixed !important;
        top: 8px !important;
        right: 12px !important;
        width: auto !important;
        z-index: 2010 !important;
        pointer-events: none !important;
    }

    .cart-header-logo-icon {
        width: 44px !important;
        height: 44px !important;
        object-fit: contain !important;
        filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35)) !important;
    }

    .cart-header-logo-text {
        height: 32px !important;
        width: auto !important;
        object-fit: contain !important;
        filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35)) !important;
    }

    /* Botón flotante 'Añadir productos' / Volver (Rectangular con Esquinas Redondeadas) */
    .x {
        position: fixed !important;
        top: 10px !important;
        left: 12px !important;
        width: auto !important;
        height: 38px !important;
        padding: 0 14px !important;
        background-color: rgba(22, 32, 50, 0.88) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        border-radius: 10px !important;
        z-index: 2010 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #ffffff !important;
    }

    .mobile-cart-tabs {
        display: flex !important;
    }

    .btn-siguiente-mobile {
        display: flex !important;
    }

    /* Ajuste de padding para el formulario de entrega en móvil */
    .formulario-cliente {
        padding: 75px 14px 0 14px !important;
    }

    .checkout-header-banner {
        margin-top: 4px !important;
    }

    /* --- Contenedor de Acciones Móviles en Entrega (Rectangular Moderno Centrado) --- */
    .actions-form-container {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        width: calc(100% + 8px) !important;
        margin: auto -4px 2px -4px !important;
        gap: 8px !important;
        position: sticky !important;
        bottom: 2px !important;
        z-index: 101 !important;
        background: rgba(15, 23, 42, 0.88) !important;
        backdrop-filter: blur(24px) saturate(190%) !important;
        -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 14px !important;
        height: 56px !important;
        padding: 6px 8px !important;
        box-shadow:
            0 10px 30px -4px rgba(0, 0, 0, 0.65),
            0 4px 12px rgba(0, 0, 0, 0.3),
            inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
        box-sizing: border-box !important;
    }

    /* Ocultar la barra si la pestaña del formulario está oculta */
    .formulario-cliente.mobile-tab-hidden .actions-form-container,
    .mobile-tab-hidden #mobile-actions-form-container {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .actions-form-container .btn-seguir-mobile {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        color: #f1f5f9 !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.32) !important;
        padding: 0 10px !important;
        height: 42px !important;
        border-radius: 10px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        letter-spacing: -0.2px !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        flex: 1 1 0% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 2px 6px rgba(0, 0, 0, 0.25) !important;
        transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    }

    .actions-form-container .btn-seguir-mobile i {
        font-size: 13px !important;
        color: #38bdf8 !important;
    }

    .actions-form-container .btn-seguir-mobile:active {
        background: rgba(255, 255, 255, 0.18) !important;
        transform: scale(0.96);
    }

    .submit-btn-wrapper {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #enviarWhatsApp,
    .enviarWhatsApp {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        height: 42px !important;
        padding: 0 10px !important;
        border-radius: 10px !important;
        position: static !important;
        margin: 0 !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif !important;
        letter-spacing: -0.2px !important;
        background: linear-gradient(135deg, #25d366 0%, #10b981 50%, #059669 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.5) !important;
        color: #ffffff !important;
        box-shadow:
            0 6px 20px -2px rgba(37, 211, 102, 0.5),
            inset 0 1px 1px rgba(255, 255, 255, 0.5),
            inset 0 -1px 2px rgba(0, 0, 0, 0.2) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        flex: 1 1 0% !important;
        box-sizing: border-box !important;
        transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    }

    #enviarWhatsApp i,
    .enviarWhatsApp i {
        font-size: 15px !important;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    }

    #enviarWhatsApp:active {
        transform: scale(0.96);
        box-shadow: 0 2px 10px rgba(37, 211, 102, 0.4) !important;
    }

    #paypal-button-container {
        width: 100% !important;
        position: static !important;
        margin: 0 !important;
    }

    .productosCompra {
        max-height: none !important;
        /* Permite listar todos los productos hacia abajo */
        min-height: auto !important;
        overflow: visible !important;
        width: 100% !important;
        padding: 0 !important;
        padding-bottom: 15px !important;
        margin-top: 0 !important;
    }

    .total-summary {
        width: calc(100% + 30px) !important;
        margin-left: -15px !important;
        margin-right: -15px !important;
        padding: 20px 15px 10px 15px !important;
        position: sticky !important;
        bottom: 50px !important;
        /* Espacio para que encaje el botón de continuar abajo */
        background-color: #1a2332 !important;
        /* Fondo unificado */
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-top: none !important;
        /* Sin borde para unificar */
        border-radius: 20px 20px 0 0 !important;
        /* Efecto de panel que se eleva */
        z-index: 100 !important;
        box-shadow: 0 -15px 25px rgba(0, 0, 0, 0.5) !important;
        /* Sombra unificada */
        margin-top: auto !important;
        /* Obliga al subtotal a pegarse abajo si el carrito está vacío */
    }
}

/* --- FIN: CORRECCIÓN DEFINITIVA DEL CARRITO EN MÓVILES --- */

/* --- Zona Central y Superior del Header en Móvil (<= 768px) --- */
@media (max-width: 768px) {
    body {
        padding-top: 145px !important;
    }

    #header,
    #header_reseñas,
    #header_micuenta {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 135px !important;
        display: block !important;
        background-color: rgba(18, 18, 66, 0.65) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
        z-index: 1100 !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, box-shadow 0.3s ease !important;
        will-change: transform !important;
    }

    #header.header-hidden,
    .header-hidden {
        transform: translateY(-115%) !important;
    }

    /* 1. Logo Circular Más Grande (Izquierda Superior) */
    #header #logo-empresa,
    #logo-empresa {
        position: absolute !important;
        top: 8px !important;
        left: 10px !important;
        width: 120px !important;
        height: 120px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 1102 !important;
        background-color: rgba(14, 3, 3, 0.15) !important;
        border-radius: 50% !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        padding: 3px !important;
        margin: 0 !important;
    }

    #header #logo-empresa .logo-circle-link,
    #logo-empresa .logo-circle-link {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #header #logo-empresa img,
    #logo-empresa img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        border-radius: 50% !important;
        display: block !important;
    }

    #header .btn-inicio-logo,
    .btn-inicio-logo {
        display: none !important;
    }

    /* 2. Título / Nombre de la tienda IORO Más Grande (Centro Superior) */
    #header .header-titulo-enlace,
    .header-titulo-enlace {
        position: absolute !important;
        left: 50% !important;
        top: 14px !important;
        transform: translateX(-50%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 1102 !important;
        text-decoration: none !important;
        width: auto !important;
        height: 48px !important;
        margin: 0 !important;
    }

    #header #titulo-logov {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        margin: 0 auto !important;
        width: 160px !important;
        max-width: 68vw !important;
        height: auto !important;
        max-height: 80px !important;
        display: block !important;
        object-fit: contain !important;
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6)) !important;
    }

    /* 3. Carrito y Menú Móvil (Derecha Superior - Estilo PC) */
    #header .buscador-carrito,
    .buscador-carrito {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        width: auto !important;
        height: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        z-index: 1105 !important;
        background: transparent !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #header .user-session-controls,
    .user-session-controls {
        display: none !important;
    }

    #header .user-actions-mobile,
    .user-actions-mobile {
        display: none !important;
    }

    #header .carrito-container,
    .carrito-container {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: none !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        transition: transform 0.2s ease !important;
    }

    #header .carrito-container:active,
    .carrito-container:active {
        transform: scale(0.92) !important;
    }

    #header .carrito-container img#carrito,
    .carrito-container img#carrito {
        width: 38px !important;
        height: auto !important;
        object-fit: contain !important;
        filter: invert(100%) !important;
        display: block !important;
    }

    #header .carrito-container #numero,
    .carrito-container #numero {
        position: absolute !important;
        top: -4px !important;
        right: -4px !important;
        background: red !important;
        color: white !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        min-width: 18px !important;
        height: 18px !important;
        line-height: 18px !important;
        border-radius: 50% !important;
        text-align: center !important;
        padding: 0 4px !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
        display: block !important;
    }

    /* 4. Buscador Centrado en el Medio y más Pequeño de Ancho */
    #header .header-center-zone,
    .header-center-zone {
        position: absolute !important;
        left: 50% !important;
        bottom: 10px !important;
        top: auto !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        max-width: 90% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 1101 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #header .header-center-zone #welcome-message,
    .header-center-zone #welcome-message {
        display: none !important;
    }

    #header .header-center-zone #buscadorForm,
    .header-center-zone #buscadorForm {
        position: relative !important;
        width: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #header .header-center-zone #buscadorInput,
    .header-center-zone #buscadorInput {
        width: 200px !important;
        height: 36px !important;
        padding: 0 14px !important;
        background-color: #ffffff !important;
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #ccc !important;
        border-radius: 18px !important;
        font-size: 13.5px !important;
        font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif !important;
        outline: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    #header .header-center-zone #buscadorInput::placeholder,
    .header-center-zone #buscadorInput::placeholder {
        color: #757575 !important;
        opacity: 1 !important;
    }

    #header .header-center-zone #buscadorForm button,
    #header .header-center-zone #botonBuscar,
    .header-center-zone #buscadorForm button,
    .header-center-zone #botonBuscar {
        position: static !important;
        transform: none !important;
        width: 34px !important;
        height: 34px !important;
        border-radius: 50% !important;
        background: #007bff !important;
        color: #ffffff !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 14px !important;
        cursor: pointer !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: 0 2px 6px rgba(0, 123, 255, 0.35) !important;
        flex-shrink: 0 !important;
    }

    #header .header-center-zone #buscadorForm button:hover,
    #header .header-center-zone #botonBuscar:hover,
    .header-center-zone #buscadorForm button:hover,
    .header-center-zone #botonBuscar:hover {
        background: #0056b3 !important;
    }
}

/* --- ESTILOS MÓVILES DE STYLE.CSS --- */

/* --- Banner Combos Móvil --- */
@media (max-width: 768px) {
    .combo-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .combo-banner-text h3 {
        font-size: 1.2rem;
    }

    .combo-banner-text p {
        font-size: 0.9rem;
    }
}

/* --- Banner Personalizables Móvil --- */
@media (max-width: 768px) {
    .personalizables-content {
        flex-direction: column;
        text-align: center;
    }

    .personalizables-images {
        justify-content: center;
        width: 100%;
    }
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN FLOTANTE DE CATEGORÍAS (MÓVIL)
   ========================================================================== */
@media (max-width: 768px) {
    .filtros-container {
        position: fixed !important;
        top: auto !important;
        bottom: 84px !important;
        /* Flota justo por encima de la barra de navegación principal */
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 24px) !important;
        max-width: 480px !important;
        height: auto !important;
        min-height: 44px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 8px !important;
        padding: 6px 12px !important;
        z-index: 1400 !important;
        /* Efecto Cristal Líquido Translúcido a juego con la barra de navegación */
        background: rgba(15, 23, 42, 0.82) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        border: 1px solid rgba(255, 255, 255, 0.16) !important;
        border-radius: 26px !important;
        box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
        box-sizing: border-box !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.3s ease !important;
    }

    .filtros-container::-webkit-scrollbar {
        display: none !important;
    }

    .filtro-btn-categoria {
        padding: 7px 15px !important;
        font-size: 12.5px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        border-radius: 20px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #e2e8f0 !important;
        font-family: 'Space Grotesk', sans-serif !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .filtro-btn-categoria:active {
        transform: scale(0.94) !important;
    }

    .filtro-btn-categoria.active {
        background: #ffffff !important;
        background-color: #ffffff !important;
        color: #141C29 !important;
        border-color: #ffffff !important;
        font-weight: 700 !important;
        box-shadow: 0 3px 12px rgba(255, 255, 255, 0.35) !important;
        transform: scale(1.02) !important;
    }

    /* Ocultamiento suave al hacer scroll hacia abajo */
    .filtros-hidden {
        transform: translate(-50%, 25px) scale(0.92) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }

    .filtros-instruccion {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        color: #ffc107 !important;
        /* Dorado llamativo */
        font-size: 0.82rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        margin-right: 4px !important;
        padding-right: 10px !important;
        border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
        flex-shrink: 0 !important;
    }

    .filtros-instruccion i {
        animation: deslizarIcono 1.5s infinite ease-in-out !important;
    }
}

/* --- Tutorial Popup y Botones Flotantes Móvil --- */
@media (max-width: 768px) {
    .swal-tutorial-popup {
        width: 85vw !important;
        max-width: 320px !important;
        padding: 10px !important;
        border-radius: 12px !important;
        border: 2px solid #405a7e !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8) !important;
    }

    .swal-tutorial-popup .swal2-icon {
        transform: scale(0.5) !important;
        margin: 5px auto -15px auto !important;
    }

    .swal-tutorial-popup .swal-modern-title {
        font-size: 1.1rem !important;
        padding: 0 !important;
    }

    .swal-tutorial-popup .swal2-html-container {
        font-size: 0.85rem !important;
        margin: 10px 0 0 0 !important;
        line-height: 1.3 !important;
    }

    .swal-tutorial-popup .swal2-html-container p {
        margin: 0 !important;
    }

    .swal-tutorial-popup .swal2-actions {
        margin-top: 10px !important;
    }

    .swal-tutorial-popup .swal2-styled {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
        border-radius: 20px !important;
    }

    #btnTutorialApp {
        bottom: 148px !important;
        /* Levantar el botón cómodamente por encima de los filtros en móvil */
        left: 16px !important;
        z-index: 994 !important;
    }

    #btnInstalarApp {
        bottom: 148px !important;
        right: 16px !important;
        z-index: 994 !important;
    }

    #btnTutorialApp,
    #btnInstalarApp {
        padding: 9px 15px !important;
        /* Hacerlos compactos y cómodos al tacto */
        font-size: 12.5px !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, background-color 0.2s !important;
    }

    .btn-flotante-bajar {
        transform: translateY(20px) scale(0.9) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }
}

/* --- Pestañas y Acciones de Carrito Móvil --- */
@media (max-width: 768px) {
    .mobile-cart-tabs {
        display: flex;
    }

    .mobile-actions-container {
        display: flex;
        flex-direction: row;
        width: 100%;
    }

    .btn-seguir-mobile,
    .btn-siguiente-mobile {
        display: flex;
    }
}





/* Responsive para el carrito y el formulario */
@media (max-width: 730px) {
    body {
        /* Ajustamos el padding para pantallas más pequeñas para reducir el espacio superior */
        padding-top: 120px;
    }

    /* [welcome-message estatico integrado en barra de sesion] */



    .session-btn {
        padding: 8px 15px;
        font-size: 14px;
        text-align: center;
        display: inline-block;
        /* Asegura que el padding y la alineación se apliquen correctamente */
    }

    /* Estilos responsivos para la cesta del carrito */
    /* cesta del cliente */
    .contenedorCompra {
        position: fixed;
        /* o static si prefieres */
        top: 130px;
        left: 0;
        /* Corrección: Cambiar vw a % para evitar el desbordamiento horizontal */
        width: 100%;
        height: 20vh;
        min-height: 80vh;
        overflow-y: auto;
        flex-direction: column !important;
        transition: max-height 0.3s;
        gap: 8px;
        z-index: 1100;
        background-color: rgba(0, 0, 0, 0.808);
    }



    /* Ajusta el contenedor individual de cada producto*/
    .productosCompra>div {
        left: 0px;
        width: 100%;
    }



    .total {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 12px;
        font-size: 26px;
        /* Cambia el tamaño según tu preferencia */
        font-weight: 600;
        color: #fff;
        margin-top: 18px;
        font-family: 'Montserrat', sans-serif;
    }




    .formulario-cliente {
        top: 680px;
        left: 0px;
    }


    .informacionCompra {
        order: 1;
    }

    .formulario-cliente {
        order: 2;
    }

    #enviarWhatsApp {
        width: 90%;
        /* Hacemos que ocupe casi todo el ancho */
        max-width: 400px;
        /* Pero con un límite */
    }

    .x {
        position: fixed;
        top: 120px;
        left: 0px;
        /* Ajusta para que no se superpongan */
        width: 200px;
        z-index: 20;
        text-align: center;
        background-color: rgba(42, 98, 250, 0.932);
    }

    #contenedor {
        margin-top: -30px;
    }

}






/* Responsive para el carrito y el formulario */
@media (max-width: 430px) {
    body {
        /* Ajustamos el padding para pantallas más pequeñas para reducir el espacio superior */
        padding-top: 120px;
    }


    #header #titulo-logov {
        margin-top: calc(10px) !important;/* Mueve hacia la arriba (+) o abajo (-) */
        margin-left: calc(50% + -20px) !important;/* Mueve hacia la DERECHA (+) o IZQUIERDA (-) */
        height: 105px;
        width: 105px;
    }

    /* AQUÍ ESCRIBES EL CÓDIGO DEL BUSCADOR */
    #header .header-center-zone {
        left: calc(50% + 40px) !important;
        /* Mueve hacia la DERECHA (+) o IZQUIERDA (-) */
        transform: translateX(-50%) !important;
        bottom: 10px !important;
        /* Altura desde abajo del header */
    }

    #header .header-center-zone #buscadorInput {
        width: 190px !important;
        /* Ancho del campo de texto */
    }

    .session-btn {
        padding: 8px 15px;
        font-size: 14px;
        text-align: center;
        display: inline-block;
        /* Asegura que el padding y la alineación se apliquen correctamente */
    }


    /* Estilos responsivos para la cesta del carrito */
    /* cesta del cliente */
    .contenedorCompra {
        position: fixed;
        /* o static si prefieres */
        top: 130px;
        left: 0;
        /* Corrección: Cambiar vw a % para evitar el desbordamiento horizontal */
        width: 100%;
        height: 20vh;
        min-height: 80vh;
        overflow-y: auto;
        flex-direction: column !important;
        transition: max-height 0.3s;
        gap: 8px;
        z-index: 1100;
        background-color: rgba(0, 0, 0, 0.808);
    }



    /* Ajusta el contenedor individual de cada producto*/
    .productosCompra>div {
        left: 0px;
        width: 100%;
    }



    .total {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 12px;
        font-size: 26px;
        /* Cambia el tamaño según tu preferencia */
        font-weight: 600;
        color: #fff;
        margin-top: 18px;
        font-family: 'Montserrat', sans-serif;
    }




    .formulario-cliente {
        top: 680px;
        left: 0px;
    }


    .informacionCompra {
        order: 1;
    }

    .formulario-cliente {
        order: 2;
    }

    #enviarWhatsApp {
        width: 90%;
        /* Hacemos que ocupe casi todo el ancho */
        max-width: 400px;
        /* Pero con un límite */
    }

    .x {
        position: fixed;
        top: 120px;
        left: 0px;
        /* Ajusta para que no se superpongan */
        width: 200px;
        z-index: 20;
        text-align: center;
        background-color: rgba(42, 98, 250, 0.932);
    }

    #contenedor {
        margin-top: -40px;
    }


    #account-container {
        width: 100%;

    }
}


/* Responsive para el carrito y el formulario */
@media (max-width: 412px) {
    body {
        /* Ajustamos el padding para pantallas más pequeñas para reducir el espacio superior */
        padding-top: 120px;
    }



    .session-btn {
        padding: 8px 15px;
        font-size: 14px;
        text-align: center;
        display: inline-block;
        /* Asegura que el padding y la alineación se apliquen correctamente */
    }


    .user-menu-dropdown {
        top: 80px;
        /* Debajo del botón */

    }



    /* Estilos responsivos para la cesta del carrito */
    /* cesta del cliente */
    .contenedorCompra {
        position: fixed;
        /* o static si prefieres */
        top: 170px;
        left: 0;
        /* Corrección: Cambiar vw a % para evitar el desbordamiento horizontal */
        width: 100%;
        height: 25vh;
        min-height: 83vh;
        overflow-y: auto;
        flex-direction: column !important;
        transition: max-height 0.3s;
        gap: 8px;
        z-index: 100;
        background-color: rgba(0, 0, 0, 0.808);
    }

    .x {
        position: fixed;
        top: 170px;
        left: 0px;
        /* Ajusta para que no se superpongan */
        width: 200px;
        z-index: 20;
    }



    /* Ajusta el contenedor individual de cada producto*/
    .productosCompra>div {
        left: 0px;
        width: 100%;
    }



    .total {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 12px;
        font-size: 26px;
        /* Cambia el tamaño según tu preferencia */
        font-weight: 600;
        color: #fff;
        margin-top: 18px;
        font-family: 'Montserrat', sans-serif;
    }

    .formulario-cliente {
        top: 680px;
        left: 0px;
    }


    .informacionCompra {
        order: 1;
    }

    .formulario-cliente {
        order: 2;
    }

    #enviarWhatsApp {
        width: 90%;
        /* Hacemos que ocupe casi todo el ancho */
        max-width: 400px;
        /* Pero con un límite */
    }


    #contenedor {
        margin-top: -30px;
    }

}


@media (max-width: 393px) {

    #header #logo-empresa,
    #logo-empresa {
        
        margin-left: -5px !important;
    }

    #header .header-center-zone {
        left: calc(50% + 55px) !important;/* Mueve hacia la DERECHA (+) o IZQUIERDA (-) */
      
    }
}
 

@media (max-width: 375px) {

    #header #logo-empresa,
    #logo-empresa {
        top: 8px !important;
        left: 8px !important;
    }

    #header #titulo-logov,
    #titulo-logov {
        width: 130px !important;
        max-width: 44vw !important;
    }

    #header .carrito-container,
    .carrito-container {
        width: 42px !important;
        height: 42px !important;
    }

    #header .header-center-zone #buscadorInput,
    .header-center-zone #buscadorInput {
        width: 180px !important;
        height: 35px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 320px) {

    #header #logo-empresa,
    #logo-empresa {
        height: auto !important;
        width: 100px !important;
        margin-left: -5px !important;
    }

    #header .header-center-zone {
        left: calc(50% + 55px) !important;/* Mueve hacia la DERECHA (+) o IZQUIERDA (-) */
      
    }
}

/* --- INICIO: Estilos para la animación de carga de productos --- */
.loader-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 300px;
    /* Altura para darle espacio mientras carga */
    gap: 15px;
}

.loader {
    border: 6px solid #2D4263;
    /* Color base del círculo */
    border-top: 6px solid #25D366;
    /* Color que gira */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    /* Animación de giro */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- FIN: Estilos para la animación de carga de productos --- */

/* --- INICIO: Posicionamiento manual de SweetAlert (Toast) --- */
.swal2-container.swal-custom-margin {
    top: 130px !important;
    /* Header escritorio (120px) + 10px espacio */
}

@media (max-width: 800px) {
    .swal2-container.swal-custom-margin {
        top: 140px !important;
        /* Header tablet (120px) + 20px espacio */
    }
}

@media (max-width: 470px) {
    .swal2-container.swal-custom-margin {
        top: 170px !important;
        /* Header móvil (150px) + 20px espacio */
    }
}

/* --- FIN: Posicionamiento manual de SweetAlert --- */



/* ==========================================================================
   FORMULARIO DE ENTREGA MODERNO & HUMANIZADO (mobile.css)
   ========================================================================== */
.formulario-cliente {
    background-color: #0b101e !important;
    padding: 65px 8px 0 8px !important;
    box-sizing: border-box !important;
}

.formulario-cliente.mobile-tab-hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Banner de Cabecera del Checkout */
.checkout-header-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(211, 115, 37, 0.16), rgba(56, 189, 248, 0.08));
    border: 1px solid rgba(211, 115, 37, 0.35);
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.checkout-header-icon {
    width: 44px;
    height: 44px;
    background: rgba(211, 115, 37, 0.22);
    border: 1px solid rgba(211, 115, 37, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #f59e0b;
    flex-shrink: 0;
}

.checkout-header-info h3 {
    margin: 0 0 2px 0 !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-align: left !important;
    font-family: 'Space Grotesk', sans-serif !important;
}

.checkout-header-info p {
    margin: 0 !important;
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.35;
}

/* Tarjetas Semánticas Glassmorphic */
.checkout-card {
    background: rgba(22, 32, 50, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    padding: 18px 16px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.checkout-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 10px;
}

.checkout-card-num {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #d37325, #f59e0b);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkout-card-title i {
    color: #38bdf8;
    font-size: 0.98rem;
}

.checkout-card-title h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: 0.2px;
}

/* Campos de Formulario e Iconos Integrados */
.campo-formulario {
    margin-bottom: 14px;
    position: relative;
}

.campo-formulario label {
    display: block;
    color: #cbd5e1 !important;
    font-size: 0.86rem !important;
    margin-bottom: 6px !important;
    font-weight: 600 !important;
    text-align: left;
}

.campo-formulario label .req {
    color: #f43f5e;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.25s ease;
    z-index: 2;
}

.input-with-icon input,
.input-with-icon select {
    width: 100% !important;
    height: 48px !important;
    padding: 0 14px 0 44px !important;
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-family: 'Space Grotesk', sans-serif !important;
    box-sizing: border-box !important;
    transition: all 0.25s ease !important;
}

.input-with-icon input:focus,
.input-with-icon select:focus,
.textarea-with-icon textarea:focus {
    border-color: #d37325 !important;
    box-shadow: 0 0 0 3px rgba(211, 115, 37, 0.25) !important;
    outline: none !important;
    background: #141f36 !important;
}

.input-with-icon:focus-within .input-icon,
.textarea-with-icon:focus-within .input-icon {
    color: #d37325 !important;
}

/* Prefijo de WhatsApp Honduras */
.phone-input-wrapper .phone-prefix {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    height: 48px;
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 12px 0 0 12px;
    color: #25d366;
    font-size: 0.88rem;
    font-weight: 700;
    flex-shrink: 0;
    box-sizing: border-box;
}

.phone-input-wrapper input {
    border-radius: 0 12px 12px 0 !important;
    border-left: none !important;
    padding-left: 12px !important;
}

/* Textarea con icono */
.textarea-with-icon {
    align-items: flex-start;
}

.textarea-with-icon .input-icon {
    top: 16px;
    transform: none;
}

.textarea-with-icon textarea {
    width: 100% !important;
    min-height: 90px !important;
    padding: 12px 14px 12px 44px !important;
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-size: 0.92rem !important;
    font-family: 'Space Grotesk', sans-serif !important;
    box-sizing: border-box !important;
    line-height: 1.45 !important;
    resize: vertical;
    transition: all 0.25s ease !important;
}

.ayuda-texto {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #94a3b8 !important;
    font-size: 0.78rem !important;
    margin-top: 6px !important;
    font-style: normal !important;
    line-height: 1.35 !important;
    width: 100% !important;
}

.ayuda-texto i {
    color: #38bdf8 !important;
    font-size: 0.82rem !important;
    flex-shrink: 0 !important;
}

/* Badges y GPS Assistant */
.label-with-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.optional-badge {
    font-size: 0.72rem;
    background: rgba(56, 189, 248, 0.14);
    color: #38bdf8;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid rgba(56, 189, 248, 0.28);
}

.gps-assistant-box {
    background: rgba(15, 23, 42, 0.65);
    border: 1px dashed rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    padding: 12px;
    margin-top: 10px;
}

.btn-gps-autofill {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(30, 80, 150, 0.3));
    border: 1px solid #38bdf8;
    color: #38bdf8;
    font-weight: 700;
    font-size: 0.86rem;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-gps-autofill:active {
    background: #38bdf8;
    color: #0b101e;
    transform: scale(0.98);
}

.ayuda-texto-moderno {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 8px 0 0 0;
    line-height: 1.45;
}

.ayuda-texto-moderno i {
    color: #f59e0b;
}

/* Selector Interactivo de Tarjetas de Pago */
.payment-methods-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.payment-method-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.payment-method-card:active {
    background: #152238;
}

.payment-method-card.active {
    background: linear-gradient(135deg, rgba(211, 115, 37, 0.16), rgba(15, 23, 42, 0.95)) !important;
    border-color: #d37325 !important;
    box-shadow: 0 4px 16px rgba(211, 115, 37, 0.25);
}

.payment-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #f59e0b;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.payment-method-card.active .payment-card-icon {
    background: rgba(211, 115, 37, 0.25);
    color: #d37325;
}

.payment-card-text {
    flex: 1;
    text-align: left;
}

.payment-card-text strong {
    display: block;
    font-size: 0.92rem;
    color: #ffffff;
    font-weight: 600;
}

.payment-card-text small {
    display: block;
    font-size: 0.76rem;
    color: #94a3b8;
    line-height: 1.3;
}

.payment-card-check {
    color: #475569;
    font-size: 1.15rem;
    transition: all 0.2s ease;
}

.payment-method-card.active .payment-card-check {
    color: #10b981;
    transform: scale(1.1);
}

/* Badges de Confianza */
.checkout-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 14px;
    padding: 12px 14px;
    margin: 16px 0 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #cbd5e1;
    text-align: left;
}

.trust-badge-item i {
    color: #10b981;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Botón de Enviar Pedido por WhatsApp */
.enviarWhatsApp {
    width: 100% !important;
    height: 52px !important;
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    border: none !important;
    border-radius: 14px !important;
    color: #ffffff !important;
    font-size: 1.02rem !important;
    font-weight: 700 !important;
    font-family: 'Space Grotesk', sans-serif !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    box-shadow: 0 8px 24px -4px rgba(37, 211, 102, 0.45) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.enviarWhatsApp:active {
    transform: scale(0.98) !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3) !important;
}