/* SECCIÓN QUÉ HACEMOS */
#que-hacemos {
    padding: 80px 20px;
    background-color: #f9f9f9;
    color: #222;
}

#que-hacemos h2 {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 60px;
    color: #333;
    opacity: 0;
    transform: translateY(-30px);
    animation: titleFadeIn 1s forwards;
    animation-delay: 0.2s;
}

/* Contenedor de cards */
.cards-contenedor {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

/* CARD INDIVIDUAL */
#que-hacemos .card {
    background: linear-gradient(145deg, #ffffff, #ffffff);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    padding: 30px 25px;
    flex: 1 1 250px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

/* Animación escalonada */
.cards-contenedor .card:nth-child(1) { animation-delay: 0.1s; }
.cards-contenedor .card:nth-child(2) { animation-delay: 0.3s; }
.cards-contenedor .card:nth-child(3) { animation-delay: 0.5s; }
.cards-contenedor .card:nth-child(4) { animation-delay: 0.7s; }

/* Hover efecto */
#que-hacemos .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.15);
    background: linear-gradient(145deg, #ffffff, #ffffff);
}

/* Icono superior circular */
#que-hacemos .card .icon {
    font-size: 40px;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

#que-hacemos .card:hover .icon {
    transform: scale(1.2);
}

/* Título y texto */
#que-hacemos .card h3 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

#que-hacemos .card p {
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

/* Botón dentro de la card */
#que-hacemos .card .card-btn {
    margin-top: 20px;
    background-color: #ffffff;
    color: #222;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s, transform 0.3s;
}

#que-hacemos .card .card-btn:hover {
    background-color: #ffffff;
    transform: scale(1.05);
}

/* Animación keyframes */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Keyframes de animación */
@keyframes titleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .cards-contenedor {
        flex-direction: column;
        align-items: center;
    }
}
