/* index */

.hero-section {
    position: relative;
    display: flex;
    height: 800px;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */
    gap: 10px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url("/imagenes/paginas/index/hero.jpg") center center / cover no-repeat;
    color: white;
    text-align: start;
    padding: 0 1rem;
}

.hero-section h1,
.hero-section h3 {
    margin: 0;
}

.hero-caption {
    color: var(--blanco);
    font-size: 64px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.hero-subcaption {
    color: var(--blanco);
    font-size: 28px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

/* Imagenes */
.img-index {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: cover;
    min-height: 350px;
}

/* Servicios */
.item-servicio {
    display: flex;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 300px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item-servicio h3 {
    z-index: 2;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.item-servicio::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.item-servicio:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.item-servicio:hover::before {
    opacity: 1;
}

.item-servicio h3{
    text-align: center;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: uppercase;
}
/* Casos de exito */

.item-caso {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-height: 330px;
}

.item-caso .imagen {
    display: flex;
    height: 300px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    align-self: stretch;
    overflow: hidden;
}

.item-caso .imagen img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.item-caso .texto {
    color: #000;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-align: start;
}

/* carrusel casos */
#carouselCasos .carousel-control-prev,
#carouselCasos .carousel-control-next {
    width: 5%;
    opacity: 1;
    transition: 0.3s ease;
    z-index: 2;
}

#carouselCasos .carousel-control-prev {
    left: -4rem;
}

#carouselCasos .carousel-control-next {
    right: -4rem;
}

.carousel-control-prev i,
.carousel-control-next i {
    transition: transform 0.3s ease, color 0.3s ease;
    color: var(--texto);
}

.carousel-control-prev:hover i,
.carousel-control-next:hover i {
    color: var(--negro);
    transform: scale(1.2);
}

/* Modal casos existo */
 .modalCasoExito .modal-content {
        overflow: hidden;
        border-radius: 0;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
        background: none;
    }

   .modalCasoExito .modal-header {
        background-color: var(--principal);
        color: #fff;
        padding: 1.5rem;
        border-radius: 0 !important;
    }

   .modalCasoExito .modal-title {
        font-weight: 600;
        letter-spacing: 1px;
    }

   .modalCasoExito .modal-body {
        padding: 2rem;
        background-color: #f9f9f9;
    }

   .modalCasoExito .modal-body p {
        font-size: 1rem;
        line-height: 1.7;
        color: #333;
        margin-bottom: 1.2rem;
    }

   .modalCasoExito .modal-body img {
        border-radius: 0;
        border: 1px solid var(--gris);
    }

   .modalCasoExito .modal-footer {
        background-color: #f9f9f9;
        padding: 1.5rem 2rem;
        border-top: none;
        border-radius: 0 !important;
    }

   .modalCasoExito .boton-modal {
        background-color: #1f1f1f;
        color: #fff;
        padding: 0.5rem 1.5rem;
        transition: background-color 0.3s ease;
    }

   .modalCasoExito .boton-modal:hover {
        background-color: #343434;
    }

@media (max-width: 500px) {
    .hero-caption{
        font-size: 2.5em;
    }

    .hero-subcaption{
        font-size: 1.25rem;
    }
}
