/**
 * Estilos para Sliders de Productos - Tienda Morfeo
 * Diseño premium responsive optimizado
 */

/* ============================================
   SECCIÓN DE SLIDERS
============================================ */
.productos-sliders-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    position: relative;
    overflow-x: hidden;
}

.productos-sliders-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

/* ============================================
   CONTENEDOR DE SLIDER
============================================ */
.slider-linea {
    margin-bottom: 80px;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.slider-linea:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* ============================================
   HEADER DEL SLIDER
============================================ */
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f5f5f5;
    gap: 20px;
}

.slider-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.slider-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

.slider-linea:hover .slider-icon {
    transform: scale(1.05);
}

.slider-icon.nutricion-icon {
    background: linear-gradient(135deg, #00B4A6 0%, #4CAF50 100%);
}

.slider-icon.belleza-icon {
    background: linear-gradient(135deg, #E91E63 0%, #F48FB1 100%);
}

.slider-icon.top-icon {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
}

.slider-header-text {
    flex: 1;
    min-width: 0;
}

.slider-header-text h2.slider-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.slider-header-text p.slider-subtitulo {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   NAVEGACIÓN DEL SLIDER
============================================ */
.slider-navegacion {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.slider-btn {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: white;
    color: #d4af37;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.slider-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: white;
    border-color: #d4af37;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.slider-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.slider-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    border-color: #e0e0e0;
    color: #bdbdbd;
}

/* ============================================
   CONTENEDOR Y TRACK DEL SLIDER
============================================ */
.slider-container {
    overflow: hidden;
    position: relative;
    margin: 0 -5px;
}

.slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 10px;
}

.slider-item {
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
    min-width: 260px;
}

/* ============================================
   CARDS DE PRODUCTOS EN SLIDERS
============================================ */
.producto-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #f0f0f0;
}

.producto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

/* ============================================
   SLIDER TOP 10 DESTACADO
============================================ */
.slider-top-destacado {
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    border: 2px solid #f4d03f;
}

.top-badge-title {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    margin-right: 5px;
    box-shadow: 0 2px 6px rgba(255, 165, 0, 0.3);
}

/* Ranking para Top 10 */
.producto-ranking {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: white;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
    transition: transform 0.3s ease;
}

.producto-card:hover .producto-ranking {
    transform: scale(1.1) rotate(5deg);
}

/* Medallas Top 3 */
.producto-ranking.medalla-oro {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    width: 46px;
    height: 46px;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.6);
    animation: pulseGold 2s infinite;
}

.producto-ranking.medalla-plata {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
    width: 44px;
    height: 44px;
    font-size: 18px;
    box-shadow: 0 3px 12px rgba(192, 192, 192, 0.5);
}

.producto-ranking.medalla-bronce {
    background: linear-gradient(135deg, #CD7F32 0%, #B8732E 100%);
    width: 42px;
    height: 42px;
    font-size: 17px;
    box-shadow: 0 3px 10px rgba(205, 127, 50, 0.5);
}

@keyframes pulseGold {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.6);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 215, 0, 0.9);
    }
}

/* Badge Best Seller */
.badge-mejor-vendido {
    position: absolute;
    top: 60px;
    left: 0;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 6px 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    z-index: 9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge-mejor-vendido i {
    font-size: 11px;
    animation: flame 1.5s infinite;
}

@keyframes flame {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Producto Destacado (Top 3) */
.producto-card.producto-destacado {
    border: 2px solid #FFD700;
    background: linear-gradient(135deg, #fffef8 0%, #ffffff 100%);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

.producto-card.producto-destacado:hover {
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
    transform: translateY(-8px) scale(1.02);
}

/* Texto recomendado */
.producto-recomendado {
    font-size: 13px;
    color: #27ae60;
    margin: 0 0 10px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.producto-recomendado i {
    font-size: 14px;
    color: #f39c12;
}

/* ============================================
   IMAGEN DEL PRODUCTO
============================================ */
.producto-imagen-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f8f8f8;
}

.producto-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    background: white;
}

.producto-card:hover .producto-imagen {
    transform: scale(1.08);
}

/* ============================================
   OVERLAY DE ACCIONES RÁPIDAS EN SLIDERS
   Diseño moderno con glassmorphism y micro-interacciones
============================================ */
.producto-card .tienda-overlay-acciones {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 5;
    pointer-events: none;
}

.producto-card:hover .tienda-overlay-acciones {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Botones con efecto glassmorphism */
.producto-card .tienda-boton-accion {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #2c3e50;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo en hover */
.producto-card .tienda-boton-accion::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    transition: width 0.4s ease, height 0.4s ease;
    transform: translate(-50%, -50%);
}

.producto-card .tienda-boton-accion:hover::before {
    width: 100%;
    height: 100%;
}

/* Hover con colores específicos por acción */
.producto-card .tienda-boton-accion:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.35), 0 4px 10px rgba(212, 175, 55, 0.2);
    color: white;
}

/* Botón de Ver - Azul */
.producto-card .tienda-boton-accion:nth-child(1):hover {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.35), 0 4px 10px rgba(52, 152, 219, 0.2);
}

/* Botón de Carrito - Dorado */
.producto-card .tienda-boton-accion:nth-child(2):hover {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.35), 0 4px 10px rgba(212, 175, 55, 0.2);
}

/* Botón de Favoritos - Rosa/Rojo */
.producto-card .tienda-boton-accion:nth-child(3):hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 12px 30px rgba(231, 76, 60, 0.35), 0 4px 10px rgba(231, 76, 60, 0.2);
}

/* Animación de entrada escalonada */
.producto-card:hover .tienda-boton-accion:nth-child(1) {
    animation: bounceIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.05s both;
}

.producto-card:hover .tienda-boton-accion:nth-child(2) {
    animation: bounceIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.1s both;
}

.producto-card:hover .tienda-boton-accion:nth-child(3) {
    animation: bounceIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.15s both;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.producto-card .tienda-boton-accion:active {
    transform: scale(0.92);
    transition: transform 0.1s ease;
}

/* ============================================
   BADGES DE PRODUCTOS - COMPACTO
============================================ */
.producto-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(3px);
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
    white-space: nowrap;
    width: auto;
    max-width: fit-content;
}

.producto-card:hover .producto-badge {
    opacity: 1;
    transform: scale(1.05);
}

.producto-badge i {
    font-size: 10px;
    flex-shrink: 0;
}

.producto-badge.nutricion-badge {
    background: linear-gradient(135deg, rgba(0, 180, 166, 0.95) 0%, rgba(76, 175, 80, 0.95) 100%);
}

.producto-badge.belleza-badge {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.95) 0%, rgba(244, 143, 177, 0.95) 100%);
}

.producto-badge.top-badge {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.95) 0%, rgba(247, 147, 30, 0.95) 100%);
}

/* ============================================
   INFORMACIÓN DEL PRODUCTO
============================================ */
.producto-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.producto-nombre {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 47px;
}

.producto-categoria {
    font-size: 13px;
    color: #95a5a6;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.producto-vendidos {
    font-size: 14px;
    color: #27ae60;
    margin: 0 0 10px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.producto-vendidos i {
    font-size: 13px;
}

.producto-precio {
    font-size: 26px;
    font-weight: 700;
    color: #d4af37;
    margin: 10px 0 15px 0;
}

/* ============================================
   BOTÓN AGREGAR AL CARRITO
============================================ */
.btn-agregar-carrito {
    width: 100%;
    padding: 18px 24px !important;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: auto;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.35) !important;
}

.btn-agregar-carrito:hover {
    background: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.btn-agregar-carrito:active {
    transform: translateY(0);
}

.btn-agregar-carrito i {
    font-size: 17px !important;
    color: white !important;
}

/* ============================================
   VARIANTES DE CARDS POR LÍNEA
   Cada slider mantiene su color SIEMPRE
   NO cambian con los temas
============================================ */

/* Slider de Nutrición - VERDE SIEMPRE */
.nutricion-card {
    border-top: 3px solid #00B4A6 !important;
}

.nutricion-card .producto-precio {
    color: #00B4A6 !important;
}

.nutricion-card .btn-agregar-carrito {
    background: linear-gradient(135deg, #00B4A6 0%, #4CAF50 100%) !important;
}

.nutricion-card .btn-agregar-carrito:hover {
    background: linear-gradient(135deg, #4CAF50 0%, #00B4A6 100%) !important;
    box-shadow: 0 4px 12px rgba(0, 180, 166, 0.4) !important;
}

/* Slider de Belleza - ROSA SIEMPRE */
.belleza-card {
    border-top: 3px solid #E91E63 !important;
}

.belleza-card .producto-precio {
    color: #E91E63 !important;
}

.belleza-card .btn-agregar-carrito {
    background: linear-gradient(135deg, #E91E63 0%, #F48FB1 100%) !important;
}

.belleza-card .btn-agregar-carrito:hover {
    background: linear-gradient(135deg, #F48FB1 0%, #E91E63 100%) !important;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4) !important;
}

/* Slider Top 10 - NARANJA/DORADO SIEMPRE */
.top-card {
    border-top: 3px solid #FF6B35 !important;
}

.top-card .producto-precio {
    color: #FF6B35 !important;
}

.top-card .btn-agregar-carrito {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%) !important;
}

.top-card .btn-agregar-carrito:hover {
    background: linear-gradient(135deg, #F7931E 0%, #FF6B35 100%) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4) !important;
}

/* ============================================
   ANIMACIONES
============================================ */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-linea {
    animation: slideInUp 0.5s ease backwards;
}

.slider-linea:nth-child(1) {
    animation-delay: 0.1s;
}

.slider-linea:nth-child(2) {
    animation-delay: 0.2s;
}

.slider-linea:nth-child(3) {
    animation-delay: 0.3s;
}

/* ============================================
   RESPONSIVE - TABLETS (hasta 992px)
============================================ */
@media (max-width: 992px) {
    .productos-sliders-section {
        padding: 50px 0;
    }

    .slider-linea {
        padding: 20px;
        margin-bottom: 40px;
    }

    .slider-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .slider-header-content {
        width: 100%;
        gap: 12px;
    }

    .slider-navegacion {
        width: 100%;
        justify-content: flex-end;
    }

    .slider-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 22px;
    }

    .slider-header-text h2.slider-titulo {
        font-size: 20px;
    }

    .slider-header-text p.slider-subtitulo {
        font-size: 12px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 15px;
    }

    .slider-item {
        flex: 0 0 calc(33.333% - 10px);
        max-width: calc(33.333% - 10px);
        min-width: 200px;
    }

    .producto-imagen-container {
        height: 200px;
    }

    .producto-nombre {
        font-size: 14px;
        min-height: 36px;
    }

    .producto-precio {
        font-size: 18px;
    }
}

/* ============================================
   RESPONSIVE - TABLETS PEQUEÑAS (hasta 768px)
============================================ */
@media (max-width: 768px) {
    .productos-sliders-section {
        padding: 40px 0;
    }

    .slider-linea {
        padding: 18px;
        margin-bottom: 35px;
        border-radius: 12px;
    }

    .slider-header {
        padding-bottom: 15px;
        margin-bottom: 20px;
    }

    .slider-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 20px;
        border-radius: 10px;
    }

    .slider-header-text h2.slider-titulo {
        font-size: 18px;
    }

    .slider-header-text p.slider-subtitulo {
        font-size: 11px;
    }

    .slider-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 14px;
    }

    .slider-item {
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
        min-width: 180px;
    }

    .slider-track {
        gap: 12px;
    }

    .producto-imagen-container {
        height: 200px;
    }

    .producto-info {
        padding: 15px;
    }

    .producto-nombre {
        font-size: 14px;
        min-height: 34px;
    }

    .producto-categoria {
        font-size: 10px;
    }

    .producto-precio {
        font-size: 17px;
        margin: 6px 0 10px 0;
    }

    .btn-agregar-carrito {
        padding: 14px 18px !important;
        font-size: 14px !important;
    }

    .btn-agregar-carrito i {
        font-size: 15px !important;
    }

    .producto-ranking {
        width: 30px;
        height: 30px;
        font-size: 12px;
        top: 10px;
        left: 10px;
    }

    .producto-badge {
        padding: 2px 4px;
        font-size: 6px;
        top: 5px;
        right: 5px;
        gap: 1px;
    }

    .producto-badge i {
        font-size: 6px;
    }

    .producto-card .tienda-boton-accion {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .producto-card .tienda-overlay-acciones {
        gap: 8px;
    }
}

/* ============================================
   RESPONSIVE - MÓVILES (hasta 576px)
============================================ */
@media (max-width: 576px) {
    .productos-sliders-section {
        padding: 30px 0;
    }

    .slider-linea {
        padding: 15px;
        margin-bottom: 30px;
        border-radius: 10px;
    }

    .slider-header {
        padding-bottom: 12px;
        margin-bottom: 15px;
    }

    .slider-header-content {
        gap: 10px;
    }

    .slider-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 18px;
    }

    .slider-header-text h2.slider-titulo {
        font-size: 16px;
    }

    .slider-header-text p.slider-subtitulo {
        font-size: 10px;
        display: none; /* Ocultar subtítulo en móviles pequeños */
    }

    .slider-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 13px;
    }

    .slider-item {
        flex: 0 0 100%;
        max-width: 100%;
        min-width: 100%;
    }

    .slider-track {
        gap: 10px;
    }

    .slider-container {
        margin: 0;
    }

    .producto-card {
        max-width: 100%;
        margin: 0 auto;
    }

    .producto-imagen-container {
        height: 240px;
    }

    .producto-info {
        padding: 16px;
    }

    .producto-nombre {
        font-size: 15px;
        min-height: 38px;
        -webkit-line-clamp: 2;
    }

    .producto-categoria {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .producto-vendidos {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .producto-precio {
        font-size: 19px;
        margin: 8px 0 12px 0;
    }

    .btn-agregar-carrito {
        padding: 16px 20px !important;
        font-size: 15px !important;
        gap: 9px !important;
    }

    .btn-agregar-carrito i {
        font-size: 16px !important;
    }

    .producto-ranking {
        width: 32px;
        height: 32px;
        font-size: 13px;
        top: 12px;
        left: 12px;
    }

    .producto-badge {
        padding: 2px 5px;
        font-size: 7px;
        top: 6px;
        right: 6px;
        gap: 2px;
    }

    .producto-badge i {
        font-size: 7px;
    }

    .producto-card .tienda-boton-accion {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .producto-card .tienda-overlay-acciones {
        gap: 8px;
    }
}

/* ============================================
   RESPONSIVE - MÓVILES MUY PEQUEÑOS (hasta 400px)
============================================ */
@media (max-width: 400px) {
    .productos-sliders-section {
        padding: 25px 0;
    }

    .slider-linea {
        padding: 12px;
        margin-bottom: 25px;
    }

    .slider-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 16px;
    }

    .slider-header-text h2.slider-titulo {
        font-size: 15px;
    }

    .slider-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 12px;
    }

    .producto-imagen-container {
        height: 200px;
    }

    .producto-info {
        padding: 14px;
    }

    .producto-nombre {
        font-size: 14px;
    }

    .producto-precio {
        font-size: 18px;
    }

    .btn-agregar-carrito {
        padding: 14px 18px !important;
        font-size: 14px !important;
    }

    .btn-agregar-carrito i {
        font-size: 15px !important;
    }
}

/* ============================================
   MEJORAS DE ACCESIBILIDAD
============================================ */
.slider-btn:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

.btn-agregar-carrito:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* ============================================
   OPTIMIZACIONES DE RENDIMIENTO
============================================ */
.producto-imagen {
    will-change: transform;
}

.slider-track {
    will-change: transform;
}

.producto-card {
    will-change: transform;
}

/* ============================================
   MEJORAS DE SCROLL Y CENTRADO
============================================ */

/* Espacio superior para mejor visualización al hacer scroll */
.slider-linea {
    scroll-margin-top: 100px;
}

/* Transición suave de la sección de productos */
.productos-sliders-section {
    transition: opacity 0.3s ease;
}

/* Animación de destaque cuando se filtra */
@keyframes highlightSlider {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    }
    50% {
        transform: scale(1.01);
        box-shadow: 0 20px 60px rgba(212, 175, 55, 0.2), 0 0 0 3px rgba(212, 175, 55, 0.1);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    }
}

/* Clase para aplicar el resaltado via JS */
.slider-linea.destacado {
    animation: highlightSlider 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efecto de brillo en el título cuando se filtra */
@keyframes titleGlow {
    0%, 100% {
        color: inherit;
        text-shadow: none;
    }
    50% {
        color: var(--primary-gold, #D4AF37);
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
}

.slider-titulo.resaltado {
    animation: titleGlow 1s ease;
}

/* Indicador visual de filtro activo en slider */
.slider-linea::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--primary-gold, #D4AF37) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.slider-linea.filtrado-activo::after {
    opacity: 1;
}

/* Badge de categoría filtrada */
.slider-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--primary-gold, #D4AF37) 0%, #C4991F 100%);
    color: white;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    animation: fadeInScale 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mejoras responsive para scroll */
@media (max-width: 768px) {
    .slider-linea {
        scroll-margin-top: 80px;
    }
}

@media (max-width: 480px) {
    .slider-linea {
        scroll-margin-top: 70px;
    }
}
