/* ===== Tendencias: book de fotos que aparecen al scrollear ===== */
.tend-intro {
    padding: 72px 40px 32px 40px;
    text-align: center;
}

.tend-intro h1 {
    font-size: 40px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #33261f;
}

.tend-intro h1 small {
    display: block;
    margin: 10px 0 0 0;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: none;
    color: rgba(51, 38, 31, 0.6);
}

.tend-intro p {
    margin-top: 16px;
    font-size: 15px;
    color: rgba(51, 38, 31, 0.75);
}

.tend-book {
    padding: 24px 0 0 0;
}

/* igual que los banners del final del inicio: pantalla ancha, se van apilando al scrollear */
.tend-panel {
    position: sticky;
    top: var(--alto-header, 80px);
    height: 760px;
    display: flex;
    overflow: hidden;
    background-color: #f6f3ee;
}

.tend-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(55, 35, 19, 0) 45%, rgba(55, 35, 19, 0.45) 100%);
}

.tend-item {
    margin: 0;
    position: relative;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.tend-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* nombre de los productos, discreto sobre la foto */
.tend-item figcaption {
    position: absolute;
    left: 24px;
    bottom: 22px;
    z-index: 2;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 253, 252, 0.85);
}

.tend-cta {
    position: relative;
    background: var(--soft-white);
    display: flex;
    justify-content: center;
    padding: 72px 40px 96px 40px;
}

.tend-cta .boton-consulta {
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 54px;
    padding: 0 40px;
    border-bottom: 1px solid var(--brown);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background-image: linear-gradient(var(--brown), var(--brown));
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 100% 0;
    transition: background-size 0.3s ease, color 0.3s ease;
}

.tend-cta .boton-consulta:hover {
    background-size: 100% 100%;
    color: var(--soft-white);
}

@media (max-width: 1199.98px) {
    .tend-panel {
        height: 560px;
    }
}

@media (max-width: 809.98px) {
    .tend-intro {
        padding: 48px 20px 16px 20px;
    }

    .tend-intro h1 {
        font-size: 28px;
    }

    .tend-intro h1 small {
        display: block;
        margin: 8px 0 0 0;
    }

    /* en celular cada foto es su propio banner, una sobre otra */
    .tend-panel {
        display: contents;
    }

    .tend-panel::after {
        display: none;
    }

    .tend-item {
        position: sticky;
        top: var(--alto-header, 80px);
        flex: none;
        height: 440px;
    }

    .tend-item::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(55, 35, 19, 0) 45%, rgba(55, 35, 19, 0.45) 100%);
    }

    .tend-item figcaption {
        left: 16px;
        bottom: 16px;
    }
}
