:root {
    --ink: #18202b;
    --muted: #68717e;
    --paper: #fbfaf7;
    --surface: #ffffff;
    --line: #e6e2da;
    --brand: #7b2636;
    --brand-dark: #571724;
    --brand-soft: #f4e9eb;
    --gold: #b58942;
    --navy: #17243a;
    --success: #2d7255;
    --shadow-sm: 0 8px 24px rgba(24, 32, 43, .08);
    --shadow-lg: 0 24px 70px rgba(24, 32, 43, .16);
    --radius: 20px;
    --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "DM Sans", sans-serif; color: var(--ink); background: var(--paper); line-height: 1.6; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.site-container { width: var(--container); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 9999; padding: 10px 14px; background: #fff; border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.utility-bar { background: var(--navy); color: #fff; font-size: .82rem; }
.utility-bar__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.utility-bar p { margin: 0; color: rgba(255,255,255,.76); }
.utility-links { display: flex; gap: 20px; }
.utility-links a { color: rgba(255,255,255,.9); }
.utility-links a:hover { color: #fff; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251,250,247,.96); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(230,226,218,.85); }
.brand-row { min-height: 92px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 15px; min-width: 0; }
.brand__mark { width: 67px; height: 67px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 50%; box-shadow: var(--shadow-sm); flex: 0 0 auto; overflow: hidden; }
.brand__mark img { width: 58px; height: 58px; object-fit: contain; }
.brand__copy { display: flex; flex-direction: column; min-width: 0; }
.brand__copy strong { font-family: "Libre Baskerville", serif; font-size: clamp(1rem, 2vw, 1.28rem); line-height: 1.25; }
.brand__copy small { color: var(--brand); text-transform: uppercase; letter-spacing: .13em; font-weight: 700; font-size: .7rem; margin-top: 5px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 11px; }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: var(--ink); }
.primary-nav { border-top: 1px solid var(--line); background: #fff; }
.nav-list { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; align-items: stretch; gap: 2px; }
.nav-item { position: relative; }
.nav-item > a { min-height: 48px; display: flex; align-items: center; gap: 5px; padding: 0 12px; font-size: .89rem; font-weight: 600; color: #353d49; border-bottom: 3px solid transparent; }
.nav-item > a svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav-item:hover > a, .nav-item:focus-within > a { color: var(--brand); border-bottom-color: var(--brand); }
.dropdown-menu { position: absolute; top: calc(100% - 2px); left: 0; min-width: 240px; list-style: none; margin: 0; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 14px 14px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s ease; }
.nav-item:hover .dropdown-menu, .nav-item:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a { display: block; padding: 9px 11px; border-radius: 8px; font-size: .88rem; color: #434b56; }
.dropdown-menu a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.submenu-toggle { display: none; }

.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 78% 30%, rgba(181,137,66,.22), transparent 29%), linear-gradient(135deg, #f8f3eb 0%, #fff 52%, #f1e3e6 100%); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; width: 480px; height: 480px; border: 1px solid rgba(123,38,54,.12); border-radius: 50%; right: -160px; top: -210px; }
.hero__grid { min-height: 570px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 70px; padding-block: 70px; }
.hero__content { position: relative; z-index: 2; }
.hero__kicker, .section-kicker { display: inline-block; color: var(--brand); font-size: .76rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.hero h1, .page-hero h1, .article-header h1, .event-detail__header h1 { font-family: "Libre Baskerville", serif; letter-spacing: -.035em; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 1.08; margin: 16px 0 22px; max-width: 820px; }
.hero__content > p { font-size: 1.15rem; color: #525c69; max-width: 680px; }
.hero__actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 11px; font-weight: 700; transition: .2s ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--brand); color: #fff; box-shadow: 0 9px 22px rgba(123,38,54,.23); }
.button--primary:hover { background: var(--brand-dark); }
.button--ghost { background: rgba(255,255,255,.6); color: var(--ink); border-color: #cfc8bd; }
.button--dark { background: var(--navy); color: #fff; }
.button--light { background: #fff; color: var(--brand-dark); }
.button--ghost-dark { background: transparent; border-color: #bdc3ca; color: var(--ink); }
.button--full { width: 100%; }
.hero__visual { position: relative; min-height: 430px; display: grid; place-items: center; }
.hero-seal { width: 320px; height: 320px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.8); border: 1px solid rgba(123,38,54,.18); box-shadow: var(--shadow-lg); }
.hero-seal::before, .hero-seal::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(123,38,54,.12); }
.hero-seal::before { width: 365px; height: 365px; }
.hero-seal::after { width: 410px; height: 410px; }
.hero-seal img { width: 250px; height: 250px; object-fit: contain; position: relative; z-index: 2; }
.hero-note { position: absolute; z-index: 3; padding: 13px 16px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.hero-note strong { color: var(--brand); }
.hero-note span { color: var(--muted); font-size: .78rem; }
.hero-note--one { left: 0; top: 80px; }
.hero-note--two { right: 0; bottom: 80px; }

.quick-access { margin-top: -34px; position: relative; z-index: 5; }
.quick-access__grid { display: grid; grid-template-columns: repeat(4,1fr); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); }
.quick-access a { min-height: 112px; padding: 22px; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 12px; border-right: 1px solid var(--line); transition: .2s ease; }
.quick-access a:last-child { border-right: 0; }
.quick-access a:hover { background: var(--brand-soft); }
.quick-access span { grid-row: 1 / 3; align-self: start; font-family: "Libre Baskerville",serif; color: var(--gold); font-size: .8rem; }
.quick-access strong { font-size: .96rem; }
.quick-access small { color: var(--muted); }
.section-space { padding-block: 88px; }
.home-feed__grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(320px,.75fr); gap: 44px; align-items: start; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading h2 { font-family: "Libre Baskerville",serif; font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 8px 0 0; }
.section-heading--compact h2 { font-size: 1.85rem; }
.text-link { color: var(--brand); font-weight: 700; white-space: nowrap; }
.text-link:hover { color: var(--brand-dark); }
.news-stack { display: grid; gap: 17px; }
.news-card { display: grid; grid-template-columns: 180px 1fr; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: .2s ease; }
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: #d5cec4; }
.news-card__media { min-height: 170px; background: #e8e3dc; overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.news-card:hover .news-card__media img { transform: scale(1.03); }
.media-placeholder { height: 100%; min-height: 180px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-family: "Libre Baskerville",serif; font-size: 1.4rem; }
.news-card__body { padding: 22px 24px; }
.eyebrow-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.eyebrow-row time { font-size: .76rem; color: var(--muted); }
.category-chip, .scope-chip { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: .7rem; line-height: 1; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.news-card h3 { font-family: "Libre Baskerville",serif; font-size: 1.18rem; line-height: 1.35; margin: 0 0 8px; }
.news-card h3 a:hover { color: var(--brand); }
.news-card p { margin: 0 0 12px; color: var(--muted); font-size: .9rem; }
.news-card .text-link { font-size: .82rem; }
.news-card--featured { grid-template-columns: 1fr; }
.news-card--featured .news-card__media { height: 350px; }
.news-card--featured .news-card__body { padding: 28px 30px; }
.news-card--featured h3 { font-size: 1.65rem; }
.events-panel { background: var(--navy); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-lg); }
.event-card { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 16px 0; color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); }
.event-card:first-child { padding-top: 0; }
.event-card:last-of-type { border-bottom: 0; }
.event-card__date { width: 62px; height: 76px; border-radius: 12px; background: #fff; color: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.event-card__date span { text-transform: uppercase; color: var(--brand); font-weight: 700; font-size: .7rem; }
.event-card__date strong { font-family: "Libre Baskerville",serif; font-size: 1.7rem; margin: 5px 0; }
.event-card__date small { font-size: .65rem; color: var(--muted); }
.event-card__body h3 { margin: 8px 0 4px; font-family: "Libre Baskerville",serif; font-size: 1rem; line-height: 1.38; }
.event-card__body h3 a:hover { color: #e8c98d; }
.event-card__body p { margin: 0; color: rgba(255,255,255,.72); font-size: .8rem; }
.event-card__meta { display: flex; gap: 12px; margin-top: 8px; font-size: .7rem; color: rgba(255,255,255,.62); }
.scope-chip--departamental { background: #e8f2ec; color: #285f49; }
.scope-chip--nacional { background: #f4e9eb; color: #702233; }
.scope-chip--internacional { background: #e7edf7; color: #2a4c7f; }
.events-panel .button { margin-top: 15px; background: #fff; color: var(--navy); }
.event-directory { margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.event-directory h3 { margin: 0 0 10px; font-family: "Libre Baskerville",serif; }
.event-directory a { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.event-directory a:last-child { border-bottom: 0; }
.event-directory a:hover span { color: var(--brand); }
.event-directory strong { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--brand); }
.empty-state { padding: 36px; text-align: center; background: #fff; border: 1px dashed #cbc3b8; border-radius: var(--radius); color: var(--muted); }
.empty-state strong { display: block; color: var(--ink); margin-bottom: 5px; }
.empty-state p { margin: 0; }
.empty-state--events { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.7); }
.empty-state--events strong { color: #fff; }
.empty-state__icon { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 15px; display: grid; place-items: center; background: rgba(255,255,255,.12); font-size: .65rem; font-weight: 700; letter-spacing: .08em; }
.empty-state--wide { grid-column: 1 / -1; }
.institutional-banner { background: var(--brand-dark); color: #fff; padding: 58px 0; }
.institutional-banner__grid { display: grid; grid-template-columns: 1.1fr 1fr auto; align-items: center; gap: 38px; }
.institutional-banner h2 { font-family: "Libre Baskerville",serif; font-size: 2rem; margin: 8px 0 0; }
.institutional-banner p { color: rgba(255,255,255,.73); }
.section-kicker--light { color: #e4c481; }

.page-hero { padding: 78px 0 70px; background: linear-gradient(135deg, var(--navy), #283954); color: #fff; }
.page-hero--events { background: linear-gradient(135deg, var(--brand-dark), #8d3347); }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); margin: 12px 0; }
.page-hero p { max-width: 700px; color: rgba(255,255,255,.72); font-size: 1.08rem; }
.filter-bar { display: grid; grid-template-columns: 1.6fr 1fr .65fr auto; gap: 14px; align-items: end; background: #fff; border: 1px solid var(--line); padding: 18px; border-radius: 16px; box-shadow: var(--shadow-sm); }
.filter-bar--events { grid-template-columns: 1.8fr 1fr auto; }
.filter-bar label { display: flex; flex-direction: column; gap: 6px; }
.filter-bar label > span { color: var(--muted); font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.filter-bar input, .filter-bar select { width: 100%; min-height: 46px; border: 1px solid #d8d3cb; border-radius: 10px; background: #fff; padding: 0 13px; color: var(--ink); }
.filter-bar input:focus, .filter-bar select:focus { outline: 3px solid rgba(123,38,54,.12); border-color: var(--brand); }
.results-heading { display: flex; justify-content: space-between; align-items: center; margin: 28px 0 18px; color: var(--muted); }
.results-heading p { margin: 0; }
.results-heading a { color: var(--brand); font-weight: 700; }
.card-grid { display: grid; gap: 20px; }
.card-grid--news, .card-grid--three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.card-grid--news .news-card, .card-grid--three .news-card { grid-template-columns: 1fr; }
.card-grid--news .news-card__media, .card-grid--three .news-card__media { height: 210px; }
.scope-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.scope-tabs a { padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.scope-tabs a.is-active, .scope-tabs a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.event-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.event-tile { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: .2s ease; }
.event-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.event-tile__media { height: 230px; display: block; position: relative; background: #ece7df; }
.event-tile__media img { width: 100%; height: 100%; object-fit: cover; }
.event-tile__media .scope-chip { position: absolute; left: 15px; bottom: 15px; }
.event-tile__body { padding: 22px; }
.event-tile__date { color: var(--brand); font-size: .8rem; margin-bottom: 10px; }
.event-tile h2 { font-family: "Libre Baskerville",serif; font-size: 1.25rem; line-height: 1.35; margin: 0 0 10px; }
.event-tile h2 a:hover { color: var(--brand); }
.event-tile p { color: var(--muted); font-size: .9rem; }
.event-tile__footer { padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .75rem; }
.event-tile--compact .event-tile__body { min-height: 270px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 38px; }
.pagination a, .pagination__disabled { padding: 9px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination__disabled { opacity: .5; }
.pagination__summary { color: var(--muted); font-size: .85rem; }

.article-header { padding: 66px 0 140px; background: linear-gradient(135deg,#f2e8e9,#fff); }
.article-header__inner { max-width: 880px; }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--brand); font-weight: 700; }
.back-link--light { color: #f0d696; }
.article-header h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.15; margin: 18px 0; }
.article-header__inner > p { font-size: 1.15rem; color: #59626d; }
.article-meta { display: flex; gap: 20px; color: var(--muted); font-size: .82rem; margin-top: 24px; }
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 48px; align-items: start; margin-top: -90px; padding-bottom: 90px; }
.article-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.article-cover { margin: 0; }
.article-cover img { width: 100%; max-height: 610px; object-fit: cover; }
.article-cover figcaption { padding: 10px 24px; background: #f6f4f0; color: var(--muted); font-size: .76rem; }
.prose { padding: 38px clamp(24px,5vw,58px); font-family: "Libre Baskerville",serif; font-size: 1.02rem; line-height: 2; color: #303741; }
.article-aside { padding-top: 90px; }
.aside-card { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.aside-card h2 { font-family: "Libre Baskerville",serif; font-size: 1.35rem; }
.aside-card p { color: var(--muted); }
.aside-card--sticky { position: sticky; top: 170px; }
.related-section { background: #f4f1eb; border-top: 1px solid var(--line); }
.event-detail__header { padding: 70px 0 120px; background: linear-gradient(135deg,var(--navy),#263a5c); color: #fff; }
.event-detail__header-grid { display: grid; grid-template-columns: 1fr 150px; gap: 50px; align-items: center; }
.event-detail__header h1 { font-size: clamp(2.3rem,5vw,4.2rem); line-height: 1.12; margin: 18px 0; }
.event-detail__header p { max-width: 760px; color: rgba(255,255,255,.72); font-size: 1.1rem; }
.date-display { width: 140px; height: 170px; border-radius: 20px; background: #fff; color: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.date-display span { color: var(--brand); font-weight: 700; text-transform: uppercase; }
.date-display strong { font-family: "Libre Baskerville",serif; font-size: 4rem; line-height: 1; margin: 7px 0; }
.date-display small { color: var(--muted); }
.event-detail__layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 48px; align-items: start; margin-top: -70px; padding-bottom: 90px; }
.event-detail__main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.event-facts { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.event-facts div { background: #fff; padding: 22px; display: flex; flex-direction: column; }
.event-facts span { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; }
.event-facts strong { margin-top: 5px; }
.event-detail__aside { padding-top: 70px; }

.site-footer { background: #111a28; color: #fff; padding: 62px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr .7fr .9fr; gap: 60px; }
.footer-brand { display: flex; gap: 18px; align-items: flex-start; }
.footer-brand img { width: 78px; height: 78px; object-fit: contain; background: #fff; border-radius: 50%; padding: 5px; }
.footer-brand strong { font-family: "Libre Baskerville",serif; font-size: 1.4rem; }
.footer-brand p, .footer-grid p { color: rgba(255,255,255,.65); }
.footer-grid h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #dbbd80; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 7px; }
.footer-grid a { color: rgba(255,255,255,.75); }
.footer-grid a:hover { color: #fff; }
.footer-bottom { margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.5); font-size: .78rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 1080px) {
    .utility-bar { display: none; }
    .menu-toggle { display: block; }
    .primary-nav { position: fixed; inset: 92px 0 0; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; border-top: 1px solid var(--line); }
    .primary-nav.is-open { transform: none; }
    .nav-list { display: block; padding: 20px 0 60px; }
    .nav-item > a { min-height: 52px; padding-inline: 20px 52px; border-bottom: 1px solid var(--line); }
    .nav-item > a svg { display: none; }
    .submenu-toggle { display: block; position: absolute; right: 8px; top: 5px; width: 42px; height: 42px; border: 0; background: transparent; }
    .submenu-toggle::before { content: "+"; font-size: 1.4rem; }
    .submenu-open .submenu-toggle::before { content: "−"; }
    .dropdown-menu { position: static; min-width: 0; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; padding: 8px 20px 12px 34px; background: #f7f4ef; }
    .submenu-open .dropdown-menu { display: block; }
    .hero__grid { grid-template-columns: 1fr; min-height: auto; }
    .hero__visual { display: none; }
    .quick-access__grid { grid-template-columns: repeat(2,1fr); }
    .quick-access a:nth-child(2) { border-right: 0; }
    .quick-access a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .home-feed__grid { grid-template-columns: 1fr; }
    .card-grid--news, .card-grid--three, .event-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .institutional-banner__grid { grid-template-columns: 1fr; }
    .article-layout, .event-detail__layout { grid-template-columns: 1fr; }
    .article-aside, .event-detail__aside { padding-top: 0; }
    .aside-card--sticky { position: static; }
}

@media (max-width: 720px) {
    :root { --container: min(100% - 26px, 1180px); }
    .brand-row { min-height: 76px; }
    .brand__mark { width: 52px; height: 52px; }
    .brand__mark img { width: 46px; height: 46px; }
    .brand__copy strong { font-size: .9rem; }
    .brand__copy small { font-size: .58rem; }
    .primary-nav { inset: 76px 0 0; }
    .hero__grid { padding-block: 55px 75px; }
    .hero h1 { font-size: 2.55rem; }
    .quick-access { margin-top: -25px; }
    .quick-access__grid { grid-template-columns: 1fr; }
    .quick-access a { border-right: 0; border-bottom: 1px solid var(--line); }
    .quick-access a:last-child { border-bottom: 0; }
    .section-space { padding-block: 58px; }
    .section-heading { align-items: flex-start; }
    .news-card, .news-card--featured { grid-template-columns: 1fr; }
    .news-card__media, .news-card--featured .news-card__media { height: 220px; min-height: 0; }
    .card-grid--news, .card-grid--three, .event-grid { grid-template-columns: 1fr; }
    .filter-bar, .filter-bar--events { grid-template-columns: 1fr; }
    .event-detail__header-grid { grid-template-columns: 1fr; }
    .date-display { width: 110px; height: 130px; }
    .date-display strong { font-size: 3rem; }
    .event-facts { grid-template-columns: 1fr; }
    .article-header { padding-bottom: 105px; }
    .article-layout { margin-top: -60px; }
    .article-meta { flex-direction: column; gap: 4px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; }
    .pagination__summary { display: none; }
}

/* =========================================================
   Academia: Historia, Directivas y documentos restringidos
   ========================================================= */
.institution-hero,
.board-detail-hero,
.governance-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0;
    color: #fff;
    background: radial-gradient(circle at 84% 18%, rgba(218,184,115,.24), transparent 28%), linear-gradient(135deg, var(--navy), #253b5e);
}
.institution-hero::after,
.board-detail-hero::after,
.governance-hero::after {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    right: -190px;
    bottom: -260px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
}
.institution-hero--board { background: radial-gradient(circle at 84% 18%, rgba(218,184,115,.23), transparent 28%), linear-gradient(135deg, var(--brand-dark), #8f3448); }
.institution-hero__grid,
.governance-hero__grid,
.board-detail-hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 56px; }
.institution-hero h1,
.board-detail-hero h1,
.governance-hero h1 { max-width: 860px; margin: 12px 0 18px; font-family: "Libre Baskerville",serif; font-size: clamp(2.7rem,5vw,4.8rem); line-height: 1.08; letter-spacing: -.035em; }
.institution-hero p,
.board-detail-hero p,
.governance-hero p { max-width: 760px; margin: 0; color: rgba(255,255,255,.74); font-size: 1.08rem; }
.history-dates { display: grid; grid-template-columns: repeat(2,150px); gap: 12px; }
.history-dates div { min-height: 155px; display: flex; flex-direction: column; justify-content: center; padding: 20px; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: rgba(255,255,255,.09); backdrop-filter: blur(10px); }
.history-dates strong { font-family: "Libre Baskerville",serif; color: #f0d38f; font-size: 2.4rem; }
.history-dates span { color: rgba(255,255,255,.72); font-size: .76rem; }
.history-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 50px; align-items: start; }
.history-article { min-width: 0; }
.history-gallery { display: grid; grid-template-columns: 1.4fr .8fr; gap: 18px; margin-bottom: 36px; }
.history-gallery--single { grid-template-columns: 1fr; }
.history-gallery figure { min-height: 330px; margin: 0; overflow: hidden; border-radius: var(--radius); background: #ece7df; box-shadow: var(--shadow-sm); }
.history-gallery__primary { min-height: 520px !important; }
.history-gallery img { width: 100%; height: 100%; object-fit: cover; }
.history-aside { padding-top: 10px; }
.institution-prose { padding: clamp(28px,5vw,55px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.institution-prose p { margin: 0 0 1.55em; color: #343b45; font-family: "Libre Baskerville",serif; font-size: 1rem; line-height: 1.95; }
.institution-prose p:last-child { margin-bottom: 0; }
.institution-prose--narrow { width: min(900px,100%); margin: 34px auto 0; }

.current-board { background: #fff; }
.current-pill { display: inline-flex; padding: 9px 14px; border-radius: 999px; background: #eaf5ef; color: var(--success); font-size: .78rem; font-weight: 700; }
.board-feature { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.board-feature__images { position: relative; min-height: 500px; }
.board-feature__images img { position: absolute; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg); }
.board-feature__main { inset: 0 80px 70px 0; width: calc(100% - 80px); height: calc(100% - 70px); }
.board-feature__secondary { width: 48%; height: 52%; right: 0; bottom: 0; border: 7px solid #fff; }
.board-image-placeholder { height: 470px; display: grid; place-items: center; border-radius: 22px; background: linear-gradient(135deg,var(--brand-soft),#e6d8da); color: var(--brand); font-family: "Libre Baskerville",serif; font-size: 3rem; }
.board-feature__copy h2 { margin: 0; font-family: "Libre Baskerville",serif; }
.lead-copy { color: #4f5967; font-size: 1.1rem; line-height: 1.8; }
.board-facts { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 24px 0; }
.board-facts div { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); display: flex; flex-direction: column; }
.board-facts span { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.board-facts strong { margin-top: 4px; font-size: .86rem; }
.board-members-heading { margin-top: 70px; }
.member-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.member-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 17px; transition: .2s ease; }
.member-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.member-card__photo { height: 265px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg,#ede4e5,#f7f4ef); color: var(--brand); font-family: "Libre Baskerville",serif; font-size: 3rem; }
.member-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.member-card > div:last-child { padding: 19px; }
.member-card > div:last-child > span { display: block; color: var(--brand); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.member-card h3 { margin: 7px 0; font-family: "Libre Baskerville",serif; font-size: 1.02rem; line-height: 1.4; }
.member-card p { margin: 0; color: var(--muted); font-size: .82rem; }
.member-card--detail p { white-space: pre-line; }
.board-archive { background: #f2efe9; border-top: 1px solid var(--line); }
.board-archive-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.board-archive-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: .2s ease; }
.board-archive-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.board-archive-card__media { height: 210px; display: grid; place-items: center; overflow: hidden; background: var(--brand-soft); color: var(--brand); font-family: "Libre Baskerville",serif; font-size: 2rem; }
.board-archive-card__media img { width: 100%; height: 100%; object-fit: cover; }
.board-archive-card > div:last-child { padding: 21px; }
.board-archive-card > div:last-child > span { color: var(--brand); font-size: .72rem; font-weight: 700; }
.board-archive-card h3 { margin: 7px 0; font-family: "Libre Baskerville",serif; font-size: 1.18rem; }
.board-archive-card p { margin: 0; color: var(--muted); font-size: .8rem; }
.board-period { min-width: 220px; padding: 23px; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: rgba(255,255,255,.09); }
.board-period span { display: block; color: #e6c782; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.board-period strong { display: block; margin-top: 7px; font-family: "Libre Baskerville",serif; font-size: 1.5rem; }
.board-photo-pair { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.board-photo-pair--single { grid-template-columns: 1fr; }
.board-photo-pair img { width: 100%; height: 480px; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-sm); }
.board-photo-pair img:nth-child(2) { height: 380px; align-self: end; }

.governance-hero { background: radial-gradient(circle at 84% 18%, rgba(218,184,115,.22), transparent 28%), linear-gradient(135deg,#111c2e,#263a59); }
.security-seal { width: 180px; height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(255,255,255,.08); text-align: center; }
.security-seal span { color: rgba(255,255,255,.66); font-size: .66rem; letter-spacing: .16em; }
.security-seal strong { color: #e8c77f; font-family: "Libre Baskerville",serif; font-size: 1.4rem; }
.security-seal small { color: rgba(255,255,255,.5); font-size: .64rem; }
.access-layout { display: grid; grid-template-columns: 1fr 430px; gap: 70px; align-items: center; }
.access-copy h2,
.document-heading h2 { margin: 10px 0; font-family: "Libre Baskerville",serif; font-size: clamp(2rem,4vw,3rem); }
.access-copy > p { color: var(--muted); font-size: 1.05rem; }
.security-points { display: grid; gap: 12px; margin-top: 28px; }
.security-points div { padding: 16px 18px; border-left: 3px solid var(--gold); background: #fff; box-shadow: var(--shadow-sm); }
.security-points strong,
.security-points span { display: block; }
.security-points span { margin-top: 4px; color: var(--muted); font-size: .82rem; }
.access-card { padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); }
.access-card > img { width: 76px; height: 76px; margin: 0 auto 18px; object-fit: contain; }
.access-card h2 { margin: 0; text-align: center; font-family: "Libre Baskerville",serif; }
.access-card > p { color: var(--muted); text-align: center; }
.access-card label { display: flex; flex-direction: column; gap: 7px; margin: 24px 0 12px; }
.access-card label span { font-size: .75rem; font-weight: 700; }
.access-card input { min-height: 52px; width: 100%; padding: 0 14px; border: 1px solid #cbcfd4; border-radius: 11px; text-align: center; letter-spacing: .08em; }
.access-card input:focus { outline: 3px solid rgba(123,38,54,.12); border-color: var(--brand); }
.access-card > small { display: block; margin-top: 14px; color: var(--muted); text-align: center; }
.field-error { margin-bottom: 12px; color: #9c2f3e; font-size: .78rem; }
.public-alert { margin-bottom: 24px; padding: 14px 17px; border-radius: 12px; }
.public-alert--success { background: #eaf6ef; color: #286447; border: 1px solid #bcdcca; }
.document-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 32px; }
.document-heading p { margin: 0; color: var(--muted); }
.document-list { display: grid; gap: 14px; }
.document-card { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: 20px; align-items: center; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.document-card__icon { width: 58px; height: 66px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .68rem; }
.document-card__body { min-width: 0; }
.document-card__body > div:first-child { display: flex; gap: 8px; align-items: center; }
.document-version { color: var(--muted); font-size: .7rem; }
.document-card h3 { margin: 8px 0 4px; font-family: "Libre Baskerville",serif; font-size: 1.08rem; }
.document-card p { margin: 0; color: var(--muted); font-size: .84rem; }
.document-meta { display: flex; gap: 18px; margin-top: 9px; color: var(--muted); font-size: .7rem; }

@media (max-width: 1080px) {
    .institution-hero__grid, .governance-hero__grid, .board-detail-hero__grid { grid-template-columns: 1fr; }
    .history-layout { grid-template-columns: 1fr; }
    .history-aside { padding-top: 0; }
    .board-feature { grid-template-columns: 1fr; }
    .member-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .access-layout { grid-template-columns: 1fr; }
    .access-card { width: min(520px,100%); margin-inline: auto; }
}
@media (max-width: 760px) {
    .institution-hero, .board-detail-hero, .governance-hero { padding: 58px 0; }
    .history-dates { grid-template-columns: 1fr 1fr; }
    .history-gallery, .board-photo-pair { grid-template-columns: 1fr; }
    .history-gallery figure, .history-gallery__primary, .board-photo-pair img, .board-photo-pair img:nth-child(2) { min-height: 0 !important; height: 300px; }
    .board-feature__images { min-height: 390px; }
    .board-feature__main { inset: 0 40px 55px 0; width: calc(100% - 40px); height: calc(100% - 55px); }
    .member-grid, .board-archive-grid { grid-template-columns: 1fr; }
    .member-card { display: grid; grid-template-columns: 120px 1fr; }
    .member-card__photo { height: 100%; min-height: 170px; }
    .board-facts { grid-template-columns: 1fr; }
    .security-seal { display: none; }
    .document-heading { align-items: flex-start; flex-direction: column; }
    .document-card { grid-template-columns: 52px 1fr; }
    .document-card > .button { grid-column: 1 / -1; }
    .document-card__icon { width: 48px; height: 56px; }
}

/* Academia phase 3: chapters */
.institution-hero--chapters { background: radial-gradient(circle at 84% 18%, rgba(218,184,115,.24), transparent 28%), linear-gradient(135deg, #17243a, #6d2638); }
.chapters-section { background: #f6f3ee; }
.chapter-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.chapter-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; }
.chapter-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.chapter-card__media { position: relative; height: 245px; display: block; overflow: hidden; background: linear-gradient(135deg,#e8dde0,#f5efe5); }
.chapter-card__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.chapter-card:hover .chapter-card__media > img { transform: scale(1.045); }
.chapter-card__placeholder { height: 100%; display: grid; place-items: center; align-content: center; gap: 5px; color: var(--brand); }
.chapter-card__placeholder span { font-family: "Libre Baskerville",serif; font-size: 3.2rem; }
.chapter-card__placeholder small { font-weight: 700; letter-spacing: .2em; }
.chapter-status { display: inline-flex; align-items: center; width: max-content; padding: 7px 11px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.chapter-card__media .chapter-status { position: absolute; left: 16px; bottom: 16px; box-shadow: 0 8px 22px rgba(0,0,0,.14); }
.chapter-status--active { background: #e7f5ed; color: #256347; }
.chapter-status--reorganization { background: #fff4d6; color: #795b12; }
.chapter-status--formation { background: #e9eef9; color: #35558d; }
.chapter-status--inactive { background: #eceff2; color: #5d6671; }
.chapter-card__body { padding: 25px; }
.chapter-card__department { color: var(--brand); font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.chapter-card__body h2 { margin: 8px 0 11px; font-family: "Libre Baskerville",serif; font-size: 1.28rem; }
.chapter-card__body h2 a { color: var(--ink); }
.chapter-card__body p { margin: 0; color: var(--muted); font-size: .92rem; }
.chapter-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.chapter-card__footer strong { color: var(--brand); }
.chapter-card__footer a { color: var(--brand); font-weight: 700; }

.chapter-detail-hero { position: relative; min-height: 510px; display: flex; align-items: end; overflow: hidden; background: linear-gradient(135deg,#17243a,#632333); color: #fff; }
.chapter-detail-hero__image { position: absolute; inset: 0; }
.chapter-detail-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.chapter-detail-hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(17,29,48,.96) 0%,rgba(31,34,49,.78) 50%,rgba(98,35,51,.38) 100%); }
.chapter-detail-hero__content { position: relative; z-index: 2; padding-block: 76px; }
.chapter-detail-hero__content .chapter-status { margin: 22px 0 2px; }
.chapter-detail-hero h1 { max-width: 850px; margin: 12px 0 17px; font-family: "Libre Baskerville",serif; font-size: clamp(2.7rem,5vw,4.8rem); line-height: 1.06; }
.chapter-detail-hero p { max-width: 780px; margin: 0; color: rgba(255,255,255,.78); font-size: 1.08rem; }
.chapter-overview { background: #fff; }
.chapter-overview__grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 54px; align-items: start; }
.chapter-narrative h2 { margin: 9px 0 23px; font-family: "Libre Baskerville",serif; font-size: clamp(1.9rem,3vw,2.65rem); }
.prose-content { color: #404955; line-height: 1.85; white-space: normal; }
.prose-content--long { font-family: "Libre Baskerville",serif; line-height: 1.9; }
.chapter-facts-card, .profile-facts-card { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: #f8f5f0; box-shadow: var(--shadow-sm); }
.chapter-facts-card h2, .profile-facts-card h2 { margin: 0 0 19px; font-family: "Libre Baskerville",serif; font-size: 1.2rem; }
.chapter-facts-card dl, .profile-facts-card dl { display: grid; gap: 13px; margin: 0; }
.chapter-facts-card dl div, .profile-facts-card dl div { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.chapter-facts-card dl div:last-child, .profile-facts-card dl div:last-child { padding-bottom: 0; border-bottom: 0; }
.chapter-facts-card dt, .profile-facts-card dt { color: var(--brand); font-size: .67rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.chapter-facts-card dd, .profile-facts-card dd { margin: 4px 0 0; color: #37414c; }
.chapter-members-section { background: #f3f0ea; border-top: 1px solid var(--line); }
.chapter-member-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.chapter-member-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; transition: transform .2s ease, box-shadow .2s ease; }
.chapter-member-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.chapter-member-card__photo { height: 290px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg,#e9dfe1,#f4efe8); color: var(--brand); font-family: "Libre Baskerville",serif; font-size: 3.5rem; }
.chapter-member-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.chapter-member-card__body { padding: 21px; }
.member-role { color: var(--brand); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.chapter-member-card h3 { margin: 7px 0 8px; font-family: "Libre Baskerville",serif; font-size: 1.08rem; line-height: 1.35; }
.chapter-member-card h3 a { color: var(--ink); }
.member-profession, .member-admission, .chapter-member-card__body > p { margin: 0 0 10px; color: var(--muted); font-size: .84rem; }
.member-admission strong { color: #3c4652; }

.member-profile-hero { color: #fff; background: radial-gradient(circle at 84% 20%,rgba(218,184,115,.2),transparent 27%),linear-gradient(135deg,#17243a,#632333); }
.member-profile-hero__grid { display: grid; grid-template-columns: 310px minmax(0,1fr); gap: 48px; align-items: center; padding-block: 80px; }
.member-profile-hero__photo { width: 310px; height: 370px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.22); border-radius: 28px; background: rgba(255,255,255,.1); box-shadow: 0 30px 75px rgba(0,0,0,.25); font-family: "Libre Baskerville",serif; font-size: 4rem; }
.member-profile-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.member-profile-hero h1 { margin: 11px 0 13px; font-family: "Libre Baskerville",serif; font-size: clamp(2.5rem,5vw,4.4rem); line-height: 1.07; }
.profile-role { margin: 0 0 8px; color: #eed28e; font-weight: 700; }
.profile-title { margin: 0 0 8px; color: rgba(255,255,255,.9); font-size: 1.08rem; }
.profile-specialties { max-width: 780px; margin: 0 0 22px; color: rgba(255,255,255,.7); }
.member-profile-layout { display: grid; grid-template-columns: minmax(0,1fr) 350px; gap: 42px; align-items: start; }
.member-profile-main { display: grid; gap: 22px; }
.profile-content-card { padding: clamp(26px,4vw,42px); background: #fff; border: 1px solid var(--line); border-radius: 23px; box-shadow: var(--shadow-sm); }
.profile-content-card h2 { margin: 8px 0 21px; font-family: "Libre Baskerville",serif; font-size: 1.8rem; }
.member-profile-sidebar { position: sticky; top: 150px; display: grid; gap: 18px; }
.profile-topic dd { line-height: 1.55; }
.profile-download-card { padding: 25px; border-radius: 20px; background: linear-gradient(145deg,#192a45,#6b2739); color: #fff; }
.profile-download-card > span { color: #e8c97f; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.profile-download-card h2 { margin: 8px 0 10px; font-family: "Libre Baskerville",serif; font-size: 1.22rem; }
.profile-download-card p { margin: 0 0 18px; color: rgba(255,255,255,.7); font-size: .78rem; overflow-wrap: anywhere; }

@media (max-width: 1080px) {
    .chapter-grid, .chapter-member-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .chapter-overview__grid, .member-profile-layout { grid-template-columns: 1fr; }
    .member-profile-sidebar { position: static; }
}
@media (max-width: 760px) {
    .chapter-grid, .chapter-member-grid { grid-template-columns: 1fr; }
    .chapter-detail-hero { min-height: 450px; }
    .chapter-card__footer { align-items: flex-start; flex-direction: column; }
    .member-profile-hero__grid { grid-template-columns: 1fr; padding-block: 58px; }
    .member-profile-hero__photo { width: min(310px,100%); height: 350px; }
    .chapter-member-card { display: grid; grid-template-columns: 125px 1fr; }
    .chapter-member-card__photo { height: 100%; min-height: 220px; }
}
@media (max-width: 480px) {
    .chapter-member-card { grid-template-columns: 1fr; }
    .chapter-member-card__photo { height: 270px; }
}

/* Museums */
.museum-index-hero{position:relative;overflow:hidden;padding:clamp(78px,10vw,145px) 0;color:#fff;background:linear-gradient(130deg,#18263b 0%,#5f2130 68%,#8a5d39 100%)}
.museum-index-hero__texture{position:absolute;inset:0;opacity:.18;background:radial-gradient(circle at 20% 25%,#fff 0 1px,transparent 2px) 0 0/22px 22px,linear-gradient(110deg,transparent 55%,rgba(255,255,255,.15))}
.museum-index-hero__content{position:relative;max-width:920px}.museum-index-hero h1{max-width:820px;margin:.45rem 0 1rem;font-family:"Libre Baskerville",serif;font-size:clamp(2.4rem,5vw,5.2rem);line-height:1.03}.museum-index-hero p{max-width:720px;margin:0;color:rgba(255,255,255,.83);font-size:clamp(1rem,1.7vw,1.25rem);line-height:1.7}
.museum-directory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.museum-directory-card{overflow:hidden;border:1px solid #e4ded4;border-radius:22px;background:#fff;box-shadow:0 18px 45px rgba(28,38,52,.08);transition:.25s ease}.museum-directory-card:hover{transform:translateY(-5px);box-shadow:0 25px 60px rgba(28,38,52,.13)}
.museum-directory-card__image{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;background:#1c2a40}.museum-directory-card__image img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease}.museum-directory-card:hover img{transform:scale(1.045)}.museum-directory-card__placeholder{display:grid;width:100%;height:100%;place-items:center;color:#fff;font-family:"Libre Baskerville",serif;font-size:3rem}.museum-directory-card__count{position:absolute;right:16px;bottom:16px;padding:7px 11px;border-radius:999px;color:#fff;background:rgba(20,31,48,.82);backdrop-filter:blur(8px);font-size:.75rem;font-weight:700}
.museum-directory-card__body{padding:26px}.museum-location,.museum-piece-card__category{display:block;color:#8a3042;font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.museum-directory-card h2{margin:7px 0 11px;font-family:"Libre Baskerville",serif;font-size:1.45rem}.museum-directory-card h2 a{color:#19263b}.museum-directory-card p{color:#66717d;line-height:1.7}.museum-directory-card__footer{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-top:22px;padding-top:16px;border-top:1px solid #ebe7df;color:#7c858e;font-size:.75rem}
.museum-detail-hero{position:relative;min-height:600px;display:flex;align-items:flex-end;overflow:hidden;background:#19263b;color:#fff}.museum-detail-hero__image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.museum-detail-hero__veil{position:absolute;inset:0;background:linear-gradient(90deg,rgba(15,24,39,.94),rgba(15,24,39,.62) 55%,rgba(15,24,39,.2)),linear-gradient(0deg,rgba(15,24,39,.82),transparent 65%)}.museum-detail-hero__content{position:relative;padding-top:120px;padding-bottom:70px}.museum-detail-hero h1{max-width:900px;margin:.6rem 0 1rem;font-family:"Libre Baskerville",serif;font-size:clamp(2.35rem,5vw,5rem);line-height:1.05}.museum-detail-hero p{max-width:760px;color:rgba(255,255,255,.83);font-size:1.08rem;line-height:1.75}.museum-hero-meta{display:flex;flex-wrap:wrap;gap:9px;margin-top:24px}.museum-hero-meta span{padding:8px 12px;border:1px solid rgba(255,255,255,.24);border-radius:999px;background:rgba(255,255,255,.08);font-size:.75rem}
.museum-story-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,.75fr);gap:60px;align-items:start}.museum-story h2{font-family:"Libre Baskerville",serif;font-size:clamp(2rem,3vw,3rem)}.museum-collection-note{margin-top:35px;padding:24px;border-left:4px solid #7b2636;background:#f7f2ec}.museum-collection-note p{margin:.6rem 0 0;color:#5f6972;line-height:1.7}.museum-visit-card{position:sticky;top:120px;padding:30px;border-radius:20px;color:#fff;background:linear-gradient(150deg,#17243a,#672331);box-shadow:0 22px 55px rgba(23,36,58,.22)}.museum-visit-card__eyebrow{color:#e2c488;font-size:.7rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.museum-visit-card h2{margin:.6rem 0 1.4rem;font-family:"Libre Baskerville",serif}.museum-visit-card dl{margin:0}.museum-visit-card dl div{padding:13px 0;border-top:1px solid rgba(255,255,255,.13)}.museum-visit-card dt{color:rgba(255,255,255,.57);font-size:.68rem;text-transform:uppercase;letter-spacing:.08em}.museum-visit-card dd{margin:5px 0 0;line-height:1.5}.museum-visit-card a{color:#fff}.museum-visit-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.museum-visit-actions .button--outline{border-color:rgba(255,255,255,.4);color:#fff}
.museum-gallery-section{background:#f4f0e9}.museum-gallery-heading{align-items:flex-end}.narration-intro{max-width:470px;display:flex;gap:12px;padding:15px 17px;border-radius:14px;background:#fff;border:1px solid #e3ddd3}.narration-intro__icon{width:34px;height:34px;flex:0 0 auto;display:grid;place-items:center;border-radius:50%;color:#fff;background:#7b2636}.narration-intro p{margin:0;color:#67717a;font-size:.8rem;line-height:1.55}.narration-intro strong{color:#202d40}
.museum-filters{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 28px}.museum-filters button{padding:9px 14px;border:1px solid #d8d1c7;border-radius:999px;background:#fff;color:#5d6670;font-weight:700}.museum-filters button.is-active{border-color:#7b2636;color:#fff;background:#7b2636}.museum-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.museum-piece-card{padding:0;overflow:hidden;text-align:left;border:0;border-radius:17px;background:#fff;box-shadow:0 13px 34px rgba(28,38,52,.08);cursor:pointer;transition:.25s ease}.museum-piece-card:hover{transform:translateY(-5px);box-shadow:0 20px 45px rgba(28,38,52,.14)}.museum-piece-card[hidden]{display:none}.museum-piece-card--featured{grid-column:span 2}.museum-piece-card__image{position:relative;display:block;height:260px;overflow:hidden;background:#1a2639}.museum-piece-card--featured .museum-piece-card__image{height:360px}.museum-piece-card__image img{width:100%;height:100%;object-fit:cover;transition:transform .55s ease}.museum-piece-card:hover img{transform:scale(1.04)}.museum-piece-card__zoom{position:absolute;right:13px;bottom:13px;padding:7px 10px;border-radius:999px;color:#fff;background:rgba(19,29,43,.8);font-size:.67rem;font-weight:700;opacity:0;transform:translateY(5px);transition:.2s}.museum-piece-card:hover .museum-piece-card__zoom{opacity:1;transform:none}.museum-piece-card__body{display:flex;flex-direction:column;gap:6px;padding:18px}.museum-piece-card__body strong{color:#1d2a3d;font-family:"Libre Baskerville",serif;font-size:1.05rem}.museum-piece-card__body small{color:#7a838c}.museum-piece-card__audio{align-self:flex-start;margin-top:4px;padding:5px 8px;border-radius:999px;background:#f1e4e6;color:#74293a;font-size:.65rem;font-weight:800}
.museum-viewer{position:fixed;z-index:1500;inset:0;display:none}.museum-viewer.is-open{display:block}.museum-viewer__backdrop{position:absolute;inset:0;background:rgba(7,12,20,.92);backdrop-filter:blur(10px)}.museum-viewer__panel{position:absolute;inset:clamp(12px,3vw,38px);display:grid;grid-template-columns:minmax(0,1.45fr) minmax(350px,.7fr);overflow:hidden;border-radius:20px;background:#111b2a;box-shadow:0 35px 90px rgba(0,0,0,.5)}.museum-viewer__visual{position:relative;min-height:0;display:grid;place-items:center;background:#080d14}.museum-viewer__visual img{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}.museum-viewer__content{overflow-y:auto;padding:clamp(28px,4vw,55px);color:#e9edf3;background:#17243a}.museum-viewer__content h2{margin:.6rem 0 1rem;font-family:"Libre Baskerville",serif;font-size:clamp(1.7rem,2.7vw,3rem);line-height:1.15}.museum-viewer__topline{display:flex;justify-content:space-between;gap:12px;color:#d3b879;font-size:.7rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.museum-viewer__voice-status{color:#9eb0c7;text-align:right}.museum-viewer__metadata{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.museum-viewer__metadata span{padding:6px 9px;border:1px solid rgba(255,255,255,.15);border-radius:999px;color:#bbc6d3;font-size:.68rem}.museum-viewer__description{color:#c8d0da;line-height:1.75}.museum-viewer__narration{margin-top:24px;padding:18px;border:1px solid rgba(255,255,255,.12);border-radius:13px;background:rgba(255,255,255,.045)}.museum-viewer__narration-heading{display:flex;justify-content:space-between;gap:15px}.museum-viewer__narration-heading button{border:0;background:none;color:#e3c47c;font-weight:700}.museum-viewer__narration p{color:#b8c3cf;line-height:1.7}.museum-viewer__controls{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.museum-audio-button{padding:11px 15px;border:1px solid rgba(255,255,255,.2);border-radius:10px;color:#fff;background:transparent;font-weight:700}.museum-audio-button--primary{border-color:#bf8d55;background:#8a5a32}.museum-viewer__audio-note{margin-top:16px;color:#8f9cad;font-size:.68rem;line-height:1.5}.museum-viewer__close,.museum-viewer__nav{position:absolute;z-index:5;border:0;color:#fff;background:rgba(10,16,25,.72);backdrop-filter:blur(8px)}.museum-viewer__close{top:14px;right:14px;width:42px;height:42px;border-radius:50%;font-size:1.7rem}.museum-viewer__nav{top:50%;width:45px;height:62px;transform:translateY(-50%);font-size:2rem}.museum-viewer__nav--prev{left:12px}.museum-viewer__nav--next{right:calc(min(37%,470px) + 12px)}.museum-viewer__counter{position:absolute;left:18px;bottom:18px;padding:7px 10px;border-radius:999px;color:#fff;background:rgba(10,16,25,.72);font-size:.7rem}.museum-viewer-open{overflow:hidden}
@media(max-width:980px){.museum-directory-grid{grid-template-columns:1fr}.museum-story-grid{grid-template-columns:1fr}.museum-visit-card{position:static}.museum-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.museum-viewer__panel{grid-template-columns:1fr;grid-template-rows:minmax(45vh,1fr) auto;overflow-y:auto}.museum-viewer__visual{min-height:45vh}.museum-viewer__content{overflow:visible}.museum-viewer__nav--next{right:12px}}
@media(max-width:640px){.museum-gallery-grid{grid-template-columns:1fr}.museum-piece-card--featured{grid-column:auto}.museum-piece-card__image,.museum-piece-card--featured .museum-piece-card__image{height:260px}.museum-detail-hero{min-height:560px}.museum-directory-card__footer{align-items:flex-start;flex-direction:column}.museum-viewer__panel{inset:0;border-radius:0}.museum-viewer__content{padding:26px 20px 38px}.museum-viewer__topline{flex-direction:column}.museum-viewer__nav{top:34%;height:52px}.museum-gallery-heading{align-items:flex-start}.narration-intro{max-width:none}}

/* =========================================================
   FASE 4.2 - Visor completo sin recorte
   Mantiene la proporcion original de imagenes verticales y horizontales.
   ========================================================= */

.museum-piece-card__image {
    display: grid;
    place-items: center;
    padding: 12px;
    background: #eee9e2;
}

.museum-piece-card__image img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: auto;
    transform: none !important;
}

.museum-piece-card:hover .museum-piece-card__image img {
    transform: none !important;
}

/* El panel conserva una altura definida dentro de la ventana. */
.museum-viewer__panel {
    min-width: 0;
    min-height: 0;
}

/* Área oscura que contiene y centra la fotografía. */
.museum-viewer__visual {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: clamp(12px, 2vw, 28px);
    background: #080d14;
}

/*
 * Es importante NO usar width:100% y height:100% en la fotografía.
 * La imagen conserva su proporción natural y solo se reduce cuando
 * supera el ancho o alto disponible.
 */
.museum-viewer__visual .museum-viewer__image,
.museum-viewer__visual > img[data-viewer-image] {
    position: relative;
    display: block !important;
    flex: 0 1 auto;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: calc(100vh - 120px) !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: auto !important;
    transform: none !important;
}

/* La numeración permanece por encima de la imagen. */
.museum-viewer__counter {
    z-index: 3;
}

@media (max-width: 980px) {
    .museum-viewer__visual {
        height: clamp(340px, 55vh, 620px);
        min-height: 340px;
    }

    .museum-viewer__visual .museum-viewer__image,
    .museum-viewer__visual > img[data-viewer-image] {
        max-width: calc(100% - 8px) !important;
        max-height: calc(55vh - 32px) !important;
    }
}

@media (max-width: 640px) {
    .museum-piece-card__image,
    .museum-piece-card--featured .museum-piece-card__image {
        height: 300px;
        padding: 8px;
    }

    .museum-viewer__visual {
        height: 52vh;
        min-height: 300px;
        padding: 8px;
    }

    .museum-viewer__visual .museum-viewer__image,
    .museum-viewer__visual > img[data-viewer-image] {
        max-width: calc(100% - 4px) !important;
        max-height: calc(52vh - 16px) !important;
    }
}

/* =========================================================
   FASE 5 - Publicaciones, agenda virtual y diccionario
   ========================================================= */
.publication-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0;
    color: #fff;
    background:
        radial-gradient(circle at 82% 20%, rgba(221,188,121,.27), transparent 25%),
        linear-gradient(135deg, #111d31 0%, #253b5d 58%, #6a2030 145%);
}
.publication-hero::after { content:""; position:absolute; width:520px; height:520px; right:-210px; bottom:-320px; border:1px solid rgba(255,255,255,.16); border-radius:50%; }
.publication-hero__grid { position:relative; z-index:1; display:grid; grid-template-columns:minmax(0,1.25fr) minmax(280px,.55fr); gap:72px; align-items:center; }
.publication-hero h1, .publication-detail-hero h1, .virtual-hero h1, .virtual-detail-hero h1, .dictionary-hero h1 { font-family:"Libre Baskerville",serif; letter-spacing:-.04em; }
.publication-hero h1 { margin:15px 0 20px; max-width:780px; font-size:clamp(2.8rem,5.7vw,5rem); line-height:1.06; }
.publication-hero p { max-width:720px; color:rgba(255,255,255,.75); font-size:1.12rem; }
.publication-hero__actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
.publication-hero__ghost { border-color:rgba(255,255,255,.4); background:rgba(255,255,255,.06); color:#fff; }
.publication-hero__stats { display:grid; overflow:hidden; border:1px solid rgba(255,255,255,.15); border-radius:22px; background:rgba(8,15,27,.28); backdrop-filter:blur(12px); }
.publication-hero__stats div { padding:28px 30px; border-bottom:1px solid rgba(255,255,255,.12); }
.publication-hero__stats div:last-child { border-bottom:0; }
.publication-hero__stats strong { display:block; font-family:"Libre Baskerville",serif; color:#e8c986; font-size:2.8rem; line-height:1; }
.publication-hero__stats span { display:block; margin-top:8px; color:rgba(255,255,255,.7); font-size:.82rem; }
.publication-section-block--soft { background:#f1eee8; border-block:1px solid var(--line); }
.publication-card-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; }
.publication-card { min-width:0; overflow:hidden; background:#fff; border:1px solid var(--line); border-radius:20px; box-shadow:0 8px 25px rgba(24,32,43,.06); transition:.25s ease; }
.publication-card:hover { transform:translateY(-5px); box-shadow:var(--shadow-lg); }
.publication-card__cover { position:relative; display:grid; place-items:center; height:360px; padding:20px; overflow:hidden; background:linear-gradient(145deg,#eee9e0,#ddd5c8); }
.publication-card__cover img { width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; filter:drop-shadow(0 15px 18px rgba(20,25,31,.22)); transition:transform .3s ease; }
.publication-card:hover .publication-card__cover img { transform:scale(1.025); }
.publication-card__placeholder { width:72%; aspect-ratio:2/3; display:grid; place-items:center; padding:20px; color:#fff; background:linear-gradient(145deg,var(--navy),#344c70); font-family:"Libre Baskerville",serif; text-align:center; box-shadow:0 15px 30px rgba(20,25,31,.2); }
.publication-card__featured { position:absolute; top:14px; left:14px; padding:6px 10px; border-radius:999px; background:var(--gold); color:#fff; font-size:.65rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.publication-card__body { padding:22px; }
.publication-card__type { color:var(--brand); font-size:.68rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.publication-card h2 { margin:9px 0 8px; font-family:"Libre Baskerville",serif; font-size:1.12rem; line-height:1.4; }
.publication-card h2 a:hover { color:var(--brand); }
.publication-card__author { margin:0 0 7px; color:#4e5865; font-size:.84rem; }
.publication-card__reference { min-height:42px; margin:0 0 14px; color:var(--muted); font-size:.76rem; }
.publication-card .text-link { font-size:.78rem; }
.publication-services { padding:70px 0; background:#111a28; color:#fff; }
.publication-services__grid { display:grid; grid-template-columns:repeat(2,1fr); gap:1px; overflow:hidden; border:1px solid rgba(255,255,255,.13); border-radius:22px; background:rgba(255,255,255,.13); }
.publication-services__grid > div { padding:38px; background:#111a28; }
.publication-services__number { color:#d8b76f; font-family:"Libre Baskerville",serif; }
.publication-services h2 { margin:14px 0 8px; font-family:"Libre Baskerville",serif; }
.publication-services p { color:rgba(255,255,255,.67); }
.publication-services a { color:#e6c77f; font-weight:700; }
.publication-directory-hero { background:linear-gradient(135deg,#17243a,#304a70); }
.publication-filter { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(170px,.5fr) auto auto; gap:12px; align-items:end; padding:18px; margin-bottom:28px; background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow-sm); }
.publication-filter label { display:flex; flex-direction:column; gap:6px; }
.publication-filter label span { color:var(--muted); font-size:.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.publication-filter input, .publication-filter select { min-height:46px; width:100%; padding:0 13px; border:1px solid #d7d1c8; border-radius:10px; background:#fff; }
.publication-detail-hero { padding:80px 0; color:#fff; background:radial-gradient(circle at 80% 20%,rgba(181,137,66,.24),transparent 27%),linear-gradient(135deg,#151f31,#2a405f); }
.publication-detail-hero__grid { display:grid; grid-template-columns:320px minmax(0,1fr); gap:65px; align-items:center; }
.publication-detail-hero__cover { height:460px; display:grid; place-items:center; padding:18px; border:1px solid rgba(255,255,255,.14); border-radius:20px; background:rgba(255,255,255,.08); }
.publication-detail-hero__cover img { width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; filter:drop-shadow(0 22px 26px rgba(0,0,0,.35)); }
.publication-detail-hero__cover > span { width:75%; aspect-ratio:2/3; display:grid; place-items:center; background:#fff; color:var(--navy); font-family:"Libre Baskerville",serif; }
.publication-detail-hero h1 { margin:14px 0; font-size:clamp(2.4rem,4.8vw,4.5rem); line-height:1.09; }
.publication-detail-hero__subtitle { color:#e4c783 !important; font-family:"Libre Baskerville",serif; font-size:1.18rem !important; }
.publication-detail-hero__authors { color:#fff !important; font-weight:700; }
.publication-detail-hero__content > p { max-width:760px; color:rgba(255,255,255,.72); }
.publication-detail-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:28px; }
.publication-detail-external { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:0 20px; border:1px solid rgba(255,255,255,.35); border-radius:11px; color:#fff; font-weight:700; }
.publication-detail-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:52px; align-items:start; }
.publication-detail-main h2 { margin:8px 0 24px; font-family:"Libre Baskerville",serif; font-size:2rem; }
.publication-back-cover { max-width:500px; margin:42px 0 0; padding:18px; background:#fff; border:1px solid var(--line); border-radius:18px; }
.publication-back-cover img { width:auto; max-height:650px; margin:auto; object-fit:contain; }
.publication-back-cover figcaption { margin-top:10px; color:var(--muted); font-size:.75rem; text-align:center; }
.publication-facts-card { position:sticky; top:160px; padding:26px; background:#fff; border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow-sm); }
.publication-facts-card > span { color:var(--brand); font-size:.68rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.publication-facts-card dl { margin:16px 0 0; }
.publication-facts-card dl div { padding:13px 0; border-bottom:1px solid var(--line); }
.publication-facts-card dl div:last-child { border-bottom:0; }
.publication-facts-card dt { color:var(--muted); font-size:.7rem; text-transform:uppercase; }
.publication-facts-card dd { margin:4px 0 0; font-weight:600; }

.virtual-hero { padding:92px 0; color:#fff; background:radial-gradient(circle at 78% 25%,rgba(90,210,170,.17),transparent 26%),linear-gradient(135deg,#10233b,#173d52); }
.virtual-hero__grid { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:70px; align-items:center; }
.virtual-hero h1 { margin:14px 0 18px; font-size:clamp(2.8rem,5.5vw,4.8rem); }
.virtual-hero p { max-width:700px; color:rgba(255,255,255,.72); font-size:1.1rem; }
.virtual-hero__signal { position:relative; width:230px; height:230px; display:grid; place-items:center; margin:auto; border-radius:50%; background:rgba(255,255,255,.05); }
.virtual-hero__signal span { position:absolute; inset:20px; border:1px solid rgba(91,222,174,.25); border-radius:50%; animation:virtualPulse 2.6s infinite ease-out; }
.virtual-hero__signal span:nth-child(2) { inset:0; animation-delay:.7s; }
.virtual-hero__signal span:nth-child(3) { inset:-20px; animation-delay:1.4s; }
.virtual-hero__signal strong { z-index:2; color:#7fe2bd; letter-spacing:.12em; }
@keyframes virtualPulse { 0%{transform:scale(.78);opacity:1} 100%{transform:scale(1.15);opacity:0} }
.virtual-card-grid { display:grid; gap:20px; }
.virtual-card { display:grid; grid-template-columns:105px minmax(0,1fr) 280px; overflow:hidden; background:#fff; border:1px solid var(--line); border-radius:22px; box-shadow:0 8px 22px rgba(24,32,43,.06); }
.virtual-card--featured { border-color:#d5b66e; box-shadow:0 14px 36px rgba(24,32,43,.11); }
.virtual-card__date { display:flex; flex-direction:column; align-items:center; justify-content:center; background:var(--navy); color:#fff; }
.virtual-card__date strong { font-family:"Libre Baskerville",serif; font-size:2.7rem; line-height:1; }
.virtual-card__date span { margin-top:7px; color:#e2c27f; font-weight:700; text-transform:uppercase; }
.virtual-card__date small { color:rgba(255,255,255,.58); }
.virtual-card__body { padding:27px; }
.virtual-card__topline { display:flex; gap:10px; align-items:center; color:var(--brand); font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.virtual-card__topline em { padding:4px 7px; border-radius:999px; background:#f6ebd4; color:#8b631f; font-style:normal; }
.virtual-card h2 { margin:10px 0; font-family:"Libre Baskerville",serif; font-size:1.45rem; }
.virtual-card h2 a:hover { color:var(--brand); }
.virtual-card__body > p { color:var(--muted); }
.virtual-card__meta { display:flex; gap:15px; flex-wrap:wrap; margin:15px 0 20px; color:#4c5663; font-size:.78rem; }
.virtual-card__image { min-height:260px; display:grid; place-items:center; padding:12px; background:#e9ecef; }
.virtual-card__image img { width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain; }
.virtual-empty { padding:70px; }
.virtual-detail-hero { padding:78px 0 100px; color:#fff; background:radial-gradient(circle at 82% 20%,rgba(101,218,176,.18),transparent 26%),linear-gradient(135deg,#102039,#19425a); }
.virtual-detail-hero__grid { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:65px; align-items:center; }
.virtual-detail-hero h1 { margin:14px 0 18px; font-size:clamp(2.5rem,5vw,4.3rem); line-height:1.1; }
.virtual-detail-hero__content > p { max-width:760px; color:rgba(255,255,255,.72); font-size:1.08rem; }
.virtual-detail-hero__actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:28px; }
.virtual-join-button { background:#2f9f76; color:#fff; }
.virtual-date-panel { padding:30px; border:1px solid rgba(255,255,255,.16); border-radius:22px; background:rgba(5,16,27,.28); text-align:center; }
.virtual-date-panel span, .virtual-date-panel b, .virtual-date-panel small { display:block; }
.virtual-date-panel span { color:#7fe0bd; text-transform:uppercase; font-size:.72rem; font-weight:700; letter-spacing:.1em; }
.virtual-date-panel strong { display:block; margin:10px 0; font-family:"Libre Baskerville",serif; font-size:5rem; line-height:1; }
.virtual-date-panel b { font-family:"Libre Baskerville",serif; }
.virtual-date-panel small { margin-top:10px; color:rgba(255,255,255,.65); }
.virtual-detail-layout { display:grid; grid-template-columns:minmax(0,1fr) 350px; gap:50px; align-items:start; }
.virtual-detail-main figure { max-width:760px; margin:0 0 35px; padding:14px; background:#fff; border:1px solid var(--line); border-radius:20px; }
.virtual-detail-main figure img { width:auto; max-width:100%; max-height:700px; margin:auto; object-fit:contain; }
.virtual-detail-main h2 { font-family:"Libre Baskerville",serif; }
.virtual-access-card { position:sticky; top:160px; padding:27px; background:#fff; border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow-sm); }
.virtual-access-card > span { color:#2d7e62; font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em; }
.virtual-access-card h2 { font-family:"Libre Baskerville",serif; }
.virtual-access-card dl div { padding:12px 0; border-bottom:1px solid var(--line); }
.virtual-access-card dt { color:var(--muted); font-size:.68rem; text-transform:uppercase; }
.virtual-access-card dd { margin:4px 0 0; font-weight:600; }
.virtual-access-card > p { margin-bottom:0; color:var(--muted); font-size:.73rem; }

.dictionary-hero { padding:90px 0; color:#fff; background:radial-gradient(circle at 80% 20%,rgba(206,169,91,.2),transparent 26%),linear-gradient(135deg,#311824,#6e2435); }
.dictionary-hero__grid { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:70px; align-items:center; }
.dictionary-hero h1 { max-width:850px; margin:14px 0 20px; font-size:clamp(2.6rem,5.2vw,4.7rem); line-height:1.08; }
.dictionary-hero p { max-width:750px; color:rgba(255,255,255,.74); font-size:1.08rem; }
.dictionary-hero__button { margin-top:25px; }
.dictionary-hero__monogram { min-height:330px; display:flex; flex-direction:column; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.15); border-radius:24px; background:rgba(255,255,255,.06); text-align:center; }
.dictionary-hero__monogram span { font-family:"Libre Baskerville",serif; color:#e2c27d; font-size:8rem; line-height:1; }
.dictionary-hero__monogram strong { font-family:"Libre Baskerville",serif; font-size:1.3rem; }
.dictionary-hero__monogram small { margin-top:8px; color:rgba(255,255,255,.55); }
.dictionary-intro-grid { display:grid; grid-template-columns:minmax(0,1fr) 350px; gap:55px; align-items:start; }
.dictionary-intro-grid h2, .dictionary-guide-section h2, .dictionary-tips-section h2 { font-family:"Libre Baskerville",serif; font-size:2rem; }
.dictionary-official-card { padding:28px; background:var(--navy); color:#fff; border-radius:20px; box-shadow:var(--shadow-lg); }
.dictionary-official-card > span { color:#dfbe78; font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em; }
.dictionary-official-card h2 { font-family:"Libre Baskerville",serif; }
.dictionary-official-card p { color:rgba(255,255,255,.68); }
.dictionary-guide-section { background:#f0ede7; border-block:1px solid var(--line); }
.dictionary-steps { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.dictionary-steps li { min-height:210px; padding:25px; background:#fff; border:1px solid var(--line); border-radius:18px; }
.dictionary-steps span { display:block; color:var(--gold); font-family:"Libre Baskerville",serif; font-size:2.2rem; }
.dictionary-steps p { margin:25px 0 0; color:#3f4854; }
.dictionary-tips-grid { display:grid; grid-template-columns:.7fr 1.3fr; gap:70px; align-items:start; }
.dictionary-tip-list { display:grid; gap:12px; }
.dictionary-tip-list div { display:grid; grid-template-columns:34px 1fr; gap:12px; align-items:start; padding:18px; background:#fff; border:1px solid var(--line); border-radius:14px; }
.dictionary-tip-list span { width:30px; height:30px; display:grid; place-items:center; border-radius:50%; background:#e7f3ed; color:#2d7555; font-weight:700; }
.dictionary-tip-list p { margin:2px 0 0; }

@media (max-width:1080px) {
    .publication-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .publication-detail-layout, .virtual-detail-layout, .dictionary-intro-grid { grid-template-columns:1fr; }
    .publication-facts-card, .virtual-access-card { position:static; }
    .virtual-card { grid-template-columns:90px minmax(0,1fr); }
    .virtual-card__image { display:none; }
    .dictionary-steps { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:760px) {
    .publication-hero__grid, .publication-detail-hero__grid, .virtual-hero__grid, .virtual-detail-hero__grid, .dictionary-hero__grid, .dictionary-tips-grid { grid-template-columns:1fr; gap:35px; }
    .publication-hero { padding:70px 0; }
    .publication-hero__stats { grid-template-columns:repeat(2,1fr); }
    .publication-hero__stats div { border-bottom:0; border-right:1px solid rgba(255,255,255,.12); padding:22px; }
    .publication-card-grid { grid-template-columns:1fr; }
    .publication-card__cover { height:390px; }
    .publication-services__grid { grid-template-columns:1fr; }
    .publication-filter { grid-template-columns:1fr; }
    .publication-detail-hero__cover { width:min(100%,320px); height:430px; margin:auto; }
    .virtual-hero__signal, .dictionary-hero__monogram { display:none; }
    .virtual-card { grid-template-columns:72px minmax(0,1fr); }
    .virtual-card__body { padding:20px; }
    .virtual-card__date strong { font-size:2rem; }
    .virtual-card__meta { flex-direction:column; gap:4px; }
    .virtual-date-panel { max-width:280px; }
    .dictionary-steps { grid-template-columns:1fr; }
}

/* =========================================================
   FASE 6 - Institucional, convenios, contacto y aviso legal
   ========================================================= */
.institution-profile-hero,
.agreements-hero,
.contact-hero,
.legal-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 82% 18%, rgba(221,188,121,.25), transparent 27%),
        linear-gradient(135deg, #111d31 0%, #243956 62%, #6a2030 150%);
}
.institution-profile-hero::after,
.agreements-hero::after,
.contact-hero::after,
.legal-hero::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -210px;
    bottom: -330px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
}
.institution-profile-hero__grid,
.agreements-hero__grid,
.contact-hero__grid,
.legal-hero__grid {
    position: relative;
    z-index: 1;
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0,1.15fr) minmax(300px,.65fr);
    align-items: center;
    gap: 68px;
    padding-block: 78px;
}
.institution-profile-hero h1,
.agreements-hero h1,
.contact-hero h1,
.legal-hero h1,
.agreement-detail-hero h1 {
    margin: 14px 0 20px;
    font-family: "Libre Baskerville",serif;
    font-size: clamp(2.7rem,5.3vw,4.9rem);
    line-height: 1.07;
    letter-spacing: -.045em;
}
.institution-profile-hero__copy > p,
.agreements-hero p,
.contact-hero p,
.legal-hero p,
.agreement-detail-hero__content > p {
    max-width: 760px;
    color: rgba(255,255,255,.75);
    font-size: 1.12rem;
}
.institution-profile-hero blockquote {
    margin: 28px 0 0;
    padding-left: 20px;
    border-left: 3px solid #d8b978;
    color: #f2dfb5;
    font-family: "Libre Baskerville",serif;
    font-size: 1.05rem;
}
.institution-profile-hero__visual {
    position: relative;
    min-height: 390px;
    display: grid;
    place-items: center;
}
.institution-profile-hero__visual > img {
    width: min(100%,470px);
    max-height: 410px;
    object-fit: cover;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 30px 75px rgba(0,0,0,.32);
}
.institution-profile-hero__seal {
    width: 320px;
    height: 320px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.08);
}
.institution-profile-hero__seal img { width: 230px; height: 230px; object-fit: contain; }
.institution-profile-main { background: #fff; }
.institution-profile-layout {
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(320px,.75fr);
    align-items: center;
    gap: 70px;
}
.institution-profile-copy h2,
.institution-purpose-card h2,
.institution-principles-grid h2,
.institution-scope-banner h2,
.agreement-card h2,
.agreement-counterpart-card h2,
.agreement-content-block h2,
.contact-info-panel h2,
.contact-form-card h2,
.legal-document h2 {
    font-family: "Libre Baskerville",serif;
    letter-spacing: -.03em;
}
.institution-profile-copy h2 { margin: 9px 0 24px; font-size: clamp(2rem,3.5vw,3.1rem); }
.institution-profile-photo { margin: 0; overflow: hidden; border-radius: 24px; box-shadow: var(--shadow-lg); }
.institution-profile-photo img { width: 100%; min-height: 430px; max-height: 560px; object-fit: cover; }
.institution-purpose-section { background: #f2eee7; border-block: 1px solid var(--line); }
.institution-purpose-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.institution-purpose-card { min-height: 310px; padding: 38px; border-radius: 24px; color: #fff; }
.institution-purpose-card--mission { background: linear-gradient(145deg,#6e2131,#45131e); }
.institution-purpose-card--vision { background: linear-gradient(145deg,#1b2a43,#263e63); }
.institution-purpose-card > span { color: #dfc181; font-size: .75rem; font-weight: 800; letter-spacing: .13em; }
.institution-purpose-card h2 { margin: 45px 0 18px; font-size: 2.25rem; }
.institution-purpose-card p { margin: 0; color: rgba(255,255,255,.78); font-size: 1rem; }
.institution-principles-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(300px,.55fr); gap: 54px; align-items: start; }
.institution-objective-list { list-style: none; margin: 28px 0 0; padding: 0; }
.institution-objective-list li { display: grid; grid-template-columns: 46px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.institution-objective-list li > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: .7rem; font-weight: 800; }
.institution-objective-list p { margin: 6px 0 0; color: #4d5662; }
.institution-values-card { padding: 36px; border-radius: 24px; color: #fff; background: linear-gradient(145deg,#17243a,#263c60); box-shadow: var(--shadow-lg); }
.institution-values-card h2 { margin: 10px 0 25px; font-size: 2rem; }
.institution-values-list { display: flex; flex-wrap: wrap; gap: 10px; }
.institution-values-list span { padding: 10px 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.84); font-size: .83rem; }
.institution-scope-banner { padding: 58px 0; color: #fff; background: var(--brand-dark); }
.institution-scope-banner__grid { display: grid; grid-template-columns: 1fr 1.1fr auto; gap: 38px; align-items: center; }
.institution-scope-banner h2 { margin: 8px 0 0; font-size: 2rem; }
.institution-scope-banner p { color: rgba(255,255,255,.72); }

.agreements-hero__stats { display: grid; overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 22px; background: rgba(8,15,27,.27); backdrop-filter: blur(12px); }
.agreements-hero__stats div { padding: 26px 30px; border-bottom: 1px solid rgba(255,255,255,.12); }
.agreements-hero__stats div:last-child { border-bottom: 0; }
.agreements-hero__stats strong { display: block; color: #e6c77f; font-family: "Libre Baskerville",serif; font-size: 2.7rem; line-height: 1; }
.agreements-hero__stats span { display: block; margin-top: 8px; color: rgba(255,255,255,.68); font-size: .8rem; }
.agreements-filter { grid-template-columns: 1.7fr .8fr .9fr auto; }
.agreement-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.agreement-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 8px 25px rgba(24,32,43,.06); transition: .25s ease; }
.agreement-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.agreement-card--featured { border-color: #d7bd89; }
.agreement-card__media { position: relative; display: block; height: 235px; overflow: hidden; background: #e7e2da; }
.agreement-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.agreement-card:hover .agreement-card__media img { transform: scale(1.035); }
.agreement-card__placeholder { height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.8); background: linear-gradient(145deg,#6f2536,#192944); }
.agreement-card__placeholder span { font-family: "Libre Baskerville",serif; font-size: 2rem; letter-spacing: .12em; }
.agreement-status { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.agreement-card__media > .agreement-status { position: absolute; left: 15px; bottom: 15px; }
.agreement-status--active,.agreement-status--indefinite { color: #245e45; background: #e8f4ed; }
.agreement-status--upcoming { color: #31517d; background: #e8eef8; }
.agreement-status--expired,.agreement-status--completed { color: #6d5a3c; background: #f5efe2; }
.agreement-status--suspended { color: #8a2e3b; background: #f8e9ec; }
.agreement-card__body { padding: 23px; }
.agreement-card__identity { min-height: 48px; display: flex; align-items: center; gap: 11px; }
.agreement-card__identity img { width: 45px; height: 45px; object-fit: contain; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.agreement-card__identity div { min-width: 0; display: flex; flex-direction: column; }
.agreement-card__identity span { color: var(--brand); font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.agreement-card__identity strong { overflow: hidden; color: #4a535e; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.agreement-card h2 { margin: 18px 0 10px; font-size: 1.26rem; line-height: 1.35; }
.agreement-card h2 a:hover { color: var(--brand); }
.agreement-card__body > p { min-height: 76px; color: var(--muted); font-size: .88rem; }
.agreement-card__footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.agreement-card__footer a { color: var(--brand); font-weight: 800; }
.agreement-detail-hero { position: relative; min-height: 590px; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: #15243a; }
.agreement-detail-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.agreement-detail-hero__veil { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(7,13,23,.92),rgba(7,13,23,.68) 58%,rgba(7,13,23,.28)); }
.agreement-detail-hero__content { position: relative; z-index: 1; padding-block: 70px; }
.agreement-detail-hero__labels { display: flex; flex-wrap: wrap; gap: 9px; }
.agreement-detail-hero__labels > span:first-child { padding: 6px 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #fff; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.agreement-detail-hero h1 { max-width: 930px; font-size: clamp(2.4rem,4.8vw,4.4rem); }
.agreement-detail-section { padding: 0 0 88px; background: #f6f3ee; }
.agreement-detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 38px; align-items: start; transform: translateY(-38px); }
.agreement-detail-main { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm); }
.agreement-counterpart-card { display: grid; grid-template-columns: 82px minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 28px 34px; border-bottom: 1px solid var(--line); }
.agreement-counterpart-card > img { width: 78px; height: 78px; object-fit: contain; padding: 8px; border: 1px solid var(--line); border-radius: 15px; }
.agreement-counterpart-card span { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.agreement-counterpart-card h2 { margin: 3px 0; font-size: 1.4rem; }
.agreement-counterpart-card p { margin: 0; color: var(--muted); }
.agreement-counterpart-card > a { color: var(--brand); font-weight: 800; font-size: .8rem; }
.agreement-content-block { padding: 34px; border-bottom: 1px solid var(--line); }
.agreement-content-block:last-child { border-bottom: 0; }
.agreement-content-block h2 { margin: 8px 0 20px; font-size: 1.8rem; }
.agreement-benefit-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; list-style: none; padding: 0; }
.agreement-benefit-list li { position: relative; padding: 16px 16px 16px 43px; border: 1px solid var(--line); border-radius: 13px; background: #fbfaf7; color: #4a535e; }
.agreement-benefit-list li::before { content: "✓"; position: absolute; left: 16px; color: var(--success); font-weight: 900; }
.agreement-signatories { display: grid; gap: 10px; }
.agreement-signatories span { padding: 14px 16px; border-left: 3px solid var(--gold); background: #f7f3eb; color: #49515c; }
.agreement-facts-card { position: sticky; top: 160px; padding: 26px; border-radius: 20px; background: #17243a; color: #fff; box-shadow: var(--shadow-lg); }
.agreement-facts-card__eyebrow { color: #dfbf7a; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.agreement-facts-card dl { margin: 20px 0; }
.agreement-facts-card dl div { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.agreement-facts-card dt { color: rgba(255,255,255,.52); font-size: .68rem; text-transform: uppercase; }
.agreement-facts-card dd { margin: 3px 0 0; font-weight: 700; }
.agreement-facts-card small { display: block; margin-top: 10px; color: rgba(255,255,255,.55); font-size: .7rem; text-align: center; }
.agreement-related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.agreement-related-card { display: flex; flex-direction: column; min-height: 190px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.agreement-related-card span { color: var(--brand); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.agreement-related-card strong { margin: 22px 0 auto; font-family: "Libre Baskerville",serif; line-height: 1.45; }
.agreement-related-card small { margin-top: 18px; color: var(--muted); }

.contact-hero__mark { position: relative; width: 310px; height: 310px; display: grid; place-items: center; justify-self: end; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.contact-hero__mark span { font-family: "Libre Baskerville",serif; font-size: 2.1rem; letter-spacing: .12em; }
.contact-hero__mark i { position: absolute; inset: 30px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; }
.contact-hero__mark i:nth-of-type(2) { inset: 62px; }
.contact-hero__mark i:nth-of-type(3) { inset: 94px; }
.contact-page-layout { display: grid; grid-template-columns: 350px minmax(0,1fr); gap: 38px; align-items: start; }
.contact-info-panel { position: sticky; top: 160px; padding: 30px; border-radius: 22px; color: #fff; background: linear-gradient(145deg,#17243a,#263d61); box-shadow: var(--shadow-lg); }
.contact-info-panel h2 { margin: 9px 0 24px; font-size: 2rem; }
.contact-info-list { display: grid; }
.contact-info-list > a,.contact-info-list > div { display: flex; flex-direction: column; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-info-list span { color: rgba(255,255,255,.5); font-size: .67rem; text-transform: uppercase; letter-spacing: .07em; }
.contact-info-list strong { margin-top: 4px; color: #fff; font-size: .9rem; }
.contact-whatsapp-button { display: flex; flex-direction: column; margin: 20px 0; padding: 15px 17px; border-radius: 13px; background: #e7f4ed; color: #245f46; }
.contact-whatsapp-button span { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-whatsapp-button strong { margin-top: 3px; }
.contact-info-panel > .text-link { color: #e6c87f; }
.contact-form-card { padding: 36px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); }
.contact-form-card__heading h2 { margin: 8px 0; font-size: 2.1rem; }
.contact-form-card__heading p { color: var(--muted); }
.contact-public-form { margin-top: 25px; }
.contact-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.contact-form-grid label { display: flex; flex-direction: column; gap: 7px; }
.contact-form-grid label > span { color: #4b5562; font-size: .75rem; font-weight: 800; }
.contact-form-grid input,.contact-form-grid select,.contact-form-grid textarea { width: 100%; border: 1px solid #d5d0c8; border-radius: 11px; background: #fff; padding: 12px 13px; color: var(--ink); }
.contact-form-grid input,.contact-form-grid select { min-height: 48px; }
.contact-form-grid textarea { resize: vertical; }
.contact-form-grid input:focus,.contact-form-grid select:focus,.contact-form-grid textarea:focus { outline: 3px solid rgba(123,38,54,.1); border-color: var(--brand); }
.contact-form-grid__full { grid-column: 1 / -1; }
.contact-consent { display: flex; gap: 10px; margin: 18px 0; color: var(--muted); font-size: .78rem; }
.contact-consent input { margin-top: 3px; }
.contact-consent a { color: var(--brand); font-weight: 800; }
.contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-success,.contact-errors { margin: 20px 0; padding: 16px 18px; border-radius: 13px; }
.contact-success { border: 1px solid #badbc9; background: #edf7f2; color: #245e45; }
.contact-errors { border: 1px solid #efc3ca; background: #fff0f2; color: #872b39; }
.contact-success p,.contact-errors ul { margin: 5px 0 0; }
.contact-map { margin-top: 45px; }
.contact-map iframe { width: 100%; height: 430px; border: 0; border-radius: 22px; box-shadow: var(--shadow-sm); }

.legal-version-card { justify-self: end; width: 260px; padding: 28px; border: 1px solid rgba(255,255,255,.16); border-radius: 20px; background: rgba(255,255,255,.07); backdrop-filter: blur(10px); }
.legal-version-card span,.legal-version-card strong,.legal-version-card small { display: block; }
.legal-version-card span { color: #e2c37d; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.legal-version-card strong { margin: 9px 0; font-family: "Libre Baskerville",serif; font-size: 2.3rem; }
.legal-version-card small { color: rgba(255,255,255,.65); }
.legal-page-layout { display: grid; grid-template-columns: 290px minmax(0,1fr); gap: 42px; align-items: start; }
.legal-index-card { position: sticky; top: 160px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.legal-index-card > span { color: var(--brand); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.legal-index-card nav { display: grid; margin: 15px 0; }
.legal-index-card nav a { padding: 10px 0; border-bottom: 1px solid var(--line); color: #4c5560; font-size: .82rem; }
.legal-index-card nav a:hover { color: var(--brand); }
.legal-index-card p { color: var(--muted); font-size: .75rem; }
.legal-document { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.legal-document__section { scroll-margin-top: 160px; display: grid; grid-template-columns: 54px 1fr; gap: 22px; padding: 34px; border-bottom: 1px solid var(--line); }
.legal-document__section:last-child { border-bottom: 0; }
.legal-document__section > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: .7rem; font-weight: 800; }
.legal-document h2 { margin: 4px 0 16px; font-size: 1.55rem; }

@media (max-width: 1080px) {
    .institution-profile-hero__grid,.agreements-hero__grid,.contact-hero__grid,.legal-hero__grid { grid-template-columns: 1fr; min-height: auto; }
    .institution-profile-hero__visual,.contact-hero__mark,.legal-version-card { justify-self: start; }
    .institution-profile-layout,.institution-principles-grid { grid-template-columns: 1fr; }
    .institution-scope-banner__grid { grid-template-columns: 1fr; }
    .agreement-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .agreements-filter { grid-template-columns: 1fr 1fr; }
    .agreement-detail-layout { grid-template-columns: 1fr; transform: translateY(-24px); }
    .agreement-facts-card,.contact-info-panel,.legal-index-card { position: static; }
    .contact-page-layout,.legal-page-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .institution-profile-hero__grid,.agreements-hero__grid,.contact-hero__grid,.legal-hero__grid { padding-block: 56px; gap: 38px; }
    .institution-profile-hero h1,.agreements-hero h1,.contact-hero h1,.legal-hero h1 { font-size: 2.55rem; }
    .institution-profile-hero__visual { min-height: 260px; }
    .institution-profile-hero__visual > img { max-height: 320px; }
    .institution-purpose-grid,.agreement-card-grid,.agreement-related-grid { grid-template-columns: 1fr; }
    .institution-purpose-card { min-height: 260px; padding: 28px; }
    .agreements-filter,.contact-form-grid { grid-template-columns: 1fr; }
    .contact-form-grid__full { grid-column: auto; }
    .agreement-counterpart-card { grid-template-columns: 62px 1fr; padding: 22px; }
    .agreement-counterpart-card > a { grid-column: 2; }
    .agreement-content-block { padding: 25px 22px; }
    .agreement-benefit-list { grid-template-columns: 1fr; }
    .agreement-detail-hero { min-height: 500px; }
    .contact-hero__mark { width: 230px; height: 230px; }
    .contact-form-card { padding: 24px 18px; }
    .legal-document__section { grid-template-columns: 1fr; padding: 25px 20px; }
}

/* FASE 6.1 - Integridad visual restaurada:
   conserva Publicaciones, Actividades virtuales, Diccionario e Institucional. */
