/* =========================================
   ANIMACIONES CSS — FixPointMx
   Paleta: Púrpura #B4A0E6 | Teal #4BBFAA
========================================= */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow:
            0 0 20px rgba(123, 94, 167, 0.35),
            0 0 40px rgba(123, 94, 167, 0.12);
    }
    50% {
        text-shadow:
            0 0 40px rgba(123, 94, 167, 0.60),
            0 0 80px rgba(58, 168, 150, 0.18);
    }
}

@keyframes borderGlow {
    0%, 100% { box-shadow: 0 0 0px  rgba(123, 94, 167, 0); }
    50%       { box-shadow: 0 0 24px rgba(123, 94, 167, 0.22),
                            0 0 48px rgba(58,  168, 150, 0.08); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes rotateIn {
    from { opacity: 0; transform: rotate(-10deg) scale(0.85); }
    to   { opacity: 1; transform: rotate(0deg)   scale(1); }
}

@keyframes whatsappBounce {
    0%, 100% { transform: translateY(0)   scale(1); }
    50%       { transform: translateY(-6px) scale(1.08); }
}

/* ---- Hero ---- */
.hero-contenido h1 {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.1s;
}
.hero-contenido p {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.25s;
}
.hero-contenido .btn-principal {
    animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.42s;
}

/* ---- Hero simple ---- */
.hero-simple-contenido h1 {
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.05s;
}
.hero-simple-contenido p {
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.18s;
}

/* ---- Glow pulsante highlight h1 ---- */
/* Animación eliminada a petición del usuario para evitar el efecto de 'sombra negra' */

/* ---- Header ---- */
.header-principal {
    animation: fadeIn 0.5s ease both;
}

/* ---- Scroll observer ---- */
.animar {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.animar.visible {
    opacity: 1;
    transform: translateY(0);
}

.animar-izq {
    opacity: 0;
    transform: translateX(-28px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.animar-izq.visible {
    opacity: 1;
    transform: translateX(0);
}

.animar-der {
    opacity: 0;
    transform: translateX(28px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.animar-der.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Delay escalonado para grids */
.animar:nth-child(1) { transition-delay: 0s;   }
.animar:nth-child(2) { transition-delay: 0.1s; }
.animar:nth-child(3) { transition-delay: 0.2s; }
.animar:nth-child(4) { transition-delay: 0.3s; }
.animar:nth-child(5) { transition-delay: 0.4s; }
.animar:nth-child(6) { transition-delay: 0.5s; }

/* ---- WhatsApp ---- */
.whatsapp-btn {
    animation: whatsappBounce 2.5s ease-in-out infinite;
    animation-delay: 2s;
}
.whatsapp-btn:hover {
    animation: none;
}

/* ---- Stats ---- */
.stat-numero {
    animation: countUp 0.6s ease both;
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Garantía card ---- */
.garantia-cta-card {
    animation: borderGlow 3.5s ease-in-out infinite;
}

/* ---- Consolas flotantes de fondo ---- */
.bg-flotante {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.consola-flotante {
    position: absolute;
    opacity: 0.15; /* Sutil transparencia para el fondo */
    filter: drop-shadow(0 0 15px rgba(123, 94, 167, 0.4));
    animation: floatConsola 6s ease-in-out infinite;
}

@keyframes floatConsola {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-25px) rotate(4deg);
    }
}
