/* ==========================================================
   ESFECOL - SOBRE NOSOTROS
   ========================================================== */


/* ==========================================================
   VARIABLES LOCALES
   ========================================================== */

.about-page {
    --about-blue: #064a9b;
    --about-blue-dark: #06366f;
    --about-blue-light: #eaf5ff;
    --about-blue-soft: #dceeff;

    --about-text: #102f54;
    --about-text-light: #55708e;

    --about-radius: 22px;

    overflow: hidden;
}


/* ==========================================================
   CONTENEDOR
   ========================================================== */

.about-container {
    width: min(1180px, calc(100% - 80px));
    margin-inline: auto;
}


/* ==========================================================
   ELEMENTOS GENERALES
   ========================================================== */

.about-page h1,
.about-page h2,
.about-page h3,
.about-page p {
    margin-top: 0;
}

.about-page h1,
.about-page h2,
.about-page h3 {
    color: var(--about-text);
}

.about-page p {
    color: var(--about-text-light);
    line-height: 1.7;
}


/* ==========================================================
   EYEBROW
   ========================================================== */

.about-eyebrow {
    display: inline-block;

    margin-bottom: 16px;

    color: var(--about-blue);

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.2;

    text-transform: uppercase;
}

.about-eyebrow--light {
    color: #bfe3ff;
}


/* ==========================================================
   BOTONES
   ========================================================== */

.about-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 48px;
    padding: 0 25px;

    border-radius: 999px;

    background: var(--about-blue);
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
    line-height: 1;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.about-btn:hover {
    transform: translateY(-2px);

    background: var(--about-blue-dark);

    box-shadow:
        0 10px 25px rgba(6, 74, 155, 0.18);
}

.about-btn span {
    font-size: 18px;
}

.about-btn--light {
    background: #ffffff;
    color: var(--about-blue);
}

.about-btn--light:hover {
    background: #ffffff;
    color: var(--about-blue-dark);
}


/* ==========================================================
   HERO
   ========================================================== */

.about-hero {
    position: relative;

    min-height: 570px;

    display: flex;
    align-items: center;

    background-image:
        url("../images/sobre-nosotros-hero.jpg");

    background-size: cover;
    background-position: center;
}

.about-hero__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(2, 43, 92, 0.97) 0%,
            rgba(2, 43, 92, 0.88) 32%,
            rgba(2, 43, 92, 0.35) 63%,
            rgba(2, 43, 92, 0.05) 100%
        );
}

.about-hero__container {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-hero__content {
    width: min(570px, 60%);
}

.about-hero h1 {
    max-width: 620px;

    margin-bottom: 22px;

    color: #ffffff;

    font-size: clamp(46px, 5vw, 72px);
    font-weight: 800;

    letter-spacing: -2.5px;
    line-height: 0.98;
}

.about-hero h1 span {
    color: #9dd9ff;
}

.about-hero p {
    max-width: 510px;

    margin-bottom: 30px;

    color: rgba(255, 255, 255, 0.92);

    font-size: 17px;
    line-height: 1.65;
}

.about-hero__phrase {
    align-self: flex-start;

    margin-top: 35px;
    padding-right: 30px;

    color: #ffffff;

    font-size: 29px;
    font-weight: 600;
    font-style: italic;

    line-height: 1.15;

    transform: rotate(-4deg);
}

.about-hero__phrase span {
    position: relative;
}

.about-hero__phrase span::after {
    content: "";

    position: absolute;
    right: 5px;
    bottom: -17px;

    width: 105px;
    height: 4px;

    border-radius: 50%;

    background: #3b9be8;

    transform: rotate(-3deg);
}


/* ==========================================================
   QUIÉNES SOMOS
   ========================================================== */

.about-story {
    padding: 105px 0;

    background: #ffffff;
}

.about-story__grid {
    display: grid;

    grid-template-columns: 0.88fr 1.12fr;

    gap: 80px;

    align-items: center;
}

.about-story__content h2 {
    max-width: 560px;

    margin-bottom: 24px;

    font-size: clamp(40px, 4vw, 58px);
    font-weight: 800;

    letter-spacing: -2px;
    line-height: 1.02;
}

.about-story__content h2 span {
    color: var(--about-blue);
}

.about-story__content p {
    max-width: 550px;

    margin-bottom: 17px;

    font-size: 16px;
}

.about-story__content .about-btn {
    margin-top: 10px;
}


/* ==========================================================
   IMAGEN - QUIÉNES SOMOS
   ========================================================== */

.about-story__media {
    position: relative;

    min-height: 470px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-frame {
    position: absolute;

    border-radius: var(--about-radius);

    overflow: hidden;
}

.about-image-frame--back {
    width: 91%;
    height: 88%;

    background: #cdeaff;

    transform:
        translate(18px, 18px)
        rotate(-3deg);
}

.about-image-frame--main {
    width: 91%;
    height: 88%;

    background: #ffffff;

    box-shadow:
        0 25px 60px rgba(8, 55, 100, 0.15);

    transform: rotate(1deg);
}

.about-image-frame--main img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.about-image-caption {
    position: absolute;

    right: 25px;
    bottom: 25px;

    max-width: 250px;

    color: #ffffff;

    text-align: right;

    text-shadow:
        0 2px 15px rgba(0, 0, 0, 0.35);

    transform: rotate(-4deg);
}

.about-image-caption strong,
.about-image-caption span {
    display: block;
}

.about-image-caption strong {
    font-size: 24px;
}

.about-image-caption span {
    font-size: 18px;
    font-style: italic;
}


/* ==========================================================
   ESENCIA
   ========================================================== */

.about-essence {
    padding: 90px 0 100px;

    background:
        linear-gradient(
            180deg,
            #eaf6ff 0%,
            #e4f3ff 100%
        );
}

.about-section-heading--center {
    max-width: 800px;

    margin: 0 auto 55px;

    text-align: center;
}

.about-section-heading h2 {
    margin-bottom: 16px;

    font-size: clamp(38px, 4vw, 52px);
    font-weight: 800;

    letter-spacing: -1.8px;
    line-height: 1.05;
}

.about-section-heading p {
    margin: 0 auto;

    font-size: 16px;
}

.about-essence__grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 55px;
}

.about-essence-card {
    padding: 10px 15px;
}

.about-icon {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    border-radius: 50%;

    background: #cbe8ff;
}

.about-icon svg {
    width: 36px;
    height: 36px;

    fill: none;

    stroke: var(--about-blue);
    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.about-essence-card h3 {
    margin-bottom: 14px;

    color: var(--about-blue-dark);

    font-size: 22px;
    font-weight: 800;
}

.about-essence-card p {
    margin-bottom: 0;

    font-size: 15px;
}

.about-values-list {
    margin: 0;
    padding-left: 20px;

    color: var(--about-text);

    font-size: 15px;
    line-height: 1.9;
}


/* ==========================================================
   SERVICIOS
   ========================================================== */

.about-services {
    padding: 105px 0;

    background: #ffffff;
}

.about-services__grid {
    display: grid;

    grid-template-columns: 1.08fr 0.92fr;

    gap: 65px;

    align-items: center;
}

.about-services__content h2 {
    max-width: 600px;

    margin-bottom: 20px;

    font-size: clamp(40px, 4vw, 55px);
    font-weight: 800;

    letter-spacing: -2px;
    line-height: 1.03;
}

.about-services__content h2 span {
    display: block;

    color: var(--about-blue);
}

.about-services__intro {
    max-width: 580px;

    margin-bottom: 35px;

    font-size: 16px;
}

.about-services__list {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 28px 35px;
}

.about-service {
    display: grid;

    grid-template-columns: 58px 1fr;

    gap: 16px;

    align-items: start;
}

.about-service__icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e1f2ff;
}

.about-service__icon svg {
    width: 29px;
    height: 29px;

    fill: none;

    stroke: var(--about-blue);
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.about-service h3 {
    margin-bottom: 7px;

    color: var(--about-text);

    font-size: 16px;
    font-weight: 800;
}

.about-service p {
    margin-bottom: 0;

    font-size: 13px;
    line-height: 1.5;
}


/* ==========================================================
   IMAGEN - SERVICIOS
   ========================================================== */

.about-services__media {
    position: relative;

    min-height: 550px;

    border-radius: var(--about-radius);

    overflow: hidden;

    box-shadow:
        0 25px 60px rgba(8, 55, 100, 0.16);
}

.about-services__media img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.about-image-caption--bottom {
    right: 25px;
    bottom: 28px;
}


/* ==========================================================
   CTA FINAL
   ========================================================== */

.about-closing {
    position: relative;

    min-height: 330px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: #063b78;
}


/* ==========================================================
   FONDO MAPAMUNDI
   ========================================================== */

.about-closing__background {
    position: absolute;
    inset: 0;

    z-index: 0;

    background:
        linear-gradient(
            90deg,
            rgba(3, 48, 101, 0.76) 0%,
            rgba(4, 67, 132, 0.62) 50%,
            rgba(5, 81, 151, 0.52) 100%
        ),
        url("../images/sobre-nosotros-cta.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* ==========================================================
   CONTENEDOR CTA
   ========================================================== */

.about-closing__inner {
    position: relative;
    z-index: 1;

    width: min(1180px, calc(100% - 80px));

    margin-inline: auto;
}


/* ==========================================================
   CONTENIDO CTA
   ========================================================== */

.about-closing__bottom {
    display: grid;

    grid-template-columns: 1fr auto;

    gap: 60px;

    align-items: center;
}

.about-closing__cta-content {
    max-width: 720px;
}


/* ==========================================================
   EYEBROW CTA
   ========================================================== */

.about-closing .about-eyebrow {
    display: inline-block;

    margin-bottom: 13px;

    color: #9dd9ff;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2px;
    line-height: 1.2;

    text-transform: uppercase;
}


/* ==========================================================
   TÍTULO CTA
   ========================================================== */

.about-closing__cta-content h2 {
    max-width: 720px;

    margin: 0 0 14px;

    color: #ffffff;

    font-size: clamp(40px, 4vw, 56px);
    font-weight: 800;

    letter-spacing: -2px;
    line-height: 1.02;
}

.about-closing__cta-content h2 span {
    color: #9dd9ff;
}


/* ==========================================================
   DESCRIPCIÓN CTA
   ========================================================== */

.about-closing__cta-content p {
    max-width: 680px;

    margin: 0;

    color: rgba(255, 255, 255, 0.88);

    font-size: 15px;
    line-height: 1.6;
}


/* ==========================================================
   BOTÓN CTA
   ========================================================== */

.about-closing__action {
    display: flex;

    align-items: center;
    justify-content: center;

    white-space: nowrap;
}

.about-closing__action .about-btn {
    min-height: 52px;

    padding: 0 28px;

    background: #ffffff;
    color: var(--about-blue);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.12);
}

.about-closing__action .about-btn:hover {
    background: #ffffff;
    color: var(--about-blue-dark);

    transform: translateY(-2px);

    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.18);
}


/* ==========================================================
   RESPONSIVE - TABLET
   ========================================================== */

@media (max-width: 1000px) {

    .about-container {
        width: min(100% - 50px, 900px);
    }


    /* HERO */

    .about-hero {
        min-height: 540px;
    }

    .about-hero__content {
        width: 65%;
    }

    .about-hero__phrase {
        font-size: 23px;
    }


    /* STORY */

    .about-story__grid {
        gap: 45px;
    }


    /* SERVICES */

    .about-services__grid {
        gap: 40px;
    }

    .about-services__list {
        gap: 25px 20px;
    }


    /* CTA */

    .about-closing {
        min-height: 300px;
    }

    .about-closing__inner {
        width: min(900px, calc(100% - 50px));
    }

    .about-closing__bottom {
        gap: 40px;
    }

    .about-closing__cta-content h2 {
        font-size: 44px;
    }
}


/* ==========================================================
   RESPONSIVE - MOBILE
   ========================================================== */

@media (max-width: 760px) {

    .about-container {
        width: min(100% - 34px, 600px);
    }


    /* ======================================================
       HERO
       ====================================================== */

    .about-hero {
        min-height: 650px;

        align-items: flex-end;

        background-position: 65% center;
    }

    .about-hero__overlay {
        background:
            linear-gradient(
                0deg,
                rgba(2, 43, 92, 0.98) 0%,
                rgba(2, 43, 92, 0.82) 48%,
                rgba(2, 43, 92, 0.15) 100%
            );
    }

    .about-hero__container {
        width: min(100% - 34px, 600px);

        display: block;

        padding-bottom: 55px;
    }

    .about-hero__content {
        width: 100%;
    }

    .about-hero h1 {
        margin-bottom: 18px;

        font-size: clamp(42px, 12vw, 58px);

        letter-spacing: -1.8px;
    }

    .about-hero p {
        margin-bottom: 25px;

        font-size: 15px;
    }

    .about-hero__phrase {
        display: none;
    }


    /* ======================================================
       STORY
       ====================================================== */

    .about-story {
        padding: 75px 0;
    }

    .about-story__grid {
        grid-template-columns: 1fr;

        gap: 55px;
    }

    .about-story__content h2 {
        font-size: 42px;
        letter-spacing: -1.5px;
    }

    .about-story__content p {
        font-size: 15px;
    }

    .about-story__media {
        min-height: 390px;
    }

    .about-image-frame--main,
    .about-image-frame--back {
        width: 94%;
        height: 92%;
    }


    /* ======================================================
       ESENCIA
       ====================================================== */

    .about-essence {
        padding: 70px 0 75px;
    }

    .about-section-heading--center {
        max-width: 100%;

        margin: 0 auto 45px;

        text-align: center;
    }

    .about-section-heading h2 {
        font-size: 40px;

        text-align: center;
    }

    .about-section-heading p {
        max-width: 500px;

        margin-inline: auto;

        font-size: 16px;

        text-align: center;
    }

    .about-essence__grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .about-essence-card {
        padding: 0;

        text-align: center;
    }

    .about-essence-card .about-icon {
        margin-inline: auto;
    }

    .about-essence-card h3 {
        text-align: center;
    }

    .about-essence-card p {
        max-width: 500px;

        margin-inline: auto;

        font-size: 15px;

        text-align: center;
    }

    .about-values-list {
        display: inline-block;

        margin: 0 auto;

        padding-left: 20px;

        text-align: left;
    }
    .about-values-list {
        width: 220px;
        margin: 0 auto;
        padding-left: 20px;

        text-align: left;
    }
    

    /* ======================================================
       SERVICIOS
       ====================================================== */

    .about-services {
        padding: 75px 0;
    }

    .about-services__grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .about-services__content h2 {
        font-size: 41px;
    }

    .about-services__list {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    .about-services__media {
        min-height: 450px;
    }


    /* ======================================================
       CTA FINAL
       ====================================================== */

    .about-closing {
        min-height: auto;

        padding: 70px 0 75px;
    }

    .about-closing__background {
        background:
            linear-gradient(
                180deg,
                rgba(3, 48, 101, 0.78) 0%,
                rgba(4, 67, 132, 0.70) 100%
            ),
            url("../images/sobre-nosotros-cta.jpg");

        background-size: cover;

        /*
         * En mobile desplazamos el mapa hacia la derecha
         * para conservar una parte visible del continente.
         */
        background-position: 68% center;

        background-repeat: no-repeat;
    }

    .about-closing__inner {
        width: calc(100% - 34px);
    }

    .about-closing__bottom {
        grid-template-columns: 1fr;

        gap: 30px;

        text-align: center;
    }

    .about-closing__cta-content {
        max-width: 600px;

        margin-inline: auto;
    }

    .about-closing .about-eyebrow {
        margin-bottom: 14px;

        text-align: center;
    }

    .about-closing__cta-content h2 {
        max-width: 600px;

        margin-inline: auto;

        font-size: 40px;

        letter-spacing: -1.5px;

        text-align: center;
    }

    .about-closing__cta-content p {
        max-width: 500px;

        margin-inline: auto;

        font-size: 15px;

        text-align: center;
    }

    .about-closing__action {
        justify-content: center;

        width: 100%;
    }

    .about-closing__action .about-btn {
        min-width: 260px;
    }
}


/* ==========================================================
   RESPONSIVE - MOBILE PEQUEÑO
   ========================================================== */

@media (max-width: 480px) {

    .about-container {
        width: calc(100% - 28px);
    }

    .about-hero__container {
        width: calc(100% - 28px);
    }


    /* HERO */

    .about-hero {
        min-height: 620px;
    }

    .about-hero h1 {
        font-size: 40px;
    }


    /* STORY */

    .about-story__content h2 {
        font-size: 35px;
    }

    .about-story__media {
        min-height: 320px;
    }


    /* ESENCIA */

    .about-section-heading h2 {
        font-size: 35px;
    }

    .about-section-heading p {
        font-size: 15px;
    }

    .about-essence__grid {
        gap: 40px;
    }


    /* SERVICES */

    .about-services__content h2 {
        font-size: 35px;
    }

    .about-services__media {
        min-height: 370px;
    }


    /* IMÁGENES */

    .about-image-caption {
        right: 16px;
        bottom: 16px;
    }

    .about-image-caption strong {
        font-size: 20px;
    }

    .about-image-caption span {
        font-size: 15px;
    }


    /* CTA */

    .about-closing {
        padding: 60px 0 65px;
    }

    .about-closing__background {
        background-position: 70% center;
    }

    .about-closing__cta-content h2 {
        font-size: 35px;
    }

    .about-closing__action .about-btn {
        width: 100%;
        min-width: 0;
    }

}