.hero {
    display: flex;
    flex-direction: column;
    height: 85vh;
    padding: 0px 10px 48px 10px;
    justify-content: end;
    gap: 10px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0) 62.02%, #fff 100%),
        url("/imagenes/paginas/index/CEIBO_Ref_141129_Masia_Aguas_Vivas_2_4k.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-caption {
    padding-inline-start: 5%;
    color: var(--blanco);
    text-align: start;
    font-size: 64px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    text-transform: uppercase;
}

.hero-divider {
    width: 200px;
    height: 2px;
    background-color: #fff;
    margin: 16px 0 16px 5%;
}

.hero-subcaption {
    padding-inline-start: 5%;
    color: var(--blanco);
    font-size: 24px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    text-align: start;
}
/* navbar */
.navbar-index {
    background: none;
    position: absolute;
    top: 24px;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 999;
}

/* productos */
.row-productos {
    justify-content: space-between;
    gap: 16px;
}

.card-producto {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    border-radius: 8px;
    border: 1px solid var(--gris);
    background: #fff;
    overflow: hidden;
    height: 250px;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.card-producto:hover {
    transform: scale(1.02);
    cursor: pointer;
}

.card-producto img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    padding: 0.25rem;
}

.card-producto-title {
    width: 100%;
    background-color: var(--principal);
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding: 0.5rem;
}

/* empresa */

.fondo-bg-empresa {
    background-image: url("/imagenes/paginas/index/bg-empresa.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    width: 100%;
    min-height: 300px;
}

/* servicios */
.card-servicio {
    display: flex;
    width: 100%;
    padding: 0px 16px;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px;
    border: 1px solid var(--gris);
    padding: 0.75rem;
    transition: all 0.3s ease;
    background-color: var(--blanco);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.card-servicio:hover {
    background-color: var(--principal-light);
    border-color: var(--principal);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    /*cursor: pointer;*/
    cursor: not-allowed;
}

.card-servicio-title {
    color: #000;
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.card-servicio-icono {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

/* inspirate */
.img-wrapper {
    overflow: hidden;
}

.img-wrapper img {
    display: block;
}

.cuadrada {
    aspect-ratio: 1 / 1;
}

.max-altura {
    height: 100%;
    max-height: 350px;
}

.object-fit-cover {
    object-fit: cover;
}

/*divisor */
.divisor-morado {
    display: flex;
    width: 1000px;
    height: 4px;
    padding: 0px 10px;
    align-items: flex-start;
    gap: 10px;
    border-top: 4px solid var(--principal);
}

/* Carrusel */
/* .categorias-carousel {
    position: relative;
}

#cardContainer {
    scroll-behavior: smooth;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
} */

.categorias-carousel .carousel-control-prev,
.categorias-carousel .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.categorias-carousel .carousel-control-prev {
    left: -30px; /* ajusta según el diseño */
}

.categorias-carousel .carousel-control-next {
    right: -30px; /* ajusta según el diseño */
}
.carousel-control-prev,
.carousel-control-next {
    background-color: rgba(0, 0, 0, 1);
    height: 1.5rem;
    width: 1.5rem;
    top: 25%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: -10px;
}

.carousel-control-next {
    right: -10px;
}

.carousel-control-prev,
.carousel-control-next {
    z-index: 10;
}

#cardContainer {
  overflow-x: auto;
  scroll-behavior: smooth;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

#cardContainer::-webkit-scrollbar {
  display: none;
}

.transition {
    transition: transform 0.3s ease-in-out;
}
/* responsive */

@media (max-width: 1199.98px) {
}
@media (max-width: 991.98px) {
    .row-productos {
        justify-content: center;
    }
}
@media (max-width: 767.98px) {
    .row-productos {
        justify-content: center;
    }
    .hero-caption {
        font-size: 2.5rem;
    }
}
@media (max-width: 575.98px) {
    .row-productos {
        justify-content: center;
    }
}
