.flacso-front-hero {
    --hero-yellow: #fed222;
    --flacso-hero-admin-offset: 0px;
    position: relative;
    min-height: clamp(470px, 58svh, 620px);
    display: grid;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background:
        linear-gradient(108deg, rgba(8, 30, 68, 0.98) 0%, rgba(16, 58, 122, 0.94) 53%, rgba(26, 83, 151, 0.76) 100%),
        var(--flacso-front-hero-image, none) center 42% / cover no-repeat,
        #123b78;
}

.flacso-front-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 77% 42%, rgba(255, 255, 255, 0.16), transparent 28%),
        linear-gradient(112deg, transparent 0 60%, rgba(254, 210, 34, 0.09) 60% 66%, transparent 66%);
}

.flacso-front-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    padding-block: clamp(1.75rem, 3.8svh, 3rem);
}

.flacso-front-hero__content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.flacso-front-hero__kicker {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 1rem;
    padding: 0.52rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 750;
    backdrop-filter: blur(8px);
}

.flacso-main-page .flacso-front-hero__title {
    max-width: 14ch;
    margin: 0;
    color: #fff;
    font-size: clamp(2.8rem, min(5vw, 8.3svh), 4.6rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.98;
    text-wrap: balance;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.flacso-main-page .flacso-front-hero__accent {
    color: var(--hero-yellow);
}

.flacso-front-hero__subtitle {
    max-width: 48ch;
    margin: 1rem 0 0;
    color: #dbe7f7;
    font-size: clamp(1rem, 1.45vw, 1.23rem);
    line-height: 1.5;
}

.flacso-front-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.flacso-front-hero__button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.72rem 1.4rem;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font-size: 0.96rem;
    font-weight: 750;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.flacso-front-hero__button svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.flacso-front-hero__button--primary {
    border-color: var(--hero-yellow);
    background: var(--hero-yellow);
    color: #0d203e;
    box-shadow: 0 14px 30px rgba(254, 210, 34, 0.22);
}

.flacso-front-hero__button:hover,
.flacso-front-hero__button:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.17);
    transform: translateY(-2px);
}

.flacso-front-hero__button--primary:hover,
.flacso-front-hero__button--primary:focus-visible {
    background: #ffe363;
    color: #0d203e;
}

.flacso-front-hero__art {
    position: relative;
    min-height: 340px;
    display: grid;
    place-items: center;
}

.flacso-front-hero__globe {
    position: relative;
    width: min(320px, 26vw);
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 25%, #3f83d2, #164a98 48%, #082c67 78%);
    box-shadow: inset -35px -28px 70px rgba(4, 20, 48, 0.5), 0 35px 70px rgba(3, 17, 42, 0.42);
}

.flacso-front-hero__world {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.22));
}

.flacso-front-hero__orbit {
    position: absolute;
    width: min(400px, 33vw);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    box-shadow: 0 0 0 52px rgba(255, 255, 255, 0.035), 0 0 0 104px rgba(255, 255, 255, 0.02);
}

body.admin-bar .flacso-front-hero {
    --flacso-hero-admin-offset: 32px;
}

@media (min-width: 901px) {
    .flacso-front-hero {
        width: 100%;
        height: min(650px, calc(100svh - 120px - var(--flacso-hero-admin-offset)));
        min-height: 0;
    }

    .flacso-front-hero__grid {
        height: 100%;
    }
}

.flacso-front-hero__year {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 2%;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    background: #fff;
    color: #163970;
    box-shadow: 0 18px 45px rgba(5, 22, 52, 0.3);
    transform: rotate(-3deg);
}

.flacso-front-hero__year strong,
.flacso-front-hero__year span {
    display: block;
}

.flacso-front-hero__year strong {
    font-size: 1.75rem;
    line-height: 1;
}

.flacso-front-hero__year span {
    margin-top: 0.25rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.flacso-front-hero-fab {
    position: fixed;
    right: clamp(12px, 2vw, 28px);
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.flacso-front-hero-fab.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.flacso-front-hero-fab__link {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: min(320px, calc(100vw - 24px));
    padding: 0.65rem 1rem;
    border: 1px solid #163970;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.97);
    color: #163970;
    box-shadow: 0 10px 28px rgba(5, 22, 52, 0.24);
    font-size: 0.86rem;
    font-weight: 750;
    text-decoration: none;
}

.flacso-front-hero-fab__link--primary {
    border-color: var(--hero-yellow, #fed222);
    background: var(--hero-yellow, #fed222);
    color: #0d203e;
}

.flacso-front-hero-fab__link svg {
    width: 17px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

@media (max-width: 900px) {
    .flacso-front-hero__grid {
        grid-template-columns: 1fr;
    }

    .flacso-front-hero__art {
        display: none;
    }

    .flacso-front-hero__content {
        max-width: 680px;
    }
}

@media (max-width: 600px) {
    .flacso-front-hero {
        min-height: 470px;
        text-align: center;
    }

    .flacso-front-hero__content {
        margin-inline: auto;
    }

    .flacso-front-hero__kicker,
    .flacso-main-page .flacso-front-hero__title {
        margin-inline: auto;
    }

    .flacso-main-page .flacso-front-hero__title {
        font-size: clamp(2.35rem, 12vw, 3.4rem);
    }

    .flacso-front-hero__actions {
        justify-content: center;
    }

    .flacso-front-hero__button {
        width: min(100%, 340px);
    }

    .flacso-front-hero-fab__link {
        width: 46px;
        padding-inline: 0;
        justify-content: center;
    }

    .flacso-front-hero-fab__link span {
        display: none;
    }
}

@media (max-width: 782px) {
    body.admin-bar .flacso-front-hero {
        --flacso-hero-admin-offset: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .flacso-front-hero__button {
        transition: none;
    }
}
