/* ============================================================
   animations.css — Animaciones globales de Slover Clip
   ============================================================ */

/* ── KEYFRAMES ─────────────────────────────────────────────── */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes neonBorder {
    0%   { border-color: #7c3aed; box-shadow: 0 0 10px #7c3aed44; }
    33%  { border-color: #a855f7; box-shadow: 0 0 20px #a855f744; }
    66%  { border-color: #ec4899; box-shadow: 0 0 20px #ec489944; }
    100% { border-color: #7c3aed; box-shadow: 0 0 10px #7c3aed44; }
}

@keyframes neonSpin {
    0%   { transform: rotate(0deg);   border-color: #7c3aed transparent #ec4899 transparent; }
    25%  { border-color: #a855f7 transparent #f472b6 transparent; }
    50%  { transform: rotate(180deg); border-color: #ec4899 transparent #7c3aed transparent; }
    75%  { border-color: #f472b6 transparent #a855f7 transparent; }
    100% { transform: rotate(360deg); border-color: #7c3aed transparent #ec4899 transparent; }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

@keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to   { opacity: 1; max-height: 500px; }
}

@keyframes particleFloat {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

/* ── CLASES DE ANIMACIÓN ────────────────────────────────────── */

.animate-fadeIn       { animation: fadeIn 0.6s ease forwards; }
.animate-fadeInLeft   { animation: fadeInLeft 0.6s ease forwards; }
.animate-fadeInRight  { animation: fadeInRight 0.6s ease forwards; }
.animate-float        { animation: float 3s ease-in-out infinite; }
.animate-pulse        { animation: pulse 2s ease-in-out infinite; }
.animate-spin         { animation: spin 1s linear infinite; }
.animate-shimmer      { animation: shimmer 2s linear infinite; }
.animate-blink        { animation: blink 1s step-end infinite; }

/* Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* ── LOADER NEON (para cuando genera el video) ──────────────── */

.neon-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 48px;
}

.neon-loader__ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.neon-loader__ring::before,
.neon-loader__ring::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
}

.neon-loader__ring::before {
    inset: 0;
    border-top-color: #7c3aed;
    border-bottom-color: #ec4899;
    animation: spin 1.2s linear infinite;
    box-shadow: 0 0 20px #7c3aed88, inset 0 0 20px #ec489944;
}

.neon-loader__ring::after {
    inset: 12px;
    border-left-color: #a855f7;
    border-right-color: #f472b6;
    animation: spin 0.8s linear infinite reverse;
    box-shadow: 0 0 15px #a855f788;
}

.neon-loader__icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    animation: pulse 1.5s ease-in-out infinite;
}

.neon-loader__text {
    font-size: 18px;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.neon-loader__dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7c3aed;
    margin: 0 4px;
    animation: pulse 1.2s ease-in-out infinite;
}

.neon-loader__dots span:nth-child(2) { animation-delay: 0.2s; background: #a855f7; }
.neon-loader__dots span:nth-child(3) { animation-delay: 0.4s; background: #ec4899; }

.neon-loader__status {
    font-size: 14px;
    color: #94a3b8;
    text-align: center;
    min-height: 20px;
}

/* ── PARTÍCULAS DE FONDO ────────────────────────────────────── */

.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: particleFloat linear infinite;
}

/* ── HOVER EFFECTS ──────────────────────────────────────────── */

.hover-glow {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.hover-glow:hover {
    box-shadow: 0 0 25px #7c3aed66;
    transform: translateY(-2px);
}

.hover-scale {
    transition: transform 0.2s ease;
}
.hover-scale:hover {
    transform: scale(1.05);
}

/* ── GRADIENTE ANIMADO ──────────────────────────────────────── */

.gradient-text {
    background: linear-gradient(135deg, #7c3aed, #a855f7, #ec4899, #f472b6);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

.gradient-bg {
    background: linear-gradient(135deg, #7c3aed, #a855f7, #ec4899);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

/* ── NEON BORDER ────────────────────────────────────────────── */

.neon-border {
    border: 1px solid #7c3aed;
    animation: neonBorder 3s ease-in-out infinite;
}

/* ── SHIMMER BUTTON ─────────────────────────────────────────── */

.btn-shimmer {
    position: relative;
    overflow: hidden;
}
.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: shimmer 2.5s infinite;
}

/* ── SCROLL REVEAL ──────────────────────────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}