/* =========================================================
   FUNDACIÓN 4.0
   Womenize LATAM · octubre 2026
========================================================= */

.wl-foundation-40,
.wl-foundation-40 * {
    box-sizing: border-box;
}

.wl-foundation-40 {
    --wine: #5b071b;
    --wine-dark: #380310;
    --wine-soft: #7c2638;
    --cream: #f8f8ec;
    --ivory: #fffdf8;
    --ink: #2c2526;
    --muted: #6f6365;
    --gold: #b87637;
    --line: rgba(91, 7, 27, .10);
    width: 100%;
    overflow: hidden;
    background: var(--ivory);
    color: var(--ink);
}

.wlfd-container {
    width: min(100% - 72px, 1360px);
    margin-inline: auto;
}

/* =========================================================
   HERO
========================================================= */

.wlfd-hero {
    background: var(--wine-dark);
}

.wlfd-hero__grid {
    display: grid;
    grid-template-columns: 42% 58%;
    min-height: 520px;
}

.wlfd-hero__copy {
    position: relative;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 76% 44%, rgba(150, 65, 50, .36), transparent 32%),
        linear-gradient(120deg, #251008 0%, #3c140d 44%, #5b1b10 100%);
}

.wlfd-hero__copy::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 4, 4, .24), transparent 52%, rgba(17, 6, 5, .16));
    pointer-events: none;
}

.wlfd-hero__inner {
    position: relative;
    z-index: 1;
    width: min(100% - 72px, 560px);
    margin-left: max(36px, calc((100vw - 1360px) / 2));
}

.wlfd-hero h1 {
    margin: 0 0 20px;
    color: #fffdf7;
    font-family: var(--font-title);
    font-size: var(--fs-hero-title);
    line-height: 1.03;
    font-weight: 500;
    letter-spacing: -.035em;
    text-transform: none;
}

.wlfd-hero p {
    margin: 0;
    color: rgba(255,255,255,.88);
    font-family: var(--font-body);
    font-size: clamp(19px, 1.8vw, 28px);
    line-height: 1.35;
    font-style: italic;
}

.wlfd-hero__media {
    position: relative;
    margin: 0;
    min-height: 520px;
    overflow: hidden;
    background: #d8c6ba;
}

.wlfd-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(55, 17, 10, .45), transparent 25%);
    pointer-events: none;
}

.wlfd-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    object-position: center;
}

/* =========================================================
   PROPÓSITO
========================================================= */

.wlfd-purpose {
    padding: 70px 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.wlfd-purpose__grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 40px;
    align-items: center;
}

.wlfd-purpose__icon {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    border: 1px solid rgba(91, 7, 27, .12);
    border-radius: 12px;
    background: #fffefa;
    box-shadow: 0 10px 25px rgba(56, 3, 16, .035);
}

.wlfd-purpose__icon svg,
.wlfd-program-card__icon svg {
    fill: none;
    stroke: var(--wine-soft);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wlfd-purpose__icon svg {
    width: 58px;
    height: 58px;
}

.wlfd-purpose h2,
.wlfd-section-title,
.wlfd-pillar h2 {
    margin: 0;
    color: var(--wine);
    font-family: var(--font-title);
    font-weight: 800;
    text-transform: none;
}

.wlfd-purpose h2 {
    margin-bottom: 16px;
    font-size: clamp(25px, 2.2vw, 34px);
}

.wlfd-purpose p {
    max-width: 950px;
    margin: 0;
    color: #403738;
    font-size: clamp(18px, 1.55vw, 23px);
    line-height: 1.7;
    font-weight: 600;
}

/* =========================================================
   PROGRAMAS
========================================================= */

.wlfd-programs {
    padding: 54px 0 66px;
    background: #fffdf9;
    border-bottom: 1px solid var(--line);
}

.wlfd-section-title {
    margin-bottom: 30px;
    font-size: clamp(28px, 2.5vw, 38px);
}

.wlfd-programs__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
}

.wlfd-program-card {
    display: flex;
    min-height: 270px;
    flex-direction: column;
    padding: 28px 24px 24px;
    border: 1px solid rgba(91, 7, 27, .13);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(56, 3, 16, .025);
    transition: transform .2s ease, box-shadow .2s ease;
}

.wlfd-program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(56, 3, 16, .07);
}

.wlfd-program-card__icon {
    width: 58px;
    height: 58px;
    margin-bottom: 28px;
}

.wlfd-program-card__icon svg {
    width: 100%;
    height: 100%;
}

.wlfd-program-card h3 {
    margin: 0 0 20px;
    color: var(--wine);
    font-family: var(--font-title);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
}

.wlfd-program-card a,
.wlfd-pillar a {
    margin-top: auto;
    color: var(--wine) !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
}

.wlfd-program-card a:hover,
.wlfd-pillar a:hover {
    color: var(--gold) !important;
}

/* =========================================================
   PROYECTOS / IMPACTO / TRANSPARENCIA
========================================================= */

.wlfd-pillars {
    padding: 28px 0 52px;
    background: #fff;
}

.wlfd-pillar {
    display: grid;
    grid-template-columns: minmax(260px, .7fr) minmax(500px, 1.3fr);
    gap: 48px;
    align-items: center;
    padding: 26px 0;
}

.wlfd-pillar + .wlfd-pillar {
    border-top: 1px solid rgba(91, 7, 27, .07);
}

.wlfd-pillar__copy {
    padding-left: 8px;
}

.wlfd-pillar h2 {
    margin-bottom: 16px;
    color: #2b2526;
    font-size: clamp(25px, 2.1vw, 33px);
}

.wlfd-pillar p {
    max-width: 390px;
    margin: 0 0 16px;
    color: #494041;
    font-size: 17px;
    line-height: 1.65;
}

.wlfd-pillar__media {
    margin: 0;
    height: 215px;
    overflow: hidden;
    border-radius: 12px;
    background: #e9dfd8;
    box-shadow: 0 10px 26px rgba(56, 3, 16, .055);
}

.wlfd-pillar__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* =========================================================
   CTA
========================================================= */

.wlfd-cta {
    background: var(--wine-dark);
}

.wlfd-cta__grid {
    display: grid;
    grid-template-columns: 43% 57%;
    min-height: 360px;
}

.wlfd-cta__copy {
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 76% 55%, rgba(150, 25, 48, .26), transparent 35%),
        linear-gradient(120deg, #5a0a20 0%, #7a0f29 100%);
}

.wlfd-cta__inner {
    width: min(100% - 72px, 560px);
    margin-left: max(36px, calc((100vw - 1360px) / 2));
}

.wlfd-cta h2 {
    margin: 0 0 28px;
    color: #fffaf2;
    font-family: var(--font-title);
    font-size: clamp(34px, 3.4vw, 53px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -.025em;
}

.wlfd-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 4px;
    background: #bd7b35;
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    text-transform: none;
    text-decoration: none !important;
}

.wlfd-button:hover {
    background: #d09049;
    color: #fff !important;
}

.wlfd-cta__media {
    position: relative;
    margin: 0;
    min-height: 360px;
    overflow: hidden;
}

.wlfd-cta__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(99, 9, 31, .55), transparent 38%);
    pointer-events: none;
}

.wlfd-cta__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    object-position: center;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
    .wlfd-hero__grid,
    .wlfd-cta__grid {
        grid-template-columns: 1fr 1fr;
    }

    .wlfd-programs__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wlfd-pillar {
        grid-template-columns: .75fr 1.25fr;
        gap: 32px;
    }
}

@media (max-width: 820px) {
    .wlfd-container {
        width: min(100% - 40px, 720px);
    }

    .wlfd-hero__grid,
    .wlfd-cta__grid {
        grid-template-columns: 1fr;
    }

    .wlfd-hero__copy,
    .wlfd-hero__media {
        min-height: auto;
    }

    .wlfd-hero__inner,
    .wlfd-cta__inner {
        width: min(100% - 40px, 720px);
        margin: 0 auto;
        padding: 56px 0;
    }

    .wlfd-hero__media img {
        min-height: 420px;
    }

    .wlfd-purpose__grid {
        grid-template-columns: 90px 1fr;
        gap: 26px;
    }

    .wlfd-purpose__icon {
        width: 84px;
        height: 84px;
    }

    .wlfd-purpose__icon svg {
        width: 48px;
        height: 48px;
    }

    .wlfd-programs__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wlfd-pillar {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 34px 0;
    }

    .wlfd-pillar__media {
        order: -1;
        height: 250px;
    }

    .wlfd-pillar__copy {
        padding: 0;
    }

    .wlfd-cta__media {
        min-height: 340px;
    }
}

@media (max-width: 560px) {
    .wlfd-container {
        width: min(100% - 32px, 520px);
    }

    .wlfd-hero__inner,
    .wlfd-cta__inner {
        width: min(100% - 32px, 520px);
        padding: 46px 0;
    }

    .wlfd-hero h1 {
        font-size: clamp(39px, 12vw, 54px);
    }

    .wlfd-hero__media img {
        min-height: 320px;
    }

    .wlfd-purpose {
        padding: 46px 0;
    }

    .wlfd-purpose__grid {
        grid-template-columns: 1fr;
    }

    .wlfd-purpose p {
        font-size: 17px;
    }

    .wlfd-programs {
        padding: 44px 0 50px;
    }

    .wlfd-programs__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .wlfd-program-card {
        min-height: 220px;
    }

    .wlfd-pillar__media {
        height: 205px;
    }

    .wlfd-cta__media {
        min-height: 280px;
    }

    .wlfd-cta__media img {
        min-height: 280px;
    }
}

/* =========================================================
   TIPOGRAFÍA GLOBAL — OVERRIDE RESPONSIVE
   Mantiene el título principal consistente entre páginas.
========================================================= */
@media (max-width: 767px) {
    .wlfd-hero h1 {
        font-size: var(--fs-hero-title-mobile);
    }
}
