/* Secciones de la escuela. El lector y los retratos usan los componentes del sitio. */
.si-page {
  --ink: #132d43;
  --forest: #123d39;
  --accent: #ae4640;
  --paper: #faf6ec;
  --display: "Bricolage Grotesque", Inter, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fbfaf6;
  padding-top: clamp(14px, 2.2vw, 38px);
  padding-bottom: clamp(34px, 6vw, 78px);
}
.si-page.si-maint { --accent: #306252; }
.si-wrap, .si-hero, .si-next {width:min(1180px,calc(100% - 64px));margin-inline:auto;}
.si-hero {
  display:grid; grid-template-columns: 0.94fr 1.06fr; isolation:isolate;
  background:#142f49; color:#fff9eb; overflow:hidden; position:relative; border-radius:5px;
}
.si-maint .si-hero { background:#173d37; }
.si-hero-copy { align-self:center; padding:clamp(28px,4.35vw,70px); min-width:0; }
.si-kicker {margin:0 0 15px;font:700 .78rem/1.38 Inter,"Segoe UI",sans-serif;letter-spacing:.055em;color:var(--accent);}
.si-hero .si-kicker {color:#f4ddbd;display:flex;align-items:center;gap:12px;}
.si-hero .si-kicker::before {content:"";width:38px;height:3px;flex:none;background:#e58b75;}
.si-hero h1 {font:750 clamp(2.9rem,4.75vw,4.85rem)/.99 var(--display);letter-spacing:-.055em;color:#fffaef;margin:0;max-width:16ch;text-wrap:balance;}
.si-hero .si-intro {max-width:42ch;color:#f0f0e9;font-size:clamp(.98rem,1.23vw,1.17rem);line-height:1.53;margin:1.18em 0 0;}
.si-hero-image {min-height:clamp(280px,27vw,380px);position:relative;overflow:hidden;}
.si-hero-image img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 49%;}
.si-maint .si-hero-image img {object-position:54% 52%;}
.si-plan-layout,.si-focus,.si-team,.si-letter-layout {display:grid;grid-template-columns:minmax(205px,.72fr) minmax(0,1.6fr);gap:clamp(32px,5.2vw,75px);align-items:start;}
.si-plan-layout,.si-team,.si-learning,.si-program {padding-block:clamp(36px,5.6vw,82px);}
.si-plan-layout {position:relative;}
.si-plan-layout .doc-card {min-width:0;scroll-margin-top:var(--header-height,80px);}
.si-aside {border-top:2px solid var(--accent);padding-top:19px;position:sticky;top:calc(var(--header-height,80px) + 22px);}
.si-aside h2,.si-section-head h2,.si-letter-head h2 {font:750 clamp(1.9rem,3.3vw,3.4rem)/1.04 var(--display);letter-spacing:-.044em;text-wrap:balance;margin:0 0 .38em;color:inherit;}
.si-aside > p:last-child,.si-section-head > p:last-child {font-size:1rem;line-height:1.68;max-width:63ch;margin:.8em 0 0;color:#43586b;}
.si-page .doc-preview-surface[hidden],.doc-card .doc-preview-surface[hidden] {display:none;}
.si-work-band {background:#193f38;color:#fffbef;border-block:1px solid #214a40;}
.si-work-band,.si-process-band,.si-letter-band {padding-block:clamp(37px,5.6vw,77px);}
.si-work-band .si-kicker {color:#ccdfbc;}
.si-work-band .si-section-head > p:last-child {color:#e2eae1;}
.si-ledger {margin:0;}
.si-ledger > div {padding:20px 0;border-top:1px solid #729482;display:grid;grid-template-columns:minmax(140px,.85fr) 1.25fr;gap:22px;}
.si-ledger > div:first-child {border-top:3px solid #c5d7ab;}
.si-ledger dt {font:750 clamp(1.18rem,2vw,1.55rem)/1.16 var(--display);color:#fffbed;}
.si-ledger dd {margin:0;font-size:1rem;line-height:1.58;color:#e1eae1;}
.si-letter-band {background:#eee7d9;color:#382e26;border-block:1px solid #ddd0bb;}
.si-letter-head {position:sticky;top:calc(var(--header-height,80px) + 20px);}
.si-author {margin-top:23px;max-width:212px;}
.si-page .staff-card-frame {min-width:0;}
.si-paper {background:#fffdf8;color:#272523;padding:clamp(22px,4.3vw,61px);border:1px solid #d5cab7;box-shadow:0 4px 0 -1px #f7f1e4,0 5px 0 #d7cbb6,0 11px 27px #51463612;font:normal 1.1rem/1.55 "Times New Roman",Times,serif;min-width:0;}
.si-paper p {margin:0 0 .96em;font:inherit;color:inherit;}
.si-paper p:first-child {font-size:1.12em;line-height:1.3;margin-bottom:1.4em;}
.si-paper p:nth-child(n+3):nth-last-child(n+5) {text-align:justify;}
.si-paper p:nth-last-child(-n+3) {margin:0;}
.si-paper table {width:100%;border-collapse:collapse;margin:1.3em 0;font:inherit;table-layout:fixed;}
.si-paper :is(th,td) {border:1px solid #a39d91;padding:.38em .48em;text-align:left;vertical-align:top;overflow-wrap:break-word;}
.si-paper th {background:#f5f2eb;}
.si-portraits {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(10px,2vw,24px);width:min(100%,520px);justify-self:center;}
.si-gallery {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(16px,3vw,38px);margin-top:25px;}
.si-figure {margin:0;min-width:0;}
.si-figure > a {display:block;overflow:hidden;border-radius:4px;background:#e8ece7;}
.si-figure img {display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;transition:transform 300ms ease-out;}
.si-figure a:focus-visible {outline:3px solid #195487;outline-offset:4px;}
@media(hover:hover) and (prefers-reduced-motion:no-preference) {.si-figure a:hover img {transform:scale(1.025);}}
.si-figure figcaption {padding:16px 0 0;}
.si-figure small {font-size:.78rem;color:#6d4d45;}
.si-figure h3,.si-steps h3 {font:750 clamp(1.18rem,1.85vw,1.55rem)/1.14 var(--display);letter-spacing:-.023em;color:inherit;margin:.2em 0;}
.si-figure figcaption p,.si-steps p {margin:.45em 0 0;font-size:1rem;line-height:1.57;color:#435466;}
.si-field {margin-top:clamp(26px,4.6vw,64px);}
.si-field .si-figure {display:grid;grid-template-columns:.83fr 1.17fr;align-items:center;background:#e5edf1;color:#142f49;}
.si-field .si-figure img {aspect-ratio:2/1;object-position:center 48%;}
.si-field figcaption {padding:clamp(20px,3.3vw,48px);}
.si-field .si-figure h3 {font-size:clamp(1.45rem,2.5vw,2.4rem);}
.si-process-band {background:#e5ede3;color:#173c35;}
.si-steps {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,3vw,36px);list-style:none;counter-reset:paso;margin:25px 0 0;padding:0;}
.si-steps li {counter-increment:paso;border-top:2px solid #4a7164;padding-top:14px;}
.si-steps li::before {content:counter(paso,decimal-leading-zero);display:block;color:#3e6556;font-size:.85rem;font-variant-numeric:tabular-nums;margin-bottom:14px;}
.si-app {grid-template-columns:repeat(3,minmax(0,1fr));}
.si-app .si-figure > a {padding:12px;background:#e9efec;border:1px solid #cfdbd3;}
.si-app .si-figure img {aspect-ratio:4/3;object-fit:cover;object-position:top;}
.si-next {display:flex;align-items:center;justify-content:space-between;gap:15px;background:#18334c;color:#fff9ef;border-radius:4px;padding:clamp(17px,2.6vw,35px);font:750 clamp(1.12rem,2.15vw,1.8rem)/1.2 var(--display);text-decoration:none;}
.si-next:hover,.si-next:focus-visible {background:#254867;color:#fff;}
@media(max-width:850px){
  .si-wrap,.si-hero,.si-next {width:calc(100% - 40px);}
  .si-plan-layout,.si-letter-layout,.si-focus,.si-team {grid-template-columns:1fr;gap:22px;}
  .si-aside,.si-letter-head {position:static;}
  .si-aside {display:none;}
  .si-author {max-width:146px;margin:0;}
  .si-letter-head {display:grid;grid-template-columns:1fr 132px;grid-template-rows:auto 1fr;column-gap:16px;align-items:start;}
  .si-letter-head > .si-author {grid-column:2;grid-row:1/3;}
  .si-portraits {max-width:465px;justify-self:start;}
  .si-hero-copy {padding:28px;}
  .si-hero h1 {font-size:clamp(2.3rem,5vw,3rem);}
}
@media(max-width:600px){
  .si-page {padding-top:10px;}
  .si-wrap,.si-hero,.si-next {width:calc(100% - 28px);}
  .si-hero {display:flex;flex-direction:column-reverse;border-radius:4px;}
  .si-hero-image {min-height:0;aspect-ratio:2.9/1;}
  .si-hero-image img {object-position:50% 45%;}
  .si-maint .si-hero-image img {object-position:50% 43%;}
  .si-hero-copy {padding:18px 18px 22px;}
  .si-hero .si-kicker {font-size:.72rem;margin-bottom:9px;gap:8px;}
  .si-hero .si-kicker::before {width:24px;height:2px;}
  .si-hero h1 {font-size:clamp(2rem,8.8vw,2.85rem);line-height:1.02;}
  .si-hero .si-intro {margin-top:.65em;font-size:.94rem;line-height:1.47;}
  .si-plan-layout {padding-block:18px 35px;}
  .si-page .si-plan-layout .doc-card {margin:0;}
  .si-gallery,.si-steps {grid-template-columns:1fr;gap:24px;}
  .si-field .si-figure {grid-template-columns:1fr;}
  .si-field .si-figure img {aspect-ratio:2.2/1;}
  .si-ledger > div {display:block;padding:15px 0;}
  .si-ledger dd {margin-top:7px;}
  .si-letter-head {grid-template-columns:minmax(0,1fr) 124px;align-items:center;}
  .si-letter-head .si-kicker {margin:0;align-self:end;}
  .si-letter-head h2 {align-self:start;margin-top:8px;}
  .si-paper {padding:20px 13px;font-size:1.04rem;line-height:1.52;}
  .si-paper p:nth-child(n+3):nth-last-child(n+5) {text-align:start;}
  .si-paper table {font-size:.89em;}
  .si-paper :is(th,td) {padding:.34em .26em;}
  .si-steps {gap:12px;}
  .si-steps li {display:grid;grid-template-columns:28px minmax(0,1fr);column-gap:8px;}
  .si-steps li::before {grid-row:span 2;margin-top:4px;}
  .si-steps h3,.si-steps p {grid-column:2;}
  .si-app .si-figure img {aspect-ratio:1.9/1;object-position:top;}
}
@media(prefers-reduced-motion:reduce){.si-figure img {transition:none;}}

.site-header .brand-crests {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 2px;
}

@media (min-width: 1361px) {
  .header-inner:has(.maintenance-emblem) .main-nav { gap: clamp(4px, .5vw, 8px); }
}

/* Un filete de dos tintas abre la edición de noticias y enlaza las páginas interiores. */
.home-news-heading {border-top:2px solid #1a385f;padding-top:20px;position:relative;}
.home-news-heading::before {content:"";position:absolute;inset:-2px auto auto 0;width:62px;height:4px;background:#ad443e;}
@media(min-width:971px) and (max-width:1360px){
 .site-header .header-inner{width:calc(100% - 28px);gap:8px}
 .main-nav{gap:1px}.main-nav>a,.main-nav summary{padding-inline:6px;font-size:.84rem}
 .site-header .brand{gap:7px}.site-header .main-nav summary{white-space:normal}
 .site-header .brand img{max-width:54px;object-fit:contain}
}

/* Portada y archivo: una columna para buscar cuando el título ocupa dos líneas. */
.home-news-heading h2 {font-family:"Bricolage Grotesque",Inter,sans-serif;font-size:clamp(1.8rem,3.3vw,3rem);letter-spacing:-.045em;}
.home-hybrid .news-card--lead .news-card-copy > h3 {font-family:"Bricolage Grotesque",Inter,sans-serif;line-height:1.13;letter-spacing:-.035em;}
.home-hybrid .blog-side-stories .news-card + .news-card {border-top-color:#c7d2dd;}
.home-search input:focus-visible,.archive .search-field input:focus-visible {outline:2px solid #174291;outline-offset:1px;}
@media(max-width:600px){
  .home-news-heading {display:grid;grid-template-columns:1fr;padding-top:16px;gap:10px;}
  .home-news-heading .aerial-news-actions {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;}
  .home-news-heading .home-search {width:100%;height:44px;}
  .home-news-heading .home-search input {min-width:0;width:100%;font-size:.88rem;}
  .home-news-heading .aerial-news-actions .text-link {min-height:44px;display:inline-flex;align-items:center;white-space:normal;line-height:1.2;}
}
@media(max-width:440px){
 .home-news-heading .aerial-news-actions {grid-template-columns:1fr;gap:2px;}
 .home-news-heading .aerial-news-actions .text-link {justify-self:start;min-height:39px;}
}
main .inner-hero.editorial-heading {
  --section-ink:#1c3851; --section-rule:#ab483e;
  background:#f3f4ee;border:0;padding-block:clamp(14px,2.1vw,27px) clamp(25px,3.4vw,46px);
}
main:is([data-page="noticias"],[data-page="eventos"],[data-page="capacitaciones"],[data-page="propuestas"]) .editorial-heading {background:#f5efe3;}
main:is([data-page="documentos"],[data-page="cuenta-publica"]) .editorial-heading {background:#eaf0f4;}
main .inner-hero.editorial-heading .center-title {
  position:relative;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.8fr);gap:clamp(16px,4vw,80px);align-items:end;text-align:left;padding-top:clamp(16px,2.4vw,33px);border-top:1px solid #9fafa9;
}
main .editorial-heading .center-title:has(>h1:only-child) {grid-template-columns:1fr;}
main .editorial-heading .center-title::before {
  content:"";position:absolute;top:-2px;left:0;width:46px;height:3px;margin:0;border-radius:0;background:var(--section-rule);
}
main .editorial-heading .center-title h1 {
  margin:0;color:var(--section-ink);font:750 clamp(2.25rem,4.9vw,4.45rem)/1.04 "Bricolage Grotesque",Inter,sans-serif;letter-spacing:-.05em;text-transform:none;text-wrap:balance;
}
main .editorial-heading .center-title p {
  margin:0;max-width:49ch;color:#415665;font-size:clamp(1rem,1.35vw,1.15rem);line-height:1.55;
}
@media(max-width:750px){
 main .inner-hero.editorial-heading .center-title {grid-template-columns:1fr;gap:9px;}
 main .inner-hero.editorial-heading .breadcrumb {margin-bottom:14px;}
}
@media(max-width:700px){
 .staff-heading .staff-page-intro {text-align:start;line-height:1.63;}
 .staff-heading .staff-page-intro p + p {margin-top:.7em;}
 .courses-content .course-selector a.course-index-link,.documents-index a.document-index-link {min-height:44px;}
}
@media(hover:hover){
 .home-hybrid .news-card h3 a:hover,.archive .news-card h3 a:hover {text-decoration-thickness:2px;text-underline-offset:.14em;}
}
.breadcrumb a:focus-visible,.area-card a:focus-visible,.staff-path:focus-visible,.workshop-dot:focus-visible,.course-index-link:focus-visible,.news-card a:focus-visible {
 outline:3px solid #285ea7;outline-offset:3px;
}

.si-hero-copy {container-type:inline-size;align-self:stretch;display:flex;flex-direction:column;justify-content:center;}
.si-maint .si-hero h1 {font-size:clamp(1.65rem,12.2cqi,3.7rem);max-width:none;text-wrap:initial;}
.si-title-line {display:block;white-space:nowrap;}
@media(max-width:700px){
  .doc-card > .eyebrow {margin-bottom:12px;}
  .doc-card > p {line-height:1.5;}
  .doc-card .doc-actions {margin-top:13px;padding:6px;}
  .doc-card .doc-viewer {margin-top:14px;}
  .doc-card .doc-preview-surface {height:auto;aspect-ratio:17/22;padding:7px;}
  .doc-card .doc-preview-surface img {display:block;max-width:100%;width:100%;height:100%;object-fit:contain;}
}
