/* ============================================================
   THSCREEN — Animaciones Diferidas (non-critical)
   Cargado con media="print" onload="this.media='all'"
   ============================================================ */

/* ── Hero entrance ──────────────────────────────────────── */
@keyframes hero-fade-up {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content .badge {
    animation: hero-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero h1 {
    animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.hero-subtitle {
    animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-actions {
    animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}

/* ── Pulse suave para badge dorado ──────────────────────── */
@keyframes soft-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.badge-gold {
    animation: soft-pulse 3s ease-in-out infinite;
}

/* ── Card hover glow ────────────────────────────────────── */
@keyframes glow-border {
    0% { border-color: rgba(195, 45, 46, 0.1); }
    50% { border-color: rgba(195, 45, 46, 0.25); }
    100% { border-color: rgba(195, 45, 46, 0.1); }
}

/* ── Float suave para trust badges icon ─────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.trust-badge-icon {
    animation: float 4s ease-in-out infinite;
}

.trust-badge:nth-child(2) .trust-badge-icon {
    animation-delay: 0.5s;
}

.trust-badge:nth-child(3) .trust-badge-icon {
    animation-delay: 1s;
}

.trust-badge:nth-child(4) .trust-badge-icon {
    animation-delay: 1.5s;
}

/* ── WhatsApp flotante ──────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 90;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: all 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-float:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: #FFFFFF;
}

@keyframes whatsapp-attention {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.12); }
    30% { transform: scale(1); }
    45% { transform: scale(1.08); }
    60% { transform: scale(1); }
}

.whatsapp-float {
    animation: whatsapp-attention 4s ease-in-out 3s infinite;
}

.whatsapp-float:hover {
    animation: none;
}

/* ── Reduced Motion Override ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .hero-content .badge,
    .hero h1,
    .hero-subtitle,
    .hero-actions,
    .badge-gold,
    .trust-badge-icon,
    .whatsapp-float {
        animation: none;
    }
}
