/* Sección de Servicios */
.services {
    padding: 80px 20px;
    background: white;
}

.section-title {
    font-size: clamp(24px, 3vw, 32px);
    text-align: center;
    font-weight: bold;
    color: #003366!important;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color:black;
    margin-bottom: 50px;
}

/* Filas de servicios */
.service-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}

.service-row.reverse {
    flex-direction: row-reverse; /* Alterna el contenido e imagen */
}

/* Contenedor de imagen con efecto */
.service-image {
    flex: 1;
    text-align: center;
    overflow: hidden; /* Evita que la imagen sobresalga al hacer zoom */
    border-radius: 10px;
}

.service-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    transition: transform 0.3s ease-in-out; /* Agrega una transición suave */
}

/* Efecto zoom al pasar el mouse */
.service-image:hover img {
    transform: scale(1.1); /* Aumenta el tamaño en un 10% */
}

/* Video */
.service-video video {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

/* Contenido del servicio */
.service-content {
    flex: 1;
    text-align: justify; /* Justifica el texto para mayor orden */
    color: black;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el contenido verticalmente */
}

.service-content h3 {
    font-size: 1.8rem;
    color: #003366;
    margin-bottom: 15px;
    font-weight: bold;
}

.service-content p {
    font-size: 1rem;
    color: black;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Ajustar imágenes y videos al mismo tamaño, permitiendo recorte */
.service-image,
.service-video {
    width: 100%;
    height: 300px; /* Ajusta según sea necesario */
    overflow: cover; /* Recorta contenido que sobresalga */
    border-radius: 10px;
}

.service-image img,
.service-video video {
    width: 100%;
    height: 99%;
    object-fit: cover; /* Mantiene la proporción y recorta lo que sobre */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
/* Responsivo */
@media (max-width: 768px) {
    .service-row {
        flex-direction: column;
    }

    .service-row.reverse {
        flex-direction: column;
    }

    .service-content {
        text-align: center;
    }

    .service-image img {
        width: 100%;
    }
}
/* Para evitar cambios inesperados en pantallas más pequeñas */
@media (max-width: 768px) {
    .service-image img,
    .service-video video {
        height: 200px; /* Reducir tamaño en pantallas pequeñas */
    }
}
