/* =========================================
   SOBRE NOSOTROS
========================================= */

.about {
    width: 100%;

    min-height: 520px;
    padding: 100px 0;

    display: grid;

    grid-template-columns:
        38% 40% 22%;

    background: var(--color-background);

    overflow: hidden;
}


/* =========================================
   IMAGEN
========================================= */

.about-image {
    width: 100%;
    height: 100%;

    min-height: 420px;

    overflow: hidden;

    background: #e5e5e5;
}


.about-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;
}


/* =========================================
   CONTENIDO
========================================= */

.about-content {
    padding:
        45px
        60px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: flex-start;
}


/* =========================================
   EYEBROW
========================================= */

.about-content .section-eyebrow {
    margin: 0 0 12px;

    font-size: 0.72rem;

    letter-spacing: 0.18em;
}


/* =========================================
   TÍTULO
========================================= */

.about-content h2 {
    margin: 0 0 20px;

    color: var(--color-dark);

    font-size: clamp(2.2rem, 3vw, 3.4rem);

    font-weight: 700;

    line-height: 1.05;

    letter-spacing: -0.035em;
}


/* =========================================
   TEXTOS
========================================= */

.about-content > p:not(.section-eyebrow) {
    max-width: 100%;

    margin: 0 0 14px;

    color: var(--color-text);

    font-size: 0.9rem;

    line-height: 1.6;
}


/* =========================================
   BOTÓN
========================================= */

.about-button {
    min-height: 46px;

    margin-top: 8px;

    padding:
        0
        22px;

    font-size: 0.82rem;
}


/* =========================================
   VALORES
========================================= */

.about-values {
    padding:
        40px
        45px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 24px;

    border-left:
        1px solid rgba(20, 45, 75, 0.16);
}


/* =========================================
   ITEM
========================================= */

.about-values > div {
    display: flex;

    align-items: center;

    gap: 18px;
}


/* =========================================
   ICONOS
========================================= */

.about-values i {
    width: 26px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    color: var(--color-primary);

    font-size: 1.3rem;
}


/* =========================================
   TEXTO VALORES
========================================= */

.about-values span {
    color: var(--color-dark);

    font-size: 0.95rem;

    font-weight: 600;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .about {
        grid-template-columns:
            35% 65%;

        min-height: auto;
    }


    .about-image {
        min-height: 450px;
    }


    .about-content {
        padding:
            65px
            50px;
    }


    .about-content h2 {
        font-size: 2.8rem;
    }


    .about-content > p:not(.section-eyebrow) {
        font-size: 0.95rem;
    }


    .about-button {
        min-height: 50px;

        font-size: 0.85rem;
    }


    .about-values {
        grid-column: 1 / -1;

        flex-direction: row;

        flex-wrap: wrap;

        justify-content: space-around;

        padding: 40px 30px;

        border-left: none;

        border-top:
            1px solid rgba(20, 45, 75, 0.16);
    }


    .about-values span {
        font-size: 0.9rem;
    }

}


/* =========================================
   MÓVIL
========================================= */

@media (max-width: 768px) {

    .about {
        display: flex;

        flex-direction: column;
    }


    .about-image {
        width: 100%;

        height: 340px;

        min-height: 340px;
    }


    .about-content {
        padding:
            65px
            25px;
    }


    .about-content .section-eyebrow {
        font-size: 0.72rem;
    }


    .about-content h2 {
        font-size:
            clamp(2.5rem, 10vw, 3.7rem);
    }


    .about-content > p:not(.section-eyebrow) {
        font-size: 0.95rem;

        line-height: 1.65;
    }


    .about-button {
        min-height: 52px;

        font-size: 0.88rem;
    }


    .about-values {
        flex-direction: column;

        align-items: flex-start;

        padding:
            50px
            25px;

        gap: 22px;
    }

}


/* =========================================
   MÓVIL PEQUEÑO
========================================= */

@media (max-width: 480px) {

    .about-image {
        height: 280px;

        min-height: 280px;
    }


    .about-content {
        padding:
            55px
            20px;
    }


    .about-content h2 {
        font-size:
            clamp(2.1rem, 11vw, 3.1rem);
    }

}
/* =========================================
   MODAL - NUESTRA HISTORIA
========================================= */

.history-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 30px;

    overflow: hidden;
}


/* MODAL ABIERTO */

.history-modal.active {
    display: flex;
}


/* =========================================
   FONDO OSCURO
========================================= */

.history-modal-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(4, 15, 28, 0.82);

    backdrop-filter:
        blur(6px);
}


/* =========================================
   PANEL PRINCIPAL
========================================= */

.history-modal-content {
    position: relative;

    z-index: 2;

    width: min(1150px, 100%);

    height: min(720px, calc(100vh - 60px));

    display: grid;

    grid-template-columns:
        1.15fr
        0.85fr;

    background:
        var(--color-white);

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 25px 80px
        rgba(0, 0, 0, 0.4);
}


/* =========================================
   BOTÓN CERRAR
========================================= */

.history-close {
    position: absolute;

    top: 18px;

    right: 18px;

    z-index: 10;

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.95);

    color:
        var(--color-dark);

    cursor: pointer;

    font-size: 1.1rem;

    transition:
        transform var(--transition-normal),
        background var(--transition-normal);
}


.history-close:hover {
    transform:
        rotate(90deg);

    background:
        var(--color-white);
}


/* =========================================
   VIDEO
========================================= */

.history-video {
    width: 100%;
    height: 100%;

    overflow: hidden;
    background: #000;

    display: flex;
    align-items: center;
    justify-content: center;
}

.history-video video {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
    object-position: center;
}



/* =========================================
   CONTENIDO CON SCROLL PROPIO
========================================= */

.history-content {
    min-width: 0;

    height: 100%;

    padding:
        65px
        55px
        45px;

    overflow-y: auto;

    overscroll-behavior: contain;

    scrollbar-width: thin;

    scrollbar-color:
        rgba(20, 55, 90, 0.45)
        transparent;
}


/* SCROLL CHROME */

.history-content::-webkit-scrollbar {
    width: 7px;
}


.history-content::-webkit-scrollbar-track {
    background:
        transparent;
}


.history-content::-webkit-scrollbar-thumb {
    background:
        rgba(20, 55, 90, 0.4);

    border-radius: 10px;
}


/* =========================================
   TEXTO
========================================= */

.history-content .section-eyebrow {
    margin:
        0
        0
        12px;
}


.history-content h2 {
    margin:
        0
        0
        26px;

    color:
        var(--color-dark);

    font-size:
        clamp(2rem, 3vw, 3.2rem);

    line-height:
        1.1;
}


.history-content > p {
    margin:
        0
        0
        18px;

    color:
        var(--color-text);

    font-size:
        0.95rem;

    line-height:
        1.7;
}


/* =========================================
   VALORES
========================================= */

.history-highlights {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 25px;
}


.history-highlights div {
    display: flex;

    align-items: center;

    gap: 8px;

    padding:
        10px
        14px;

    background:
        rgba(10, 45, 75, 0.07);

    border-radius: 8px;

    color:
        var(--color-dark);

    font-size:
        0.8rem;

    font-weight: 600;
}


.history-highlights i {
    color:
        var(--color-primary);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .history-modal {
        padding: 20px;
    }


    .history-modal-content {
        width: min(700px, 100%);

        height:
            calc(100vh - 40px);

        grid-template-columns:
            1fr;

        grid-template-rows:
            350px
            minmax(0, 1fr);
    }


    .history-video {
        height: 350px;
    }


    .history-content {
        padding:
            45px
            35px;
    }

}


/* =========================================
   MÓVIL
========================================= */

@media (max-width: 600px) {

    .history-modal {
        padding: 10px;
    }


    .history-modal-content {
        height:
            calc(100vh - 20px);

        border-radius:
            14px;

        grid-template-rows:
            230px
            minmax(0, 1fr);
    }


    .history-video {
        height:
            230px;
    }


    .history-content {
        padding:
            40px
            25px;
    }


    .history-content h2 {
        font-size:
            2rem;
    }


    .history-close {
        top: 12px;

        right: 12px;

        width: 38px;
        height: 38px;
    }

}
body.history-modal-open {
    overflow: hidden;
}