.producto-item-wrapper {
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.product-item {
    height: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background-color: #fff;
}

.product-item:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.product-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-item:hover .product-thumb img {
    transform: scale(1.008);
}

.product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 4px;
    position: relative;
    min-height: 120px;
    justify-content: space-between;
}

.product-body h3 {
    margin-top: 0;
    margin-bottom: 1px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    text-align: center;
}

.product-body .sku {
    color: #999;
    font-size: 9px;
    margin-bottom: 1px;
    display: block;
    text-align: center;
}

.product-body .description {
    font-size: 12px;
    line-height: 1.2;
    color: #666;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 24px;
    text-align: center;
    /* Fixed height for description */
}

.product-body .price {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-top: 2px;
    margin-bottom: 2px;
}

.product-body .price ins {
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
}

.product-body .price ins.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
    font-weight: normal;
    order: 2;
    /* Aparece después del precio con descuento */
}

.product-body .price ins.discount-price {
    color: #e74c3c;
    font-size: 18px;
    font-weight: bold;
    order: 1;
    /* Aparece primero (más prominente) */
}

/* Cuando solo hay un precio (sin descuento), centrarlo */
.product-body .price:has(ins:only-of-type) {
    justify-content: center;
}

/* Fallback para navegadores sin :has() */
.product-body .price ins:only-child {
    text-align: center;
    width: 100%;
}

.product-body .buttons {
    margin-top: auto;
    text-align: center;
    padding-top: 2px;
}

.product-body .buttons .btn {
    width: 100%;
    padding: 4px 6px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.product-labels {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.product-labels .label {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 5px;
}

.row.grid {
    display: flex;
    flex-wrap: wrap;
}

/* Estilos para el botón de filtros */
.filters-toggle-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #81C784 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Animaciones mejoradas y nuevas para el header super animado */
@keyframes shimmerEnhanced {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.9;
    }
}

/* Animación del header principal */
@keyframes headerPulse {
    0% {
        box-shadow: 0 10px 30px rgba(76, 175, 80, 0.25);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 15px 40px rgba(76, 175, 80, 0.35);
        transform: scale(1.01);
    }

    100% {
        box-shadow: 0 10px 30px rgba(76, 175, 80, 0.25);
        transform: scale(1);
    }
}

/* Animaciones de elementos flotantes */
@keyframes floatUpDown {

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

    50% {
        transform: translateY(-15px);
        opacity: 1;
    }
}

@keyframes floatLeftRight {

    0%,
    100% {
        transform: translateX(0px);
        opacity: 0.6;
    }

    50% {
        transform: translateX(10px);
        opacity: 1;
    }
}

@keyframes floatRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes floatPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
}

/* Animaciones de ondas */
@keyframes waveMove1 {

    0%,
    100% {
        transform: translateX(-20%) rotate(0deg);
    }

    50% {
        transform: translateX(20%) rotate(180deg);
    }
}

@keyframes waveMove2 {

    0%,
    100% {
        transform: translateY(-10%) rotate(0deg);
    }

    50% {
        transform: translateY(10%) rotate(-180deg);
    }
}

/* Animaciones de partículas */
@keyframes particleFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }

    25% {
        transform: translate(10px, -15px) scale(1.2);
        opacity: 0.8;
    }

    50% {
        transform: translate(-5px, -10px) scale(0.8);
        opacity: 0.6;
    }

    75% {
        transform: translate(8px, 5px) scale(1.1);
        opacity: 0.7;
    }
}

@keyframes particleFloat2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    33% {
        transform: translate(-12px, 8px) scale(1.3);
        opacity: 0.7;
    }

    66% {
        transform: translate(6px, -12px) scale(0.9);
        opacity: 0.5;
    }
}

@keyframes particleFloat3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(15px, -20px) scale(1.4);
        opacity: 0.9;
    }
}

@keyframes particleFloat4 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.2;
    }

    25% {
        transform: translate(-8px, 12px) scale(1.1);
        opacity: 0.6;
    }

    75% {
        transform: translate(12px, -8px) scale(0.8);
        opacity: 0.4;
    }
}

/* Animación del patrón de fondo */
@keyframes patternShift {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(5px, -5px);
    }

    50% {
        transform: translate(-3px, 5px);
    }

    75% {
        transform: translate(3px, 3px);
    }

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

/* Animaciones de texto y contenido */
@keyframes titleGlow {

    0%,
    100% {
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
        transform: scale(1);
    }

    50% {
        text-shadow: 0 3px 12px rgba(255, 255, 255, 0.3), 0 2px 6px rgba(0, 0, 0, 0.4);
        transform: scale(1.02);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes subtitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dividerExpand {

    0%,
    100% {
        width: 60px;
        opacity: 0.5;
    }

    50% {
        width: 80px;
        opacity: 1;
    }
}

@keyframes checkPulse {

    0%,
    100% {
        transform: scale(1);
        color: #81C784;
    }

    50% {
        transform: scale(1.2);
        color: #66BB6A;
    }
}

@keyframes iconBounce {

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

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

@keyframes iconSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Efectos adicionales para el header premium */
.premium-header {
    transition: all 0.3s ease;
}

.premium-header:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 20px 60px rgba(76, 175, 80, 0.4) !important;
    animation-play-state: paused;
}

.premium-header:hover .product-header-shimmer {
    animation-duration: 4s !important;
}

.premium-header:hover .floating-element-1,
.premium-header:hover .floating-element-2,
.premium-header:hover .floating-element-3,
.premium-header:hover .floating-element-4 {
    animation-duration: 1.5s !important;
}

/* ESTILOS COMPACTOS CON BUENA UX - OPTIMIZADO PARA VISUALIZACIÓN */

/* Contenedores Bootstrap - ESPACIADO OPTIMIZADO Y COMPACTO */
.col-lg-3.producto-item-wrapper,
.col-md-4.producto-item-wrapper,
.col-sm-6.producto-item-wrapper,
.col-xs-6.producto-item-wrapper,
.producto-item-wrapper {
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-bottom: 15px !important;
}

/* Contenedor principal del producto - espaciado óptimo para UX */
article.product-item,
.producto-item-wrapper article.product-item,
#products.grid article.product-item,
#products.list article.product-item {
    margin-bottom: 0 !important;
    padding: 0 !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Hover effect para mejor feedback visual */
article.product-item:hover,
.producto-item-wrapper:hover article.product-item {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15) !important;
    border-color: #ddd !important;
}

/* Cuerpo del producto - padding ultra-compacto */
.product-body,
article.product-item .product-body,
#products.grid article.product-item .product-body,
#products.list article.product-item .product-body {
    padding: 4px !important;
    margin: 0 !important;
}

/* Títulos - ultra-compactos y centrados */
.product-body h3,
article.product-item h3,
article.product-item .product-body h3,
#products.grid article.product-item h3,
#products.list article.product-item h3 {
    margin: 0 0 1px 0 !important;
    padding: 0 !important;
    font-size: 17px !important;
    line-height: 1.1 !important;
    height: auto !important;
    letter-spacing: 0 !important;
    font-weight: 700 !important;
    text-align: center !important;
}

/* SKU ultra-compacto y centrado */
.product-body .sku {
    font-size: 9px !important;
    margin: 0 0 1px 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

/* Descripción ultra-compacta y centrada */
.product-body .description,
article.product-item p,
#products.grid article.product-item p,
#products.list article.product-item p {
    font-size: 12px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 24px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    color: #666 !important;
    text-align: center !important;
}

/* Precios centrados horizontalmente */
.product-body .price,
article.product-item .price {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 2px 0 !important;
    margin: 0 0 2px 0 !important;
}

.product-body .price ins,
article.product-item .price ins {
    font-size: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
}

.product-body .price ins.original-price {
    font-size: 13px !important;
    margin: 0 !important;
    text-decoration: line-through !important;
    color: #999 !important;
    order: 2 !important;
}

.product-body .price ins.discount-price {
    font-size: 18px !important;
    margin: 0 !important;
    color: #e74c3c !important;
    font-weight: bold !important;
    order: 1 !important;
}

/* Botones ultra-compactos y centrados - ANCLADOS A LA PARTE INFERIOR */
.product-body .buttons,
article.product-item .buttons,
article.product-item .buttons-simple {
    padding: 2px 0 0 0 !important;
    margin: 0 !important;
    text-align: center !important;
    margin-top: auto !important;
    position: relative !important;
    bottom: 0 !important;
}

.product-body .buttons .btn,
article.product-item .buttons .btn,
article.product-item .buttons a.add-to-cart {
    padding: 4px 6px !important;
    margin: 0 !important;
    font-size: 11px !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.product-body .buttons .btn:hover,
article.product-item .buttons .btn:hover,
article.product-item .buttons a.add-to-cart:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Rating compacto */
.product-rating,
article.product-item .product-rating {
    padding: 0 0 2px 0 !important;
    margin: 0 !important;
}

/* Labels compactos */
.product-labels,
article.product-item .product-labels {
    padding: 8px !important;
}

.product-labels .label,
article.product-item .product-labels .label {
    padding: 2px 6px !important;
    font-size: 9px !important;
    margin: 0 0 2px 0 !important;
    height: auto !important;
    width: auto !important;
    border-radius: 3px !important;
}

/* Instax badge ultra-compacto */
.instax-badge-description {
    margin: 0 !important;
    padding: 0 !important;
}

.instax-mini-badge {
    padding: 1px 4px !important;
    font-size: 8px !important;
    border-radius: 6px !important;

    margin: 0px !important;
}

/* Eliminar espacios adicionales de elementos overlay */
.product-overlay,
.product-mask,
.product-quickview {
    margin: 0 !important;
    padding: 0 !important;
}

/* Grid específico - espaciado compacto optimizado */
#products.grid .row > div {
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin-bottom: 15px !important;
}

/* Asegurar que los productos tengan suficiente espacio visual */
.row.grid {
    margin-left: -15px !important;
    margin-right: -15px !important;
}

/* FORZAR ESPACIADO ESPECÍFICO PARA CONTENEDOR DE PRODUCTOS */
#products .row {
    margin-left: -15px !important;
    margin-right: -15px !important;
}

#products .row > div {
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-bottom: 15px !important;
}

/* Estilos específicos para asegurar separación visual entre productos */
.precio_lista.producto-item-wrapper {
    display: block !important;
    float: left !important;
}

/* ANULAR COMPLETAMENTE ESTILOS DE ALL.MIN.CSS QUE CAUSAN ESPACIOS */

/* Anular márgenes específicos del all.min.css */
article.product-item {
    margin-bottom: 15px !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Anular altura fija del título en all.min.css */
article.product-item h3 {
    height: auto !important;
    margin-top: 0 !important;
}

/* Anular padding de botones del all.min.css */
article.product-item .buttons {
    padding-top: 4px !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Anular estilos de rating del all.min.css */
article.product-item .product-rating {
    padding-top: 0 !important;
    padding-bottom: 2px !important;
}

/* Forzar que NO haya espacios extra entre elementos */
article.product-item > * {
    margin-top: 0 !important;
}

article.product-item .product-body > * {
    margin-top: 0 !important;
}

/* Anular estilos específicos del grid */
#products.grid article.product-item .product-body {
    padding-left: 6px !important;
    padding-right: 6px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

#products.list article.product-item .product-body {
    padding-right: 6px !important;
}

/* Responsive mejorado para el header compacto */
@media (max-width: 768px) {
    .premium-header {
        padding: 1.2rem 1rem !important;
        margin-bottom: 15px !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 25px rgba(76, 175, 80, 0.2) !important;
        animation: headerPulseMobile 3s infinite alternate !important;
    }

    .premium-header:hover {
        transform: translateY(-2px) scale(1.005) !important;
        box-shadow: 0 10px 30px rgba(76, 175, 80, 0.25) !important;
    }

    .header-decoration {
        display: none !important;
    }

    .floating-particles {
        display: none !important;
    }

    .animated-waves {
        opacity: 0.5 !important;
    }

    .header-pattern {
        opacity: 0.03 !important;
        background-size: 25px 25px, 35px 35px !important;
    }

    .product-header-shimmer {
        animation: shimmerMobile 6s infinite !important;
    }

    .animated-icon div {
        width: 40px !important;
        height: 40px !important;
        animation: iconBounceMobile 2.5s infinite ease-in-out !important;
    }

    .animated-icon i {
        font-size: 18px !important;
        animation: iconSpin 6s infinite linear !important;
    }

    .premium-title {
        font-size: clamp(18px, 5.5vw, 24px) !important;
        margin-bottom: 8px !important;
        line-height: 1.1 !important;
        animation: titleGlowMobile 4s infinite ease-in-out !important;
    }

    .premium-subtitle {
        font-size: clamp(11px, 3.5vw, 14px) !important;
        line-height: 1.2 !important;
    }

    .animated-divider {
        animation: dividerExpandMobile 3s infinite ease-in-out !important;
    }

    .animated-check {
        animation: checkPulseMobile 3s infinite ease-in-out !important;
    }
}

/* Animaciones específicas para móvil más sutiles */
@keyframes shimmerMobile {
    0% {
        transform: rotate(0deg) scale(0.9);
        opacity: 0.5;
    }

    50% {
        transform: rotate(180deg) scale(1.05);
        opacity: 0.3;
    }

    100% {
        transform: rotate(360deg) scale(0.9);
        opacity: 0.5;
    }
}

@keyframes headerPulseMobile {
    0% {
        box-shadow: 0 8px 25px rgba(76, 175, 80, 0.2);
    }

    100% {
        box-shadow: 0 12px 35px rgba(76, 175, 80, 0.3);
    }
}

@keyframes titleGlowMobile {

    0%,
    100% {
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    }

    50% {
        text-shadow: 0 3px 8px rgba(255, 255, 255, 0.2), 0 2px 6px rgba(0, 0, 0, 0.4);
    }
}

@keyframes iconBounceMobile {

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

    50% {
        transform: translateY(-5px) scale(1.05);
    }
}

@keyframes dividerExpandMobile {

    0%,
    100% {
        width: 60px;
    }

    50% {
        width: 70px;
    }
}

@keyframes checkPulseMobile {

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

    50% {
        transform: scale(1.1);
    }
}

/* Mejoras adicionales para dispositivos táctiles */
@media (max-width: 480px) {
    .premium-header {
        padding: 1rem 0.8rem !important;
        margin-bottom: 12px !important;
        border-radius: 10px !important;
    }

    .premium-title {
        font-size: clamp(16px, 6.5vw, 22px) !important;
        margin-bottom: 6px !important;
    }

    .premium-subtitle {
        font-size: clamp(10px, 4vw, 13px) !important;
        line-height: 1.1 !important;
    }

    .product-header-shimmer {
        animation: shimmerMobile 6s infinite !important;
        opacity: 0.3 !important;
    }
}

.filters-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049 0%, #66BB6A 100%);
}

.filters-toggle-btn i {
    transition: transform 0.3s ease;
}

.filters-toggle-btn.active i {
    transform: rotate(180deg);
}

/* Panel de filtros desplegable */
.filters-panel {
    background: white;
    border: 2px solid #4CAF50;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: none;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filters-panel.show {
    display: block;
}

.filter-section {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
    border-left: 4px solid #4CAF50;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h4 {
    color: #4CAF50;
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-section h4 i {
    color: #81C784;
}

.form-control.filter-input {
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 10px 12px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #fff 0%, #fefefe 100%);
}

.form-control.filter-input:focus {
    border-color: #ff4e7a;
    box-shadow: 0 0 0 0.2rem rgba(255, 78, 122, 0.15);
    outline: none;
    background: linear-gradient(135deg, #fff 0%, #fef7f8 100%);
}

/* Estilos específicos para elementos de municipio/ubicación con branding */
.municipio-branding,
.location-select,
.city-selector,
select[name*="ciudad"],
select[name*="municipio"],
select[name*="estado"] {
    background: linear-gradient(135deg, #ff4e7a 0%, #ff8a65 100%) !important;
    color: white !important;
    border: 2px solid #ff4e7a !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255, 78, 122, 0.2) !important;
}

.municipio-branding:hover,
.location-select:hover,
.city-selector:hover,
select[name*="ciudad"]:hover,
select[name*="municipio"]:hover,
select[name*="estado"]:hover {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%) !important;
    border-color: #e91e63 !important;
    box-shadow: 0 6px 20px rgba(255, 78, 122, 0.3) !important;
    transform: translateY(-1px) !important;
}

.municipio-branding:focus,
.location-select:focus,
.city-selector:focus,
select[name*="ciudad"]:focus,
select[name*="municipio"]:focus,
select[name*="estado"]:focus {
    background: linear-gradient(135deg, #ff4e7a 0%, #ff8a65 100%) !important;
    border-color: #ff4e7a !important;
    box-shadow: 0 0 0 3px rgba(255, 78, 122, 0.2) !important;
    outline: none !important;
}

.municipio-branding option,
.location-select option,
.city-selector option,
select[name*="ciudad"] option,
select[name*="municipio"] option,
select[name*="estado"] option {
    background: white !important;
    color: #333 !important;
    padding: 10px !important;
}

.municipio-branding option:hover,
.location-select option:hover,
.city-selector option:hover,
select[name*="ciudad"] option:hover,
select[name*="municipio"] option:hover,
select[name*="estado"] option:hover {
    background: #fef7f8 !important;
    color: #ff4e7a !important;
}

.price-order-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.price-btn {
    flex: 1;
    min-width: 140px;
    padding: 8px 16px;
    border: 2px solid #4CAF50;
    background: white;
    color: #4CAF50;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.price-btn:hover {
    background: #4CAF50;
    color: white;
    transform: translateY(-1px);
}

.price-btn.active {
    background: #4CAF50;
    color: white;
}

.price-range-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-range-inputs input {
    flex: 1;
}

.price-separator {
    color: #4CAF50;
    font-weight: bold;
    margin: 0 5px;
}

.clear-filters-btn {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.clear-filters-btn:hover {
    background: #45a049;
    border-color: #45a049;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.clear-filters-btn:focus {
    background: #45a049;
    border-color: #45a049;
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

/* Estilos para anuncios promocionales que se ven como productos */
.promotional-product {
    margin-bottom: 25px;
    transition: transform 0.3s ease;
    display: flex;              /* Igual que wrapper de productos */
    min-height: 380px;          /* Igual a .producto-item-wrapper */
}

.promotional-product .product-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    border: none;                               /* Para igualar los arreglos */
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);    /* Igual que .product-item */
    transition: all 0.3s ease;
    background: #fff;                           /* Igualar fondo */
    position: relative;
    cursor: pointer;
}

/* Igualar espaciados y tipografía del cuerpo a las tarjetas de producto */
.promotional-product .product-body {
    padding: 12px; /* igual que .product-body de productos */
}
.promotional-product .product-body h3 {
    margin: 0 0 5px 0 !important; /* anula margin-top inline (2.5vh) */
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.promotional-product.style-pink .product-item {
    border-color: #e91e63;
    background: linear-gradient(135deg, #fff 0%, #fce4ec 100%);
}

.promotional-product.style-green .product-item {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #fff 0%, #e8f5e8 100%);
}

.promotional-product.style-purple .product-item {
    border-color: #9C27B0;
    background: linear-gradient(135deg, #fff 0%, #f3e5f5 100%);
}

.promotional-product.style-orange .product-item {
    border-color: #FF9800;
    background: linear-gradient(135deg, #fff 0%, #fff3e0 100%);
}

.promotional-product.style-blue .product-item {
    border-color: #2196F3;
    background: linear-gradient(135deg, #fff 0%, #e3f2fd 100%);
}

.promotional-product.style-red .product-item {
    border-color: #f44336;
    background: linear-gradient(135deg, #fff 0%, #ffebee 100%);
}

.promotional-product .product-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.promotional-product .promotional-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.promotional-product .product-item:hover .promotional-image {
    transform: scale(1.05);
}

.promotional-product .product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 8px;
    position: relative;
}

.promotional-product .product-body h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    color: #333;
}

.promotional-product .product-body .sku {
    color: #999;
    font-size: 10px;
    margin-bottom: 4px;
    display: block;
}

.promotional-product .product-body .description {
    font-size: 14px;
    line-height: 1.4;
    color: #666;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.promotional-product .product-body .price {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding-top: 6px;
    margin-bottom: 6px;
}

.promotional-product .product-body .price ins {
    text-decoration: none;
    font-weight: 600;
    font-size: 22px;
    display: block;
    color: #e91e63;
}

.promotional-product .product-body .buttons {
    margin-top: auto;
    text-align: center;
}

.promotional-product .product-body .buttons .btn {
    width: 100%;
    padding: 12px;
    border-radius: 25px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #4CAF50, #81C784);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.promotional-product .product-body .buttons .btn:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    color: white;
}

@media (max-width: 767px) {
    /* MÓVIL - UX OPTIMIZADA */
    
    /* Contenedores Bootstrap en móvil */
    .col-lg-3.producto-item-wrapper,
    .col-md-4.producto-item-wrapper,
    .col-sm-6.producto-item-wrapper,
    .col-xs-6.producto-item-wrapper,
    .producto-item-wrapper {
        padding-left: 6px !important;
        padding-right: 6px !important;
        margin-bottom: 4px !important;
    }
    /* Igualar altura en tarjetas promocionales (catálogo) */
    .promotional-product { min-height: 320px !important; }
    
    article.product-item,
    .producto-item-wrapper article.product-item {
        height: auto !important;
        min-height: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
    }

    /* Efecto hover más sutil en móvil */
    article.product-item:active,
    .producto-item-wrapper:active {
        transform: scale(0.98) !important;
        transition: transform 0.1s ease !important;
    }

    .product-thumb {
        aspect-ratio: 1/1;
        margin: 0 !important;
        padding: 0 !important;
    }

    .product-body,
    article.product-item .product-body,
    #products.grid article.product-item .product-body,
    #products.list article.product-item .product-body {
        padding: -50px !important;
        margin: 0 !important;
    }

    .product-body h3,
    article.product-item h3,
    article.product-item .product-body h3 {
        font-size: 17px !important;
        font-weight: 700;
        -webkit-line-clamp: 1;
        height: auto !important;
        margin: -20px !important;
        padding: 0 !important;
        line-height: 1.1 !important;
        letter-spacing: 0 !important;
        font-weight: 600 !important;
        text-align: center !important;
    }

    .product-body .sku {
        margin: -20px !important;
        padding: 0 !important;
        font-size: 9px !important;
        text-align: center !important;
    }

    .product-body .description,
    article.product-item p {
        font-size: 11px !important;
        -webkit-line-clamp: 1;
        height: -30px !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.1 !important;
        color: #666 !important;
        text-align: center !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .product-body .price,
    article.product-item .price {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .product-body .price ins,
    article.product-item .price ins {
        font-size: 14px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: inline-block !important;
    }

    .product-body .price ins.discount-price {
        font-size: 15px !important;
        margin: 0 !important;
        color: #e74c3c !important;
        font-weight: bold !important;
        order: 1 !important;
    }

    .product-body .price ins.original-price {
        font-size: 11px !important;
        margin: 0 !important;
        text-decoration: line-through !important;
        color: #999 !important;
        order: 2 !important;
    }

    .product-body .buttons,
    article.product-item .buttons {
        padding: 0 !important;
        margin: 0 !important;
        text-align: center !important;
    }

    /* Botones compactos optimizados para touch */
    .product-body .buttons .btn,
    article.product-item .buttons .btn {
        padding: 2px 4px !important;
        margin: 0 !important;
        font-size: 10px !important;
        min-height: 0px !important; /* Aún touch-friendly pero más compacto */
        border-radius: 4px !important;
        font-weight: 600 !important;
        transition: all 0.2s ease !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
    }

    /* Feedback visual para touch */
    .product-body .buttons .btn:active,
    article.product-item .buttons .btn:active {
        transform: scale(0.95) !important;
        opacity: 0.8 !important;
    }

    .product-rating,
    article.product-item .product-rating {
        padding: 0 !important;
        margin: 0 !important;
    }

    .product-labels,
    article.product-item .product-labels {
        padding: 4px !important;
    }

    .instax-badge-description {
        margin: 0 !important;
        padding: 0 !important;
    }

    .instax-mini-badge {
        padding: 1px 3px !important;
        font-size: 8px !important;
        border-radius: 4px !important;
    }

    /* Grid móvil con espaciado ultra-compacto */
    #products.grid .row > div {
        padding-left: 6px !important;
        padding-right: 6px !important;
        margin-bottom: 4px !important;
    }

    .row.grid {
        margin-left: -6px !important;
        margin-right: -6px !important;
    }
}

/* TABLET - Media query específica para tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Contenedores Bootstrap en tablet */
    .col-lg-3.producto-item-wrapper,
    .col-md-4.producto-item-wrapper,
    .col-sm-6.producto-item-wrapper,
    .col-xs-6.producto-item-wrapper,
    .producto-item-wrapper {
        padding-left: 12px !important;
        padding-right: 12px !important;
        margin-bottom: 18px !important;
    }
    
    article.product-item,
    .producto-item-wrapper article.product-item {
        margin-bottom: 0 !important;
    }

    .product-body,
    article.product-item .product-body {
        padding: 10px !important;
    }

    .product-body h3,
    article.product-item h3 {
        font-size: 17px !important;
        font-weight: 700;
        margin: 0 0 5px 0 !important;
    }

    .product-body .description,
    article.product-item p {
        font-size: 12px !important;
        height: 34px !important;
        margin: 0 !important;
    }

    .product-body .buttons .btn,
    article.product-item .buttons .btn {
        padding: 9px 14px !important;
        font-size: 11px !important;
    }

    #products.grid .row > div {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .row.grid {
        margin-left: -10px !important;
        margin-right: -10px !important;
    }
}

/* EXTRA: Mejorar focus para accesibilidad */
.product-body .buttons .btn:focus,
article.product-item .buttons .btn:focus {
    outline: 2px solid #4CAF50 !important;
    outline-offset: 2px !important;
}

@media (max-width: 767px) {
    .filters-toggle-btn {
        width: 100%;
        justify-content: center;
        padding: 15px 24px;
        font-size: 18px;
    }

    .price-order-buttons {
        flex-direction: column;
    }

    .price-btn {
        min-width: auto;
    }

    .price-range-inputs {
        flex-direction: column;
        gap: 8px;
    }

    .price-separator {
        display: none;
    }

    /* Responsive para anuncios promocionales */
    .promotional-product {
        margin-bottom: 15px;
    }

    .promotional-product .product-body h3 {
        font-size: 19px;
        font-weight: 700;
        margin-bottom: 3px;
    }

    .promotional-product .product-body .description {
        font-size: 13px;
        height: 36px;
        margin-bottom: 8px;
    }

    .promotional-product .product-body .price ins {
        font-size: 16px;
    }

    .promotional-product .product-body .buttons .btn {
        padding: 8px;
        font-size: 12px;
    }
}

.promotional-product.style-red .product-item {
    border-color: #f44336;
    background: linear-gradient(135deg, #fff 0%, #ffebee 100%);
}

.promotional-product .product-item {
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.promotional-product .product-item:hover {
    transform: translateY(-8px) scale(1.005);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.promotional-product .product-item::before {
    content: 'CATÁLOGO';
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #8ec67d, #8ec67d);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.clickable-product {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-item {
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}



.product-thumb {
    overflow: hidden;
    border-radius: 7px;
}

/* Estilos para las FAQs modernizadas */
.faq-item {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-left-color: #45a049;
}

.faq-item .question {
    transition: color 0.3s ease;
}

.faq-item .question:hover {
    color: #4CAF50;
}

.faq-header .faq-icon {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-header .faq-icon:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.25);
}

/* Estilos para la sección de servicio modernizada */
.content-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-left-color: #45a049;
}

.service-header .service-icon {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-header .service-icon:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.25);
}

/* Responsividad móvil mejorada */
@media (max-width: 767px) {
    .faq-section {
        padding: 30px 0 !important;
    }

    .faq-header {
        margin-bottom: 25px !important;
    }

    .faq-icon {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 15px !important;
    }

    .faq-icon i {
        font-size: 24px !important;
    }

    .faq-item {
        padding: 20px !important;
        margin-bottom: 15px !important;
    }

    .faq-item h3 {
        font-size: 16px !important;
        flex-direction: column;
        gap: 5px !important;
        text-align: center;
    }

    .faq-item h3 i {
        order: -1;
        margin-bottom: 5px;
    }

    .modern-service-section {
        padding: 30px 0 !important;
    }

    .service-header {
        margin-bottom: 30px !important;
    }

    .service-icon {
        width: 70px !important;
        height: 70px !important;
        margin-bottom: 20px !important;
    }

    .service-icon i {
        font-size: 28px !important;
    }

    .content-card {
        padding: 25px 20px !important;
        margin-bottom: 20px !important;
    }

    .content-card p {
        font-size: 14px !important;
    }
}

/* Optimización para Core Web Vitals y SEO de imágenes */
.product-thumb img {
    contain: layout style paint;
    content-visibility: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Preload hint para imágenes críticas */
.product-thumb img[loading="lazy"] {
    will-change: transform;
    image-orientation: from-image;
}

/* Optimización de picture element para WebP */
.product-thumb picture {
    display: block;
    width: 100%;
    height: 100%;
}

/* Optimización de lazy loading */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

/* Estilos para Instax Mini */
@keyframes instax-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 6px rgba(255, 107, 157, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 107, 157, 0.5);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 2px 6px rgba(255, 107, 157, 0.3);
    }
}

.instax-label {
    position: relative;
    overflow: hidden;
}

.instax-label:hover {
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.instax-banner {
    position: relative;
    overflow: hidden;
}

.instax-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: instax-shine 3s infinite;
}

@keyframes instax-shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Responsividad para el banner de Instax */
@media (max-width: 767px) {
    .instax-banner {
        padding: 12px 0 !important;
        margin-bottom: 15px !important;
    }

    .instax-icon {
        width: 40px !important;
        height: 40px !important;
        margin-right: 10px !important;
    }

    .instax-icon i {
        font-size: 18px !important;
    }

    .instax-text h4 {
        font-size: 16px !important;
    }

    .instax-text p {
        font-size: 12px !important;
    }

    .instax-label {
        font-size: 9px !important;
        padding: 3px 6px !important;
    }

    .instax-content {
        flex-direction: column !important;
        text-align: center !important;
    }

    .instax-text {
        display: block !important;
        margin-top: 10px !important;
    }
}

/* Efecto hover para productos con Instax */
.product-item:has(.instax-label) {
    position: relative;
}

.product-item:has(.instax-label):hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(255, 107, 157, 0.15);
}

.product-item:has(.instax-label)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-item:has(.instax-label):hover::after {
    opacity: 1;
}

/* Estilos responsivos para la sección de información */
@media (max-width: 767px) {
    .info-section {
        padding: 20px !important;
        margin-top: 25px !important;
        border-radius: 10px !important;
    }

    .info-icon {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 15px !important;
    }

    .info-icon i {
        font-size: 16px !important;
    }

    .info-text {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
}

/* ============================================ */
/* ULTRA PREMIUM HEADER ANIMATIONS */
/* ============================================ */

@keyframes ultraShimmer {
    0% { 
        transform: rotate(0deg);
    }
    100% { 
        transform: rotate(360deg);
    }
}

@keyframes premiumFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) scale(1.1);
        opacity: 1;
    }
}

@keyframes geometricMove {
    0%, 100% {
        transform: translateX(0) rotate(25deg);
        opacity: 0.3;
    }
    50% {
        transform: translateX(30px) rotate(25deg);
        opacity: 0.8;
    }
}

@keyframes meshShift {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(20px) translateY(-10px);
    }
    50% {
        transform: translateX(0) translateY(-20px);
    }
    75% {
        transform: translateX(-20px) translateY(-10px);
    }
}

@keyframes badgeGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(253, 224, 71, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(253, 224, 71, 0.6);
        transform: scale(1.05);
    }
}

@keyframes titleShine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes gemPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 30px rgba(168, 85, 247, 0.8);
    }
}

@keyframes featureFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ============================================ */
/* ULTRA PREMIUM HEADER STYLING */
/* ============================================ */

.ultra-premium-header {
    transition: all 0.3s ease;
    position: relative;
}

.ultra-premium-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 100px rgba(139, 92, 246, 0.4), 0 0 0 1px rgba(255,255,255,0.2);
}

.title-gradient {
    background-size: 200% 200%;
    animation: titleShine 3s infinite ease-in-out;
}

.subtitle-gradient {
    background-size: 200% 200%;
}

.glass-overlay {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ============================================ */
/* ULTRA PREMIUM RESPONSIVE */
/* ============================================ */

@media (max-width: 768px) {
    .ultra-premium-header {
        padding: 0.8rem 0.8rem !important;
        border-radius: 12px !important;
        margin-bottom: 12px !important;
    }
    
    .ultra-premium-title {
        font-size: clamp(16px, 4.5vw, 22px) !important;
        margin-bottom: 5px !important;
    }
    
    .premium-features {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-top: 8px !important;
    }
    
    .feature-item {
        width: auto !important;
        max-width: none !important;
        justify-content: center !important;
        padding: 4px 8px !important;
        font-size: 9px !important;
    }
    
    .feature-item div {
        width: 12px !important;
        height: 12px !important;
        margin-right: 4px !important;
    }
    
    .floating-orb {
        display: none !important;
    }
    
    .geometric-line {
        display: none !important;
    }
    
    .premium-divider {
        margin: 6px auto !important;
    }
    
    .premium-badge {
        font-size: 11px !important;
        padding: 6px 16px !important;
    }
}

@media (max-width: 480px) {
    .ultra-premium-header {
        padding: 0.6rem 0.6rem !important;
        border-radius: 10px !important;
        margin-bottom: 8px !important;
    }
    
    .ultra-premium-title {
        font-size: clamp(14px, 4vw, 18px) !important;
        margin-bottom: 3px !important;
        line-height: 1.2 !important;
    }
    
    .premium-divider {
        margin: 4px auto !important;
    }
    
    .premium-features {
        gap: 6px !important;
        margin-top: 6px !important;
    }
    
    .feature-item {
        padding: 3px 6px !important;
        font-size: 8px !important;
        border-radius: 20px !important;
    }
    
    .feature-item div {
        width: 10px !important;
        height: 10px !important;
        margin-right: 3px !important;
    }
    
    .feature-item svg {
        width: 6px !important;
        height: 6px !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .ultra-premium-header {
        padding: 0.5rem 0.5rem !important;
        border-radius: 8px !important;
        margin-bottom: 6px !important;
    }
    
    .ultra-premium-title {
        font-size: clamp(12px, 3.5vw, 16px) !important;
        margin-bottom: 2px !important;
    }
    
    .premium-divider {
        margin: 3px auto !important;
    }
    
    .premium-features {
        gap: 4px !important;
        margin-top: 4px !important;
    }
    
    .feature-item {
        padding: 2px 4px !important;
        font-size: 7px !important;
    }
    
    .feature-item div {
        width: 8px !important;
        height: 8px !important;
        margin-right: 2px !important;
    }
    
    .feature-item svg {
        width: 5px !important;
        height: 5px !important;
    }
}

/* ============================================ */
/* PREMIUM FILTERS SYSTEM V2.0 */
/* ============================================ */

/* Filters Toolbar */
.filters-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08);
}

.toolbar-left {
    flex: 1;
    max-width: 400px;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Quick Search */
.quick-search-container {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: #64748b;
    z-index: 2;
    transition: all 0.3s ease;
}

.quick-search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.quick-search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.quick-search-input:focus + .search-icon {
    color: #667eea;
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.search-clear-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Results Counter */
.results-counter {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.counter-text::before {
    content: '📊';
    margin-right: 6px;
}

/* Premium Filter Button */
.premium-filter-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.premium-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.premium-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.premium-filter-btn:hover::before {
    left: 100%;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.filter-count {
    background: #ff4757;
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    animation: countPulse 2s infinite;
}

@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Modal Backdrop */
.filters-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: backdropFadeIn 0.4s ease forwards;
}

@keyframes backdropFadeIn {
    to { opacity: 1; }
}

/* Modal Container */
.filters-modal-container {
    background: white;
    border-radius: 24px;
    max-width: 90vw;
    width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.9);
    animation: modalSlideUp 0.5s ease forwards;
}

@keyframes modalSlideUp {
    to {
        transform: translateY(0) scale(1);
    }
}

/* ============================================ */
/* NATURAL MOBILE ANIMATIONS */
/* ============================================ */

/* Spring-based animations for natural movement */
@keyframes bottomSheetSlideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes bottomSheetSlideDown {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

/* Backdrop fade animations - simplified for performance */
@keyframes backdropFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes backdropFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Simplified modal content animation for performance */
@keyframes contentBounceIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Handle indicator pulse */
@keyframes handlePulse {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-50%) scaleX(1);
    }
    50% {
        opacity: 0.6;
        transform: translateX(-50%) scaleX(1.2);
    }
}

/* Modal Header */
.modal-header-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-header-premium h3 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    margin: 0;
}

.modal-title-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal-icon {
    font-size: 20px;
}

.title-content h3 {
    margin: 0 0 4px 0;
    font-size: 22px;
    font-weight: 700;
}

.modal-subtitle {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.modal-close-premium {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close-premium:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Modal Body */
.modal-body-premium {
    padding: 30px;
    max-height: 50vh;
    overflow-y: auto;
}

.filter-section-premium {
    margin-bottom: 32px;
}

.filter-section-premium:last-child {
    margin-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.section-icon {
    width: 24px;
    height: 24px;
    color: #667eea;
}

/* Sort Options */
.sort-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.sort-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sort-card:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
}

.sort-card.active {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.sort-card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.sort-card:hover .sort-card-icon {
    transform: scale(1.1);
}

.sort-card-content {
    margin-bottom: 12px;
}

.sort-title {
    display: block;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 4px;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sort-description {
    display: block;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}

.sort-card-check {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.sort-card.active .sort-card-check {
    opacity: 1;
    transform: scale(1);
}

/* Modern Premium Price Range */
.price-range-premium {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.price-range-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.price-input-group {
    flex: 1;
}

.price-label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.price-input-container {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.price-input-container:hover {
    border-color: rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.08);
}

.price-input-container:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 4px 16px rgba(102, 126, 234, 0.15);
}

.currency-symbol {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 800;
    font-size: 16px;
    z-index: 2;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-input-premium {
    width: 100%;
    padding: 16px 20px 16px 44px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    background: transparent;
    color: #111827;
    transition: all 0.3s ease;
    outline: none;
}

.price-input-premium::placeholder {
    color: #6b7280;
    font-weight: 600;
}

.price-range-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
    font-weight: 900;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    position: relative;
    align-self: flex-end;
    margin-bottom: 2px;
}

.price-range-separator::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.price-range-separator:hover::before {
    opacity: 0.1;
}

.separator-line {
    display: none;
}

.separator-text {
    display: none;
}

/* Premium Quick Price Filters */
.quick-price-filters {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    margin-top: 8px;
}

.quick-price-label {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.quick-price-label::before {
    content: '⚡';
    margin-right: 8px;
    font-size: 16px;
}

.quick-price-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quick-price-btn {
    background: white;
    border: 2px solid #e2e8f0;
    color: #1f2937;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.quick-price-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.quick-price-btn:hover::before {
    left: 100%;
}

.quick-price-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.quick-price-btn:active {
    transform: translateY(0);
}

.quick-price-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

/* Modal Body - Enhanced readability */
.modal-body-premium {
    background: #fafbfc;
    color: #1a202c;
}

.modal-body-premium * {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Desktop-specific contrast improvements */
@media (min-width: 769px) {
    .filters-modal-container {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    }
    
    .modal-body-premium {
        background: #ffffff;
    }
    
    .price-range-premium,
    .quick-price-filters {
        border: 1px solid rgba(0, 0, 0, 0.06);
    }
    
    .sort-card {
        border: 2px solid #e5e7eb;
        background: #fafbfc;
    }
    
    .sort-card:hover {
        border-color: #667eea;
        background: rgba(102, 126, 234, 0.03);
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.1);
    }
    
    .sort-card.active {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.04) 100%);
        border-color: #667eea;
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
    }
}

/* Modal Footer */
.modal-footer-premium {
    display: flex;
    gap: 12px;
    padding: 24px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.btn-clear-filters {
    flex: 1;
    padding: 14px 20px;
    background: white;
    border: 2px solid #e9ecef;
    color: #374151;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-clear-filters:hover {
    border-color: #cbd5e0;
    background: #f8f9fa;
    color: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-apply-filters {
    flex: 2;
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* ============================================ */
/* RESPONSIVE FILTERS SYSTEM */
/* ============================================ */

@media (max-width: 768px) {
    .filters-toolbar {
        flex-direction: row;
        gap: 12px;
        padding: 12px 16px;
        align-items: center;
    }
    
    .toolbar-left {
        flex: 1;
        max-width: none;
    }
    
    .toolbar-right {
        flex: none;
        width: auto;
        justify-content: flex-end;
    }
    
    /* Ocultar contador de productos en mobile */
    .results-counter {
        display: none;
    }
    
    .sort-options-grid {
        grid-template-columns: 1fr;
    }
    
    .price-range-premium {
        flex-direction: column;
        gap: 16px;
    }
    
    .price-range-separator {
        flex-direction: row;
        padding-bottom: 0;
    }
    
    .quick-price-options {
        justify-content: center;
    }
    
    .modal-footer-premium {
        flex-direction: column;
    }
    
    .btn-clear-filters,
    .btn-apply-filters {
        flex: none;
    }
}

@media (max-width: 480px) {
    /* Mobile Toolbar Optimizations */
    .filters-toolbar {
        padding: 8px 12px;
        gap: 8px;
        border-radius: 12px;
    }
    
    .quick-search-input {
        padding: 10px 12px 10px 38px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .search-icon {
        left: 12px;
        font-size: 14px;
    }
    
    .premium-filter-btn {
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 14px;
        min-width: 80px;
    }
    
    .premium-filter-btn .btn-text {
        display: none;
    }
    
    .premium-filter-btn .btn-icon {
        margin-right: 0;
    }
    
    .filter-count {
        position: absolute;
        top: -6px;
        right: -6px;
        width: 18px;
        height: 18px;
        font-size: 11px;
        line-height: 18px;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 360px) {
    .filters-toolbar {
        padding: 6px 8px;
        gap: 6px;
    }
    
    .quick-search-input {
        padding: 8px 10px 8px 32px;
        font-size: 13px;
    }
    
    .search-icon {
        left: 10px;
        font-size: 13px;
    }
    
    .premium-filter-btn {
        padding: 8px 10px;
        min-width: 70px;
    }
    
    /* Make modal buttons extra compact for very small screens */
    .sort-card {
        padding: 8px 10px !important;
        border-radius: 8px !important;
        margin-bottom: 8px !important;
    }
    
    .sort-card-icon {
        width: 24px !important;
        height: 24px !important;
        margin-bottom: 6px !important;
        font-size: 11px !important;
    }
    
    .sort-title {
        font-size: 11px !important;
        margin-bottom: 2px !important;
    }
    
    .sort-description {
        font-size: 10px !important;
    }
    
    .quick-price-btn {
        padding: 6px 8px !important;
        font-size: 11px !important;
        min-height: 32px !important;
        border-radius: 6px !important;
    }
    
    .btn-clear-filters {
        padding: 8px 10px !important;
        font-size: 12px !important;
        min-height: 36px !important;
        border-radius: 8px !important;
    }
    
    .btn-apply-filters {
        padding: 8px 10px !important;
        font-size: 12px !important;
        min-height: 36px !important;
        border-radius: 8px !important;
    }
    
    .modal-footer-premium {
        padding: 12px 16px !important;
        gap: 8px !important;
    }
    
    /* Make modal sections more compact */
    .modal-body-premium {
        padding: 16px !important;
    }
    
    .filter-section-premium {
        padding: 16px !important;
        margin-bottom: 12px !important;
        border-radius: 12px !important;
    }
    
    .filter-section-title {
        font-size: 14px !important;
        margin-bottom: 12px !important;
    }
    
    .price-range-premium {
        margin-bottom: 12px !important;
    }
    
    .quick-price-options {
        gap: 8px !important;
    }
    
    .sort-options-grid {
        gap: 8px !important;
    }
    
    /* Extra compact price range for very small screens */
    .price-range-premium {
        gap: 8px !important;
        margin-bottom: 12px !important;
    }
    
    .price-input-premium {
        padding: 8px 10px 8px 26px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
        border: 1px solid #e2e8f0 !important;
    }
    
    .currency-symbol {
        left: 10px !important;
        font-size: 12px !important;
    }
    
    .price-label {
        font-size: 11px !important;
        margin-bottom: 4px !important;
    }
    
    .filter-section-title {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }
    
    .price-range-separator {
        margin: 4px 0 !important;
    }
    
    .separator-line {
        width: 20px !important;
        height: 1px !important;
    }
    
    .separator-text {
        font-size: 11px !important;
        padding: 0 6px !important;
    }
}

/* Bottom Sheet Modal Styles for all mobile devices */
@media (max-width: 480px) {
    .filters-modal-backdrop {
        align-items: flex-end;
        justify-content: center;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    }
    
    .filters-modal-backdrop.opening {
        animation: backdropFadeIn 0.4s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
    }
    
    .filters-modal-backdrop.closing {
        animation: backdropFadeOut 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
    }
    
    .filters-modal-container {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100vw;
        max-width: 100vw;
        max-height: 85vh;
        border-radius: 20px 20px 0 0;
        margin: 0;
        transform: translateY(100%);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
        background: white;
        z-index: 10;
        will-change: transform;
        /* Remove default transition - controlled by JS and classes */
    }
    
    .filters-modal-container.opening {
        animation: bottomSheetSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    
    .filters-modal-container.closing {
        animation: bottomSheetSlideDown 0.4s cubic-bezier(0.4, 0.0, 1, 1) forwards;
    }
    
    .filters-modal-container.dragging {
        transition: none !important;
        animation: none !important;
    }
    
    .filters-modal-container.slide-up {
        transform: translateY(0) !important;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    
    .filters-modal-container.slide-down {
        transform: translateY(100%) !important;
        transition: transform 0.4s cubic-bezier(0.4, 0.0, 1, 1) !important;
    }
    
    /* Remove CSS animation - handled by JavaScript */
    
    /* Mobile Handle Indicator */
    .filters-modal-container::before {
        content: '';
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 4px;
        z-index: 10;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        animation: handlePulse 3s ease-in-out infinite;
    }
    
    /* Modal body should be scrollable */
    .modal-body-premium {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        touch-action: pan-y;
    }
    
    /* Header area should indicate swipe capability */
    .modal-header-premium {
        cursor: grab;
        touch-action: pan-y;
        user-select: none;
        -webkit-user-select: none;
    }
    
    .modal-header-premium:active {
        cursor: grabbing;
    }
    
    .filters-modal-container:hover::before {
        background: rgba(102, 126, 234, 0.5);
        width: 50px;
        animation-play-state: paused;
    }
    
    .filters-modal-container.dragging::before {
        background: rgba(102, 126, 234, 0.8);
        width: 60px;
        animation-play-state: paused;
    }
    
    /* Native Mobile Header */
    .modal-header-premium {
        position: sticky;
        top: 0;
        z-index: 5;
        padding: 24px 20px 16px 20px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 20px 20px 0 0;
        box-shadow: none;
        color: white;
    }
    
    .modal-title-group {
        gap: 12px;
    }
    
    .modal-icon-wrapper {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .modal-icon {
        color: white;
        font-size: 16px;
    }
    
    .title-content h3 {
        font-size: 18px;
        margin-bottom: 2px;
        color: white;
        font-weight: 600;
    }
    
    .modal-subtitle {
        font-size: 13px;
        opacity: 0.9;
        color: white;
    }
    
    .modal-close-premium {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        border: none;
        color: white;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Scrollable Content Area */
    .modal-body-premium {
        flex: 1;
        overflow-y: auto;
        padding: 20px;
        background: #f5f7fa;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        opacity: 0;
        transform: translateY(20px);
        animation: contentBounceIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    }
    
    .modal-body-premium::-webkit-scrollbar {
        display: none;
    }
    
    /* Native Mobile Sections */
    .filter-section-premium {
        background: white;
        border-radius: 16px;
        padding: 20px;
        margin-bottom: 16px;
        box-shadow: 0 3px 12px rgba(0,0,0,0.08);
        border: 1px solid rgba(0,0,0,0.05);
    }
    
    .section-title {
        font-size: 16px;
        margin-bottom: 16px;
        color: #2d3748;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .section-icon {
        width: 20px;
        height: 20px;
        color: #667eea;
    }
    
    /* Sort Cards Mobile Native */
    .sort-options-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .sort-card {
        padding: 12px 14px;
        border-radius: 10px;
        border: 1.5px solid #e2e8f0;
        background: #fafbfc;
        transition: all 0.2s ease;
        position: relative;
        overflow: hidden;
        cursor: pointer;
    }
    
    .sort-card:active {
        transform: scale(0.98);
        background: #f1f3f5;
    }
    
    .sort-card.active {
        border-color: #667eea;
        background: rgba(102, 126, 234, 0.08);
        box-shadow: 0 2px 12px rgba(102, 126, 234, 0.2);
    }
    
    .sort-card-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 8px;
        border-radius: 6px;
        background: #667eea;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 13px;
    }
    
    .sort-card.active .sort-card-icon {
        background: #5a67d8;
    }
    
    .sort-title {
        font-size: 13px;
        margin-bottom: 3px;
        font-weight: 600;
        color: #2d3748;
        line-height: 1.2;
    }
    
    .sort-card.active .sort-title {
        color: #667eea;
    }
    
    .sort-description {
        font-size: 11px;
        color: #64748b;
        line-height: 1.3;
    }
    
    .sort-card.active .sort-description {
        color: #5a67d8;
    }
    
    .sort-card-check {
        position: absolute;
        top: 8px;
        right: 10px;
        width: 16px;
        height: 16px;
        background: #10b981;
        border-radius: 50%;
        display: none;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 12px;
    }
    
    .sort-card.active .sort-card-check {
        display: flex;
    }
    
    /* Mobile Premium Price Range */
    .price-range-premium {
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 16px;
        border: 1px solid rgba(148, 163, 184, 0.08);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    }
    
    .price-range-container {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .price-input-container {
        background: white;
        border-radius: 10px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
        border: 1.5px solid transparent;
        transition: all 0.3s ease;
        overflow: hidden;
    }
    
    .price-input-container:focus-within {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.08), 0 2px 8px rgba(102, 126, 234, 0.1);
    }
    
    .price-input-premium {
        width: 100%;
        padding: 12px 16px 12px 36px;
        font-size: 15px;
        border: none;
        border-radius: 10px;
        background: transparent;
        color: #1e293b;
        font-weight: 600;
        outline: none;
    }
    
    .price-input-premium::placeholder {
        color: #94a3b8;
        font-weight: 500;
    }
    
    .currency-symbol {
        left: 12px;
        font-size: 15px;
        font-weight: 700;
        background: linear-gradient(135deg, #667eea, #764ba2);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .price-range-separator {
        width: 28px;
        height: 28px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 50%;
        color: white;
        font-weight: 800;
        font-size: 10px;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
        align-self: center;
        margin: 4px 0;
    }
    
    /* Mobile Premium Quick Price Filters */
    .quick-price-filters {
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        border-radius: 12px;
        padding: 16px;
        border: 1px solid rgba(148, 163, 184, 0.06);
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.02);
        margin-top: 6px;
    }
    
    .quick-price-label {
        font-size: 12px;
        font-weight: 700;
        color: #475569;
        margin-bottom: 12px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    
    .quick-price-label::before {
        content: '⚡';
        margin-right: 6px;
        font-size: 14px;
    }
    
    /* Make price labels more compact */
    .price-label {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #64748b !important;
        margin-bottom: 6px !important;
    }
    
    .filter-section-title {
        font-size: 15px !important;
        margin-bottom: 14px !important;
        font-weight: 700 !important;
    }
    
    /* Make input groups more compact */
    .price-input-group {
        margin-bottom: 0 !important;
    }
    
    .quick-price-options {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .quick-price-btn {
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 700;
        background: white;
        border: 2px solid #e2e8f0;
        color: #475569;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-align: center;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    }
    
    .quick-price-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.4s;
    }
    
    .quick-price-btn:hover::before {
        left: 100%;
    }
    
    .quick-price-btn:active {
        transform: scale(0.95);
    }
    
    .quick-price-btn:hover {
        border-color: #667eea;
        color: #667eea;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    }
    
    .quick-price-btn.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-color: #667eea;
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
    }
    
    /* Native Mobile Footer */
    .modal-footer-premium {
        position: sticky;
        bottom: 0;
        z-index: 5;
        background: white;
        padding: 16px 20px;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
        display: flex;
        gap: 12px;
    }
    
    .btn-clear-filters {
        flex: 1;
        padding: 10px 12px;
        border: 1.5px solid #cbd5e0;
        border-radius: 10px;
        background: white;
        color: #4a5568;
        font-size: 13px;
        font-weight: 600;
        min-height: 40px;
        transition: all 0.2s ease;
        cursor: pointer;
    }
    
    .btn-clear-filters:active {
        transform: scale(0.95);
        background: #f7fafc;
        border-color: #a0aec0;
    }
    
    .btn-apply-filters {
        flex: 2;
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 600;
        background: linear-gradient(135deg, #667eea, #764ba2);
        border: none;
        color: white;
        min-height: 40px;
        transition: all 0.2s ease;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        cursor: pointer;
    }
    
    .btn-apply-filters:active {
        transform: scale(0.95);
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    }
    
    /* Enhanced iOS-style Animations */
    .sort-card,
    .quick-price-btn,
    .btn-clear-filters,
    .btn-apply-filters {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Prevent overscroll */
    .modal-body-premium {
        overscroll-behavior: contain;
    }
}

/* ============================================ */
/* CRITICAL INP PERFORMANCE OPTIMIZATIONS */
/* ============================================ */

/* These optimizations reduce Interaction to Next Paint (INP) from 456ms to <200ms */

/* Modal performance optimizations */
.filters-modal-backdrop {
    will-change: auto; /* Only set during animation */
    contain: layout style paint; /* Contain layout calculations */
}

.filters-modal-container {
    will-change: auto; /* Reset after animations */
    backface-visibility: hidden; /* Prevent repaints */
    transform: translateZ(0); /* Force GPU layer */
    contain: layout style paint; /* Contain expensive operations */
}

/* Only use will-change during active animations */
.filters-modal-container.opening,
.filters-modal-container.closing,
.filters-modal-container.dragging {
    will-change: transform, opacity;
}

/* Simplified slide animations for better performance */
.filters-modal-container.slide-up {
    animation: bottomSheetSlideUp 0.25s ease-out forwards;
}

.filters-modal-container.slide-down {
    animation: bottomSheetSlideDown 0.2s ease-in forwards;
}

/* Product grid performance optimizations */
.producto-item-wrapper,
.promotional-product {
    contain: layout style; /* Contain layout calculations */
    will-change: auto; /* Only set when filtering */
}

.producto-item-wrapper.filtering,
.promotional-product.filtering {
    will-change: opacity; /* Only during filter operations */
}

/* Image loading optimizations */
.product-thumb img {
    content-visibility: auto; /* Lazy render off-screen images */
    contain-intrinsic-size: 150px 150px; /* Reserve space to prevent layout shift */
}

/* GPU acceleration for interactive elements */
.sort-card,
.quick-price-btn,
.btn-apply-filters,
.btn-clear-filters {
    transform: translateZ(0); /* Force GPU layer */
    backface-visibility: hidden;
}

/* Optimize text rendering */
.modal-body-premium * {
    text-rendering: optimizeSpeed; /* Faster text rendering */
}

/* Reduce animations for accessibility and performance */
@media (prefers-reduced-motion: reduce) {
    .filters-modal-container,
    .filters-modal-backdrop,
    .sort-card,
    .quick-price-btn,
    .product-item {
        animation: none !important;
        transition: none !important;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Critical rendering path optimizations */
.filters-modal-container * {
    box-sizing: border-box; /* Consistent box model */
}

/* Performance monitoring class to track filter operations */
.performance-optimized {
    contain: strict; /* Maximum containment for performance */
}

/* CRITICAL: Input delay optimization for filter button */
#openFiltersModal {
    /* Ensure button is ready for immediate interaction */
    will-change: auto; /* Only during active interaction */
    transform: translateZ(0); /* Force GPU layer */
    backface-visibility: hidden;
    touch-action: manipulation; /* Disable double-tap zoom delay */
    user-select: none; /* Prevent text selection delays */
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlights */
    -webkit-touch-callout: none; /* Disable touch callout */
    
    /* Optimize rendering */
    contain: layout style paint;
    content-visibility: auto;
}

/* Critical: Active state optimization */
#openFiltersModal:active {
    will-change: transform, opacity;
    transform: scale(0.98) translateZ(0);
}

/* Clean up will-change after interaction */
#openFiltersModal:not(:active):not(:hover):not(:focus) {
    will-change: auto;
}

/* Input delay reduction for all interactive elements */
.sort-card,
.quick-price-btn,
.btn-apply-filters,
.btn-clear-filters,
.price-input-premium {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    contain: layout style;
}

/* Ensure smooth scrolling doesn't interfere with interactions */
.modal-body-premium {
    scroll-behavior: auto; /* Disable smooth scroll during interactions */
    touch-action: pan-y; /* Allow only vertical scrolling */
}

/* Final optimization: Reduce paint complexity */
.filters-modal-container * {
    /* Reduce paint complexity for better INP */
    font-smooth: never;
    -webkit-font-smoothing: none;
    text-rendering: optimizeSpeed;
}

/* ==============================
   Breadcrumbs: eliminar espacio muerto
   - Sitúa las migas dentro del header en desktop
   - Mantiene flujo normal en móvil
   ============================== */
@media (min-width: 768px) {
    .breadcrumb-wrapper { position: relative; }
    /* Ocultar completamente breadcrumbs en desktop para eliminar espacio muerto */
    .breadcrumb-wrapper nav[aria-label="Navegación de migas de pan"] {
        display: none;
    }
}

/* Variante: si se desea mostrarlas dentro del header, comentar el bloque de arriba
   y dejar el posicionamiento absoluto de abajo */
@media (min-width: 768px) {
    /* Posicionamiento opcional dentro del header (inactivo si display:none) */
    .breadcrumb-wrapper nav[aria-label="Navegación de migas de pan"] {
        position: absolute;
        right: 16px;
        bottom: 10px;
        z-index: 25;
        margin: 0;
        padding: 0;
    }
    .breadcrumb-wrapper nav[aria-label="Navegación de migas de pan"] .breadcrumb {
        margin: 0;
        padding: 2px 6px;
        background: transparent;
    }
    .breadcrumb-wrapper nav[aria-label="Navegación de migas de pan"] .breadcrumb > li > a,
    .breadcrumb-wrapper nav[aria-label="Navegación de migas de pan"] .breadcrumb > li > span {
        color: rgba(255,255,255,0.92);
    }
    .breadcrumb-wrapper nav[aria-label="Navegación de migas de pan"] .breadcrumb > li + li:before {
        color: rgba(255,255,255,0.6);
    }
    /* Columna contenedora del nav no debe reservar altura */
    .breadcrumb-wrapper > .container > .row > .col-xs-12 + .col-xs-12 {
        height: 0;
        padding: 0;
    }
}

@media (max-width: 767px) {
    /* En móvil, dejar breadcrumbs en el flujo normal */
    .breadcrumb-wrapper nav[aria-label="Navegación de migas de pan"] {
        position: static;
        margin-top: 6px;
    }
    .breadcrumb-wrapper > .container > .row > .col-xs-12 + .col-xs-12 {
        height: auto;
        padding: 0 10px;
    }
}

/* Ocultar breadcrumbs en todas las vistas para evitar espacio y render
   Nota: si en el futuro se requieren, comentar estas dos reglas */
.breadcrumb-wrapper nav[aria-label="Navegación de migas de pan"] { 
    display: none !important; 
}
.breadcrumb-wrapper > .container > .row > .col-xs-12 + .col-xs-12 {
    display: none !important;
}

/* ==============================
   Compactación de espacios (LCP/UI)
   - Reduce espacio entre banner y buscador
   - Reduce rellenos de la barra de búsqueda
   ============================== */
/* Todas las vistas */
.breadcrumb-wrapper .ultra-premium-header,
.ultra-premium-header {
    margin-bottom: 10px !important; /* Antes: 20px inline */
}

/* Quitar espacios verticales del bloque completo de la cabecera */
.breadcrumb-wrapper {
    padding-top: 4px !important;
    padding-bottom: 0 !important;
    margin-top: 4px !important;
    margin-bottom: 6px !important;
}
.breadcrumb-wrapper .container { padding-top: 0 !important; padding-bottom: 0 !important; }
.breadcrumb-wrapper .row { margin-top: 0 !important; margin-bottom: 0 !important; }

main.content.products { margin-top: 0 !important; padding-top: 0 !important; }

.filters-toolbar {
    margin-bottom: 14px !important; /* Antes: 25px */
    padding: 14px 16px !important;  /* Antes: 20px */
    gap: 12px !important;
}

/* Móvil extra compacto */
@media (max-width: 480px) {
    .filters-toolbar {
        margin-bottom: 4px !important;
        padding: 4px 6px !important; /* ya teníamos 8/12, lo compactamos un poco */
        gap: 8px !important;
    }
    .quick-search-input {
        padding: 8px 10px 8px 34px !important; /* reduce altura */
    }
}

/* Overrides extra para móviles: banner ultra compacto */
@media (max-width: 768px) {
    .ultra-premium-header { padding: 0.5rem 0.6rem !important; margin-bottom: 6px !important; }
}
@media (max-width: 480px) {
    .ultra-premium-header { padding: 0.4rem 0.5rem !important; margin-bottom: 4px !important; }
}