/* Sección de Servicios */
#services-new {
    padding: 100px 20px;
    background-color: var(--primary-light);
    background-image:  radial-gradient(var(--secondary-dark) 1.5px, transparent 1.5px), radial-gradient(var(--secondary-dark) 1.5px, #f9f9fd 1.5px);
    background-size: 60px 60px;
    background-position: 0 0,30px 30px;
    text-align: center;
}

#services-new h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

#services-new p {
    font-size: 1.2em;
    color: var(--primary-dark);
    max-width: 700px;
    margin: 0 auto 40px;
}

.service-category {
    margin-bottom: 100px;
}

.service-category h3 {
    font-size: 2em;
    margin-bottom: 40px;
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.service-card {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    overflow: hidden;
    padding: 20px;
    max-width: 300px;
    width: 100%;
    height: 350px; /* Ajustar altura según sea necesario */
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    text-align: left;
    transform: translateY(20px);
    animation-delay: calc(0.2s * var(--i));
}

.service-card::before,
.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: all 0.5s ease;
}

.service-card::before {
    background: linear-gradient(135deg, var(--secondary-dark) 50%, transparent 100%);
    opacity: 0.7;
    z-index: 1;
}

.service-card::after {
    background-image: inherit; /* Hereda la imagen de fondo de la tarjeta */
    filter: blur(1px); /* Sin desenfoque por defecto */
    z-index: 0;
}

.service-card:hover::before {
    opacity: 0.9;
}

.service-card:hover::after {
    filter: blur(4px); /* Desenfoque aplicado al hacer hover */
    transform: scale(1.1); /* Aumenta el tamaño de la imagen en hover */
}

.service-card-content {
    position: relative;
    z-index: 2;
    color: var(--primary-light); /* Cambiar el color del texto */
    transition: color 0.5s ease; /* Transición suave para el color del texto */
}

.service-card h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 1em;
    line-height: 1.5;
}

.service-card:hover {
    transform: scale(1.1); /* Aumenta el tamaño al hacer hover */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}


/* Animación de fade-in-up */
.fade-in-up {
    opacity: 1 !important;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Estado inicial antes de la animación */
/* .animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
} */

/* Animaciones */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividad */
@media (max-width: 768px) {
    .service-cards {
        flex-direction: column;
        align-items: center;
    }
}


/* General button styles */
.whatsapp-container {
    text-align: center; /* Centers the button within its container */
    margin-top: 55px; /* Adds space between the service content and button */
}

.whatsapp-button {
    background-color: #25D366; /* WhatsApp green */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none; /* Remove underline from the link */
    display: inline-block;
}

.whatsapp-button:hover {
    background-color: #1ebe57; /* Darker green on hover */
    color: var(--secondary-dark);
}

.whatsapp-button:focus {
    outline: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .whatsapp-button {
        width: 100%; /* Full-width button on smaller screens */
        padding: 12px 0;
    }
}
