.offcanvas-principal {
    background-color: var(--negro2);
}

.hero-index::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 25%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
}

.hero-index .img-hero {
    max-height: 100vh;
    min-height: 500px;
    object-fit: cover;
    object-position: bottom;
    transition: transform 4.5s ease-in-out;
    transform-origin: center center;
    transform: scale(1); /* Estado inicial */
}

.hero-index .carousel-item.zooming .img-hero {
    transform: scale(1.1);
}

.hero-index .caption-hero {
    position: absolute;
    bottom: 30px;
    right: 100px;
    max-width: 700px;
    text-align: end;
    z-index: 2;
}

.hero-index h2 {
    font-weight: 700;
    font-size: 2.4rem;
}

.banner-contacto a:not(.btn) {
    color: white;
    transition: opacity 0.2s;
}
.banner-contacto a:hover:not(.btn) {
    opacity: 0.6;
}
.banner-contacto .caja-showroom-vlc {
    border-right: 2px solid white;
}

.colecciones-home a {
    text-decoration: none;
    color: var(--negro);
    opacity: 0.5;
}

.colecciones-home a:hover {
    /* color: var(--negro); */
    opacity: 1;
}

.titulo-nombre-coleccion {
    font-family: "Montserrat";
    font-weight: 500;
}

.transicion-imagen-coleccion {
    transition: opacity 0.4s ease-in-out;
    opacity: 1;
}

.empresa-home {
    background-image: url("/imagenes/paginas/index/fondo-madera-1.jpg");
    background-size: cover;
}

.empresa-home .row {
    min-height: 500px;
}

.empresa-home .img-1 {
    transform: translateY(80px);
}

/* SECCION FERIAS */
.seccion-ferias {
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.seccion-ferias::after {
    content: "";
    width: 1px;
    height: 100%;
    position: absolute;
    right: 10%;
    top: 0;
    background-color: var(--negro);
}

.seccion-ferias::before {
    content: "";
    width: 100%;
    height: 1px;
    position: absolute;
    bottom: 3rem;
    left: 0;
    background-color: var(--negro);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--negro) !important;
}
.container-swiper-ferias {
    position: relative;
}

.swiper-ferias .container-navigation {
    position: absolute;
    top: 0;
    right: 0;
}

.titulo-ferias {
    line-height: 1;
    position: absolute;
    left: 0;
    bottom: 3rem;
    transform: /* translateX(-100%) */ rotate(-90deg);
    transform-origin: 0% 100%;
}

.container-swiper-ferias::after {
    content: "Ferias";
    font-weight: bold;
    font-size: 5rem;
    position: absolute;
    right: 0;
    top: 3rem;
    transform: translate(100%, -100%) rotate(90deg);
    transform-origin: 0% 100%;
    line-height: 1;
    opacity: 0.1;
}

.card-noticia-home {
    color: white;
    transition: 0.3s;
    height: 270px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card-noticia-home:hover {
    color: #ccc;
}

/* Seccion de tiopos de productos */
.transition {
    transition: transform 0.5s ease-in-out;
}

.categorias-carousel .swiper-slide {
    width: auto !important;     /* clave para que Swiper meta varias */
    flex-shrink: 0 !important;  /* evita que se estiren o reduzcan */
    display: flex;              /* mantiene la tarjeta correctamente alineada */
}

.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;
}

.categorias-carousel .carousel-control-next {
    right: -30px;
}

@media (max-width: 1199.5px) {
    .enlace-megamenu {
        width: 100%;
    }

    .hero-index .caption-hero {
        max-width: 500px;
    }
    .hero-index h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 767.5px) {
    .hero-index .caption-hero {
        right: 0;
        max-width: 100%;
        text-align: start;
    }
    .hero-index h2 {
        font-size: 1.3rem;
    }
}
