/* Ajustes de jerarquía para la portada. Conserva la identidad visual base. */

.header-shell { min-height: 82px; gap: 20px; }
.brand-logo { width: 60px; height: 60px; padding: 6px; }
.brand { gap: 12px; }
.brand-copy__legacy { margin-bottom: 3px; font-size: .66rem; }
.brand-copy strong { font-size: .8rem; }
.brand-copy__name { margin-top: 3px; font-size: .84rem; }
.primary-nav { gap: 15px; font-size: .84rem; }

#tramites,
#orientaciones,
#comunidad,
#institucion,
#contacto,
#calendario,
#novedades { scroll-margin-top: 110px; }

.hero-layout {
  min-height: 570px;
  grid-template-columns: 1.12fr .88fr;
  gap: 64px;
  padding-block: 58px;
}
.hero-copy h1 { font-size: clamp(3.5rem, 6vw, 5.8rem); }
.hero-lead { max-width: 680px; }
.hero-identity { min-height: 430px; }
.identity-card { width: min(100%, 380px); min-height: 420px; padding: 38px 34px; }
.enspa-logo--hero { width: 205px; height: 205px; }
.identity-card__text { margin-top: 20px; }

.section { padding: 86px 0; }
.section-heading--compact { margin-bottom: 34px; }

.current-section { background: #fff; }
.current-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 20px;
  align-items: stretch;
}
.current-panel {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--linea);
  background: #fff;
  box-shadow: var(--sombra-suave);
}
.current-panel--agenda {
  color: white;
  background: linear-gradient(145deg, #175f8d, var(--azul-profundo));
  border-color: transparent;
}
.current-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--linea);
}
.current-panel--agenda .current-panel__head { border-bottom-color: rgba(255,255,255,.2); }
.current-panel__head > div > span {
  color: var(--azul);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.current-panel--agenda .current-panel__head > div > span { color: var(--celeste-2); }
.current-panel__head h3 {
  margin: 4px 0 0;
  color: var(--azul-profundo);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.75rem;
}
.current-panel--agenda .current-panel__head h3 { color: white; }
.current-panel__head > small { color: #7b909e; font-weight: 800; }
.current-panel--agenda .current-panel__head > small { color: #c7e1ee; }
.current-feature { padding: 26px 0 22px; }
.current-feature h4 {
  margin: 22px 0 10px;
  color: var(--azul-profundo);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.45rem;
}
.current-feature p { margin-bottom: 18px; color: #607585; line-height: 1.65; }
.current-feature > small { color: #788c99; font-weight: 700; }
.current-briefs { border-top: 1px solid var(--linea); }
.current-briefs article {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--linea);
}
.current-briefs strong { color: #35566a; }
.current-briefs span { flex: 0 0 auto; color: #7c909c; font-size: .78rem; font-weight: 700; }
.agenda-list--home { border-top: 0; }
.agenda-list--home article { grid-template-columns: 112px minmax(0,1fr); padding: 20px 0; }

.proposal-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 52px;
  align-items: end;
  margin-bottom: 42px;
}
.proposal-intro .section-heading { margin-bottom: 0; }
.plan-card {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  color: white;
  background: var(--azul-profundo);
  box-shadow: var(--sombra-suave);
}
.plan-card > span {
  position: absolute;
  top: 24px;
  left: 26px;
  color: var(--celeste-2);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.plan-card strong { max-width: 260px; font-family: "Libre Baskerville", Georgia, serif; font-size: 1.35rem; line-height: 1.2; }
.plan-card small { margin-top: 8px; color: #c7dce8; }
.plan-card b { position: absolute; right: 26px; bottom: 24px; font-size: 1.5rem; }

#audience-title { max-width: 900px; }
.audience-card { min-height: 385px; }

.section--history { padding-block: 78px; }
.history-mark { min-height: 330px; }
.history-mark strong { font-size: 9rem; }

.institution-details { background: #f7fafc; }
.institution-details__intro { max-width: 860px; }
.institution-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 22px;
  align-items: stretch;
}
.institution-block {
  min-width: 0;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--linea);
  box-shadow: var(--sombra-suave);
}
.institution-block__head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--linea);
}
.institution-block__head > span {
  color: var(--azul);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.institution-block__head h3 {
  margin: 5px 0 0;
  color: var(--azul-profundo);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.75rem;
}
.authority-list article {
  display: grid;
  grid-template-columns: minmax(170px, .85fr) minmax(0, 1.15fr);
  gap: 22px;
  padding: 17px 0;
  border-bottom: 1px solid #e5edf1;
}
.authority-list article:last-child { border-bottom: 0; padding-bottom: 0; }
.authority-list span {
  color: #658091;
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.authority-list strong {
  color: var(--azul-profundo);
  font-size: 1rem;
  font-weight: 700;
}
.school-spaces {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  padding-top: 24px;
}
.school-spaces span {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 14px 15px;
  color: #35566a;
  background: #f3f8fb;
  border-left: 4px solid var(--celeste);
  font-weight: 700;
}
.school-spaces span:last-child { grid-column: 1 / -1; }

@media (max-width: 1180px) {
  .brand-copy__legacy { display: none; }
  .primary-nav { gap: 11px; font-size: .79rem; }
}

@media (max-width: 1020px) {
  .government-bar__inner span:last-child { display: none; }
  .header-shell { min-height: 78px; }
  .menu-toggle { display: block; flex: 0 0 auto; }
  .primary-nav {
    position: fixed;
    inset: 112px 0 auto 0;
    z-index: 999;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
    background: white;
    border-bottom: 1px solid var(--linea);
    box-shadow: var(--sombra);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 14px 6px; border-bottom: 1px solid #edf2f4; }
  .nav-cta { margin-top: 10px; text-align: center; }

  .hero-layout { grid-template-columns: 1fr; gap: 38px; padding-block: 58px; }
  .hero-identity { min-height: auto; }
  .identity-card { min-height: 390px; }
  .current-grid, .proposal-intro, .institution-columns { grid-template-columns: 1fr; }
  .proposal-intro { gap: 28px; }
  .plan-card { min-height: 165px; }
}

@media (max-width: 640px) {
  .header-shell { min-height: 72px; }
  .brand-logo { width: 48px; height: 48px; }
  .brand-copy strong { max-width: 220px; font-size: .66rem; }
  .brand-copy__name { font-size: .72rem; }
  .primary-nav { inset: 106px 0 auto 0; }

  .hero-layout { padding-block: 48px; }
  .hero-copy h1 { font-size: clamp(2.9rem, 14vw, 4.2rem); }
  .identity-card { min-height: 340px; padding: 28px 24px; }
  .enspa-logo--hero { width: 170px; height: 170px; }

  .section { padding: 68px 0; }
  .current-panel { padding: 22px 20px; }
  .current-panel__head { gap: 12px; }
  .current-panel__head h3 { font-size: 1.45rem; }
  .current-briefs article { flex-direction: column; gap: 3px; }
  .agenda-list--home article { grid-template-columns: 1fr; }
  .plan-card { min-height: 180px; }
  .institution-block { padding: 22px 20px; }
  .authority-list article { grid-template-columns: 1fr; gap: 4px; }
  .school-spaces { grid-template-columns: 1fr; }
  .school-spaces span:last-child { grid-column: auto; }
}
