:root {
    --flacso-section-max-width: var(--global-content-width, var(--kb-content-width, 1290px));
    --flacso-section-gutter: var(--global-content-edge-padding, 20px);
    --flacso-section-heading-color: var(--global-palette1, #163970);
    --flacso-section-vertical-space: clamp(2rem, 5vw, 4.5rem);
    --flacso-home-display-font: "Sora", var(--global-heading-font-family, "Trebuchet MS", sans-serif);
    --flacso-home-body-font: "Manrope", var(--global-body-font-family, "Segoe UI", sans-serif);
}

.flacso-main-page {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: clip;
    background: #f4f7fb;
    color: #1f3048;
    font-family: var(--flacso-home-body-font);
}

.flacso-main-page *,
.flacso-main-page *::before,
.flacso-main-page *::after {
    box-sizing: border-box;
}

.flacso-homepage-completa::before,
.flacso-homepage-completa::after {
    display: none;
}

.flacso-home-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0;
}

.flacso-content-shell {
    width: min(100%, var(--flacso-section-max-width));
    margin-inline: auto;
    padding-inline: var(--flacso-section-gutter);
}

.flacso-main-page .flacso-home-block {
    width: 100%;
    margin: 0 !important;
    padding: var(--flacso-section-vertical-space) clamp(1rem, 3vw, 2rem) !important;
    background: #fff;
}

.flacso-main-page .flacso-home-block:not(.flacso-home-block--hero):not(.flacso-home-block--instagram) {
    --flacso-section-heading-color: #163970;
}

.flacso-main-page .flacso-home-block--hero {
    padding: 0 !important;
    background: transparent;
}

.flacso-main-page .flacso-home-block--eventos,
.flacso-main-page .flacso-home-block--novedades_busqueda,
.flacso-main-page .flacso-home-block--instagram {
    background: #f4f7fb;
}

.flacso-main-page .flacso-home-block--seminarios,
.flacso-main-page .flacso-home-block--quienes,
.flacso-main-page .flacso-home-block--contacto {
    background: #f8faf6;
}

.flacso-main-page .flacso-home-block--posgrados,
.flacso-main-page .flacso-home-block--mailing,
.flacso-main-page .flacso-home-block--congreso {
    background: #fff9ef;
}

.flacso-main-page .flacso-home-block__surface {
    position: relative;
    width: min(100%, var(--flacso-section-max-width));
    max-width: var(--flacso-section-max-width);
    margin-inline: auto;
}

.flacso-main-page .flacso-home-block--hero .flacso-home-block__surface {
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: visible;
}

.flacso-main-page .flacso-home-block__surface--card {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.flacso-main-page .flacso-home-block__surface--card::before,
.flacso-main-page .flacso-home-block__surface--card::after {
    display: none;
}

.flacso-main-page .flacso-home-block:not(.flacso-home-block--hero) .flacso-content-shell {
    width: 100%;
    max-width: none;
    padding-inline: clamp(0.25rem, 2vw, 1rem);
}

.flacso-main-page h1,
.flacso-main-page h2,
.flacso-main-page h3,
.flacso-main-page h4 {
    font-family: var(--flacso-home-display-font);
}

.flacso-home-block:not(.flacso-home-block--hero) header {
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.flacso-home-block:not(.flacso-home-block--hero) h2 {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--flacso-section-heading-color);
    font-size: clamp(1.9rem, 2.6vw, 2.4rem);
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.15;
}

.flacso-home-block:not(.flacso-home-block--hero) h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 0.65rem;
    border-radius: 999px;
    background: var(--global-palette-btn-bg, #248138);
}

.flacso-main-page .flacso-home-block--posgrados .nuestra-oferta-educativa-3d .oferta-educativa-titulo {
    color: #163970 !important;
}

@media (max-width: 767.98px) {
    .flacso-main-page .flacso-home-block {
        padding: 1.75rem 0.85rem !important;
    }

    .flacso-main-page .flacso-home-block--hero {
        padding: 0 !important;
    }

    .flacso-main-page .flacso-home-block__surface--card .flacso-content-shell {
        padding-inline: 0;
    }

    .flacso-home-block:not(.flacso-home-block--hero) h2 {
        font-size: clamp(1.45rem, 8vw, 2rem);
    }
}

/* Sección institucional */
.flacso-main-page .flacso-home-block--quienes {
    padding-block: clamp(2.5rem, 5vw, 5rem) !important;
    background:
        radial-gradient(circle at 8% 15%, rgba(36, 129, 56, 0.09), transparent 27rem),
        linear-gradient(180deg, #f8faf6 0%, #f3f7f2 100%);
}

.flacso-main-page .flacso-home-block--quienes .flacso-content-shell {
    padding-inline: 0;
}

.flacso-quienes-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(230px, 0.72fr) minmax(0, 2fr);
    overflow: hidden;
    border: 1px solid rgba(22, 57, 112, 0.11);
    border-radius: clamp(24px, 3vw, 38px);
    background: #fff;
    box-shadow: 0 26px 70px rgba(20, 47, 82, 0.12);
}

.flacso-quienes-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
    pointer-events: none;
}

.flacso-quienes-brand {
    position: relative;
    isolation: isolate;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.35rem;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.75rem);
    overflow: hidden;
    background: linear-gradient(155deg, #0e3167 0%, #194b8f 68%, #23609f 100%);
    color: #fff;
    text-align: center;
}

.flacso-quienes-brand::before,
.flacso-quienes-brand::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
}

.flacso-quienes-brand::before {
    width: 280px;
    height: 280px;
    top: -150px;
    right: -120px;
}

.flacso-quienes-brand::after {
    width: 190px;
    height: 190px;
    bottom: -105px;
    left: -90px;
}

.flacso-quienes-brand__orb {
    position: absolute;
    top: 16%;
    right: 14%;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--flacso-quienes-accent, #fed222);
    box-shadow: 0 0 0 8px rgba(254, 210, 34, 0.12);
}

.flacso-quienes-brand__logo {
    width: clamp(150px, 15vw, 205px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    padding: clamp(1.15rem, 2vw, 1.7rem);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 22px 45px rgba(3, 20, 48, 0.28);
}

.flacso-quienes-brand__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.flacso-quienes-brand__name {
    max-width: 22ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1.5;
    text-transform: uppercase;
}

.flacso-quienes-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2.2rem, 5vw, 4.75rem);
}

.flacso-main-page .flacso-quienes-title {
    max-width: 18ch;
    margin: 0;
    color: #163970;
    font-size: clamp(2.25rem, 4vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.02;
    text-wrap: balance;
}

.flacso-main-page .flacso-quienes-title::after {
    width: 74px;
    height: 4px;
    margin-top: 1rem;
    background: linear-gradient(90deg, var(--flacso-quienes-accent, #fed222) 0 58%, #248138 58%);
}

.flacso-quienes-text {
    max-width: 70ch;
    margin-top: 1.4rem;
    color: #34445a;
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    line-height: 1.72;
}

.flacso-quienes-text p {
    margin: 0;
}

.flacso-quienes-text p + p {
    margin-top: 1rem;
}

.flacso-quienes-text strong {
    color: #172d4c;
    font-weight: 750;
}

.flacso-quienes-cta {
    width: fit-content;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.65rem;
    padding: 0.78rem 1.25rem 0.78rem 1.45rem;
    border: 1px solid #163970;
    border-radius: 999px;
    background: #163970;
    color: #fff;
    font-size: 0.93rem;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(22, 57, 112, 0.18);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.flacso-quienes-cta svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: transform 0.2s ease;
}

.flacso-quienes-cta:hover,
.flacso-quienes-cta:focus-visible {
    background: #248138;
    border-color: #248138;
    color: #fff;
    box-shadow: 0 16px 30px rgba(36, 129, 56, 0.22);
    transform: translateY(-2px);
}

.flacso-quienes-cta:hover svg,
.flacso-quienes-cta:focus-visible svg {
    transform: translateX(3px);
}

@media (max-width: 820px) {
    .flacso-quienes-card {
        grid-template-columns: 1fr;
    }

    .flacso-quienes-brand {
        min-height: auto;
        display: grid;
        grid-template-columns: 118px minmax(0, 1fr);
        justify-items: start;
        padding: 1.4rem;
        text-align: left;
    }

    .flacso-quienes-brand__logo {
        width: 118px;
        grid-row: 1 / span 2;
    }

    .flacso-quienes-brand__name {
        max-width: 28ch;
    }

    .flacso-quienes-copy {
        padding: clamp(1.5rem, 6vw, 2.5rem);
    }
}

@media (max-width: 520px) {
    .flacso-main-page .flacso-home-block--quienes {
        padding: 1rem 0.75rem 1.75rem !important;
    }

    .flacso-quienes-card {
        border-radius: 22px;
    }

    .flacso-quienes-brand {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 0.9rem;
        padding: 1rem;
    }

    .flacso-quienes-brand__logo {
        width: 86px;
        padding: 0.7rem;
    }

    .flacso-quienes-brand__name {
        font-size: 0.65rem;
    }

    .flacso-main-page .flacso-quienes-title {
        font-size: clamp(2rem, 10vw, 2.65rem);
    }

    .flacso-quienes-copy {
        padding: 1.4rem 1.15rem 1.6rem;
    }

    .flacso-quienes-cta {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .flacso-quienes-cta,
    .flacso-quienes-cta svg {
        transition: none;
    }
}
