/* Transiciones ultra suaves para productos - CTS Metrología */

/* Tarjetas de productos con transiciones suaves */
.cts-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    display: flex;
    flex-direction: column;
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.cts-product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 124, 186, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Imágenes de productos con transiciones suaves */
.cts-product-card img {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.cts-product-card:hover img {
    transform: scale(1.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Botones con animaciones suaves */
.cts-product-card .btn {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0);
    will-change: transform, background-color, box-shadow;
}

.cts-product-card .btn:hover {
    transform: translateY(-2px) scale(1.02);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 25px rgba(0, 124, 186, 0.2);
}

/* Texto y títulos con transiciones suaves */
.cts-product-card h3,
.cts-product-card p {
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cts-product-card:hover h3 {
    color: #007cba;
}

/* Animaciones de entrada suaves para elementos */
.cts-product-card .cts-product-card__image-wrap,
.cts-product-card .cts-product-card__body,
.cts-product-card .cts-product-card__footer {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Efectos de loading suaves */
.cts-product-card.loading {
    opacity: 0.7;
    transform: scale(0.98);
    transition: all 0.3s ease;
}

/* Grid de productos con transiciones escalonadas */
.cts-products-grid .cts-product-card:nth-child(1) { animation-delay: 0.1s; }
.cts-products-grid .cts-product-card:nth-child(2) { animation-delay: 0.2s; }
.cts-products-grid .cts-product-card:nth-child(3) { animation-delay: 0.3s; }
.cts-products-grid .cts-product-card:nth-child(4) { animation-delay: 0.4s; }

/* Animación de entrada para productos */
@keyframes produceCardSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cts-product-card {
    animation: produceCardSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Media queries para diferentes dispositivos */
@media (max-width: 768px) {
    .cts-product-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cts-product-card,
    .cts-product-card *,
    .cts-product-card:hover {
        transition: none;
        animation: none;
        transform: none;
    }
}