/* ==================================================
   PÁGINA NOSOTROS
================================================== */

/* Encabezado */

.about-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 430px;
    overflow: hidden;
    color: #ffffff;

    background:
        linear-gradient(90deg,
            rgba(221, 107, 105, 0.82) 50%,
            rgba(230, 41, 47, 0.35) 100%),
        url("../img/nosotros-portada.jpg") center / cover no-repeat;
}

.about-hero::after {
    content: "";
    position: absolute;
    right: -100px;
    bottom: -170px;
    width: 460px;
    height: 460px;
    border: 70px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.about-hero-content {
    position: relative;
    z-index: 2;
}

.about-hero-label {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.about-hero h1 {
    margin: 0 0 20px;
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    line-height: 1.08;
}

.about-hero p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
    line-height: 1.8;
}


/* Historia */

.about-history {
    background: #ffffff;
}

.about-history-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 70px;
    align-items: center;
}

.about-history-image {
    position: relative;
}

.about-history-image img {
    display: block;
    width: 100%;
    min-height: 520px;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(6, 49, 91, 0.17);
    object-fit: cover;
}

.experience-box {
    position: absolute;
    right: -25px;
    bottom: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 175px;
    min-height: 145px;
    padding: 20px;
    border: 6px solid #ffffff;
    border-radius: 14px;
    color: #ffffff;
    text-align: center;
    background: #e6292f;
    box-shadow: 0 14px 30px rgba(7, 63, 111, 0.25);
}

.experience-box strong {
    font-size: 2.6rem;
    line-height: 1;
}

.experience-box span {
    margin-top: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
}

.section-label {
    display: block;
    margin-bottom: 9px;
    color: #e6292f;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.about-history-content h2 {
    margin: 0;
    color: #25211f;
    font-size: clamp(2rem, 4vw, 3rem);
}

.title-line {
    width: 65px;
    height: 4px;
    margin: 18px 0 25px;
    border-radius: 10px;
    background: #ffd51f;
}

.about-history-content>p {
    margin: 0 0 18px;
    color: #526273;
    line-height: 1.85;
    text-align: justify;
}

.about-history-content>p strong {
    color: #07579b;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 28px;
}

.about-feature {
    display: flex;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dce9f3;
    border-radius: 12px;
    background: #f8fbfd;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 800;
    background: #26a94f;
}

.about-feature strong {
    display: block;
    margin-bottom: 5px;
    color: #25211f;
    font-size: 0.9rem;
}

.about-feature p {
    margin: 0;
    color: #687887;
    font-size: 0.77rem;
    line-height: 1.5;
}


/* Misión y visión */

.purpose-section {
    background: #f3f8fc;
}

.purpose-section .section-heading {
    max-width: 760px;
    margin-right: auto;
    margin-bottom: 45px;
    margin-left: auto;
}

.purpose-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.purpose-card {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    padding: 45px;
    border: 1px solid #d8e7f2;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(5, 58, 103, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.purpose-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 45px rgba(5, 58, 103, 0.15);
}

.purpose-card-highlight {
    color: #ffffff;
    border-color: var(--secondary-dark);

    background:
        linear-gradient(145deg,
            var(--secondary-dark),
            var(--secondary));
}

.purpose-number {
    position: absolute;
    top: 13px;
    right: 26px;
    color: rgba(7, 79, 139, 0.08);
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
}

.purpose-card-highlight .purpose-number {
    color: rgba(255, 255, 255, 0.09);
}

.purpose-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin-bottom: 24px;
    border-radius: 16px;
    font-size: 1.8rem;
    background: #eaf5fb;
}

.purpose-card-highlight .purpose-icon {
    background: rgba(255, 255, 255, 0.14);
}

.purpose-card h2 {
    position: relative;
    margin: 0 0 19px;
    color: #074b83;
    font-size: 1.75rem;
}

.purpose-card-highlight h2 {
    color: #ffffff;
}

.purpose-card p {
    position: relative;
    margin: 0 0 15px;
    color: #5b6c7c;
    line-height: 1.8;
}

.purpose-card-highlight p {
    color: rgba(255, 255, 255, 0.88);
}


/* Valores */

.values-section {
    background: #ffffff;
}

.values-grid-modern {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.value-card {
    padding: 28px 22px;
    border: 1px solid #dce9f2;
    border-radius: 15px;
    text-align: center;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(6, 54, 96, 0.07);
    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.value-card:hover {
    transform: translateY(-6px);
    border-color: #26a94f;
}

.value-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.35rem;

    background:
        linear-gradient(145deg,
            var(--primary-dark),
            var(--primary));
}

.value-card h3 {
    margin: 0 0 12px;
    color: #25211f;
    font-size: 1rem;
}

.value-card p {
    margin: 0;
    color: #687887;
    font-size: 0.84rem;
    line-height: 1.65;
}


/* Llamado a la acción */

.about-cta {
    padding: 70px 0;
    color: #ffffff;
    background:
        linear-gradient(100deg,
            rgba(4, 50, 94, 0.97),
            rgba(7, 121, 166, 0.92));
}

.about-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.about-cta span {
    display: block;
    margin-bottom: 8px;
    color: #73d8ef;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.about-cta h2 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.about-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.about-cta-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-light {
    color: #07579b;
    background: #ffffff;
}

.btn-outline-light {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: transparent;
}

.btn-light:hover {
    background: #eaf7fb;
}

.btn-outline-light:hover {
    color: #07579b;
    background: #ffffff;
}


/* Responsive */

@media (max-width: 1050px) {
    .values-grid-modern {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .about-history-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-history-image {
        max-width: 650px;
        margin: 0 auto;
    }

    .purpose-grid {
        grid-template-columns: 1fr;
    }

    .purpose-card {
        min-height: auto;
    }

    .about-cta-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 700px) {
    .about-hero {
        min-height: 370px;
    }

    .about-hero h1 br {
        display: none;
    }

    .about-history-image img {
        min-height: 380px;
    }

    .experience-box {
        right: 15px;
        bottom: 15px;
        width: 150px;
        min-height: 125px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .values-grid-modern {
        grid-template-columns: 1fr;
    }

    .purpose-card {
        padding: 34px 25px;
    }

    .about-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .about-cta-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

/* ==================================================
   QUIÉNES SOMOS - IMAGEN LATERAL
================================================== */

.about-history-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
    gap: 70px;
    align-items: center;
}

.about-history-content {
    max-width: 620px;
}

.about-image-box {
    overflow: hidden;
    border-radius: 34px;
    background: #fff8ef;
    box-shadow: 0 24px 55px rgba(35, 28, 25, 0.14);
}

.about-image-box img {
    display: block;
    width: 100%;
    height: 620px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 950px) {
    .about-history-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-history-content {
        max-width: 100%;
    }

    .about-image-box img {
        height: 460px;
    }
}

@media (max-width: 520px) {
    .about-image-box {
        border-radius: 24px;
    }

    .about-image-box img {
        height: 360px;
    }
}