html {
    scroll-behavior: smooth;
}
html,
body {
    overflow-x: hidden;
}

section {
    height: 100vh;
    scroll-snap-align: start;
}

.hero {
    background-image: url("/imagenes/paginas/index/hero.jpg");
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    min-height: 100dvh;
    max-height: 100dvh;
    width: 100%;
    padding-top: 80px;
}

.we-are,
.interior,
.atributos,
.galeria {
    min-height: 100dvh;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* we are */
.we-are p {
    color: #000;
    font-size: 20px;
    font-style: normal;
    font-weight: 300;
    line-height: 28px;
}

.we-are-logo svg{
    height: 120px;
    filter: grayscale(1);
}

/* INTERIOR */

.interior {
    background-image: url("/imagenes/paginas/index/interior.jpg");
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: start;
    justify-content: end;
    width: 100%;
    max-width: 100vw; /* evita desbordamiento horizontal */
}

.interior::before,
.interior::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 343px;
    pointer-events: none;
    z-index: 1;
}

.interior::before {
    top: 0;
    background: linear-gradient(180deg, #000 15.87%, rgba(0, 0, 0, 0) 100%);
}

.interior::after {
    bottom: 0;
    background: linear-gradient(0deg, #000 15.87%, rgba(0, 0, 0, 0) 100%);
}

.interior-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    height: 100%;
    padding-top: 2rem;
    width: 100%;
    overflow: hidden;
}

.interior-contenido {
    padding-top: 120px;
    padding-right: clamp(20px, 5vw, 120px);
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 100%;
    box-sizing: border-box;
}

.interior p {
    color: var(--blanco);
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}


/* Atributos */
.atributos {
    background-image: url("/imagenes/paginas/index/motor.jpg");
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    color: var(--blanco);
}

.atributos::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 343px;
    background: linear-gradient(180deg, #000 15.87%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.atributos::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 343px;
    background: linear-gradient(0deg, #000 15.87%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.atributos > * {
    position: relative;
    z-index: 2; /* mayor que los pseudo-elementos (1) */
}
.atributos p {
    color: var(--blanco);
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.atributos-contenido {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.atributo-info {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: end;
    width: 100%;
    max-width: 90dvw;
    overflow: hidden;
    border-bottom: 2px solid var(--blanco);
    padding: 10px 10px 20px 10px;

    color: var(--blanco);
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.atributo-dato {
    max-width: 120px;
    width: 100%;
}

.atributo-cifras {
    width: 100%;
    max-width: 220px;
    color: var(--blanco);
    font-size: 80px;
    font-style: normal;
    font-weight: 400;
    line-height: 80px;
}
.atributo-medida {
    width: 100px;
    text-align: end;
}

/* Galeria */
.galeria {
    position: relative;
    width: 100vw;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.galeria .row.g-0 > [class*="col-"] {
    height: auto;
}

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

/* .galeria::before,
.galeria::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 343px;
    pointer-events: none;
    z-index: 1;
}

.galeria::before {
    top: 0;
    background: linear-gradient(180deg, #000 7%, rgba(0, 0, 0, 0) 100%);
}

.galeria::after {
    bottom: 0;
    background: linear-gradient(0deg, #000 7%, rgba(0, 0, 0, 0) 100%);
} */

#galeriaCarousel {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.galeria .carousel-item img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: bottom;
    display: block;
}

.icono-carrusel {
    color: var(--blanco);
    font-size: 40px;
}

.carousel-control-prev,
.carousel-control-next {
    top: 50%;
    transform: translateY(-50%);
    width: 5rem;
    height: auto;
    opacity: 1;
}

.carousel-control-prev {
    left: 3%;
}

.carousel-control-next {
    right: 3%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

.carousel-control-prev,
.carousel-control-next {
    height: 48px;
    width: 48px;
    padding: 8px;
    border-radius: 1000%;
    transition: 0.3s;
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

@media (max-width: 800px) {
    .atributo-info {
        justify-content: space-between;
    }
    .atributo-cifras {
        text-align: center;
    }
}
@media (min-width: 768px) {
    .galeria .row.g-0 > [class*="col-"] {
        height: calc(100vh / 3);
    }
}
