/* Últimos Productos Destacados - Estilos CSS */

.ultimos-productos-destacados {
    margin: 20px 0;
}


.upd-slider-title {
    color: #ffffff;
    font-size: 1.3em;
    font-weight: 500;
    text-align: center;
    text-shadow: -3px 6px 5px black;
    width: 100%;
    /* font-family: lemon-milk; */
    font-family: LemonMilk;
    letter-spacing: 5px;
}

.upd-slider-section {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    background: #fff;
    border: 1px solid #e0e0e0;
}

.upd-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.upd-slider-title-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}



.upd-category-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.upd-category-link:hover {
    color: white;
    text-decoration: none;
    transform: translateX(3px);
}

.upd-category-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.upd-category-link:hover i {
    transform: translateX(2px);
}

.upd-slider-controls {
    display: flex;
    gap: 10px;
}

.upd-prev-btn,
.upd-next-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

.upd-prev-btn:hover,
.upd-next-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.upd-prev-btn i,
.upd-next-btn i {
    font-size: 18px;
    line-height: 1;
}

.upd-slider-container {
    left: -15%;
    position: relative;
    aspect-ratio: 1/0.7;
    top: -20%;
    width: 120%;
    rotate: 10deg;
    filter: brightness(0.8);
}

.upd-slider-fade {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upd-slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upd-slider-item.upd-active {
    opacity: 1;
    z-index: 2;
}

.upd-product-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.upd-product-link:hover {
    transform: scale(1.02);
}

.upd-product-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.upd-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.upd-product-link:hover .upd-product-image img {
    transform: scale(1.1);
}

.upd-product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.upd-product-link:hover .upd-product-info {
    transform: translateY(0);
}

.upd-product-name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.upd-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.upd-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
}

.upd-dot:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.2);
}

.upd-dot.active {
    background: white;
    border-color: white;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .upd-slider-section {
        max-width: 95vw;
        margin: 20px auto;
    }
    
    .upd-slider-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .upd-slider-title-section {
        align-items: center;
    }
    
    .upd-slider-title {
        font-size: 1.3rem;
    }
    
    .upd-category-link {
        font-size: 0.85rem;
    }
    
    .upd-slider-container {
        height: 300px;
    }
    
    .upd-product-name {
        font-size: 1rem;
    }
    
    .upd-slider-dots {
        bottom: 15px;
    }
    
    .upd-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .upd-slider-section {
        max-width: 98vw;
        margin: 15px auto;
    }
    
    .upd-slider-header {
        padding: 12px 15px;
    }
    
    .upd-slider-title {
        font-size: 15px;
        font-weight: 500;
        letter-spacing: 2px;
    }
    
    .upd-category-link {
        font-size: 0.8rem;
    }
    
    .upd-slider-container {
        height: 250px;
    }
    
    .upd-prev-btn,
    .upd-next-btn {
        width: 35px;
        height: 35px;
    }
    
    .upd-product-info {
        padding: 15px;
    }
    
    .upd-product-name {
        font-size: 0.9rem;
    }
}

/* Animaciones adicionales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upd-slider-section {
    animation: fadeInUp 0.6s ease-out;
}

/* Efectos de hover mejorados */
.upd-slider-section:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Mejoras adicionales para el botón de categoría */
.upd-category-link {
    position: relative;
    overflow: hidden;
}

.upd-category-link::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 ease;
}

.upd-category-link:hover::before {
    left: 100%;
}

/* Mejoras para los botones de navegación */
.upd-slider-controls {
    position: relative;
    z-index: 10;
}

.upd-prev-btn:active,
.upd-next-btn:active {
    transform: scale(0.95);
} 
.upd-row {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-bottom: 0;
    flex-wrap: wrap;
    align-content: stretch;
    flex-direction: row;
    align-items: baseline;
}
.upd-row .upd-slider-section {
    flex: 1 1 0;
    height: 300px;
    aspect-ratio: 1/0.5;
        height: auto;
}
@media (max-width: 900px) {
    .upd-row {
        flex-direction: row;
        gap: 8px;
        
    }
    .upd-row .upd-slider-section {
        max-width: 48vw;
        min-width: 160px;
        flex: 1 1 0;
        height: auto;
    }
    .upd-slider-section {
        height: auto !important;
    }
    .upd-slider-container {
        height: auto !important;
        min-height: 0 !important;
        padding-bottom: 0 !important;
    }
    .upd-slider-fade {
        aspect-ratio: 1 / 0.7;
        width: 100%;
        height: auto;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .upd-product-image {
        width: 100%;
        height: 100%;
        position: relative;
        overflow: hidden;
        display: block;
    }
    .upd-product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        aspect-ratio: 1 / 1;
        display: block;
    }
}
@media (max-width: 600px) {
    .upd-row .upd-slider-section {
        max-width: 49vw;
        min-width: 120px;
        padding: 0;
    }
    .upd-row {
        gap: 4px;
        margin-bottom: 0;
    }
} 

.upd-category-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.upd-category-title-link:hover {
    color: #fff;
    text-decoration: underline;
} 

.upd-product-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.upd-title-overlay {
    height: 20%;
    position: absolute;
    top: 40%;
    left: auto;
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    background: rgb(0 0 0 / 20%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(8px);
    border: solid thin #ffffff59;
    
}

