/* =========================================================
   EQUIPO INSTITUCIONAL
   ========================================================= */

.inst-page {
  --siv-blue: var(--navy, #003d71);
  --siv-blue-dark: var(--navy-dark, #00305f);
  --siv-gold: var(--gold, #b9985a);
  --siv-red: #b51f2f;
  --siv-soft: #f7f7f7;
  --siv-border: #e4e9ef;
  --siv-text: #173b63;
  --siv-muted: #5c6b7a;

  width: 100%;
  max-width: 100%;
  color: var(--siv-text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

.inst-page *,
.inst-page *::before,
.inst-page *::after {
  box-sizing: border-box;
}

.inst-wide {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
}

.inst-inner {
  width: 100%;
  max-width: 1130px;
  margin: 0 auto;
  padding: 0 24px;
}

.inst-section {
  padding: 70px 0;
}

.inst-section-soft {
  background: var(--siv-soft);
}

.inst-page .row {
  max-width: 100%;
  margin-right: 0;
  margin-left: 0;
}

.inst-page [class*="col-"] {
  min-width: 0;
}

/* Typography */

.inst-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--siv-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.inst-eyebrow::before {
  content: "";
  display: inline-block;
  width: 48px;
  height: 2px;
  background: var(--siv-gold);
}

.inst-title,
.inst-title-small,
.inst-final h2 {
  color: var(--siv-blue-dark);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.08;
  text-transform: none;
}

.inst-title {
  max-width: 680px;
  margin: 0 0 28px;
  font-size: clamp(40px, 4.2vw, 56px);
}

.inst-title em {
  color: var(--siv-gold);
  font-style: italic;
  font-weight: 400;
}

.inst-title-small {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(30px, 3.1vw, 42px);
}

.inst-lead {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--siv-muted);
  font-size: 17px;
  line-height: 1.65;
}

.inst-text {
  margin-bottom: 16px;
  color: var(--siv-muted);
  font-size: 15px;
  line-height: 1.75;
}

/* Intro and notes */

.inst-intro-card {
  position: relative;
  max-width: 570px;
  padding: 30px 34px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--siv-border);
  border-left: 3px solid var(--siv-red);
  border-radius: 0 10px 10px 0;
  box-shadow: 0 8px 24px rgba(0, 48, 95, .06);
}

.inst-intro-card::after {
  content: "Scuola";
  position: absolute;
  right: 14px;
  bottom: -5px;
  color: rgba(0, 61, 113, .045);
  font-size: 60px;
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1;
  pointer-events: none;
}

.inst-note {
  height: 100%;
  padding: 26px 28px;
  background: #fff;
  border: 1px solid var(--siv-border);
  border-top: 2px solid var(--siv-gold);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 48, 95, .045);
}

.inst-note span {
  display: block;
  margin-bottom: 12px;
  color: var(--siv-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.inst-note p {
  margin: 0;
  color: var(--siv-blue-dark);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
}

/* Directory cards */

.inst-team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.inst-team-card {
  position: relative;
  min-height: 214px;
  height: 100%;
  padding: 24px 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--siv-border);
  border-bottom: 3px solid var(--siv-gold);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 48, 95, .045);
  transition: transform .25s ease, box-shadow .25s ease;
}

.inst-team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 48, 95, .08);
}

.inst-team-card::before {
  content: attr(data-number);
  position: absolute;
  top: 16px;
  right: 18px;
  color: rgba(0, 61, 113, .06);
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
}

.inst-team-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  background: var(--siv-blue);
  color: #fff;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.inst-team-card h3 {
  position: relative;
  max-width: 260px;
  margin: 0 0 9px;
  padding-right: 30px;
  color: var(--siv-blue-dark);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.25;
  text-transform: none;
}

.inst-team-card p {
  position: relative;
  margin: 0;
  color: var(--siv-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Mantiene la escala del directorio frente a las reglas tipograficas globales. */
.inst-page .inst-team-grid .inst-team-card h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}

/* Optional legacy blocks */

.inst-board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.inst-board-card {
  position: relative;
  min-height: 170px;
  height: 100%;
  padding: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--siv-border);
  border-bottom: 3px solid var(--siv-gold);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 48, 95, .045);
}

.inst-board-card::before {
  content: attr(data-number);
  position: absolute;
  top: 16px;
  right: 18px;
  color: rgba(0, 61, 113, .06);
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
}

.inst-board-card span {
  display: block;
  margin-bottom: 11px;
  padding-right: 38px;
  color: var(--siv-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.inst-board-card h3 {
  margin: 0;
  padding-right: 34px;
  color: var(--siv-blue-dark);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  text-transform: none;
}

.inst-final {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(0, 61, 113, .96), rgba(0, 48, 95, .96));
  color: #fff;
}

.inst-final h2 {
  max-width: 800px;
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(32px, 3.6vw, 48px);
}

.inst-final p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: 17px;
  line-height: 1.65;
}

@media (max-width: 991.98px) {
  .inst-section {
    padding: 55px 0;
  }

  .inst-title {
    font-size: 44px;
  }

  .inst-title-small {
    font-size: 34px;
  }

  .inst-intro-card {
    max-width: none;
  }

  .inst-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inst-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .inst-inner {
    padding-right: 18px;
    padding-left: 18px;
  }

  .inst-section {
    padding: 45px 0;
  }

  .inst-title {
    font-size: 36px;
  }

  .inst-title-small {
    font-size: 29px;
  }

  .inst-lead {
    font-size: 16px;
  }

  .inst-text {
    font-size: 15px;
  }

  .inst-intro-card,
  .inst-note {
    padding: 23px 22px;
  }

  .inst-intro-card::after {
    font-size: 44px;
  }

  .inst-team-grid,
  .inst-board-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .inst-team-card,
  .inst-board-card {
    min-height: 0;
  }

  .inst-final {
    padding: 58px 0;
  }
}
