/* === SILLONES RELAX - SHOWCASE ANIMADO === */
/* Secuencias de imágenes que simulan el movimiento del sillón */

.relax-showcase {
    padding: var(--space-24) var(--space-8);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.relax-showcase__header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.relax-showcase__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 200;
    letter-spacing: -0.03em;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.relax-showcase__subtitle {
    font-size: var(--text-lg);
    color: var(--color-gray-500);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Grid de productos */
.relax-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .relax-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .relax-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
}

/* Card de producto animado */
.relax-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
                box-shadow 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.relax-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Contenedor de la animación de imágenes */
.relax-card__animation {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #fafafa;
    overflow: hidden;
}

.relax-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.relax-card__image.active {
    opacity: 1;
    transform: scale(1);
}

/* Indicador de progreso de animación */
.relax-card__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #d97706, #f59e0b);
    width: 0%;
    transition: width linear;
}

.relax-card__progress.animating {
    animation: progressBar var(--animation-duration, 2s) linear infinite;
}

@keyframes progressBar {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Indicadores de posición (dots) */
.relax-card__dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.relax-card__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.relax-card__dot:hover {
    transform: scale(1.2);
}

.relax-card__dot.active {
    background: #d97706;
}

/* Badge de función especial */
.relax-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: white;
    padding: 6px 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

/* Controles play/pause */
.relax-card__controls {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
}

.relax-card__play-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, transform 0.3s ease;
}

.relax-card__play-btn:hover {
    background: white;
    transform: scale(1.1);
}

.relax-card__play-btn svg {
    width: 14px;
    height: 14px;
    fill: var(--color-primary);
}

/* Info del producto */
.relax-card__info {
    padding: var(--space-6);
    text-align: center;
}

.relax-card__name {
    font-size: var(--text-xl);
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
    letter-spacing: -0.01em;
}

.relax-card__brand {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gray-500);
    margin-bottom: var(--space-4);
}

.relax-card__features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
}

.relax-card__feature {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-gray-600);
    background: var(--color-gray-100);
    padding: 4px 10px;
    border-radius: 20px;
}

.relax-card__feature--highlight {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), rgba(245, 158, 11, 0.1));
    color: #b45309;
}

/* CTA Section */
.relax-showcase__cta {
    text-align: center;
    margin-top: var(--space-16);
}

.relax-showcase__cta-text {
    font-size: var(--text-lg);
    color: var(--color-gray-600);
    margin-bottom: var(--space-6);
}

.relax-showcase__cta .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}
