:root {
    --afz-blue: #00a9e0;
    --afz-deep-blue: #002f6c;
}

body.afz-safe-shell header#site-header,
body.afz-safe-shell footer#site-footer {
    display: none !important;
}

/* The recovered video heroes retained offsets from the original header
 * template, leaving different visible heights. The safe header overlays them,
 * so normalize the shared English/Spanish video heroes to the approved 640px
 * height, full width, and no negative top offset. */
body.afz-safe-shell .elementor-element-319e76e,
body.afz-safe-shell .elementor-element-ac9727c,
body.afz-safe-shell .elementor-element-ca52460,
body.afz-safe-shell .elementor-element-8ece7a3,
body.afz-safe-shell .elementor-element-cfed506,
body.afz-safe-shell .elementor-element-c9df385 {
    min-height: 640px !important;
    height: 640px !important;
    margin-top: 0 !important;
    --min-height: 640px !important;
    --margin-top: 0px !important;
    --margin-block-start: 0px !important;
}

/* Preserve more of the 16:9 video frame on wider screens. At 1400px the
 * approved hero height is 800px; larger viewports remain capped at 800px. */
@media (min-width: 1121px) {
    body.afz-safe-shell .elementor-element-319e76e,
    body.afz-safe-shell .elementor-element-ac9727c,
    body.afz-safe-shell .elementor-element-ca52460,
    body.afz-safe-shell .elementor-element-8ece7a3,
    body.afz-safe-shell .elementor-element-cfed506,
    body.afz-safe-shell .elementor-element-c9df385 {
        min-height: clamp(640px, 57.142857vw, 800px) !important;
        height: clamp(640px, 57.142857vw, 800px) !important;
        --min-height: clamp(640px, 57.142857vw, 800px) !important;
    }
}

/* Home: the approved proposal keeps the three awards but removes carousel
 * behavior. Owl still initializes because it belongs to the recovered widget;
 * these rules expose only the three source cards and neutralize its clones,
 * transforms, pagination, and remote arrows. */
body.page-id-1172.afz-safe-shell .elementor-element-f5548ad .owl-stage-outer,
body.page-id-12.afz-safe-shell .elementor-element-f5548ad .owl-stage-outer {
    overflow: visible !important;
}

body.page-id-1172.afz-safe-shell .elementor-element-f5548ad .owl-stage,
body.page-id-12.afz-safe-shell .elementor-element-f5548ad .owl-stage {
    display: grid !important;
    width: 100% !important;
    transform: none !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

body.page-id-1172.afz-safe-shell .elementor-element-f5548ad .owl-item.cloned,
body.page-id-12.afz-safe-shell .elementor-element-f5548ad .owl-item.cloned {
    display: none !important;
}

body.page-id-1172.afz-safe-shell .elementor-element-f5548ad .owl-item:not(.cloned),
body.page-id-12.afz-safe-shell .elementor-element-f5548ad .owl-item:not(.cloned) {
    display: flex !important;
    width: auto !important;
    margin: 0 !important;
}

body.page-id-1172.afz-safe-shell .elementor-element-f5548ad .uc_dark_carousel_container_holder,
body.page-id-12.afz-safe-shell .elementor-element-f5548ad .uc_dark_carousel_container_holder {
    width: 100%;
    height: 100%;
}

body.page-id-1172.afz-safe-shell .elementor-element-f5548ad .owl-nav,
body.page-id-1172.afz-safe-shell .elementor-element-f5548ad .owl-dots,
body.page-id-1172.afz-safe-shell .elementor-element-e81d8c4,
body.page-id-12.afz-safe-shell .elementor-element-f5548ad .owl-nav,
body.page-id-12.afz-safe-shell .elementor-element-f5548ad .owl-dots,
body.page-id-12.afz-safe-shell .elementor-element-e81d8c4 {
    display: none !important;
}

/* Home: move the complete Explore AFZ block between Welcome and Why AFZ,
 * preserving the original dark treatment and all five statistics. */
body.page-id-1172.afz-safe-shell .afz-home-explore-relocated,
body.page-id-12.afz-safe-shell .afz-home-explore-relocated {
    position: relative;
    display: flex;
    overflow: hidden;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin: 80px 0;
    padding: 0;
    color: #fff;
    background: #07111f url("/wp-content/uploads/2025/04/fondo_Awards_home_-scaled.jpg") center center / cover no-repeat;
}

/* Remove the empty blue divider between Welcome to AFZ and Explore AFZ. */
body.page-id-1172.afz-safe-shell .elementor-element-b36777e,
body.page-id-12.afz-safe-shell .elementor-element-b36777e {
    display: none !important;
}

body.page-id-1172.afz-safe-shell .afz-home-explore-relocated > .elementor-element,
body.page-id-12.afz-safe-shell .afz-home-explore-relocated > .elementor-element {
    position: relative;
    z-index: 1;
    width: 100%;
}

body.page-id-1172.afz-safe-shell .afz-home-explore-source-empty,
body.page-id-12.afz-safe-shell .afz-home-explore-source-empty {
    display: none !important;
}

body.page-id-1172.afz-safe-shell .afz-home-explore-relocated .elementor-heading-title,
body.page-id-12.afz-safe-shell .afz-home-explore-relocated .elementor-heading-title {
    color: #fff !important;
}

body.page-id-1172.afz-safe-shell .afz-home-explore-relocated .elementor-element-d71e0bf > .e-con-inner > .e-con,
body.page-id-12.afz-safe-shell .afz-home-explore-relocated .elementor-element-d71e0bf > .e-con-inner > .e-con {
    border-color: rgba(255, 255, 255, .72) !important;
}

body.page-id-1172.afz-safe-shell .afz-home-explore-relocated .elementor-element-d71e0bf,
body.page-id-12.afz-safe-shell .afz-home-explore-relocated .elementor-element-d71e0bf {
    margin-top: 60px;
}

body.page-id-1172.afz-safe-shell .afz-home-explore-relocated.afz-home-explore-will-animate,
body.page-id-12.afz-safe-shell .afz-home-explore-relocated.afz-home-explore-will-animate {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .85s ease-out, transform .85s ease-out;
    will-change: opacity, transform;
}

body.page-id-1172.afz-safe-shell .afz-home-explore-relocated.afz-home-explore-will-animate.is-visible,
body.page-id-12.afz-safe-shell .afz-home-explore-relocated.afz-home-explore-will-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Keep the source metric cards hidden from the first CSS paint. Elementor
 * otherwise shows them once before the relocation script prepares the custom
 * stagger, producing a visible 100% -> 0% -> 100% flash. */
body.page-id-1172.afz-safe-shell .elementor-element-d71e0bf > .e-con-inner > .e-con,
body.page-id-12.afz-safe-shell .elementor-element-d71e0bf > .e-con-inner > .e-con {
    opacity: 0;
    transform: translateY(18px);
}

/* Neutralize the nested Elementor animations; the card-level stagger below
 * is the only opacity animation used for these statistics. */
body.page-id-1172.afz-safe-shell .elementor-element-d71e0bf .elementor-invisible,
body.page-id-1172.afz-safe-shell .elementor-element-d71e0bf .animated,
body.page-id-12.afz-safe-shell .elementor-element-d71e0bf .elementor-invisible,
body.page-id-12.afz-safe-shell .elementor-element-d71e0bf .animated {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

body.page-id-1172.afz-safe-shell .afz-home-metric-will-animate,
body.page-id-12.afz-safe-shell .afz-home-metric-will-animate {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity .75s ease-out var(--afz-metric-delay, 500ms),
        transform .75s ease-out var(--afz-metric-delay, 500ms);
    will-change: opacity, transform;
}

body.page-id-1172.afz-safe-shell .elementor-element-d71e0bf > .e-con-inner > .afz-home-metric-will-animate.is-visible,
body.page-id-12.afz-safe-shell .elementor-element-d71e0bf > .e-con-inner > .afz-home-metric-will-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    body.page-id-1172.afz-safe-shell .afz-home-metric-will-animate,
    body.page-id-12.afz-safe-shell .afz-home-metric-will-animate {
        transition: none !important;
    }
}

body.page-id-1172.afz-safe-shell .afz-home-explore-actions,
body.page-id-12.afz-safe-shell .afz-home-explore-actions {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 24px;
    flex-wrap: wrap;
}

body.page-id-1172.afz-safe-shell .afz-home-explore-actions > .elementor-element-456d388,
body.page-id-12.afz-safe-shell .afz-home-explore-actions > .elementor-element-456d388 {
    width: auto !important;
    min-width: 220px;
    margin: 0 !important;
    --width: auto !important;
}

body.page-id-1172.afz-safe-shell .afz-home-explore-actions > .elementor-element-456d388 > .e-con-inner,
body.page-id-12.afz-safe-shell .afz-home-explore-actions > .elementor-element-456d388 > .e-con-inner {
    width: auto;
    min-width: 100%;
    margin: 0;
}

.afz-shell-header,
.afz-shell-footer {
    box-sizing: border-box;
    font-family: "Fira Sans", Arial, sans-serif;
}

.afz-shell-header *,
.afz-shell-footer * {
    box-sizing: border-box;
}

.afz-shell-header {
    position: fixed;
    z-index: 9990;
    top: 0;
    left: 0;
    width: 100%;
    color: #fff;
    background: rgba(10, 17, 30, .62);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

/* The published News and Contact sections use a white header instead of the
 * translucent hero treatment. The PHP class also covers both languages and
 * single-news articles, keeping the global behavior consistent. */
.afz-shell-header--light {
    color: var(--afz-deep-blue);
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 12px rgba(0, 47, 108, .12);
}

.afz-shell-header--light .afz-shell-nav__list a,
.afz-shell-header--light .afz-shell-nav__list a:hover,
.afz-shell-header--light .afz-shell-nav__list a:focus-visible,
.afz-shell-header--light .afz-shell-language {
    color: var(--afz-deep-blue);
}

.afz-shell-header--light .afz-shell-nav__list .lastmenuitem {
    border-color: var(--afz-deep-blue);
}

.afz-shell-header--light .afz-shell-search {
    border-color: var(--afz-deep-blue);
}

.afz-shell-header--light .afz-shell-search input,
.afz-shell-header--light .afz-shell-search button {
    color: var(--afz-deep-blue);
}

.afz-shell-header--light .afz-shell-search:focus-within input::placeholder {
    color: rgba(0, 47, 108, .65);
}

/* The recovered English and Spanish menus reference different Koolout logo
 * files. Select the correct contrast variant from the header treatment rather
 * than requiring editors to maintain separate menu markup. */
.afz-shell-header--light .afz-shell-nav__list a[href*="koolout"] img {
    content: url("/wp-content/uploads/2025/04/Logo-koolout-azul.svg");
}

.afz-shell-header:not(.afz-shell-header--light) .afz-shell-nav__list a[href*="koolout"] img {
    content: url("/wp-content/uploads/2025/03/Icono-menu-Koolout.svg");
}

/* Approved News masthead typography. The public site declares 500, but its
 * reduced font set renders this title like Fira Sans Regular. The recovered
 * local set includes a true 500 face, which looks visibly heavier, so use 400
 * here to preserve the public site's rendered appearance. */
body.page-id-2406.afz-safe-shell .elementor-element-210542d .elementor-heading-title,
body.page-id-870.afz-safe-shell .elementor-element-210542d .elementor-heading-title {
    color: var(--afz-deep-blue) !important;
    font-family: "Fira Sans", Arial, sans-serif !important;
    font-size: 91px !important;
    font-weight: 400 !important;
    line-height: 108px !important;
    letter-spacing: normal !important;
}

body.page-id-2406.afz-safe-shell .elementor-element-a53aded .elementor-heading-title,
body.page-id-870.afz-safe-shell .elementor-element-a53aded .elementor-heading-title {
    color: #606060 !important;
    font-family: "Fira Sans", Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    letter-spacing: normal !important;
}

body.single-post.afz-safe-shell main.site-main {
    width: min(calc(100% - 48px), 1120px);
    margin: 0 auto;
    padding: clamp(190px, 15vw, 230px) 0 96px;
    color: #17232b;
    font-family: "Fira Sans", Arial, sans-serif;
}

body.single-post.afz-safe-shell .page-header {
    max-width: 1000px;
    margin: 0 auto 42px;
}

body.single-post.afz-safe-shell .entry-title {
    margin: 0;
    color: var(--afz-deep-blue);
    font-size: clamp(40px, 4.4vw, 68px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.025em;
}

body.single-post.afz-safe-shell .page-content {
    max-width: 1120px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.75;
}

body.single-post.afz-safe-shell .page-content > :not(.afz-single-post__featured, .comment-respond) {
    max-width: 880px;
    margin-right: auto;
    margin-left: auto;
}

body.single-post.afz-safe-shell .page-content p {
    margin-top: 0;
    margin-bottom: 1.45em;
}

body.single-post.afz-safe-shell .page-content h2,
body.single-post.afz-safe-shell .page-content h3 {
    margin-top: 1.65em;
    margin-bottom: .7em;
    color: var(--afz-deep-blue);
    line-height: 1.25;
}

.afz-single-post__featured {
    overflow: hidden;
    margin: 0 auto 54px;
    border-radius: 26px;
    background: #eef3f6;
    box-shadow: 0 18px 44px rgba(0, 47, 108, .12);
}

.afz-single-post__featured-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 630px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.afz-single-post__featured figcaption {
    padding: 12px 20px 14px;
    color: #526774;
    background: #fff;
    font-size: 14px;
    line-height: 1.5;
}

/* Defensive fallback in case a theme template calls comment_form() directly. */
body.single-post.afz-safe-shell .comment-respond {
    display: none !important;
}

.admin-bar .afz-shell-header {
    top: 32px;
}

.afz-shell-header__inner {
    display: flex;
    width: 100%;
    min-height: 134px;
    align-items: center;
    gap: 28px;
    padding: 24px 2.15%;
}

.afz-shell-logo {
    display: block;
    flex: 0 0 190px;
}

.afz-shell-logo img {
    display: block;
    width: 160px;
    height: 80px;
    object-fit: contain;
    object-position: left center;
}

.afz-shell-nav {
    flex: 1 1 auto;
    padding-left: 32px;
}

.afz-shell-nav__list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(18px, 1.75vw, 33px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.afz-shell-nav__list li {
    margin: 0;
    padding: 0;
}

.afz-shell-nav__list a {
    position: relative;
    display: flex;
    min-height: 38px;
    align-items: center;
    color: #fff;
    font-size: clamp(13px, .95vw, 16px);
    font-weight: 600;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
}

.afz-shell-nav__list a:hover,
.afz-shell-nav__list a:focus-visible {
    color: #fff;
}

.afz-shell-nav__list a::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 4px;
    content: "";
    transition: transform .2s ease;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--afz-blue);
}

.afz-shell-nav__list a:hover::after,
.afz-shell-nav__list a:focus-visible::after,
.afz-shell-nav__list .current-menu-item > a::after,
.afz-shell-nav__list .current_page_item > a::after {
    transform: scaleX(1);
}

.afz-shell-nav__list img {
    display: block;
    max-width: 58px;
    max-height: 34px;
}

.afz-shell-nav__list .lastmenuitem {
    display: inline-block;
    padding: 6px 9px;
    border: 1px solid #fff;
    border-radius: 6px;
}

.afz-shell-tools {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 20px;
}

.afz-shell-search {
    display: flex;
    width: 108px;
    height: 42px;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    border: 1px solid #fff;
    border-radius: 7px;
}

.afz-shell-search input {
    width: 66px;
    min-width: 0;
    padding: 0 0 0 10px;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    font-size: 13px;
}

.afz-shell-search input::placeholder {
    color: transparent;
}

.afz-shell-search:focus-within input::placeholder {
    color: rgba(255, 255, 255, .75);
}

.afz-shell-search button {
    display: grid;
    width: 41px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    border: 0;
    color: #fff;
    background: transparent;
    place-items: center;
}

.afz-shell-search svg,
.afz-shell-menu-toggle svg,
.afz-shell-footer svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.afz-shell-language {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.afz-shell-menu-toggle {
    display: none;
}

/* The published AFZ footer starts with this bilingual experience banner.
 * Keep it in the shared shell so it appears once above the footer everywhere. */
.afz-shell-banner,
.afz-shell-banner * {
    box-sizing: border-box;
}

.afz-shell-banner {
    position: relative;
    z-index: 20;
    width: 100%;
    padding: 30px 32px 80px;
    background: #fff;
    font-family: "Fira Sans", Arial, sans-serif;
}

.afz-shell-banner__inner {
    position: relative;
    width: min(100%, 1600px);
    height: 200px;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 16px;
    background: #07111f;
}

.afz-shell-banner__inner::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    content: "";
    pointer-events: none;
}

.afz-shell-banner__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.afz-shell-banner__heading {
    position: absolute;
    z-index: 2;
    top: 70px;
    left: 50px;
    margin: 0;
    color: #fff;
    font-weight: 500;
}

.afz-shell-banner__heading span,
.afz-shell-banner__heading strong {
    display: block;
    font-weight: 500;
}

.afz-shell-banner__heading span {
    font-size: 27px;
    line-height: 32px;
}

.afz-shell-banner__heading strong {
    margin-top: 7px;
    font-size: 63px;
    line-height: 50px;
}

.afz-shell-banner__cta {
    position: absolute;
    z-index: 2;
    right: 50px;
    bottom: 25px;
    display: flex;
    width: max-content;
    min-width: 280px;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 20px;
    border-radius: 7px;
    color: #fff;
    background: var(--afz-blue);
    font-size: 20px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
}

.afz-shell-banner__cta:hover,
.afz-shell-banner__cta:focus-visible {
    color: #fff;
    background: #008dbc;
}

.afz-shell-banner__cta:focus-visible {
    outline: 3px solid var(--afz-deep-blue);
    outline-offset: 3px;
}

.afz-shell-banner__cta svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
}

@media (max-width: 900px) {
    .afz-shell-banner {
        padding: 40px 20px;
    }

    .afz-shell-banner__inner {
        display: flex;
        height: auto;
        min-height: 221px;
        flex-direction: column;
        padding: 30px;
    }

    .afz-shell-banner__heading,
    .afz-shell-banner__cta {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
    }

    .afz-shell-banner__heading span {
        font-size: 25px;
        line-height: 40px;
    }

    .afz-shell-banner__heading strong {
        font-size: 40px;
        line-height: 40px;
    }

    .afz-shell-banner__cta {
        max-width: 100%;
        align-self: center;
        margin-top: 30px;
    }
}

.afz-shell-footer {
    position: relative;
    z-index: 20;
    width: 100%;
    color: #fff;
    background: #000;
}

.afz-shell-footer__inner {
    width: min(100%, 1600px);
    margin: 0 auto;
    padding: 50px 5.65% 38px;
}

.afz-shell-footer h2 {
    margin: 0 0 34px;
    color: var(--afz-blue);
    font-size: clamp(34px, 3.05vw, 50px);
    font-weight: 400;
    line-height: 1.1;
}

.afz-shell-footer__grid {
    display: grid;
    align-items: start;
    grid-template-columns: .7fr 1.25fr .85fr 1.15fr 2.35fr;
    gap: 30px;
}

.afz-shell-footer__grid a,
.afz-shell-footer__grid span {
    color: #fff;
    font-size: 17px;
    line-height: 1.5;
    text-decoration: none;
}

.afz-shell-footer__links,
.afz-shell-footer__contact,
.afz-shell-footer__social,
.afz-shell-footer__cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.afz-shell-footer__grid a:hover,
.afz-shell-footer__grid a:focus-visible {
    color: var(--afz-blue);
}

.afz-shell-footer__social > div {
    display: flex;
    gap: 18px;
    margin-top: 10px;
}

.afz-shell-footer__social a {
    display: grid;
    width: 30px;
    height: 30px;
    color: #000;
    border-radius: 5px;
    background: #fff;
    place-items: center;
}

.afz-shell-footer__social svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.5;
}

.afz-shell-footer__cta > a {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 8px;
    padding: 9px 20px;
    border-radius: 8px;
    color: #fff;
    background: var(--afz-blue);
}

.afz-shell-footer__cta > a:hover,
.afz-shell-footer__cta > a:focus-visible {
    color: #fff;
    background: #008dbc;
}

.afz-shell-footer__cta strong {
    font-size: clamp(22px, 1.8vw, 30px);
    font-weight: 400;
}

.afz-shell-footer__cta svg {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    stroke-width: 3;
}

.afz-shell-footer__rule {
    height: 1px;
    margin: 70px 0;
    background: #3c3c3c;
}

.afz-shell-footer__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 60px;
}

.afz-shell-footer__brand {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 30px;
}

.afz-shell-footer__brand img {
    width: 100px;
    height: auto;
}

.afz-shell-footer__brand span {
    color: #fff;
    font-size: 16px;
}

.afz-shell-footer__awards {
    display: flex;
    max-width: 640px;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 26px;
}

.afz-shell-footer__awards img {
    width: auto;
    max-width: 145px;
    height: 44px;
    object-fit: contain;
}

.afz-shell-footer__awards img:nth-child(-n+2) {
    width: 66px;
}

@media (max-width: 1280px) {
    body.page-id-2406.afz-safe-shell .elementor-element-210542d .elementor-heading-title,
    body.page-id-870.afz-safe-shell .elementor-element-210542d .elementor-heading-title {
        font-size: 50px !important;
        line-height: 60px !important;
    }

    body.single-post.afz-safe-shell main.site-main {
        padding-top: 156px;
    }

    .afz-shell-header__inner {
        min-height: 100px;
        padding: 18px 28px;
    }

    .afz-shell-logo {
        flex-basis: auto;
        margin-right: auto;
    }

    .afz-shell-logo img {
        width: 132px;
        height: 66px;
    }

    .afz-shell-menu-toggle {
        position: relative;
        z-index: 3;
        display: grid;
        width: 50px;
        height: 50px;
        padding: 0;
        cursor: pointer;
        border: 0;
        border-radius: 4px;
        color: #fff;
        background: var(--afz-deep-blue);
        place-items: center;
    }

    .afz-shell-menu-toggle__close {
        display: none;
    }

    .afz-shell-menu-toggle[aria-expanded="true"] .afz-shell-menu-toggle__open {
        display: none;
    }

    .afz-shell-menu-toggle[aria-expanded="true"] .afz-shell-menu-toggle__close {
        display: block;
    }

    .afz-shell-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        padding: 18px 28px 30px;
        background: var(--afz-deep-blue);
    }

    .afz-shell-header--light .afz-shell-nav__list a,
    .afz-shell-header--light .afz-shell-nav__list a:hover,
    .afz-shell-header--light .afz-shell-nav__list a:focus-visible {
        color: #fff;
    }

    .afz-shell-header--light .afz-shell-nav__list .lastmenuitem {
        border-color: #fff;
    }

    /* The collapsed menu always opens on AFZ blue, including from a light
     * header, so Koolout must return to its white logo inside the drawer. */
    .afz-shell-header--light .afz-shell-nav__list a[href*="koolout"] img {
        content: url("/wp-content/uploads/2025/03/Icono-menu-Koolout.svg");
    }

    .afz-shell-nav.is-open {
        display: block;
    }

    .afz-shell-nav__list {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .afz-shell-nav__list a {
        min-height: 52px;
        justify-content: flex-start;
        font-size: 17px;
    }

    .afz-shell-tools {
        gap: 12px;
    }

    .afz-shell-search {
        width: 48px;
    }

    .afz-shell-search input {
        display: none;
    }

    .afz-shell-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .afz-shell-footer__cta {
        grid-column: 1 / -1;
    }

    .afz-shell-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .afz-shell-footer__awards {
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    body.page-id-1172.afz-safe-shell .elementor-element-f5548ad .owl-stage,
    body.page-id-12.afz-safe-shell .elementor-element-f5548ad .owl-stage {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    body.page-id-1172.afz-safe-shell .afz-home-explore-relocated,
    body.page-id-12.afz-safe-shell .afz-home-explore-relocated {
        margin: 48px 0;
    }

    body.page-id-1172.afz-safe-shell .afz-home-explore-relocated .elementor-element-d71e0bf,
    body.page-id-12.afz-safe-shell .afz-home-explore-relocated .elementor-element-d71e0bf {
        margin-top: 42px;
    }

    body.page-id-1172.afz-safe-shell .afz-home-explore-actions,
    body.page-id-12.afz-safe-shell .afz-home-explore-actions {
        align-items: stretch;
        flex-direction: column;
    }

    body.page-id-1172.afz-safe-shell .afz-home-explore-actions > .elementor-element-456d388,
    body.page-id-12.afz-safe-shell .afz-home-explore-actions > .elementor-element-456d388 {
        width: min(100%, 300px) !important;
        align-self: center;
        padding-top: 0;
        padding-bottom: 0;
    }

    body.page-id-1172.afz-safe-shell .afz-home-explore-actions > .elementor-element-456d388 > .e-con-inner,
    body.page-id-12.afz-safe-shell .afz-home-explore-actions > .elementor-element-456d388 > .e-con-inner {
        padding-top: 0;
        padding-bottom: 0;
    }

    body.page-id-2406.afz-safe-shell .elementor-element-210542d .elementor-heading-title,
    body.page-id-870.afz-safe-shell .elementor-element-210542d .elementor-heading-title {
        font-size: 35px !important;
        line-height: 33px !important;
    }

    body.single-post.afz-safe-shell main.site-main {
        width: min(calc(100% - 32px), 1120px);
        padding-top: 122px;
        padding-bottom: 64px;
    }

    body.single-post.afz-safe-shell .page-header {
        margin-bottom: 28px;
    }

    body.single-post.afz-safe-shell .entry-title {
        font-size: clamp(34px, 10vw, 46px);
        line-height: 1.12;
    }

    body.single-post.afz-safe-shell .page-content {
        font-size: 17px;
        line-height: 1.68;
    }

    .afz-single-post__featured {
        margin-bottom: 36px;
        border-radius: 18px;
    }

    .admin-bar .afz-shell-header {
        top: 46px;
    }

    .afz-shell-header__inner {
        min-height: 82px;
        gap: 12px;
        padding: 12px 16px;
    }

    .afz-shell-logo img {
        width: 108px;
        height: 58px;
    }

    .afz-shell-tools {
        gap: 10px;
    }

    .afz-shell-search {
        display: none;
    }

    .afz-shell-language {
        font-size: 14px;
    }

    .afz-shell-menu-toggle {
        width: 44px;
        height: 44px;
    }

    .afz-shell-nav {
        padding: 12px 20px 24px;
    }

    .afz-shell-footer__inner {
        padding: 44px 24px 36px;
    }

    .afz-shell-footer h2 {
        margin-bottom: 30px;
        font-size: 36px;
    }

    .afz-shell-footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .afz-shell-footer__cta {
        grid-column: auto;
    }

    .afz-shell-footer__rule {
        margin: 48px 0;
    }

    .afz-shell-footer__awards {
        display: grid;
        width: 100%;
        align-items: center;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .afz-shell-footer__awards img,
    .afz-shell-footer__awards img:nth-child(-n+2) {
        width: 100%;
        max-width: 130px;
        height: 45px;
        justify-self: start;
    }
}

/* Approved 3P+i impact metrics. These widgets are stored in Elementor data;
 * the shared stylesheet keeps both language versions visually identical. */
.afz-3pi-metrics {
    display: grid;
    width: 100%;
    box-sizing: border-box;
    margin-top: 22px;
    overflow: hidden;
    border-radius: 7px;
    font-family: "Fira Sans", Arial, sans-serif;
}

.afz-3pi-metrics--prosperity {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: rgba(255, 255, 255, 0.96);
    color: #063a76;
}

.afz-3pi-metric {
    display: flex;
    min-width: 0;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: center;
    padding: 16px 20px;
}

.afz-3pi-metrics--prosperity .afz-3pi-metric + .afz-3pi-metric {
    border-left: 1px solid rgba(6, 58, 118, 0.3);
}

.afz-3pi-metric strong {
    font-size: clamp(34px, 3vw, 48px);
    font-weight: 700;
    line-height: 0.95;
}

.afz-3pi-metric span {
    margin-top: 5px;
    font-size: clamp(18px, 1.6vw, 24px);
    font-weight: 400;
    line-height: 1.05;
}

.afz-3pi-metrics--planet {
    background: #063a76;
    color: #fff;
    text-align: center;
}

.afz-3pi-metrics--planet .afz-3pi-metric {
    align-items: center;
    padding-block: 18px;
}

.afz-3pi-metrics--planet small {
    margin-top: 7px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

@media (max-width: 767px) {
    .afz-3pi-metrics {
        margin-top: 18px;
    }

    .afz-3pi-metric {
        padding: 14px 12px;
    }

    .afz-3pi-metric strong {
        font-size: clamp(30px, 10vw, 40px);
    }

    .afz-3pi-metrics--prosperity .afz-3pi-metric strong {
        font-size: clamp(26px, 7.5vw, 30px);
        letter-spacing: -0.02em;
    }

    .afz-3pi-metric span {
        font-size: 17px;
    }
}

/* Home campaign popup. Active once per browser session on each language Home;
 * ?afz_popup_preview=1 bypasses the frequency cap for visual review. */
body.afz-popup-open {
    overflow: hidden;
}

.afz-home-popup[hidden] {
    display: none !important;
}

.afz-home-popup {
    position: fixed;
    z-index: 10050;
    inset: 0;
    display: grid;
    box-sizing: border-box;
    place-items: center;
    padding: 24px;
    font-family: "Fira Sans", Arial, sans-serif;
}

.afz-home-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 18, 0.78);
    backdrop-filter: blur(4px);
}

.afz-home-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(1280px, calc(100vw - 48px));
    overflow: visible;
    border-radius: 8px;
    background: #000;
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.48);
}

.afz-home-popup__close {
    position: absolute;
    z-index: 2;
    top: -18px;
    right: -18px;
    display: grid;
    width: 46px;
    height: 46px;
    padding: 0;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #063a76;
    color: #fff;
    font: 400 34px/1 Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.35);
}

.afz-home-popup__close:hover,
.afz-home-popup__close:focus-visible {
    background: #05a9df;
}

.afz-home-popup__close:focus-visible,
.afz-home-popup a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.afz-home-popup__desktop-art {
    display: block;
    overflow: hidden;
    border-radius: inherit;
}

.afz-home-popup__desktop-art img {
    display: block;
    width: 100%;
    height: auto;
}

.afz-home-popup__mobile-art {
    display: none;
}

@media (max-width: 767px) {
    .afz-home-popup {
        align-items: center;
        padding: 18px;
    }

    .afz-home-popup__dialog {
        width: min(360px, calc(100vw - 36px));
        border-radius: 12px;
    }

    .afz-home-popup__close {
        top: -14px;
        right: -10px;
        width: 44px;
        height: 44px;
        font-size: 32px;
    }

    .afz-home-popup__desktop-art {
        display: none;
    }

    .afz-home-popup__mobile-art {
        display: block;
        overflow: hidden;
        border-radius: inherit;
        background: #000;
        text-decoration: none;
    }

    .afz-home-popup__mobile-art img {
        display: block;
        width: 100%;
        height: auto;
    }
}
