/* ============================================================================
   OMAR LANDING - ANIMACIONES
   ============================================================================ */

/* ============================================================================
   ANIMACIONES PRINCIPALES
   ============================================================================ */

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

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

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(26, 140, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(26, 140, 255, 0.6);
    }
}

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

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

/* ============================================================================
   CLASES DE ANIMACIÓN
   ============================================================================ */

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-down {
    animation: fadeInDown 0.6s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.6s ease forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease forwards;
}

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

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

.bounce {
    animation: bounce 1s ease-in-out infinite;
}

/* ============================================================================
   TRANSICIONES SUAVES
   ============================================================================ */

.transition-all {
    transition: all 0.3s ease;
}

.transition-color {
    transition: color 0.3s ease, background-color 0.3s ease;
}

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

.transition-opacity {
    transition: opacity 0.3s ease;
}

/* ============================================================================
   EFECTOS HOVER
   ============================================================================ */

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.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 30px rgba(26, 140, 255, 0.5);
}

/* ============================================================================
   ANIMACIONES DE CARGA
   ============================================================================ */

.skeleton {
    background: linear-gradient(90deg, rgba(26, 140, 255, 0.1), rgba(77, 255, 243, 0.1), rgba(26, 140, 255, 0.1));
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

.loading-spinner {
    border: 4px solid rgba(26, 140, 255, 0.2);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: rotate 1s linear infinite;
}

/* ============================================================================
   ANIMACIONES DE ENTRADA EN SCROLL
   ============================================================================ */

.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* ============================================================================
   ANIMACIONES DE BOTONES
   ============================================================================ */

.btn-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.btn-glow {
    animation: glow 2s ease-in-out infinite;
}

/* ============================================================================
   ANIMACIONES DE TEXTO
   ============================================================================ */

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--primary-blue);
    white-space: nowrap;
    animation: typewriter 3.5s steps(40, end) forwards;
}

/* ============================================================================
   ANIMACIONES DE MODAL
   ============================================================================ */

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

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal.active {
    animation: modalFadeIn 0.3s ease forwards;
}

.modal.active .modal-content {
    animation: modalSlideIn 0.3s ease forwards;
}

/* ============================================================================
   ANIMACIONES DE NAVEGACIÓN
   ============================================================================ */

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

.navbar.visible {
    animation: navSlideDown 0.3s ease forwards;
}

/* ============================================================================
   ANIMACIONES DE FORMULARIO
   ============================================================================ */

.form-group input:focus,
.form-group textarea:focus {
    animation: scaleIn 0.3s ease;
}

.form-success {
    animation: fadeInUp 0.6s ease forwards;
}

.form-error {
    animation: slideInLeft 0.3s ease;
    border-color: #ff6b6b !important;
}

/* ============================================================================
   ANIMACIONES DE TARJETAS
   ============================================================================ */

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(26, 140, 255, 0.2);
}

/* ============================================================================
   ANIMACIONES DE LISTA
   ============================================================================ */

.list-item {
    animation: fadeInUp 0.6s ease forwards;
}

.list-item:nth-child(1) { animation-delay: 0.1s; }
.list-item:nth-child(2) { animation-delay: 0.2s; }
.list-item:nth-child(3) { animation-delay: 0.3s; }
.list-item:nth-child(4) { animation-delay: 0.4s; }
.list-item:nth-child(5) { animation-delay: 0.5s; }
.list-item:nth-child(6) { animation-delay: 0.6s; }
.list-item:nth-child(7) { animation-delay: 0.7s; }
.list-item:nth-child(8) { animation-delay: 0.8s; }

/* ============================================================================
   ANIMACIONES DE GRID
   ============================================================================ */

.grid-item {
    animation: fadeInUp 0.6s ease forwards;
}

.grid-item:nth-child(1) { animation-delay: 0.1s; }
.grid-item:nth-child(2) { animation-delay: 0.2s; }
.grid-item:nth-child(3) { animation-delay: 0.3s; }
.grid-item:nth-child(4) { animation-delay: 0.4s; }
.grid-item:nth-child(5) { animation-delay: 0.5s; }
.grid-item:nth-child(6) { animation-delay: 0.6s; }
