/* Arquitectura final: ocho entradas y recorridos conectados. */
[hidden]{display:none!important}.header{gap:20px}.header .brand{width:165px}.navigation{gap:17px;font-size:11px}.nav-group{position:relative;display:flex;align-items:center}.nav-group>a{white-space:nowrap}.nav-expand{border:0;background:none;padding:12px 5px;font-size:12px;min-height:44px}.nav-submenu{position:absolute;top:100%;left:-20px;min-width:270px;padding:12px 20px;background:#fafaf5;box-shadow:0 12px 30px #102c2420;border:1px solid #dde2d5;display:none}.nav-group.expanded .nav-submenu{display:grid}.navigation .nav-submenu a{font-size:12px;padding:12px 0;line-height:1.5;white-space:normal;border-bottom:1px solid #e4e7dc}.nav-submenu a:last-child{border:0}.header-search{border:1px solid #b9c5ae;background:transparent;min-width:44px;min-height:44px;display:grid;place-items:center;font-size:20px}.navigation a[aria-current=page]{text-decoration:underline;text-underline-offset:7px}.hero h1{font-size:clamp(40px,4.65vw,68px);max-width:900px}.hero-conclusion{font-size:1em;line-height:1.12;letter-spacing:inherit}.hero-content{max-width:1050px}.discovery{background:#fafaf5;padding-top:65px;padding-bottom:65px}.discovery .section-heading{margin-bottom:32px}.discovery .section-heading h2{font-size:clamp(30px,3.2vw,46px)}.area-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid #cbd4c3;border-bottom:1px solid #cbd4c3}.area-card{padding:26px 25px 28px;border-right:1px solid #cbd4c3;display:flex;flex-direction:column;gap:18px}.area-card:last-child{border:0}.area-card:hover{background:#eef1e5}.area-card .area-number{font:11px 'DM Sans',sans-serif;color:#728365}.area-card h3{font-size:19px;line-height:1.45;letter-spacing:-.4px}.area-card p{font-size:12px;line-height:1.8;color:#64715c}.area-card .area-arrow{margin-top:auto;font-size:23px}.global-search{margin-top:32px;display:flex;gap:12px;align-items:end}.global-search label{flex:1;font-size:12px;line-height:1.6}.global-search input{display:block;width:100%;margin-top:9px;border:1px solid #bdc8b1;background:#fff;padding:17px 18px;font:15px 'DM Sans',sans-serif;color:#173c32;min-height:56px}.global-search button{flex-shrink:0}.news-shortcuts{display:flex;flex-wrap:wrap;gap:20px;margin:0 0 32px}.news-shortcuts a{font-size:12px;border-bottom:1px solid #9aaa8d;padding-bottom:9px}.explorer-main{min-height:65vh;padding-top:35px}.breadcrumbs{font-size:12px;color:#687a5e;display:flex;gap:10px;flex-wrap:wrap;margin-bottom:45px;line-height:1.8}.breadcrumbs a{text-decoration:underline;text-underline-offset:4px}.page-heading{max-width:950px;margin-bottom:42px}.page-heading h1{font-size:clamp(36px,4.8vw,66px);line-height:1.14;letter-spacing:-2px;margin:17px 0 22px}.page-heading>p:last-child{font-size:17px;line-height:1.85;color:#63735d;max-width:750px}.subnav{display:flex;flex-wrap:wrap;gap:10px;margin:28px 0 42px}.subnav a,.tag{display:inline-block;border:1px solid #cbd5bf;padding:10px 14px;font-size:12px;line-height:1.5}.subnav a:hover,.tag:hover,.subnav a[aria-current=page]{background:#173c32;color:#fff}.explorer-main h2{font-size:30px;letter-spacing:-1px;line-height:1.3;margin:40px 0 25px}.explorer-main h3{font-size:21px;line-height:1.4;letter-spacing:-.5px}.content-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:25px 0 35px}.content-card{padding:28px;background:#f0f2e9;border:1px solid #dce2d2;display:flex;flex-direction:column;align-items:start;gap:17px;min-width:0}.content-card:hover{border-color:#7b9366}.content-card p{font-size:13px;line-height:1.85;color:#66755f}.content-card .card-meta{font:10px 'DM Sans',sans-serif;letter-spacing:.7px;color:#526847;line-height:1.7}.content-card>a:last-child{margin-top:auto;font-size:12px;text-decoration:underline;text-underline-offset:5px}.content-card h3 a:hover{text-decoration:underline}.content-card .card-tags{display:flex;gap:6px;flex-wrap:wrap}.card-tags .tag{padding:5px 8px;font-size:10px}.content-card img{width:100%;height:150px;object-fit:cover}.search-panel{padding:28px;background:#eef1e6;border:1px solid #d7dfcb;margin:30px 0}.search-panel .global-search{margin:0}.facet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:24px}.facet-grid label{font-size:12px;line-height:1.7}.facet-grid select{display:block;width:100%;font:13px 'DM Sans',sans-serif;color:#173c32;background:#fff;border:1px solid #b9c5ac;padding:12px;margin-top:6px;min-height:46px}.search-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:22px}.search-reset{border:0;background:none;text-decoration:underline;padding:10px 0;font-size:12px}.result-count{font-size:13px;color:#526647}.empty-state{padding:30px;border:1px dashed #aeba9e;line-height:1.85;color:#617257;font-size:14px;grid-column:1 / -1}.empty-state a{text-decoration:underline;text-underline-offset:4px}.detail-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:55px}.detail-copy>p{font-size:17px;line-height:1.95;margin-bottom:25px;max-width:750px}.detail-copy>img{max-height:360px;width:100%;object-fit:cover;margin:25px 0}.detail-meta{padding:25px;background:#edf0e4;align-self:start}.detail-meta dt{font-size:10px;text-transform:uppercase;letter-spacing:1px;margin-top:20px;color:#617451}.detail-meta dt:first-child{margin:0}.detail-meta dd{margin:8px 0 0;font-size:13px;line-height:1.8}.detail-meta a{text-decoration:underline;text-underline-offset:3px}.tags-row{display:flex;flex-wrap:wrap;gap:8px;margin:25px 0}.proposal-note{font-size:12px;color:#68755f;line-height:1.8;border-left:2px solid #a1b387;padding:5px 0 5px 18px;margin:25px 0}.section-copy{max-width:800px;font-size:16px;line-height:1.9;color:#53664b}.section-copy p{margin-bottom:20px}.section-copy a{text-decoration:underline}.people-list{display:flex;gap:12px;flex-wrap:wrap}.people-list a{padding:16px 20px;border:1px solid #c4ceb8;font-size:13px}.explorer-main input:focus-visible,.explorer-main select:focus-visible,.global-search input:focus-visible{outline:3px solid #7d931a;outline-offset:3px}.footer-contact{overflow-wrap:anywhere}
@media(min-width:1051px) and (max-width:1250px){.header{padding-inline:3%;gap:12px}.header .brand{width:140px}.navigation{gap:11px;font-size:10px}.header-cta{font-size:10px;padding:10px;gap:8px}}
@media(max-width:1050px){.navigation{max-height:calc(100svh - 88px);overflow:auto}.navigation.open{font-size:18px}.nav-group{display:flex;flex-wrap:wrap;justify-content:space-between}.nav-group>a{flex:1}.nav-expand{font-size:18px;width:44px}.nav-submenu{position:static;box-shadow:none;width:100%;padding:0 0 10px 18px;background:transparent;border:0;min-width:0}.navigation .nav-submenu a{font-size:14px}.header .brand{width:165px}.header-search{margin-left:0}.header-cta{margin-left:auto}.area-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.area-card:nth-child(2){border-right:0}.area-card:nth-child(-n+2){border-bottom:1px solid #cbd4c3}.content-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.facet-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-layout{gap:30px}}
@media(max-width:600px){.header{padding-inline:18px;gap:10px}.header .brand{width:138px}.header-cta{display:none}.header-search{margin-left:auto}.menu-toggle{min-width:36px;min-height:44px}.navigation{max-height:calc(100svh - 78px)}.hero h1{font-size:clamp(34px,8.7vw,49px);letter-spacing:-1.3px;line-height:1.13}.hero-conclusion{letter-spacing:inherit}.hero-content{padding-top:44px}.hero-description{font-size:13px}.hero{min-height:590px}.discovery{padding-top:45px;padding-bottom:45px}.area-card{padding:20px 14px}.area-card h3{font-size:16px}.area-card p{font-size:11px}.global-search{flex-direction:column;align-items:stretch}.global-search input{font-size:13px}.global-search button{align-self:start}.content-grid,.facet-grid,.detail-layout{grid-template-columns:1fr}.search-panel{padding:20px}.page-heading h1{font-size:36px;letter-spacing:-1.5px}.page-heading>p:last-child{font-size:15px}.explorer-main{padding-top:25px}.breadcrumbs{margin-bottom:30px}.subnav{gap:8px}.subnav a{font-size:11px}.content-card{padding:23px}.explorer-main h2{font-size:26px}.search-bottom{align-items:start;flex-direction:column;gap:8px}.detail-copy>p{font-size:15px}.footer-top{grid-template-columns:1fr}.footer-top>div>a{font-size:12px}.footer-brand{width:165px}.hero-bottom{font-size:9px}}

/* Portada y páginas interiores de la fundación */
.portals {
  display: flex;
  gap: 2px;
  background: var(--paper);
}
.portal {
  --inset: clamp(1.2rem, 2.35vw, 2.75rem);
  position: relative;
  isolation: isolate;
  min-width: 0;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(330px, 32vw, 490px);
  padding-bottom: var(--inset);
  overflow: hidden;
  color: var(--paper);
  background: #173c32;
  transition: flex-grow 420ms cubic-bezier(.22,.7,.2,1);
}
.portal-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portal::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to top, rgb(10 17 19 / 96%), rgb(10 17 19 / 75%) 25%, transparent 72%);
}
.portal-knowledge { background: #27112e; }
.portal-projects { background: #15191c; }
.portal-community { background: #38453f; }
.detail-copy > img { height: auto; object-fit: contain; }
.content-card .catalog-art { height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.article-image.episode-art { background: #27112e; }
.article-image.episode-art img { object-fit: contain; }
.encounter-media { position: relative; }
.portal-caption, .portal-feature { margin-inline: var(--inset); }
.portal-caption h2 {
  font-size: clamp(1.5rem, 3.1vw, 3.6rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -.025em;
}
.portal-caption p { margin-top: .6rem; font-size: 1rem; }
.portal-caption a, .portal-feature span { position: relative; z-index: 2; }
.portal-caption a:hover { text-decoration: underline; }
.portal-feature { align-self: start; max-width: 38ch; }
.portal-feature::before { content: ''; position: absolute; inset: 0; z-index: 1; }
.portal-feature span {
  display: block;
  padding-top: .8rem;
  font: 500 clamp(1rem, 1.45vw, 1.4rem)/1.35 'DM Sans', sans-serif;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
.portal a:focus-visible { outline: 2px solid white; outline-offset: 4px; }
.encounter-motion { position: absolute; z-index: 3; right: 1rem; top: 1rem; background: #173c32; }
.encounter-motion span { font-size: .75rem; }
@media (min-width: 701px) and (hover: hover) and (pointer: fine) {
  .portal-feature { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .36s ease, opacity .3s ease; }
  .portal-feature span { min-height: 0; overflow: hidden; padding-top: 0; }
  .portal-feature span::before { content: ''; display: block; height: .8rem; }
  .portal:is(:hover, :focus-within) { flex-grow: 1.12; }
  .portals:has(.portal:hover) .portal:focus-within:not(:hover):not(:has(:focus-visible)) { flex-grow: 1; }
  .portal:is(:hover, :focus-within) .portal-feature { grid-template-rows: 1fr; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .portal, .portal-feature { transition: none; }
}
.news-shortcuts a { flex: 1 1 13rem; line-height: 1.55; }
@media (min-width:1051px) {
  .nav-group:last-child .nav-submenu, .nav-group:nth-last-child(2) .nav-submenu { left: auto; right: 0; }
}
.welcome { text-align: center; padding-block: clamp(1.5rem, 3vw, 3rem); background: var(--paper); }
.welcome h1 {
  margin: 0 auto;
  font: 400 clamp(1.6rem, 3.28vw, 3.48rem)/1.1 'DM Serif Display', Georgia, serif;
  letter-spacing: -.025em;
  color: #173c32;
}
.welcome h1 { text-wrap: balance; }
.welcome h1 em { color: #526847; font-size: 1.14em; letter-spacing: -.035em; }
.welcome > p { margin: 1.5rem auto; max-width: 65ch; line-height: 1.8; font-size: 1rem; }
.section-heading { border-top: 1px solid #bdc8b1; padding-top: 1.5rem; }
.section-heading h2, .page-heading h1 { font-weight: 400; }
.area-card p, .content-card p { font-size: 1rem; line-height: 1.6; }
.content-card {
  background: transparent;
  border: 0;
  border-top: 1px solid #bdc8b1;
  padding: 1.25rem 0;
}
.content-card h3 { font-weight: 500; }
.content-card .card-meta { font-size: .8rem; }
@media (min-width: 1251px) {
  .header { padding-inline: 3.5%; }
  .navigation { gap: clamp(.8rem, 1.5vw, 1.75rem); font-size: .875rem; }
}
@media (max-width: 700px) {
  .portals { flex-direction: column; }
  .portal { --inset: 1.4rem; min-height: clamp(255px, 64vw, 340px); flex: auto; }
  .portal::before { background: linear-gradient(to top, rgb(10 17 19 / 97%), rgb(10 17 19 / 78%) 40%, transparent 85%); }
  .portal-caption h2 { font-size: 2rem; }
  .portal-caption p { margin-top: .35rem; }
  .encounter-motion { right: .65rem; top: .65rem; }
  .encounter-motion span { display: none; }
}
.tags-row a { display: inline-block; border: 1px solid #cbd5bf; padding: .6rem .9rem; font-size: .875rem; }
.tags-row a:hover { background: #173c32; color: white; }

.knowledge {
  padding-top: clamp(1rem, 2.5vw, 2.25rem);
}
.knowledge .section-heading {
  padding-top: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.agenda {
  background: linear-gradient(100deg, rgb(9 30 24 / 64%), rgb(9 30 24 / 42%) 42%, rgb(9 30 24 / 82%) 72%),
              #173c32 url("assets/agenda-matematicas.jpg") center 58% / cover no-repeat;
}
@media (max-width: 700px) {
  .agenda {
    background-image: linear-gradient(180deg, rgb(9 30 24 / 60%), rgb(9 30 24 / 80%)),
                      url("assets/agenda-matematicas.jpg");
    background-position: center, 75% center;
  }
}

.community {
  background: linear-gradient(90deg, rgba(10, 31, 25, .78), rgba(10, 31, 25, .48) 55%, rgba(10, 31, 25, .76)),
              #173f35 url("assets/comunidad-reunion.jpg") center 61% / cover no-repeat;
  border-top: 0;
  color: white;
}
.community .eyebrow,
.community h2,
.community-main > div > p,
.community-support {
  color: white;
}
.community h2 em {
  color: #e2efb3;
}
@media (max-width: 680px) {
  .community {
    background-image: linear-gradient(180deg, rgba(10, 31, 25, .65), rgba(10, 31, 25, .79)),
                      url("assets/comunidad-reunion.jpg");
  }
}

.nav-expand {
  width: auto;
  padding-inline: .7rem;
  font: 400 .875rem 'DM Sans', Arial, sans-serif;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
}
@media (min-width: 1051px) and (hover: hover) and (pointer: fine) {
  .nav-expand { display: none; }
  .nav-group > a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (min-width: 1051px) and (hover: none), (min-width: 1051px) and (pointer: coarse) {
  .nav-group { flex-direction: column; justify-content: center; }
  .nav-expand { min-height: 24px; padding: 0 .25rem; font-size: .8rem; }
}
