/* Animación de Revelación al Desplazar */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Efectos al Pasar el Cursor */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 179, 0, 0.2);
    border: 1px solid rgba(0, 179, 0, 0.3);
}

/* Efecto de Brillo Verde */
@keyframes greenShimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.btn-green {
    background-size: 200% 200%;
    animation: greenShimmer 3s ease infinite;
}

/* Animación de Pulso para WhatsApp Flotante */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 179, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 179, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 179, 0, 0);
    }
}

.floating-whatsapp {
    animation: pulse 2s infinite;
}

/* Animación de Aparición */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-section {
    animation: fadeIn 1.5s ease-in-out;
}

/* Transición Suave para Enlaces de Navegación */
.nav-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
    color: var(--white);
    transform: translateY(-2px);
}

/* Animación de Enfoque para Campos de Formulario */
.form-control {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    transform: translateY(-2px);
}

/* Animación al Pasar el Cursor sobre Botones */
.btn {
    overflow: hidden;
    position: relative;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
    width: 300%;
    height: 300%;
}

/* Animación al Pasar el Cursor sobre Tarjetas */
.card, .service-card {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
}

/* Animación al Pasar el Cursor sobre Iconos */
.icon-container {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.card:hover .icon-container,
.service-card:hover .icon-container {
    transform: scale(1.1);
}

/* Animación del Botón de Envío de Formulario */
@keyframes buttonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.btn-green.sending {
    animation: buttonPulse 1.5s infinite;
}