/* ============================================================
   SOFÁ MOOD — effects.css
   Efectos visuales decorativos (separados del core CSS)
   ============================================================ */

/* Cursor glow — sigue al mouse en desktop */
.cursor-glow {
    position: fixed;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247, 161, 166, 0.08) 0%, transparent 68%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    will-change: left, top;
    transition: opacity 0.4s ease;
}

/* Barra de progreso de scroll */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-mid), var(--primary-light));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
    border-radius: 0 3px 3px 0;
}

/* Hero: gradiente animado */
.hero {
    background: linear-gradient(135deg, #fdf8f8, #fff0f0, #fdf5f5, #fff8f8) !important;
    background-size: 400% 400% !important;
    animation: hero-bg 12s ease infinite;
}
@keyframes hero-bg {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero: texto del H1 con gradiente animado */
.hero h1 span {
    background: linear-gradient(90deg, #c08081, #e89899, #f7a1a6, #e09091, #c08081);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-flow 4s linear infinite;
}
@keyframes text-flow {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Hero: partículas flotantes */
.hero-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
    animation: float-p var(--dur, 10s) ease-in-out infinite var(--delay, 0s);
}
@keyframes float-p {
    0%, 100% { transform: translateY(0)    translateX(0)    scale(1);    }
    33%       { transform: translateY(-30px) translateX(16px)  scale(1.07); }
    66%       { transform: translateY(18px)  translateX(-20px) scale(0.93); }
}

/* Service cards: shimmer al hover */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 55%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
    transition: none;
}
.service-card:hover::after {
    left: 170%;
    transition: left 0.55s ease;
}

/* Service icon: bounce al hover */
.service-card:hover .service-icon {
    animation: icon-pop 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
@keyframes icon-pop {
    0%, 100% { transform: scale(1)    rotate(0deg);  }
    25%       { transform: scale(1.30) rotate(-7deg); }
    55%       { transform: scale(0.88) rotate(5deg);  }
    75%       { transform: scale(1.12) rotate(-2deg); }
}

/* Botones: ripple al click */
.btn {
    position: relative;
    overflow: hidden;
}
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    transform: scale(0);
    animation: ripple-out 0.65s linear forwards;
    pointer-events: none;
}
@keyframes ripple-out {
    to { transform: scale(5); opacity: 0; }
}

/* Division cards: glow de borde al hover */
.division-card-music:hover {
    box-shadow: 0 12px 48px rgba(247, 161, 166, 0.35), 0 0 0 1px rgba(192, 128, 129, 0.22);
}
.division-card-empresarial:hover {
    box-shadow: 0 12px 48px rgba(50, 47, 47, 0.40), 0 0 0 1px rgba(255,255,255,0.06);
}

/* WhatsApp: anillo de pulso */
.whatsapp-float {
    position: fixed;
}
.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25d366;
    animation: wa-ring 2.4s ease-out infinite;
    z-index: -1;
}
@keyframes wa-ring {
    0%   { transform: scale(1);   opacity: 0.55; }
    100% { transform: scale(1.75); opacity: 0; }
}

/* WhatsApp: wiggle periódico */
@keyframes wa-wiggle {
    0%, 100% { transform: rotate(0deg)   scale(1); }
    15%       { transform: rotate(-12deg) scale(1.1); }
    30%       { transform: rotate(10deg)  scale(1.1); }
    45%       { transform: rotate(-6deg)  scale(1); }
    60%       { transform: rotate(5deg)   scale(1); }
}
.wa-wiggling { animation: wa-wiggle 0.65s ease !important; }

/* Stats: color durante el conteo */
.stat-counting { color: var(--primary-mid) !important; transition: color 0.3s ease; }

/* Entrada de página */
body { animation: page-in 0.45s ease both; }
@keyframes page-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Desactivar tilt y cursor glow en touch */
@media (hover: none) {
    .cursor-glow { display: none; }
}
