/* ============================================
   DIGITAL INNOVATION GLOBAL - EFECTOS VISUALES
   ============================================ */

/* ============================================
   GRADIENTES ANIMADOS
   ============================================ */

.animated-gradient {
    background: linear-gradient(-45deg, #8b5cf6, #a78bfa, #38bdf8, #0ea5e9, #7c3aed);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-gradient-text {
    background: linear-gradient(90deg, #8b5cf6, #38bdf8, #a78bfa, #0ea5e9, #8b5cf6);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradient 3s linear infinite;
}

@keyframes textGradient {
    to { background-position: 200% center; }
}

/* ============================================
   GLASSMORPHISM (EFECTO CRISTAL)
   ============================================ */

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.glass-dark {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

/* ============================================
   EFECTOS DE BRILLO Y DESTELLO
   ============================================ */

.shine {
    position: relative;
    overflow: hidden;
}

.shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s;
}

.shine:hover::before {
    left: 100%;
}

.glow {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3),
                0 0 40px rgba(139, 92, 246, 0.2),
                0 0 60px rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
}

.glow:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5),
                0 0 60px rgba(139, 92, 246, 0.3),
                0 0 90px rgba(139, 92, 246, 0.2);
}

.glow-text {
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5),
                 0 0 20px rgba(139, 92, 246, 0.3),
                 0 0 30px rgba(139, 92, 246, 0.2);
}

.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #8b5cf6, #38bdf8, #a78bfa, #0ea5e9);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(8px);
}

.glow-border:hover::before {
    opacity: 1;
}

/* ============================================
   EFECTOS 3D Y TILT
   ============================================ */

.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.3s ease;
}

.tilt-card-inner {
    transform: translateZ(20px);
}

.float-3d {
    animation: float3d 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes float3d {
    0%, 100% { 
        transform: translateY(0) rotateX(0) rotateY(0); 
    }
    25% { 
        transform: translateY(-10px) rotateX(2deg) rotateY(2deg); 
    }
    50% { 
        transform: translateY(-5px) rotateX(-1deg) rotateY(3deg); 
    }
    75% { 
        transform: translateY(-15px) rotateX(2deg) rotateY(-2deg); 
    }
}

.rotate-3d {
    animation: rotate3d 20s linear infinite;
    transform-style: preserve-3d;
}

@keyframes rotate3d {
    0% { transform: rotateY(0deg) rotateX(10deg); }
    100% { transform: rotateY(360deg) rotateX(10deg); }
}

/* ============================================
   EFECTO MÁQUINA DE ESCRIBIR
   ============================================ */

.typewriter {
    overflow: hidden;
    border-right: 3px solid #8b5cf6;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #8b5cf6; }
}

/* ============================================
   EFECTOS DE PARTÍCULAS Y FONDO
   ============================================ */

.particles-bg {
    position: relative;
    overflow: hidden;
}

.particles-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    animation: particlesMove 20s ease-in-out infinite;
}

@keyframes particlesMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.grid-bg {
    position: relative;
}

.grid-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* ============================================
   EFECTOS DE ONDAS
   ============================================ */

.wave {
    position: relative;
}

.wave::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23f9fafb' fill-opacity='1' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
}

.wave-top {
    position: relative;
}

.wave-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23f9fafb' fill-opacity='1' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
}

/* ============================================
   EFECTOS DE BORDE ANIMADO
   ============================================ */

.border-gradient {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    z-index: 1;
}

.border-gradient::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(45deg, #8b5cf6, #38bdf8, #a78bfa, #0ea5e9, #8b5cf6);
    background-size: 300% 300%;
    border-radius: 18px;
    z-index: -1;
    animation: borderMove 3s ease infinite;
}

@keyframes borderMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================
   EFECTOS DE PULSO
   ============================================ */

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse-ring {
    position: relative;
}

.pulse-ring::before,
.pulse-ring::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #8b5cf6;
    animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.pulse-ring::after {
    animation-delay: 1s;
}

@keyframes pulseRing {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* ============================================
   EFECTOS DE REBOTE
   ============================================ */

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.bounce-subtle {
    animation: bounceSubtle 3s ease-in-out infinite;
}

@keyframes bounceSubtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   EFECTOS DE ROTACIÓN
   ============================================ */

.spin-slow {
    animation: spinSlow 20s linear infinite;
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin-reverse {
    animation: spinReverse 15s linear infinite;
}

@keyframes spinReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* ============================================
   EFECTOS DE ESCALA
   ============================================ */

.scale-in {
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.scale-hover {
    transition: transform 0.3s ease;
}

.scale-hover:hover {
    transform: scale(1.05);
}

/* ============================================
   EFECTOS DE OPACIDAD Y DESVANECIMIENTO
   ============================================ */

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-down {
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   EFECTOS DE SOMBRA
   ============================================ */

.shadow-animated {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.shadow-animated:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px -10px rgba(139, 92, 246, 0.3),
        0 10px 20px -5px rgba(56, 189, 248, 0.2);
}

.shadow-gradient {
    position: relative;
}

.shadow-gradient::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 10%;
    right: 10%;
    height: 20px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
    filter: blur(10px);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shadow-gradient:hover::after {
    opacity: 1;
}

/* ============================================
   EFECTOS DE BORDE LÍQUIDO
   ============================================ */

.liquid-border {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.liquid-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(45deg, #8b5cf6, #38bdf8, #a78bfa, #0ea5e9);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: liquidMove 4s linear infinite;
}

@keyframes liquidMove {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* ============================================
   EFECTOS PARA BOTONES
   ============================================ */

.btn-magnetic {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-magnetic::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-magnetic:hover::before {
    width: 300px;
    height: 300px;
}

.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================
   EFECTOS DE TEXTO
   ============================================ */

.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    animation: textReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes textReveal {
    to { transform: translateY(0); }
}

.text-scramble {
    font-family: monospace;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch1 2s infinite linear alternate-reverse;
    color: #8b5cf6;
    z-index: -1;
}

.glitch::after {
    animation: glitch2 3s infinite linear alternate-reverse;
    color: #38bdf8;
    z-index: -2;
}

@keyframes glitch1 {
    0%, 100% { clip-path: inset(0 0 95% 0); transform: translate(-2px, -2px); }
    20% { clip-path: inset(30% 0 50% 0); transform: translate(2px, 2px); }
    40% { clip-path: inset(80% 0 5% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(10% 0 60% 0); transform: translate(2px, -2px); }
    80% { clip-path: inset(50% 0 30% 0); transform: translate(-2px, 2px); }
}

@keyframes glitch2 {
    0%, 100% { clip-path: inset(80% 0 5% 0); transform: translate(2px, 2px); }
    20% { clip-path: inset(10% 0 60% 0); transform: translate(-2px, -2px); }
    40% { clip-path: inset(30% 0 50% 0); transform: translate(2px, -2px); }
    60% { clip-path: inset(0 0 95% 0); transform: translate(-2px, 2px); }
    80% { clip-path: inset(50% 0 30% 0); transform: translate(2px, 2px); }
}

/* ============================================
   EFECTOS DE CARGA
   ============================================ */

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #f3f4f6;
    border-bottom-color: #8b5cf6;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-dots {
    display: flex;
    gap: 8px;
}

.loader-dots span {
    width: 12px;
    height: 12px;
    background: #8b5cf6;
    border-radius: 50%;
    animation: dots 1.4s ease-in-out infinite both;
}

.loader-dots span:nth-child(1) { animation-delay: -0.32s; }
.loader-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes dots {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ============================================
   EFECTOS PARA IMÁGENES
   ============================================ */

.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.1);
}

.img-rotate-hover {
    overflow: hidden;
}

.img-rotate-hover img {
    transition: transform 0.5s ease;
}

.img-rotate-hover:hover img {
    transform: scale(1.1) rotate(3deg);
}

/* ============================================
   EFECTOS PARA CARDS
   ============================================ */

.card-stack {
    position: relative;
}

.card-stack::before,
.card-stack::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
    transition: all 0.3s ease;
}

.card-stack::before {
    transform: translate(10px, 10px);
    opacity: 0.5;
}

.card-stack::after {
    transform: translate(20px, 20px);
    opacity: 0.25;
}

.card-stack:hover::before {
    transform: translate(15px, 15px);
}

.card-stack:hover::after {
    transform: translate(30px, 30px);
}

/* ============================================
   EFECTOS DE CURSOR PERSONALIZADO
   ============================================ */

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: #8b5cf6;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(139, 92, 246, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    width: 50px;
    height: 50px;
    background-color: rgba(139, 92, 246, 0.1);
}

/* ============================================
   EFECTOS DE SCROLLBAR PERSONALIZADA
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b5cf6, #38bdf8);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7c3aed, #0ea5e9);
}

/* ============================================
   EFECTOS DE PARALLAX
   ============================================ */

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax-slow {
    will-change: transform;
}

/* ============================================
   EFECTOS DE NEBLINA
   ============================================ */

.fog {
    position: relative;
    overflow: hidden;
}

.fog::before,
.fog::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: fogMove 8s linear infinite;
}

.fog::after {
    animation-delay: 4s;
}

@keyframes fogMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

/* ============================================
   EFECTOS DE LÍNEAS ANIMADAS
   ============================================ */

.line-draw {
    position: relative;
}

.line-draw::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #38bdf8);
    transition: width 0.5s ease;
}

.line-draw:hover::after {
    width: 100%;
}

/* ============================================
   EFECTOS DE FLIP CARD
   ============================================ */

.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* ============================================
   EFECTOS DE MORPHING
   ============================================ */

.morph {
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
    75% { border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%; }
}

/* ============================================
   EFECTOS DE RESPLANDOR EN HOVER
   ============================================ */

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 
        0 0 20px rgba(139, 92, 246, 0.4),
        0 0 40px rgba(139, 92, 246, 0.2);
    transform: translateY(-5px);
}

/* ============================================
   EFECTOS DE APARICIÓN ESCALONADA
   ============================================ */

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* ============================================
   EFECTOS DE VIBRACIÓN
   ============================================ */

.shake:hover {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* ============================================
   EFECTOS DE LATIDO
   ============================================ */

.heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

/* ============================================
   EFECTOS DE SWING
   ============================================ */

.swing {
    transform-origin: top center;
    animation: swing 2s ease-in-out infinite;
}

@keyframes swing {
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-10deg); }
    60% { transform: rotate(5deg); }
    80% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

/* ============================================
   EFECTOS DE WOBBLE
   ============================================ */

.wobble {
    animation: wobble 2s ease-in-out infinite;
}

@keyframes wobble {
    0%, 100% { transform: translateX(0%); }
    15% { transform: translateX(-15%) rotate(-5deg); }
    30% { transform: translateX(10%) rotate(3deg); }
    45% { transform: translateX(-10%) rotate(-3deg); }
    60% { transform: translateX(5%) rotate(2deg); }
    75% { transform: translateX(-5%) rotate(-1deg); }
}

/* ============================================
   EFECTOS DE JELLY
   ============================================ */

.jelly:hover {
    animation: jelly 0.5s both;
}

@keyframes jelly {
    0% { transform: scale(1, 1); }
    25% { transform: scale(0.9, 1.1); }
    50% { transform: scale(1.1, 0.9); }
    75% { transform: scale(0.95, 1.05); }
    100% { transform: scale(1, 1); }
}

/* ============================================
   EFECTOS DE HINGE
   ============================================ */

.hinge {
    transform-origin: top left;
    animation: hinge 2s ease-in-out;
}

@keyframes hinge {
    0% { transform: rotate(0); }
    20%, 60% { transform: rotate(80deg); }
    40% { transform: rotate(60deg); }
    80% { transform: rotate(60deg) translateY(0); opacity: 1; }
    100% { transform: translateY(700px); opacity: 0; }
}

/* ============================================
   EFECTOS DE ROLL IN
   ============================================ */

.roll-in {
    animation: rollIn 0.8s ease-out;
}

@keyframes rollIn {
    0% {
        opacity: 0;
        transform: translateX(-100%) rotate(-120deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0);
    }
}

/* ============================================
   EFECTOS DE ZOOM IN
   ============================================ */

.zoom-in {
    animation: zoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
    }
}

/* ============================================
   EFECTOS DE LIGHT SPEED
   ============================================ */

.light-speed {
    animation: lightSpeed 0.8s ease-out;
}

@keyframes lightSpeed {
    0% {
        transform: translateX(100%) skewX(-30deg);
        opacity: 0;
    }
    60% {
        transform: translateX(-20%) skewX(30deg);
        opacity: 1;
    }
    80% {
        transform: translateX(0%) skewX(-15deg);
        opacity: 1;
    }
    100% {
        transform: translateX(0%) skewX(0deg);
        opacity: 1;
    }
}
