
h1, h2, h3, strong{
    color: #9F7DE2;
}
/* CSS */
.service-images {
display: flex;
gap: 20px;
margin-bottom: 40px;
justify-content: center;
}

/* Imagen principal: ocupa 60% del ancho */
.service-images .main-image {
flex: 0 0 60%;
max-width: 43%;
height: auto;
border-radius: 10px;
object-fit: cover;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Contenedor de antes/​después: 40% */
.service-images .side-gallery {
flex: 0 0 40%;
display: flex;
flex-direction: column;
gap: 10px;
}

/* Miniaturas: altura fija en escritorio */
.service-images .side-gallery img {
width: 100%;
height: 30vh;
object-fit: cover;
border-radius: 8px;
box-shadow: 0 3px 8px rgba(0,0,0,0.1);
transition: transform 0.3s ease;
}
.service-images .side-gallery img:hover {
transform: scale(1.03);
}
/* Estilos para el carrusel de testimonios */
.testimonials {
    padding: 60px 0;
    background-color: #f9f9f9;
    margin: 40px 0;
    border-radius: 10px;
    overflow: hidden;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.testimonial-carousel {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    max-width: 95%;
    margin: 0 auto;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 300%; /* Para 3 testimonios */
}

.testimonial-slide {
    width: 33.333%; /* Para 3 testimonios */
    flex-shrink: 0;
    padding: 0 15px;
    box-sizing: border-box;
}

.testimonial-item {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stars {
    color: #FFD700;
    font-size: 18px;
    margin-bottom: 15px;
}

.quote {
    font-style: italic;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.author {
    font-weight: bold;
    color: #555;
    margin: 0;
    text-align: right;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #333;
}

/* Estilos para servicios relacionados */
.related-services {
    padding: 60px 0;
}

.related-services h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.related-services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.related-service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.related-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.related-service-card h3 {
    padding: 20px 20px 10px;
    margin: 0;
    color: #333;
    font-size: 18px;
}

.related-service-card p {
    padding: 0 20px 20px;
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.related-service-card .btn {
    margin: 0 20px 20px;
    display: inline-block;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 14px;
    background-color: #9F7DE2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-sm:hover {
    background-color: #9362f5;
}

/* Media queries para responsividad */
@media (max-width: 992px) {
    .service-images {
        flex-direction: column;
        align-items: center;            /* centra todo el bloque de imágenes */

    }

    .service-images .main-image,
    .service-images .side-gallery {
        flex: 1 1 100%;
        max-width: 70%;
    }

    /* Mantén la galería lateral en columna, no en fila */
    .service-images .side-gallery {
        flex-direction: column;
        display: flex;
        gap: 10px;
        margin-top: 20px;
    }

    /* Ajusta altura para que no queden muy grandes */
    .service-images .side-gallery img {
        width: 100%;
        height: 20vh;     /* mantiene 30% de la altura de la ventana */
        object-fit: cover;
        border-radius: 8px;
    }
    .testimonial-slide {
        width: 100%;
        padding: 0 10px;
    }
    
    .testimonial-track {
        width: 100%; /* Mantiene el 300% para 3 testimonios */
    }
    
    .related-services-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .related-service-card {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .service-images {
        flex-direction: column;
        align-items: center;            /* centra todo el bloque de imágenes */

    }

    .service-images .main-image,
    .service-images .side-gallery {
        flex: 1 1 100%;
        max-width: 100%;
    }

    /* Mantén la galería lateral en columna, no en fila */
    .service-images .side-gallery {
        flex-direction: column;
        display: flex;
        gap: 10px;
        margin-top: 20px;
    }

    /* Ajusta altura para que no queden muy grandes */
    .service-images .side-gallery img {
        width: 100%;
        height: 15vh;     /* mantiene 30% de la altura de la ventana */
        object-fit: cover;
        border-radius: 8px;
    }
}