/* Tipografía de la web institucional, aplicada a esta maqueta de comparación. */
@font-face {
  font-family: 'Heuvel Grotesk';
  src: url('assets/fuentes/heuvel-regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0020-002F, U+003A-007E, U+00A0-00FF;
}
@font-face {
  font-family: 'Heuvel Grotesk';
  src: url('assets/fuentes/heuvel-medium.woff') format('woff');
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0020-002F, U+003A-007E, U+00A0-00FF;
}
@font-face {
  font-family: 'Heuvel Grotesk';
  src: url('assets/fuentes/heuvel-semibold.woff') format('woff');
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0020-002F, U+003A-007E, U+00A0-00FF;
}
@font-face {
  font-family: 'Outfit';
  src: url('assets/fuentes/outfit.woff2') format('woff2');
  /* Los componentes antiguos pedían hasta 900 para la fuente condensada. */
  font-weight: 100 550;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/fuentes/instrument-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/fuentes/instrument-italica.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --sans: 'Outfit', system-ui, sans-serif;
  --mono: var(--sans);
  --titulo: 'Heuvel Grotesk', var(--sans);
  --serif: 'Instrument Serif', Georgia, serif;
}

body { font-synthesis-weight: none; }

#principal :is(h1, h2, h3, h4, h5, h6, .gigante, .grande),
#dialogo h2,
.marca-txt {
  font-family: var(--titulo);
  font-weight: 500;
  font-stretch: normal;
}

#principal :is(h1, h2, .gigante, .grande) {
  line-height: 1.02;
}

#principal :is(h3, h4, h5, h6) {
  line-height: 1.12;
}

:is(#principal, #cabecera, #dialogo) :where(.boton, .enlace, .nav a, .cab-campus, .chip, .c9-chip, .c9-formatos button) {
  font-weight: 500;
}

:is(#principal, #cabecera, #dialogo) :where(.etq, .mono, .pildora, .c9-formato) {
  font-weight: 500;
}

.p11-pato .p11-etq,
.pato-panel .pato-tarjetas b,
.pato-panel .pato-log a.pato-link span,
.pato-panel .pato-rel button.pato-seguir-btn {
  font-weight: 500;
}

.pato-panel header h2 {
  font-family: var(--titulo);
  font-weight: 500;
  font-stretch: normal;
  line-height: 1.08;
}

#principal :where(.heroe-pie b, .impacto b, .c9-cifras dt, .pf-cifras dt, .brazos .n, .metodo .n) {
  font-weight: 500;
  font-stretch: normal;
}

#principal :where(.pregunta-b, .bl-dest-txt b, .c9-prog-lista b, .docente b) {
  font-family: var(--titulo);
  font-weight: 500;
  font-stretch: normal;
  line-height: 1.1;
}

.cita blockquote,
.pie-lema {
  font-family: var(--titulo);
  font-weight: 500;
  font-stretch: normal;
  line-height: 1.08;
}

.pie-lema { text-transform: none; }

#principal :is(.heroe, .gd-hero, .est-portada, .cv-audio, .vg-escena) h1 {
  font-size: clamp(42px, 7.5vw, 100px);
  overflow-wrap: break-word;
}

#principal .heroe h1 {
  font-size: clamp(44px, 7vw, 98px);
  text-transform: none;
}

#principal :is(.heroe, .gd-hero) h1 .luz,
#principal :is(.est-portada, .cv-audio, .vg-escena) h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.pf-cinta-pista,
.cinta-pista span {
  font-family: var(--sans);
  font-size: clamp(18px, 2.15vw, 34px);
  font-weight: 500;
  font-stretch: normal;
  letter-spacing: .035em;
}

.manifiesto p.leer {
  margin-top: .35em;
  max-width: 28ch;
  font-size: clamp(25px, 3.05vw, 46px);
  line-height: 1.17;
  font-weight: 450;
  font-stretch: normal;
  letter-spacing: -.025em;
}

.manifiesto p.leer .p { opacity: .74; }
.manifiesto p.leer .p.on,
html.mov-suave .manifiesto p.leer .p { opacity: 1; }

#principal .maestro-txt h3 {
  font-size: clamp(28px, 3.6vw, 58px);
  line-height: 1;
  margin-block: .24em .42em;
  text-wrap: balance;
}

.maestro-area b { font-weight: 550; }
.maestro-cursos a { font-weight: 500; }

@media (min-width: 981px) {
  .maestros-fijo {
    padding-block: clamp(80px, 10vh, 100px) clamp(42px, 6vh, 58px);
  }

  .maestros-cabeza {
    position: static;
    width: 100%;
  }

  .maestros-pista {
    flex: 1;
    min-height: 0;
    margin-top: clamp(12px, 2.2vh, 24px);
  }

  .maestro-arte { max-height: min(100%, 54vh); }
  #principal .maestro-txt h3 { font-size: clamp(28px, min(3.6vw, 6.1vh), 58px); }
  .maestro-area { margin-bottom: clamp(7px, 1.5vh, 14px); }
  .maestro-cursos a { padding-block: clamp(6px, 1.3vh, 11px); }
  .maestro-ir { margin-top: clamp(8px, 1.8vh, 16px); }
}

@media (min-width: 981px) and (max-height: 690px) {
  .maestros-fijo { padding-block: 76px 38px; }
  #principal .maestros-cabeza h2 { font-size: 32px; }
  #principal .maestro-txt h3 { font-size: clamp(28px, 4.7vh, 34px); }
  .maestro-cursos a { font-size: 14px; line-height: 1.25; padding-block: 6px; }
  .maestro-cursos small { font-size: 12px; }
  .maestro-ir { font-size: 14px; }
}

@media (max-width: 600px) {
  #principal :is(.heroe, .gd-hero, .est-portada, .cv-audio, .vg-escena) h1 {
    font-size: clamp(38px, 10.5vw, 57px);
  }

  .campus-top {
    grid-template-columns: minmax(0, 1fr);
  }
}
