﻿.service-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
    padding-top: 50px;
}

.service-subcontainer {
    display: flex;
    gap: 10px;
    padding: 0px 50px;
}

.service-container-text {
    display: flex;
    flex-direction: column;
    width: 60%;
    justify-content: center;
    align-items: center;
}

.service-container-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40%;
}

.service-container-image-UnidadApoyo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-service {
    height: 250px;
}

/*Carrousel elementos*/
.servicio-carousel {
    height: 300px;
    width: 70%;
}

.div-elementos {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    width: 90%;
    max-width: 90%;
    margin: auto;
    gap: 50px;
}

.service-card-container {
    padding: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center !important;
}

    .service-card-container > div {
        width: 25%;
        min-width: 300px; /* Ancho mínimo para mantener la consistencia */
    }


.service-card-content {
    flex-grow: 1; /* Permite que el contenido crezca si es necesario */
    min-height: 150px; /* Ajusta el tamaño mínimo según sea necesario */
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.tarjeta {
    min-width: 300px;
    min-height: 400px;
    border-radius: 10%;
    display: flex;
    align-items: center;
    flex-direction: column;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transition: .7s ease;
    transition: .7s ease;
    max-height: 500px; /* Limita la altura máxima de la tarjeta */
    max-width:400px;
    margin-bottom:40px;
}

.adelante, .atras {
    position: absolute;
    border-radius: 20px;
    top: 0;
    left: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.adelante {
    justify-content: space-around; /* Centra horizontalmente */
    width: 100%;
}

.atras {
    background: var(--bg-de);
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
    padding: 15px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
    color: white;
}

.tarjeta:hover {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

/*CARTA IMAGEN*/
.blur {
    backdrop-filter: blur(30px);
}

.cartaDetalle {
    background-color: transparent;
}

.cartaDetalle-title {
    background: rgb(from var(--mud-palette-info-lighten) r g b / 50%);
    color: var(--mud-palette-white);
    height: 60px;
}

.cartaDetalle-surface {
    background: rgb(from var(--mud-palette-surface) r g b / 75%);
}


@media (max-width: 960px) {
    .service-container {
        gap: 20px;
    }

    .service-subcontainer {
        flex-direction: column;
        padding: 0 20px;
    }

    .service-container-text {
        width: 100%;
    }

    .service-container-image {
        width: 100%; /* Cambiado a 90% solo en móvil */
        justify-content: center;
    }

    .image-service {
        width: 100%; /* Para asegurarnos de que ocupe todo el contenedor */
        height: auto; /* Mantiene la proporción */
    }

    .servicio-carousel {
        width: 100%;
    }

    .cartaDetalle {
        width: 95%;
    }
}
