﻿/*/// Ticket GLPI 9589 */

:root {
    --brand-900: #FF6600;
    --bg: #FFFFFF;
    --ink-600: #606060;
    --ink-300: #C7C7C7;
    --blacka5: rgba(0,0,0,.05);
    --blacka10: rgba(0,0,0,.10);
}

/* Contenedor general */
.eco-hero {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 3vw 0 1.5vw 0;
}

/* Sección principal */
.eco-section {
    width: 100%;
    height: 100%;
    margin: 0 !important;
    border-radius: 1.5vw;
    background: var(--bg);
    box-shadow: 0px 0.3vw 0.45vw -0.15vw var(--blacka5), 0px 0.75vw 1.125vw -0.225vw var(--blacka10);
    padding: 2vw 3vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 3vw;
}

/* Texto */
.eco-section__text {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2vw;
}
/* Título */
.eco-section__title {
    width: 100%;
    max-width: 100%;
    font-family: "Gotham-Black" !important;
    font-weight: 900;
    font-size: 3vw;
    color: var(--ink-300);
    /* margin: 1.5vw 0; */
    text-align: left;
}

/* Contenedor colapsable de descripción */
.eco-section__descwrap {
    position: relative;
    width: 100%;
    max-height: 5vw !important;
    overflow: hidden;
    transition: max-height .35s cubic-bezier(.22,.61,.36,1);
    /* margin-top: 0.5vw; */
}

    .eco-section__descwrap[data-has-toggle="true"][data-mode="collapsed"]::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        pointer-events: none;
        height: 5vw;
        background: linear-gradient(to top, #fff 10%, #fff0 100%);
    }

/* Descripción */
.eco-section__desc {
    font-family: "Gotham-Light";
    /*font-weight: 300; */
    font-size: 1vw;
    line-height: 1.5vw;
    color: var(--ink-600);
    text-align: justify;
    display: block;
    padding-right: 8px;
}

/* Expandido */
.eco-section__descwrap[data-mode="expanded"] {
    max-height: none !important;
}

    .eco-section__descwrap[data-mode="expanded"]::after {
        content: none;
    }

/* Botón Leer más */
.eco-section__toggle {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    border: 0;
    background: transparent;
    padding: 0;
    font-family: "Gotham-Medium";
    font-weight: 350;
    font-size: 1vw;
    color: var(--brand-900);
    cursor: pointer;
    width: 100%;
    justify-content: initial;
}

    .eco-section__toggle img {
        width: 2vw;
        height: 2vw;
    }

@media (max-width: 767px) {

    .eco-section__descwrap {
        max-height: 30vw !important;
    }

    .eco-section__text {
        gap: 4vw;
    }

    .eco-section {
        width: 100%;
        padding: 6vw 8.5vw;
        border-radius: 4vw;
    }

    .eco-section__title {
        font-size: 6vw;
        line-height: 6vw;
        text-align: center;
        display: block;
        word-wrap: normal;
        hyphens: none;
    }

        .eco-section__title br {
            display: block;
            content: "";
            margin: 0;
            line-height: 0.1;
        }

    .eco-section__desc {
        font-size: 3.06vw !important;
        line-height: 4.488vw;
        padding: 0;
        text-align: justify;
        font-family: Gotham-Book;
    }

    .eco-section__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 6px;
        margin-top: 8px;
        border: 0;
        background: transparent;
        padding: 0;
        font-family: "Gotham-Medium";
        font-weight: 350;
        font-size: 3vw;
        line-height: 1rem;
        color: var(--brand-900);
        cursor: pointer;
    }

        .eco-section__toggle img {
            width: 5vw;
            height: 5vw;
        }
}
