.carousel-control-prev,
.carousel-control-next {
    width: 25px;
    height: 25px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.904); /* Fondo más oscuro al pasar el mouse */
    border-radius: 50%; /* Hacer los botones redondos */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    color: #fff; /* Color de los iconos */
    text-decoration: none;
}

.carousel-control-prev {
    left: 5px;
}

.carousel-control-next {
    right: 5px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color:#FF6D1F; /* Fondo más oscuro al pasar el mouse */
}

.carousel-control-prev i,
.carousel-control-next i {
    font-size: 1.0rem; /* Tamaño de los iconos */
}

/* Estilos para el contenedor principal */
.intro-images {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.intro-images img {
    max-width: 30%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Estilos para las tarjetas de servicio */
.service-card .card {
    border: none;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0);
    padding-bottom: 2rem;
}

.service-card .card-img-top {
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    width: auto;
    height: 300px;
    display: block;
    margin: 0 auto;
    object-fit: cover;
}

.service-card .card-body {
    background-color: #f6f8ff00;
    padding: 1.5rem;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

/*Inicio*/
.service-card h1 {
    color: white; /* color de texto */
    font-size: 1.5rem; /* tamaño de los subtítulos */
    margin-bottom: 10px; /* margen inferior */
    position: relative; /* posición relativa para pseudo-elementos */
    display: inline-block; /* para el ancho adecuado del fondo */
    padding: 10px 20px; /* espacio alrededor del texto */
    background-color: #423E3B; /* color de fondo */
    border-radius: 30px; /* bordes redondeados */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* sombra */
}

.service-card h1::before, .service-card h1::after {
    content: '';
    position: absolute;
    z-index: -1; /* detrás del texto */
    background-color: #FF6D1F; /* color del elemento decorativo */
    border-radius: 50%; /* forma circular */
}

.service-card h1::before {
    top: -5px;
    left: -5px;
    width: 20px;
    height: 20px;
}

.service-card h1::after {
    bottom: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
}
/*Fin*/

.service-card ul {
    text-align: center;
    padding-left: 1rem;
    list-style: square;
    font-size: 1.05rem;
}

/* Estilos específicos para la sección de Soluciones eléctricas */
.service-item {
    margin-bottom: 3rem;
}

.service-item i {
    color: white;
    text-align: left;
}

.service-item img {
    margin-bottom: 1rem;
}

.service-item .service-details{
    text-align: center;
    font-size: 1.05rem;
}

.service-item .service-details strong {
    color: #2E282A;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 1.1rem;
}

.service-item .service-details ul {
    padding-left: 1rem;
    list-style: square;
    margin-bottom: 1rem;
}

.service-item .service-details ul ul {
    padding-left: 1rem;
    list-style: square;
}


@media (max-width: 576px),
       (max-width: 430px),
       (max-width: 414px),
       (max-width: 375px),
       (max-width: 360px) {
    .service-card .card-img-top {
        height: 175px;
        margin: 0 auto;
        object-fit: contain;
    }
    .service-card .carousel-control-prev {
        left: -45px;
        margin: 0 auto;
        object-fit: contain;
    }
    
    .service-card .carousel-control-next {
        right: -45px;
        margin: 0 auto;
        object-fit: contain;
    }
    .carousel-control-prev {
        left: -15px;
        margin: 0 auto;
        object-fit: contain;
    }
    
    .carousel-control-next {
        right: -15px;
        margin: 0 auto;
        object-fit: contain;
    }
}

@media (max-width: 344px) {
    .service-card .card-img-top {
        height: 160px;
        margin: 0 auto;
        object-fit: contain;
    }
}

@media (max-width: 1200px),
       (max-width: 992px) ,
       (max-width: 768px) {
    .service-card .card-img-top {
        height: 185px;
        margin: 0 auto;
        object-fit: contain;
    }
}
