/* ========== PRODUCTOS DESTACADOS ========== */
.productos-destacados {
    background-color: #fff;
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
}

/* Línea superior decorativa */
.productos-destacados::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c 0%, #f39c12 50%, #e74c3c 100%);
}

/* ========== HEADER CON LÍNEAS ========== */
.destacados-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 46px;
}

.linea-roja {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #e74c3c 50%, transparent 100%);
    border-radius: 2px;
}

.titulo-destacados {
    font-family: 'Barlow Condensed', 'Oswald', 'Impact', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: #000;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

/* ========== WRAPPER ========== */
.destacados-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ========== BOTONES ========== */
.slider-btn {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease, opacity 0.25s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    z-index: 10;
}

.slider-btn:hover {
    background: #e74c3c;
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(231,76,60,0.4);
}

.slider-btn:active {
    transform: scale(0.94);
}

.slider-btn svg {
    width: 22px;
    height: 22px;
}

/* Estado deshabilitado */
.slider-btn[disabled],
.slider-btn.disabled {
    opacity: 0.28;
    pointer-events: none;
}

/* ========== SLIDER ========== */
.destacados-slider {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 8px 24px;
    flex: 1;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.destacados-slider::-webkit-scrollbar { display: none; }
.destacados-slider:active { cursor: grabbing; }

/* ========== CARD ========== */
.producto-destacado-card {
    flex-shrink: 0;
    width: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
    opacity: 0;
    animation: slideInUp 0.5s ease forwards;
}

.producto-destacado-card:hover {
    transform: translateY(-10px);
}

/* Delays de entrada */
.producto-destacado-card:nth-child(1) { animation-delay: 0.05s; }
.producto-destacado-card:nth-child(2) { animation-delay: 0.12s; }
.producto-destacado-card:nth-child(3) { animation-delay: 0.19s; }
.producto-destacado-card:nth-child(4) { animation-delay: 0.26s; }
.producto-destacado-card:nth-child(5) { animation-delay: 0.33s; }
.producto-destacado-card:nth-child(6) { animation-delay: 0.40s; }

/* ========== IMAGEN ========== */
.producto-destacado-img {
    position: relative;
    width: 210px;
    height: 210px;
}

.imagen-circular {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0,0,0,0.16);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: 5px solid #fff;
    position: relative;
}

.producto-destacado-card:hover .imagen-circular {
    box-shadow: 0 16px 40px rgba(0,0,0,0.26);
    transform: scale(1.05);
}

.imagen-circular img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.producto-destacado-card:hover .imagen-circular img {
    transform: scale(1.1) rotate(4deg);
}

/* Colores de fondo circulares por posición */
.producto-destacado-card:nth-child(4n+1) .imagen-circular {
    background: linear-gradient(135deg, #c8eaff 0%, #a0c8f0 100%);
}
.producto-destacado-card:nth-child(4n+2) .imagen-circular {
    background: linear-gradient(135deg, #ffd6d6 0%, #ffaaa5 100%);
}
.producto-destacado-card:nth-child(4n+3) .imagen-circular {
    background: linear-gradient(135deg, #d4f5e4 0%, #a8e6c8 100%);
}
.producto-destacado-card:nth-child(4n+4) .imagen-circular {
    background: linear-gradient(135deg, #ede0ff 0%, #c9aaff 100%);
}

/* ========== BADGE PROMO ========== */
.promo-badge {
    position: absolute;
    top: 12px;
    left: 8px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'Barlow Condensed', 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(231,76,60,0.45);
}

/* ========== BADGE PRECIO ========== */
.precio-badge-destacado {
    position: absolute;
    bottom: 8px;
    right: 6px;
    background: #111;
    color: #fff;
    font-family: 'Barlow Condensed', 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 10;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: background 0.25s ease;
}

.producto-destacado-card:hover .precio-badge-destacado {
    background: #e74c3c;
}

/* ========== NOMBRE ========== */
.producto-destacado-nombre {
    background: linear-gradient(135deg, #555 0%, #333 100%);
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    font-family: 'Barlow Condensed', 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    min-width: 180px;
    max-width: 210px;
    line-height: 1.3;
}

.producto-destacado-card:hover .producto-destacado-nombre {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(231,76,60,0.38);
}

/* ========== VACÍO ========== */
.sin-destacados {
    color: #999;
    font-size: 15px;
    text-align: center;
    padding: 40px;
    width: 100%;
}

/* ========== BARRA DE PROGRESO ========== */
.destacados-progress {
    margin-top: 20px;
    height: 3px;
    background: #e8e8e8;
    border-radius: 2px;
    overflow: hidden;
}

.destacados-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    border-radius: 2px;
    width: 0%;
    transition: width 0.25s ease;
}

/* ========== ANIMACIÓN ENTRADA ========== */
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .titulo-destacados { font-size: 22px; }
    .destacados-header { gap: 18px; margin-bottom: 36px; }
    .producto-destacado-img,
    .producto-destacado-card { width: 190px; }
    .producto-destacado-img { height: 190px; }
    .slider-btn { width: 40px; height: 40px; }
}

@media (max-width: 768px) {
    .productos-destacados { padding: 40px 0 36px; }
    .destacados-header { gap: 14px; margin-bottom: 28px; }
    .titulo-destacados { font-size: 18px; letter-spacing: 1px; }
    .destacados-wrapper { gap: 10px; }
    .destacados-slider { gap: 18px; }
    .producto-destacado-card { width: 170px; }
    .producto-destacado-img { width: 170px; height: 170px; }
    .producto-destacado-nombre { font-size: 11px; padding: 9px 18px; min-width: 150px; }
    .promo-badge { font-size: 10px; padding: 3px 10px; }
}

@media (max-width: 480px) {
    .slider-btn { display: none; }
    .destacados-wrapper { gap: 0; }
    .destacados-slider { padding: 16px 4px 20px; gap: 14px; }
    .producto-destacado-card { width: 148px; }
    .producto-destacado-img { width: 148px; height: 148px; }
    .titulo-destacados { font-size: 15px; }
    .linea-roja { height: 2px; }
    .destacados-progress { margin-top: 14px; }
}