/* Terminación editorial PAFClub. Mantiene colores, radios y densidad definidos por el ERP. */
.portal-shell {
    --polish-line: color-mix(in srgb, var(--tenant-text) 13%, transparent);
    --polish-shadow: 0 22px 70px color-mix(in srgb, var(--tenant-bg) 52%, rgba(0, 0, 0, .28));
    font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
}

.portal-shell .site-header {
    min-height: 76px;
    padding-inline: max(24px, calc((100vw - var(--tenant-content-width)) / 2));
    border-top: 3px solid var(--tenant-secondary);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .12);
}

.portal-shell .brand-logo {
    width: 48px;
    height: 48px;
    padding: 3px;
    border: 1px solid color-mix(in srgb, var(--tenant-header-text) 16%, transparent);
    background: color-mix(in srgb, var(--tenant-header-bg) 86%, transparent);
}

.portal-shell .brand-copy span {
    font-size: 16px;
    font-weight: 760;
}

.portal-shell .brand-copy small {
    color: color-mix(in srgb, var(--tenant-secondary) 76%, var(--tenant-header-text));
    font-size: 10px;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.portal-shell .site-nav {
    gap: 3px;
}

.portal-shell .site-nav a {
    min-height: 38px;
    padding-inline: 11px;
    border-radius: min(var(--tenant-radius), 6px);
    font-size: 12.5px;
}

.portal-content {
    padding-top: clamp(28px, 3.2vw, 46px);
}

.portal-hero {
    position: relative;
    min-height: min(var(--tenant-hero-min), 540px);
    padding: clamp(40px, 6vw, 76px);
    border: 0;
    box-shadow: var(--polish-shadow);
}

.portal-hero.has-image {
    background-position: center 42%;
}

.portal-hero.has-image::before {
    background: linear-gradient(90deg,
        color-mix(in srgb, #03050d 90%, var(--tenant-primary)) 0%,
        color-mix(in srgb, #03050d 70%, transparent) 48%,
        rgba(3, 5, 13, .28) 100%);
}

.portal-hero.no-image::before {
    background: linear-gradient(115deg,
        color-mix(in srgb, var(--tenant-primary) 72%, #080b16),
        color-mix(in srgb, var(--tenant-primary) 92%, #080b16));
}

.portal-hero::after {
    border-color: color-mix(in srgb, #ffffff 18%, transparent);
}

.portal-hero .hero-copy {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.portal-hero .module-lockup {
    width: fit-content;
    margin-bottom: 22px;
    padding: 7px 11px 7px 7px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: min(var(--tenant-radius), 7px);
    color: #ffffff;
    background: rgba(4, 7, 17, .36);
    backdrop-filter: blur(10px);
}

.portal-hero .module-lockup img {
    width: 36px;
    height: 36px;
}

.portal-hero h1 {
    max-width: 13ch;
    font-size: clamp(52px, 6.4vw, 78px);
    line-height: .98;
    font-weight: 760;
    letter-spacing: -.045em;
}

.portal-hero p {
    max-width: 52ch;
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.55;
}

.portal-hero .button {
    min-height: 48px;
    padding-inline: 21px;
    border-color: #ffffff;
    color: var(--tenant-primary);
    background: #ffffff;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.portal-hero .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .2);
}

.portal-hero .button.secondary {
    color: #ffffff;
    background: rgba(4, 7, 17, .34);
}

.portal-hero-emblem {
    position: absolute;
    right: clamp(34px, 7vw, 100px);
    top: 50%;
    width: clamp(210px, 28vw, 390px);
    transform: translateY(-50%);
    opacity: .14;
}

.portal-hero-emblem img {
    display: block;
    width: 100%;
}

.portal-shell .section {
    margin-top: clamp(46px, 5vw, 68px);
}

.portal-shell .section-heading {
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--polish-line);
}

.portal-shell .section-heading h2 {
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 720;
    letter-spacing: -.035em;
}

.portal-shell .section-heading a,
.portal-shell .card-action,
.portal-shell .spotlight-action {
    text-underline-offset: 4px;
}

.news-layout.single {
    grid-template-columns: 1fr;
}

.news-layout.single .news-feature {
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
    grid-template-rows: none;
    min-height: 390px;
}

.news-layout.single .news-media {
    min-height: 390px;
}

.news-layout.single .news-copy {
    justify-content: center;
    padding: clamp(28px, 4vw, 50px);
}

.portal-shell .news-feature,
.portal-shell .spotlight-card,
.portal-shell .link-card,
.portal-shell .resource-card {
    border-color: var(--polish-line);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .1);
}

.portal-shell .spotlight-content {
    padding: 24px;
}

.portal-shell .spotlight-kicker,
.portal-shell .resource-card > span {
    letter-spacing: .045em;
}

.portal-shell .resource-card {
    min-height: 190px;
    padding: 28px;
}

.portal-shell .site-footer {
    min-height: 94px;
    align-items: center;
    padding-inline: max(24px, calc((100vw - var(--tenant-content-width)) / 2));
}

@media (max-width: 960px) {
    .portal-shell .site-header {
        padding-inline: 22px;
    }

    .news-layout.single .news-feature {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(260px, auto) auto;
    }

    .news-layout.single .news-media {
        min-height: 300px;
    }
}

@media (max-width: 720px) {
    .portal-shell .site-header {
        padding-inline: 16px;
    }

    .portal-hero {
        min-height: 430px;
        padding: 36px 24px;
    }

    .portal-hero h1 {
        font-size: clamp(42px, 13vw, 58px);
    }

    .portal-hero-emblem {
        right: -34px;
        width: 250px;
    }

    .portal-shell .section-heading {
        align-items: flex-start;
    }

    .news-layout.single .news-media {
        min-height: 230px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-shell *,
    .portal-shell *::before,
    .portal-shell *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
