/**
 * BienMacan — Estilos custom y animaciones
 */

/* ─── Animación de entrada para cards ─────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.4s ease-out both;
}

/* Stagger para listas */
.fade-in-up:nth-child(1) { animation-delay: 0.05s; }
.fade-in-up:nth-child(2) { animation-delay: 0.10s; }
.fade-in-up:nth-child(3) { animation-delay: 0.15s; }
.fade-in-up:nth-child(4) { animation-delay: 0.20s; }
.fade-in-up:nth-child(5) { animation-delay: 0.25s; }
.fade-in-up:nth-child(6) { animation-delay: 0.30s; }

/* ─── Pulse suave para el indicador "Ahora" ──────── */
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* ─── Line clamp para truncar texto ──────────────── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Scroll suave ───────────────────────────────── */
html {
    scroll-behavior: smooth;
}

/* ─── Hover lift en cards ────────────────────────── */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* ─── Responsive: evitar desbordamiento en móvil ── */
@media (max-width: 640px) {
    table {
        font-size: 0.75rem;
    }
    th, td {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}
