/* ===========================================
   ANIMACIONES PARA VALSOR
   =========================================== */

/* ===========================================
   KEYFRAMES
   =========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    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 fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ===========================================
   CLASES DE ANIMACIÓN
   =========================================== */
.animate-fadeInUp {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeInLeft {
    opacity: 0;
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fadeInRight {
    opacity: 0;
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-fadeInScale {
    opacity: 0;
    animation: fadeInScale 0.6s ease-out forwards;
}

.animate-slideInDown {
    opacity: 0;
    animation: slideInDown 0.8s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* ===========================================
   DELAYS PARA ANIMACIONES ESCALONADAS
   =========================================== */
.animate-delay-100 {
    animation-delay: 0.1s;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

.animate-delay-300 {
    animation-delay: 0.3s;
}

.animate-delay-400 {
    animation-delay: 0.4s;
}

.animate-delay-500 {
    animation-delay: 0.5s;
}

.animate-delay-600 {
    animation-delay: 0.6s;
}

.animate-delay-700 {
    animation-delay: 0.7s;
}

.animate-delay-800 {
    animation-delay: 0.8s;
}

/* ===========================================
   HOVER EFFECTS
   =========================================== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(30, 64, 175, 0.3);
}

/* ===========================================
   ANIMACIONES ESPECÍFICAS POR SECCIÓN
   =========================================== */

/* Hero Section */
.hero__subtitulo {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero__titulo {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero__parrafo {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-botones {
    animation: fadeInUp 1s ease-out 0.8s both;
}

/* Cards de Servicios */



/* Botones */
.boton {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.boton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.boton:hover::before {
    left: 100%;
}

.boton:hover {
    transform: translateY(-2px);
 
}

/* Cards de Contacto */
.contacto-servicios__card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contacto-servicios__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}


/* Imágenes */
img {
    transition: transform 0.3s ease;
}

/* ===========================================
   ANIMACIONES DE ENTRADA AL SCROLL
   =========================================== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================================
   RESPONSIVE ANIMATIONS
   =========================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    .hero__subtitulo,
    .hero__titulo,
    .hero__parrafo,
    .hero-botones {
        animation-duration: 0.6s;
    }
}
