/* ==========================================================================
   IPESFA – Institución / Investigación  (solo hero)
   ========================================================================== */

body.page-template-page-institucion #main,
body.page-template-page-investigacion #main,
body.page-template-page-biblioteca #main,
body.page-template-page-politicas-estudiantiles #main,
body.page-template-page-jornadas-academico-culturales #main,
body.page-template-page-contacto #main,
body.page-template-page-secciones #main,
body.page-template-page-cooperadora #main {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.inst-wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.inst-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #5FA9B3;
  margin-bottom: 12px;
}

/* ── SUBPÁGINAS ───────────────────────────────────── */
.inst-sub {
  background: #f4f6f8;
  border-bottom: 1px solid #e5e7eb;
  padding: 32px 0;
}

.inst-sub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.inst-sub__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 18px;
  text-decoration: none;
  color: #3F4656;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.inst-sub__card:hover {
  border-color: #5FA9B3;
  box-shadow: 0 4px 16px rgba(95,169,179,.12);
  transform: translateY(-2px);
  text-decoration: none;
  color: #3F4656;
}

.inst-sub__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.inst-sub__arrow {
  flex-shrink: 0;
  color: #5FA9B3;
  opacity: .4;
  transition: opacity .2s ease, transform .2s ease;
}

.inst-sub__card:hover .inst-sub__arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* ── HERO ─────────────────────────────────────────── */
.inst-hero {
  background: linear-gradient(135deg, #3F4656 0%, #2D5C65 100%);
  padding: 60px 0 56px;
  min-height: 200px;
  position: relative;
  overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.inst-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 60px solid rgba(95,169,179,.08);
  pointer-events: none;
}

.inst-hero__title {
  font-size: clamp(32px, 4vw + 14px, 52px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin: 0;
  letter-spacing: -.02em;
  text-align: left;
}

.inst-hero__name {
  display: block;
  font-size: clamp(17px, 1vw + 14px, 21px);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,.55);
  letter-spacing: .01em;
  margin-top: 10px;
}

/* Justificado manejado globalmente en style.css */
