/* =========================================================
   WOMENIZE LATAM — MAGAZINE 4.0
   Octubre 2026
   ========================================================= */

.wl-m40 {
    --wine: #5a081d;
    --wine-dark: #310610;
    --cream: #fbf8f1;
    --paper: #fffdf9;
    --gold: #b8874b;
    --line: #e7dcd3;
    --text: #291a1c;
    background: var(--paper);
    color: var(--text);
}

.wl-m40 *,
.wl-m40 *::before,
.wl-m40 *::after {
    box-sizing: border-box;
}

.wl-m40-container {
    width: min(100% - 48px, 1220px);
    margin-inline: auto;
}

/* HERO */
.wl-m40-hero {
    display: grid;
    grid-template-columns: .92fr 1.18fr;
    height: 465px;
    min-height: 0;
    overflow: hidden;
    background: #1c0a07;
}

.wl-m40-hero__copy {
    display: flex;
    align-items: flex-start;
    padding-top: 92px;
    background:
        radial-gradient(circle at 92% 48%, rgba(113,55,37,.28), transparent 42%),
        linear-gradient(125deg, #180907 0%, #26100c 62%, #3b1a12 100%);
}

.wl-m40-hero__copy-inner {
    width: min(100% - 70px, 520px);
    margin-left: auto;
    margin-right: 0;
    padding-bottom: 28px;
}

.wl-m40-hero h1 {
    margin: 0 0 18px;
    color: #fff9ef;
    font-family: var(--font-title);
    font-size: var(--fs-hero-title);
    line-height: .9;
    font-weight: 500;
    text-transform: none;
    letter-spacing: -.025em;
}

.wl-m40-hero p {
    max-width: 370px;
    margin: 0 0 26px;
    color: rgba(255,249,239,.92);
    font-family: var(--font-body);
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.18;
    font-style: italic;
}

.wl-m40-hero__media,
.wl-m40-hero__media img {
    height: 465px;
    min-height: 0;
}

.wl-m40-hero__media {
    overflow: hidden;
}

.wl-m40-hero__media img {
    display: block;
    width: 100%;
    max-height: 465px;
    object-fit: cover;
    object-position: center;
}

/* BUTTONS */
.wl-m40-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    text-transform: none;
    letter-spacing: .03em;
}

.wl-m40-btn--solid,
.wl-m40-btn--wine {
    background: var(--wine);
    color: #fff !important;
}

.wl-m40-btn--outline {
    border: 1px solid #bca59d;
    color: var(--wine) !important;
    background: #fff;
}

/* CATEGORIES */
.wl-m40-categories {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.wl-m40-categories__inner {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.wl-m40-categories a {
    padding: 10px 17px;
    border-radius: 999px;
    color: #4d3035;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.wl-m40-categories a:hover,
.wl-m40-categories a.is-active {
    background: var(--wine);
    color: #fff;
}

/* FEATURED */
.wl-m40-featured {
    padding: 48px 0 42px;
    background: var(--paper);
}

.wl-m40-featured__grid {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    gap: 50px;
    align-items: center;
}

.wl-m40-featured__media {
    height: 380px;
    overflow: hidden;
    border-radius: 8px;
    background: #eee4dc;
}

.wl-m40-featured__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.wl-m40-featured__copy {
    max-width: 520px;
}

.wl-m40-kicker {
    display: block;
    margin-bottom: 18px;
    color: #7c3d4b;
    font-size: 15px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: .04em;
}

.wl-m40-featured h2 {
    margin: 0 0 20px;
    color: var(--wine);
    font-family: var(--font-title);
    font-size: clamp(38px, 3.4vw, 54px);
    line-height: .98;
    font-weight: 600;
    text-transform: none;
}

.wl-m40-featured p {
    max-width: 470px;
    margin: 0 0 25px;
    font-size: 18px;
    line-height: 1.55;
    color: #463438;
}

/* HEADINGS */
.wl-m40-heading {
    margin-bottom: 25px;
    text-align: center;
}

.wl-m40-heading h2 {
    margin: 0;
    color: #6f2438;
    font-family: var(--font-title);
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1;
    font-weight: 650;
    text-transform: none;
}

/* ARTICLES */
.wl-m40-articles {
    padding: 35px 0 55px;
    border-top: 1px solid #efe6df;
    background: #fff;
}

.wl-m40-articles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.wl-m40-card {
    overflow: hidden;
    border: 1px solid #e6dbd2;
    border-radius: 8px;
    background: #fff;
}

.wl-m40-card__media {
    display: block;
    height: 225px;
    overflow: hidden;
    background: #eee4dc;
}

.wl-m40-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .25s ease;
}

.wl-m40-card:hover .wl-m40-card__media img {
    transform: scale(1.025);
}

.wl-m40-card__body {
    padding: 22px 22px 24px;
}

.wl-m40-card__body > span {
    display: block;
    margin-bottom: 10px;
    color: #8c6b66;
    font-size: 11px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: .05em;
}

.wl-m40-card h3 {
    margin: 0 0 10px;
    font-family: var(--font-title);
    font-size: 26px;
    line-height: 1.05;
    color: #4d1928;
}

.wl-m40-card h3 a {
    color: inherit;
    text-decoration: none;
}

.wl-m40-card p {
    margin: 0;
    color: #5b4b4e;
    font-size: 15px;
    line-height: 1.5;
}

.wl-m40-more {
    display: flex;
    justify-content: center;
    padding-top: 32px;
}

/* ARCHIVE */
.wl-m40-archive {
    padding: 48px 0 70px;
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.wl-m40-archive__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 42px;
    align-items: end;
}

.wl-m40-issue {
    text-align: center;
}

.wl-m40-issue a {
    color: inherit;
    text-decoration: none;
}

.wl-m40-issue img,
.wl-m40-issue__placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 12px 28px rgba(56,3,16,.11);
}

.wl-m40-issue__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(145deg, #6e2033, #361017);
    color: #fff;
    font-family: var(--font-body);
    font-size: 26px;
    line-height: 1.05;
}

.wl-m40-issue h3 {
    margin: 14px 0 0;
    color: #4f2831;
    font-size: 17px;
    font-weight: 750;
}

/* RESPONSIVE */
@media (max-width: 980px) {
    .wl-m40-hero {
        grid-template-columns: 1fr 1.05fr;
        height: 430px;
    }

    .wl-m40-hero__media,
    .wl-m40-hero__media img {
        height: 430px;
        max-height: 430px;
    }

    .wl-m40-featured__grid {
        gap: 34px;
    }

    .wl-m40-archive__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .wl-m40-container {
        width: min(100% - 32px, 1220px);
    }

    .wl-m40-hero {
        grid-template-columns: 1fr;
        height: auto;
    }

    .wl-m40-hero__copy {
        padding-top: 0;
    }

    .wl-m40-hero__copy-inner {
        width: min(100% - 32px, 680px);
        margin: 0 auto;
        padding: 52px 0;
    }

    .wl-m40-hero__media,
    .wl-m40-hero__media img {
        height: 330px;
        max-height: 330px;
    }

    .wl-m40-categories__inner {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .wl-m40-featured__grid {
        grid-template-columns: 1fr;
    }

    .wl-m40-featured__media {
        height: 330px;
    }

    .wl-m40-articles__grid {
        grid-template-columns: 1fr;
    }

    .wl-m40-card__media {
        height: 260px;
    }
}

@media (max-width: 480px) {
    .wl-m40-featured,
    .wl-m40-archive {
        padding-top: 38px;
    }

    .wl-m40-featured__media {
        height: 280px;
    }

    .wl-m40-archive__grid {
        gap: 22px;
    }

    .wl-m40-hero h1 {
        font-size: 50px;
    }
}

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