/**
 * Sobre Nosotros — Pencil design match (node EovA5, "Page — Sobre Nosotros").
 *
 * Scoped to page-templates/template-about.php only. Values (hex, px) are
 * copied directly from the .pen source; colors that don't have a matching
 * design token in style.css are kept as literal hex (mirrors the approach
 * already used in pencil-legal.css). Structural shells reuse the shared
 * `.cst-section` / `.cst-container` utilities so this page's content lines
 * up with the breadcrumb bar and footer above/below it; every visual
 * declaration inside those shells is namespaced under `.cst-abt-*` so it
 * never inherits the old about-page card/heading styles from custom.css.
 */

/* ==========================================================================
   Hero — always show the real photo (matches the peer "inner page" heroes);
   no extra suppression needed, .cst-hero--page already handles the tint.
   ========================================================================== */

.cst-hero--about {}

/* ==========================================================================
   Shared section-head (centered eyebrow + title) used by Pilares/Equipo
   ========================================================================== */

.cst-abt-eyebrow {
    margin: 0;
    font-family: var(--cst-font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cst-color-blue-primary);
}

.cst-abt-section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.cst-abt-section-head__title {
    margin: 0;
    font-family: var(--cst-font-heading);
    font-size: clamp(1.75rem, 3.2vw, 2.125rem); /* ~34px */
    font-weight: 800;
    line-height: 1.15;
    color: var(--cst-color-navy);
}

/* ==========================================================================
   Sección Misión — 2 columnas: texto (600px) + foto
   ========================================================================== */

.cst-abt-mission.cst-section {
    background: var(--cst-color-white);
    padding-block: 80px;
}

.cst-abt-mission__layout {
    display: flex;
    align-items: center;
    gap: 64px;
}

.cst-abt-mission__text {
    flex: 0 0 600px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cst-abt-mission__title {
    margin: 0;
    font-family: var(--cst-font-heading);
    font-size: clamp(1.75rem, 3.2vw, 2.125rem); /* ~34px */
    font-weight: 800;
    line-height: 1.18;
    color: var(--cst-color-navy);
}

.cst-abt-mission__text p:not(.cst-abt-eyebrow) {
    margin: 0;
    font-family: var(--cst-font-body);
    font-size: 1rem; /* 16px */
    font-weight: 400;
    line-height: 1.65;
    color: #5B6680;
}

.cst-abt-mission__media {
    flex: 1 1 auto;
    min-width: 0;
}

.cst-abt-mission__image {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 16px;
}

/* ==========================================================================
   Sección Pilares — head centrado + 4 tarjetas
   ========================================================================== */

.cst-abt-pillars.cst-section {
    background: #F4F7FC;
    padding-block: 80px;
    border-block: 1px solid #E3E9F4;
}

.cst-abt-pillars__layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 44px;
}

.cst-abt-pillars__grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cst-abt-pillar-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    background: var(--cst-color-white);
    border: 1px solid #E3E9F4;
    border-radius: 16px;
}

.cst-abt-pillar-card__tile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 13px;
    background: #EAF0FB;
    color: var(--cst-color-blue-primary);
}

.cst-abt-pillar-card__tile svg {
    width: 25px;
    height: 25px;
}

.cst-abt-pillar-card__title {
    margin: 0;
    font-family: var(--cst-font-heading);
    font-size: 1.125rem; /* 18px */
    font-weight: 700;
    color: var(--cst-color-navy);
}

.cst-abt-pillar-card__desc {
    margin: 0;
    font-family: var(--cst-font-body);
    font-size: 0.906rem; /* 14.5px */
    font-weight: 400;
    line-height: 1.55;
    color: #5B6680;
}

/* ==========================================================================
   Sección Equipo — head centrado + featured + grid 4
   ========================================================================== */

.cst-abt-purpose.cst-section {
    background: var(--cst-color-white);
    padding-block: 80px;
}

.cst-abt-purpose__intro {
    margin: 0;
    font-family: var(--cst-font-body);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.6;
    color: #5B6680;
}

.cst-abt-purpose__grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 44px;
}

.cst-abt-purpose__card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    background: #F4F7FC;
    border: 1px solid #E3E9F4;
    border-radius: 16px;
}

/* ==========================================================================
   CTA Strip — degradado azul, texto izquierda + botón derecha
   ========================================================================== */

.cst-abt-cta {
    overflow: hidden;
    background: linear-gradient(120deg, var(--cst-color-blue-primary) 0%, var(--cst-color-blue-dark) 100%);
    padding-block: 48px;
}

.cst-abt-cta__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.cst-abt-cta__text {
    max-width: 820px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cst-abt-cta__title {
    margin: 0;
    font-family: var(--cst-font-heading);
    font-size: 1.75rem; /* 28px */
    font-weight: 800;
    color: var(--cst-color-white);
}

.cst-abt-cta__sub {
    margin: 0;
    font-family: var(--cst-font-body);
    font-size: 1rem; /* 16px */
    font-weight: 400;
    line-height: 1.55;
    color: #E6ECFB;
}

.cst-abt-cta__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 26px;
    border-radius: 10px;
    background: var(--cst-color-white);
    color: var(--cst-color-blue-dark);
    font-family: var(--cst-font-body);
    font-size: 1rem; /* 16px */
    font-weight: 700;
    text-decoration: none;
    transition: background-color var(--cst-transition), transform var(--cst-transition);
}

.cst-abt-cta__btn svg {
    width: 18px;
    height: 18px;
}

.cst-abt-cta__btn:hover,
.cst-abt-cta__btn:focus-visible {
    background: #EEF2FB;
    transform: translateY(-1px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
    .cst-abt-mission.cst-section,
    .cst-abt-pillars.cst-section,
    .cst-abt-purpose.cst-section {
        padding-block: 56px;
    }

    .cst-abt-mission__layout {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }

    .cst-abt-mission__text {
        flex-basis: auto;
        max-width: none;
    }

    .cst-abt-mission__image { height: 300px; }

    .cst-abt-pillars__grid,
    .cst-abt-purpose__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cst-abt-cta { padding-block: 40px; }
    .cst-abt-cta__row { justify-content: center; text-align: center; }
    .cst-abt-cta__text { align-items: center; text-align: center; }
}

@media (max-width: 640px) {
    .cst-abt-mission.cst-section,
    .cst-abt-pillars.cst-section,
    .cst-abt-purpose.cst-section {
        padding-block: 44px;
    }

    .cst-abt-pillars__grid,
    .cst-abt-purpose__grid {
        grid-template-columns: 1fr;
    }

    .cst-abt-cta__title { font-size: 1.375rem; }
}

@media (prefers-reduced-motion: reduce) {
    .cst-abt-cta__btn { transition: none; }
    .cst-abt-cta__btn:hover,
    .cst-abt-cta__btn:focus-visible { transform: none; }
}
