.titulo__asistente {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    font-size: 1.5rem;
    text-align: center;
}

.servicios {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    padding: 2rem;
    max-width: 100%;
    margin: 0 5rem;
    margin-bottom: 5rem;
}

.card p {
    color: #0000009d;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.349);
    transition: background 0.3s ease;
    width: 20rem;
    height: 20rem;
    padding: 1rem 1rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    padding-top: 4rem;
}

.card:hover {
    background: #0090F2;
    color: white;
    cursor: default;
}

.card:hover p {
    color: white;
}

.card:hover h3 {
    color: white;
}

.card img {
    height: 80px;
    margin-bottom: 1rem;
}

.card .texto {
    display: block;
}

.card .texto h3 {
    margin-bottom: 2rem;
}


@media (max-width: 768px) {

    /* Animación de pulso — pulsa rápido y espera antes de repetir */
    @keyframes pulse-hint {
        0%   { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.349); }
        20%  { box-shadow: 0 0 0 10px rgba(0, 144, 242, 0.2); }
        40%  { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.349); }
        100% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.349); }
    }

    .titulo__asistente {
        display: flex;
        justify-content: center;
        padding: 0;
        font-size: 1.2rem;
        text-align: center;
        margin-top: 5.5rem;
        padding: 0 2rem;
    }

    .servicios {
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        gap: 3rem;
        width: 100%;
        margin: 0;
        align-items: center;
    }

    .card {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 50%;
        height: 10rem;
        margin: 0;
        padding: 0;
        padding-top: 1rem;
        margin-bottom: 2rem;
        animation: pulse-hint 3s ease-out infinite;
        animation-delay: 0.6s;
    }

    /* El pulso se detiene cuando la card está activa */
    .card.active {
        animation: none;
    }

    .card img {
        display: block;
    }

    .card .texto {
        display: none;
    }

    .card.active {
        line-height: 1.5rem;
        width: 100%;
        height: 12.5rem;
        max-width: none;
    }

    .card.active img {
        display: none;
    }

    .card.active .texto {
        padding: 0 1.5rem;
        display: block;
    }

    h3 {
        font-size: 1rem;
    }

    p {
        font-size: 0.9rem;
    }
}