/* Altura del carrusel (25% del viewport) */
#cards-servicios {
    /*height: 25vh;*/
    height: 10em;
    margin-top: 30px;          /* Margen superior */
    /*margin-bottom: 60px;       /* Margen inferior */
    min-height: 20em;
}

/* Asegura que las tarjetas hereden la altura correctamente */
.row {
    margin-top: 3em;
    margin-bottom: 2em;
    display: flex;
    /*flex-direction: column;*/
    justify-content: center;
    align-items: center;
    border: none;
}

/*.carousel-item, */
.servicios {
    display: flex;
    align-items: center;
}

.servicios,
.card {
    height: 60%;
}

.col-md-3 {
    padding: 1em;
}

/* Estilo para las tarjetas */
.card {
    display: flex;
    /*flex-direction: column;*/
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.295);
    transition: transform 0.3s;
    padding: 1em;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    width: 6em;
    height: 3em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.div-card-boton {
    width: 100%;
}

.btn {
    width: 50%;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .col-md-3 {
        flex: 0 0 50%; /* 2 tarjetas por fila en móviles */
        max-width: 50%;
    }
}

