:root {
  --am-primary: #9b1c31;
  --am-primary-dark: #731225;
  --am-primary-soft: #f8ecef;
  --am-accent: #c5a469;
  --am-ink: #20242a;
  --am-text: #414750;
  --am-muted: #626872;
  --am-line: #e8e5e1;
  --am-surface: #ffffff;
  --am-canvas: #f7f6f3;
  --am-radius-sm: 0.65rem;
  --am-radius: 0.9rem;
  --am-radius-lg: 1.2rem;
  --am-shadow-sm: 0 6px 24px rgba(30, 26, 27, 0.06);
  --am-shadow: 0 14px 38px rgba(42, 30, 33, 0.08);
  --am-container: 76rem;
  --am-reading: 46rem;
  --am-sans: Inter, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --am-serif: Georgia, 'Times New Roman', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--am-text);
  background: var(--am-surface);
  font-family: var(--am-sans);
  font-size: 1rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--am-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(197, 164, 105, 0.45);
  outline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 3rem), var(--am-container));
  margin-inline: auto;
}

.skip-link:focus {
  position: fixed !important;
  z-index: 9999;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.7rem 1rem;
  clip: auto;
  color: #fff;
  background: var(--am-primary-dark);
  border-radius: 0.45rem;
}

/* Cabecera moderna y compacta. */
.utility-bar {
  min-height: 0.38rem;
  color: #fff;
  background: linear-gradient(90deg, var(--am-primary-dark), var(--am-primary) 70%, var(--am-accent));
  font-size: 0.82rem;
}

.utility-bar p {
  margin: 0;
  padding-block: 0.35rem;
}

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--am-line);
}

.site-header__identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6.5rem;
  padding-block: 1.05rem;
}

.site-header__branding .block,
.site-header__branding .site-branding {
  margin: 0;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-logo {
  display: block;
  line-height: 0;
}

.site-logo img {
  display: block;
  width: auto;
  max-width: min(100%, 34rem);
  max-height: 5.6rem;
}

.site-name {
  font-family: var(--am-serif);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.site-name a {
  color: var(--am-ink);
  text-decoration: none;
}

.site-slogan {
  margin-left: 1.5rem;
  padding-left: 1.5rem;
  color: var(--am-muted);
  border-left: 1px solid var(--am-line);
  font-size: 0.86rem;
}

/* Menú claro: el granate funciona como acento y no como masa de color. */
.primary-navigation {
  position: sticky;
  top: 0;
  z-index: 30;
  color: var(--am-ink);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--am-line);
  border-bottom: 1px solid var(--am-line);
  box-shadow: 0 8px 25px rgba(36, 29, 31, 0.04);
  backdrop-filter: blur(12px);
}

.primary-navigation .block,
.primary-navigation ul {
  margin: 0;
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  list-style: none;
}

.primary-navigation li {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
}

.primary-navigation a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 3.85rem;
  padding: 0.75rem 1.12rem;
  color: var(--am-ink);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-navigation a::after {
  position: absolute;
  right: 1.1rem;
  bottom: 0.55rem;
  left: 1.1rem;
  height: 2px;
  content: '';
  background: var(--am-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.primary-navigation a:hover::after,
.primary-navigation a:focus-visible::after,
.primary-navigation a.is-active::after,
.primary-navigation .menu-item--active-trail > a::after {
  transform: scaleX(1);
}

.primary-navigation a:hover,
.primary-navigation a:focus-visible,
.primary-navigation a.is-active {
  color: var(--am-primary-dark);
}

.primary-navigation .menu .menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 15rem;
  padding: 0.55rem;
  background: #fff;
  border: 1px solid var(--am-line);
  border-radius: var(--am-radius-sm);
  box-shadow: var(--am-shadow-sm);
}

.primary-navigation .menu-item:hover > .menu,
.primary-navigation .menu-item:focus-within > .menu {
  display: block;
}

.primary-navigation .menu .menu a {
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  text-transform: none;
}

.menu-toggle {
  display: none;
}

/* Carrusel dividido en dos columnas. */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2rem, 4vw, 4.25rem);
  background: linear-gradient(115deg, rgba(155, 28, 49, 0.025), transparent 45%, rgba(197, 164, 105, 0.06)), var(--am-canvas);
}

.hero::before {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 2px;
  content: '';
  background: linear-gradient(90deg, transparent, rgba(155, 28, 49, 0.18) 35%, rgba(197, 164, 105, 0.4) 75%, transparent);
  pointer-events: none;
}

.hero .block {
  position: relative;
  z-index: 1;
  margin: 0;
}

.academy-carousel {
  position: relative;
  overflow: hidden;
  min-height: clamp(28rem, 40vw, 32rem);
  background: var(--am-surface);
  border: 1px solid rgba(155, 28, 49, 0.08);
  border-radius: var(--am-radius-lg);
  box-shadow: var(--am-shadow);
}

.academy-carousel__slides,
.academy-carousel__slide {
  position: absolute;
  inset: 0;
}

.academy-carousel__slide {
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease;
}

.academy-carousel__slide.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.academy-carousel__slide::before {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: 48%;
  content: '';
  background: #fff;
}

.academy-carousel__image {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.academy-carousel__shade {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 42%;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.25) 16%, transparent 40%);
}

.academy-carousel__content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: clamp(2rem, 5vw, 4.5rem);
  width: min(40%, 30rem);
  transform: translateY(-50%);
}

.academy-carousel__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: var(--am-primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.academy-carousel__eyebrow::before {
  width: 2.4rem;
  height: 2px;
  content: '';
  background: var(--am-accent);
}

.hero .academy-carousel__title {
  margin: 0 0 1rem;
  color: var(--am-ink);
  font-family: var(--am-serif);
  font-size: clamp(2.1rem, 3.6vw, 3.4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.hero .academy-carousel__text {
  max-width: 28rem;
  margin: 0 0 1.55rem;
  color: var(--am-muted);
  font-size: clamp(0.96rem, 1.3vw, 1.08rem);
  line-height: 1.65;
}

.academy-carousel__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.9rem;
  padding: 0.65rem 1.2rem;
  color: #fff;
  background: var(--am-primary);
  border: 1px solid var(--am-primary);
  border-radius: 999px;
  box-shadow: 0 9px 22px rgba(155, 28, 49, 0.2);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-decoration: none;
  text-transform: uppercase;
}

.academy-carousel__link::after {
  margin-left: 0.65rem;
  content: '→';
  font-size: 1.1rem;
}

.academy-carousel__control {
  position: absolute;
  z-index: 4;
  bottom: 1.5rem;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  place-items: center;
  color: var(--am-primary);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(155, 28, 49, 0.18);
  border-radius: 50%;
  box-shadow: var(--am-shadow-sm);
  cursor: pointer;
}

.academy-carousel__control--previous {
  right: 5.1rem;
}

.academy-carousel__control--next {
  right: 1.55rem;
}

.academy-carousel__dots {
  position: absolute;
  z-index: 4;
  bottom: 1.7rem;
  left: clamp(2rem, 5vw, 4.5rem);
  display: flex;
  gap: 0.48rem;
}

.academy-carousel__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  background: #d7d2cf;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  transition: width 160ms ease, background-color 160ms ease;
}

.academy-carousel__dot.is-active {
  width: 1.7rem;
  background: var(--am-primary);
}

/* Contenido y páginas interiores. */
.highlighted,
.breadcrumb-wrap,
.main-content {
  position: relative;
}

.highlighted {
  margin-top: 1.5rem;
}

.breadcrumb-wrap {
  padding-top: 1.25rem;
  color: var(--am-muted);
  font-size: 0.84rem;
}

.breadcrumb-wrap ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-content {
  min-height: 45vh;
  padding-block: clamp(2.5rem, 4vw, 4rem);
}

.content-layout--sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: clamp(2.25rem, 5vw, 5rem);
}

h1,
h2,
h3,
h4 {
  color: var(--am-ink);
  font-family: var(--am-serif);
  font-weight: 500;
  line-height: 1.18;
}

h1 {
  margin: 0 0 2.3rem;
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  letter-spacing: -0.025em;
}

h1::before {
  display: block;
  width: 3.5rem;
  height: 3px;
  margin-bottom: 1rem;
  content: '';
  background: linear-gradient(90deg, var(--am-primary), var(--am-accent));
}

h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.3rem);
}

h3 {
  font-size: 1.35rem;
}

.node--view-mode-full .field--name-body,
.node--view-mode-full .field--type-text-with-summary {
  max-width: var(--am-reading);
  font-size: 1.04rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.node--view-mode-full .field--name-body p {
  margin-block: 0 1.35em;
}

/* Listados en cuadrícula, con tarjetas visuales. */
.view-content {
  display: grid;
  gap: 1.5rem;
}

.views-row {
  min-width: 0;
}

.content-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: clamp(1.4rem, 2.6vw, 2rem);
  background: #fff;
  border: 1px solid var(--am-line);
  border-radius: var(--am-radius);
  box-shadow: var(--am-shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(42, 30, 33, 0.12);
}

.content-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: '';
  background: linear-gradient(90deg, var(--am-primary), var(--am-accent));
}

.content-card__title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.content-card__title a {
  color: var(--am-ink);
  text-decoration: none;
}

.content-card__body {
  display: flow-root;
}

.content-card .field {
  margin-bottom: 0.85rem;
}

.content-card .field:last-child {
  margin-bottom: 0;
}

.content-card .field--name-field-imagen-contenido {
  margin: -2rem -2rem 1.35rem;
}

.content-card .field--name-field-imagen-contenido img {
  display: block;
  width: 100%;
  height: 14rem;
  object-fit: cover;
}

/* Noticias: imagen editorial, fecha y lectura clara. */
.view-noticias .view-content {
  align-items: stretch;
  column-gap: clamp(1.5rem, 2.5vw, 2rem);
  row-gap: 1.75rem;
}

/* Algunas vistas migradas no imprimen el contenedor .view-content. */
.view-noticias .views-row {
  margin-bottom: 0;
}

.view-noticias .views-row:last-of-type {
  margin-bottom: 0;
}

.news-card {
  position: relative;
  display: flex;
  overflow: hidden;
  height: 100%;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--am-line);
  border-radius: var(--am-radius);
  box-shadow: 0 8px 28px rgba(42, 30, 33, 0.065);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(155, 28, 49, 0.18);
  box-shadow: 0 20px 46px rgba(42, 30, 33, 0.11);
}

.news-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  height: clamp(10.75rem, 17vw, 12.5rem);
  background: linear-gradient(145deg, #f8f3f4, #eee8e4);
}

.news-card__media::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: '';
  background: linear-gradient(90deg, var(--am-primary), var(--am-accent));
}

.news-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.news-card:hover .news-card__media img {
  transform: scale(1.025);
}

.news-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(155, 28, 49, 0.42);
}

.news-card__placeholder svg {
  width: 3.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.news-card__content {
  display: flex;
  min-width: 0;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  flex: 1;
  flex-direction: column;
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  align-items: center;
  margin-bottom: 0.7rem;
  color: var(--am-muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.news-card__meta span {
  color: var(--am-primary);
}

.news-card__meta time::before {
  margin-right: 0.75rem;
  color: var(--am-accent);
  content: '•';
}

.news-card__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.12rem, 1.55vw, 1.38rem);
  line-height: 1.3;
}

.news-card__title a {
  color: var(--am-ink);
  text-decoration: none;
}

.news-card__summary {
  display: -webkit-box;
  margin: 0 0 1.15rem;
  overflow: hidden;
  color: var(--am-muted);
  font-size: 0.9rem;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.news-card__link {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  color: var(--am-primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-decoration: none;
  text-transform: uppercase;
}

.news-card__link span {
  color: var(--am-accent);
  font-size: 1.1rem;
}

.page-node-type-noticia h1 {
  max-width: 58rem;
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  line-height: 1.2;
}

/* Vídeos: reproductor proporcionado y ficha visual. */
.view-v-deos .view-content,
.view-videos .view-content,
.view-video .view-content {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.video-card {
  display: flex;
  overflow: hidden;
  height: 100%;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--am-line);
  border-radius: var(--am-radius);
  box-shadow: 0 8px 28px rgba(42, 30, 33, 0.065);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.video-card:hover {
  transform: translateY(-3px);
  border-color: rgba(155, 28, 49, 0.18);
  box-shadow: 0 20px 46px rgba(42, 30, 33, 0.11);
}

.video-card__media {
  position: relative;
  overflow: hidden;
  min-height: 13rem;
  aspect-ratio: 16 / 9;
  color: #fff;
  background: linear-gradient(145deg, #332b2d, #171416);
}

.video-card__media .field,
.video-card__media .field__item,
.video-card__media p {
  margin: 0;
  height: 100%;
}

.video-card__media iframe,
.video-card__media video,
.video-card__media object,
.video-card__media embed {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card__media a {
  color: #fff;
}

.video-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
}

.video-card__placeholder svg {
  width: 4rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.video-card__placeholder path {
  fill: currentColor;
  stroke: none;
}

.video-card__content {
  display: flex;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  flex: 1;
  flex-direction: column;
}

.video-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--am-muted);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.video-card__badge {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.24rem 0.6rem;
  color: var(--am-primary-dark);
  background: var(--am-primary-soft);
  border-radius: 999px;
}

.video-card__badge svg {
  width: 0.8rem;
  fill: currentColor;
}

.video-card__title {
  margin: 0 0 1.1rem;
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  line-height: 1.25;
}

.video-card__title a {
  color: var(--am-ink);
  text-decoration: none;
}

.video-card__link {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  color: var(--am-primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-decoration: none;
  text-transform: uppercase;
}

.video-card__link span {
  color: var(--am-accent);
  font-size: 1.1rem;
}

/* Listados documentales: discursos, ponencias y publicaciones. */
.view-discursos .view-content,
.view-ponencias .view-content,
.view-publicaciones .view-content {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.document-card {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: 1.35rem;
  align-items: center;
  padding: clamp(1.25rem, 2.5vw, 1.8rem);
  background: #fff;
  border: 1px solid var(--am-line);
  border-radius: var(--am-radius);
  box-shadow: 0 5px 20px rgba(42, 30, 33, 0.045);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.document-card:hover {
  transform: translateY(-2px);
  border-color: rgba(155, 28, 49, 0.2);
  box-shadow: 0 16px 38px rgba(42, 30, 33, 0.09);
}

.document-card__icon {
  display: grid;
  width: 4.5rem;
  height: 4.5rem;
  place-items: center;
  color: var(--am-primary);
  background: linear-gradient(145deg, #fff, var(--am-primary-soft));
  border: 1px solid rgba(155, 28, 49, 0.12);
  border-radius: 1rem;
}

.document-card__icon svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.document-card__content {
  min-width: 0;
}

.document-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  align-items: center;
  margin-bottom: 0.45rem;
  color: var(--am-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.document-card__type {
  display: inline-flex;
  padding: 0.22rem 0.6rem;
  color: var(--am-primary-dark);
  background: var(--am-primary-soft);
  border-radius: 999px;
}

.document-card__title {
  margin: 0;
  font-family: var(--am-serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.25;
}

.document-card__title a {
  color: var(--am-ink);
  text-decoration: none;
}

.document-card__author {
  margin: 0.45rem 0 0;
  color: var(--am-text);
  font-size: 0.92rem;
  font-weight: 600;
}

.document-card__author::before {
  margin-right: 0.42rem;
  color: var(--am-accent);
  content: '—';
}

.document-card__file {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
  margin: 0.6rem 0 0;
  overflow: hidden;
  color: var(--am-muted);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-card__file > span {
  padding: 0.1rem 0.38rem;
  color: #fff;
  background: var(--am-primary);
  border-radius: 0.25rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.document-card__file small {
  color: #92979d;
}

.document-card__actions {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: flex-end;
}

.document-card__view {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  color: #fff;
  background: var(--am-primary);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(155, 28, 49, 0.16);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.document-card__view span {
  font-size: 1rem;
}

.document-card__download {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  color: var(--am-primary);
  background: #fff;
  border: 1px solid rgba(155, 28, 49, 0.22);
  border-radius: 50%;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.views-exposed-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--am-canvas);
  border: 1px solid var(--am-line);
  border-radius: var(--am-radius);
}

.views-exposed-form .form-item {
  margin: 0;
}

.views-exposed-form label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--am-ink);
  font-size: 0.75rem;
  font-weight: 700;
}

.field--name-field-fecha,
.content-card .node__meta {
  color: var(--am-primary);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.field--type-file a,
.file a {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.48rem 0.9rem;
  color: var(--am-primary-dark);
  background: var(--am-primary-soft);
  border: 0;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.field--type-file a::before,
.file a::before {
  margin-right: 0.5rem;
  content: '↓';
  font-size: 1rem;
}

/* Visor PDF embebido: compatible con el formateador PDF/PDF.js. */
.field--name-field-archivo iframe,
.field--name-field-archivo object,
.field--name-field-archivo embed,
.field--name-field-archivo .pdf,
.field--name-field-archivo .pdf-viewer,
.field--name-field-archivo .pdf-reader {
  display: block;
  width: 100%;
  min-height: clamp(34rem, 78vh, 58rem);
  background: #eef0f2;
  border: 1px solid var(--am-line);
  border-radius: var(--am-radius);
  box-shadow: var(--am-shadow-sm);
}

.node--view-mode-full .field--name-field-archivo {
  max-width: 68rem;
  margin-top: 2rem;
}

.node--view-mode-full .field--name-field-archivo > .field__label {
  margin-bottom: 0.85rem;
  color: var(--am-ink);
  font-family: var(--am-serif);
  font-size: 1.35rem;
}

.embedded-pdf {
  max-width: 70rem;
  margin-top: 2.5rem;
  padding: clamp(1rem, 2vw, 1.4rem);
  background: var(--am-canvas);
  border: 1px solid var(--am-line);
  border-radius: var(--am-radius-lg);
}

.embedded-pdf__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.35rem 0.25rem 1.15rem;
}

.embedded-pdf__heading h2 {
  margin: 0;
  font-family: var(--am-sans);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
}

.embedded-pdf__eyebrow {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--am-primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.embedded-pdf__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.embedded-pdf__button {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.5rem 0.9rem;
  color: #fff;
  background: var(--am-primary);
  border: 1px solid var(--am-primary);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

.embedded-pdf__button--secondary {
  color: var(--am-primary-dark);
  background: #fff;
  border-color: rgba(155, 28, 49, 0.25);
}

.embedded-pdf__frame {
  display: block;
  width: 100%;
  min-height: clamp(38rem, 78vh, 62rem);
  background: #e8eaed;
  border: 0;
  border-radius: var(--am-radius);
}

.embedded-pdf__fallback {
  margin: 0.8rem 0 0;
  color: var(--am-muted);
  font-size: 0.78rem;
}

/* Paginación compacta, legible y accesible. */
.pager {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--am-line);
}

.pager__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pager__item {
  margin: 0;
}

.pager a {
  display: grid;
  min-width: 2.65rem;
  min-height: 2.65rem;
  padding: 0.4rem;
  place-items: center;
  color: var(--am-primary-dark);
  background: #fff;
  border: 1px solid var(--am-line);
  border-radius: 0.7rem;
  box-shadow: 0 3px 12px rgba(42, 30, 33, 0.04);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.pager a:hover,
.pager a:focus-visible {
  color: #fff;
  background: var(--am-primary-dark);
  border-color: var(--am-primary-dark);
  transform: translateY(-1px);
}

.pager__item.is-active a {
  color: #fff;
  background: var(--am-primary);
  border-color: var(--am-primary);
  box-shadow: 0 7px 18px rgba(155, 28, 49, 0.18);
}

.pager__item--first a,
.pager__item--previous a,
.pager__item--next a,
.pager__item--last a {
  width: auto;
  padding-inline: 0.85rem;
  color: var(--am-primary-dark);
  background: var(--am-primary-soft);
  border-color: transparent;
}

.sidebar {
  padding: 1.5rem;
  background: var(--am-canvas);
  border-radius: var(--am-radius);
}

.sidebar .block {
  margin-bottom: 2rem;
}

.sidebar h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.messages {
  padding: 1rem 1.25rem;
  background: var(--am-primary-soft);
  border: 1px solid rgba(155, 28, 49, 0.18);
  border-radius: var(--am-radius-sm);
}

.tabs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.tabs a {
  display: block;
  padding: 0.48rem 0.85rem;
  color: var(--am-primary-dark);
  background: var(--am-primary-soft);
  border-radius: 999px;
  text-decoration: none;
}

.tabs a.is-active {
  color: #fff;
  background: var(--am-primary);
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='search'],
input[type='date'],
input[type='number'],
select,
textarea {
  max-width: 100%;
  padding: 0.7rem 0.85rem;
  color: var(--am-ink);
  background: #fff;
  border: 1px solid #cfcac6;
  border-radius: var(--am-radius-sm);
}

input[type='submit'],
button.button,
a.button {
  padding: 0.7rem 1.15rem;
  color: #fff;
  background: var(--am-primary);
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

/* Acceso de usuario: panel claro y concentrado. */
.path-user .content-primary {
  width: min(100%, 34rem);
  margin-inline: auto;
}

.path-user .content-primary > .block-system-main-block {
  position: relative;
  padding: clamp(1.6rem, 4vw, 2.65rem);
  background: #fff;
  border: 1px solid var(--am-line);
  border-radius: var(--am-radius-lg);
  box-shadow: var(--am-shadow);
}

.path-user .content-primary > .block-system-main-block::before {
  display: grid;
  width: 3.75rem;
  height: 3.75rem;
  margin: 0 auto 1.25rem;
  place-items: center;
  color: var(--am-primary);
  background: var(--am-primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b1c31' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3M12 14v2'/%3E%3C/svg%3E") center / 1.7rem no-repeat;
  border: 1px solid rgba(155, 28, 49, 0.12);
  border-radius: 1.05rem;
  content: '';
}

.path-user h1 {
  margin-bottom: 1.8rem;
  text-align: center;
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.path-user h1::before {
  margin-inline: auto;
}

.user-login-form .form-item {
  margin: 0 0 1.25rem;
}

.user-login-form label {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--am-ink);
  font-size: 0.8rem;
  font-weight: 750;
}

.user-login-form input[type='text'],
.user-login-form input[type='password'] {
  width: 100%;
  min-height: 3.25rem;
  padding-inline: 1rem;
  background: #fcfbfa;
  border-color: #d9d4cf;
}

.user-login-form input[type='text']:focus,
.user-login-form input[type='password']:focus {
  background: #fff;
  border-color: var(--am-primary);
  box-shadow: 0 0 0 4px rgba(155, 28, 49, 0.08);
  outline: 0;
}

.user-login-form .description {
  margin-top: 0.35rem;
  color: var(--am-muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.user-login-form .form-actions {
  margin: 1.65rem 0 0;
}

.user-login-form .form-submit {
  width: 100%;
  min-height: 3.15rem;
  box-shadow: 0 10px 24px rgba(155, 28, 49, 0.18);
}

.path-user .tabs {
  margin-bottom: 1.1rem;
}

.path-user .tabs ul {
  justify-content: center;
}

/* Pie con contraste controlado. */
.site-footer {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.78);
  background: #252126;
}

.site-footer::before {
  display: block;
  height: 0.3rem;
  content: '';
  background: linear-gradient(90deg, var(--am-primary), var(--am-accent));
}

.site-footer a {
  color: #fff;
}

.site-footer__top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-block: 3rem 2rem;
}

.site-footer h2 {
  color: #fff;
  font-family: var(--am-sans);
  font-size: 1.05rem;
  font-weight: 700;
}

.site-footer__bottom {
  padding-block: 1.3rem;
  font-size: 0.83rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__bottom p {
  margin: 0;
}

@media (min-width: 48rem) {
  .view-noticias .view-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 70rem) {
  .view-noticias .view-content {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 64rem) {
  .primary-navigation {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .primary-navigation ul.menu--level-0 {
    justify-content: flex-start;
    width: max-content;
    min-width: 100%;
  }

  .primary-navigation a {
    padding-inline: 0.9rem;
    font-size: 0.7rem;
  }

  .content-layout--sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 48rem) {
  .container {
    width: min(calc(100% - 1.5rem), var(--am-container));
  }

  .site-header__identity {
    min-height: 5.8rem;
    padding-block: 0.8rem;
  }

  .site-logo img {
    max-width: min(100%, 20rem);
    max-height: 4.5rem;
  }

  .site-slogan {
    display: none;
  }

  .primary-navigation a {
    min-height: 3.35rem;
  }

  .hero {
    padding-block: 1.25rem 2rem;
  }

  .academy-carousel {
    min-height: 40rem;
    border-radius: var(--am-radius);
  }

  .academy-carousel__slide::before {
    inset: auto 0 0;
    width: 100%;
    height: 58%;
  }

  .academy-carousel__image {
    top: 0;
    width: 100%;
    height: 48%;
  }

  .academy-carousel__shade {
    inset: 37% 0 auto;
    height: 13%;
    background: linear-gradient(0deg, #fff, transparent);
  }

  .academy-carousel__content {
    top: auto;
    bottom: 4.7rem;
    left: 1.35rem;
    width: calc(100% - 2.7rem);
    transform: none;
  }

  .hero .academy-carousel__title {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .academy-carousel__dots {
    bottom: 1.75rem;
    left: 1.35rem;
  }

  .academy-carousel__control {
    bottom: 1.15rem;
  }

  .content-card .field--name-field-imagen-contenido {
    margin: -1.4rem -1.4rem 1.2rem;
  }

  .view-noticias .view-content {
    row-gap: 2.25rem;
  }

  .embedded-pdf__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .embedded-pdf__actions {
    justify-content: flex-start;
  }

  .embedded-pdf__frame {
    min-height: 34rem;
  }

  .document-card {
    grid-template-columns: 3.5rem minmax(0, 1fr);
    gap: 1rem;
  }

  .document-card__icon {
    width: 3.5rem;
    height: 3.5rem;
  }

  .document-card__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 0.25rem;
  }

  .document-card__file {
    display: none;
  }

  .view-v-deos .view-content,
  .view-videos .view-content,
  .view-video .view-content {
    grid-template-columns: 1fr;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Acabados compartidos: lectura, navegación y controles. */
.content-primary,
.site-header__branding {
  min-width: 0;
}

h1, h2, h3, .site-name {
  text-wrap: balance;
  overflow-wrap: break-word;
}

.editorial-content h2,
.editorial-content h3 {
  margin-block: 1.8em 0.7em;
  scroll-margin-top: 2rem;
}

.editorial-content li + li {
  margin-top: 0.45rem;
}

.editorial-content blockquote {
  margin: 1.75rem 0;
  padding: 0.25rem 1.5rem;
  border-inline-start: 3px solid var(--am-accent);
  color: var(--am-ink);
  font-family: var(--am-serif);
  font-size: 1.15em;
}

.editorial-content img {
  border-radius: var(--am-radius-sm);
}

.editorial-content figure {
  max-width: 100%;
  margin-inline: 0;
}

.editorial-content figcaption {
  padding-top: 0.5rem;
  color: var(--am-muted);
  font-size: 0.85em;
}

.editorial-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.92em;
}

.editorial-content th,
.editorial-content td {
  padding: 0.8rem 1rem;
  border: 1px solid var(--am-line);
  text-align: start;
  vertical-align: top;
}

.editorial-content th {
  background: var(--am-canvas);
  color: var(--am-ink);
}

.editorial-content iframe,
.editorial-content video {
  max-width: 100%;
}

.content-card:focus-within,
.news-card:focus-within,
.video-card:focus-within,
.document-card:focus-within {
  border-color: var(--am-primary);
}

.content-card__title a:hover,
.news-card__title a:hover,
.video-card__title a:hover,
.document-card__title a:hover {
  color: var(--am-primary-dark);
  text-decoration: underline;
}

.academy-carousel__link:hover,
.document-card__view:hover,
.embedded-pdf__button:hover,
input[type='submit']:hover {
  background: var(--am-primary-dark);
  color: #fff;
}

.academy-carousel__dots {
  bottom: 1.2rem;
  gap: 0.1rem;
}

.academy-carousel__dot {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  background: transparent;
}

.academy-carousel__dot::after {
  position: absolute;
  top: calc(50% - 0.25rem);
  left: calc(50% - 0.25rem);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 1rem;
  background: #a7a09b;
  content: '';
}

.academy-carousel__dot.is-active {
  width: 2.75rem;
  background: transparent;
}

.academy-carousel__dot.is-active::after {
  left: calc(50% - 0.75rem);
  width: 1.5rem;
  background: var(--am-primary);
}

.academy-carousel__pause {
  position: absolute;
  z-index: 4;
  right: 8.6rem;
  bottom: 1.5rem;
  min-height: 2.8rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--am-line);
  border-radius: 999px;
  background: #fff;
  color: var(--am-primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.site-footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 0;
  list-style: none;
}

@media (max-width: 64rem) {
  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    min-height: 2.75rem;
    margin-left: 1rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--am-line);
    border-radius: var(--am-radius-sm);
    background: #fff;
    color: var(--am-primary-dark);
    cursor: pointer;
  }

  .menu-toggle__icon {
    width: 1rem;
    height: 0.75rem;
    border-block: 2px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
  }

  .js .primary-navigation:not(.is-open) {
    display: none;
  }

  .primary-navigation {
    position: static;
    overflow: visible;
    backdrop-filter: none;
  }

  .primary-navigation ul.menu--level-0 {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-block: 0.5rem;
  }

  .primary-navigation a {
    min-height: 2.9rem;
    padding-inline: 1rem;
    font-size: 0.8rem;
  }

  .primary-navigation .menu .menu {
    position: static;
    display: block;
    padding-left: 1rem;
    border: 0;
    box-shadow: none;
  }

  .primary-navigation a::after {
    display: none;
  }

  .primary-navigation a.is-active {
    border-inline-start: 3px solid var(--am-primary);
    background: var(--am-primary-soft);
  }
}

@media (max-width: 48rem) {
  .site-logo img {
    max-width: 100%;
  }

  /* Flujo natural para que textos largos no se solapen con los controles. */
  .academy-carousel {
    min-height: 0;
  }

  .academy-carousel__slides {
    position: relative;
  }

  .academy-carousel__slide {
    position: relative;
    display: none;
  }

  .academy-carousel__slide.is-active {
    display: flex;
    flex-direction: column;
  }

  .academy-carousel__slide::before,
  .academy-carousel__shade {
    display: none;
  }

  .academy-carousel__image {
    position: relative;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .academy-carousel__content {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    padding: 1.5rem 1.35rem 5.5rem;
  }

  .hero .academy-carousel__title {
    font-size: clamp(1.85rem, 7.5vw, 2.6rem);
    line-height: 1.12;
  }

  .academy-carousel__eyebrow {
    margin-bottom: 0.65rem;
  }

  .academy-carousel__control,
  .academy-carousel__pause {
    bottom: 1rem;
  }

  .academy-carousel__dots {
    bottom: 1rem;
    left: 0.8rem;
  }

  .academy-carousel__pause {
    right: 8.3rem;
  }

  .views-exposed-form .form-item,
  .views-exposed-form input,
  .views-exposed-form select {
    width: 100%;
  }

  .document-card__title {
    overflow-wrap: anywhere;
  }

  .embedded-pdf__heading h2 {
    overflow-wrap: anywhere;
  }
}

@media print {
  .utility-bar, .primary-navigation, .menu-toggle, .hero,
  .site-footer, .tabs, .embedded-pdf__frame, .skip-link {
    display: none !important;
  }

  .container {
    width: 100%;
  }

  .main-content {
    padding-block: 1rem;
  }

  .content-layout--sidebar {
    display: block;
  }

  .content-card, .document-card, .news-card, .video-card {
    box-shadow: none;
    break-inside: avoid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Identidad institucional en la esquina superior derecha. */
.site-header__identity {
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-header__branding {
  flex: 1 1 0;
}

.site-header__institutional {
  flex: 0 0 auto;
  margin-inline-start: auto;
}

.site-header__institutional img {
  display: block;
  width: clamp(5rem, 11vw, 8rem);
  height: auto;
}

@media (max-width: 48rem) {
  .site-header__identity {
    gap: 0.75rem;
  }

  .site-header__identity > .menu-toggle {
    flex-basis: 100%;
    justify-content: flex-end;
  }
}

/* Ajustes editoriales: misma paleta, proporciones y ritmo más contenidos. */
body {
  background: var(--am-canvas);
}

.site-header__identity {
  min-height: 6rem;
  padding-block: 0.85rem;
}

.site-header__institutional img {
  width: clamp(5rem, 10vw, 7rem);
}

.primary-navigation {
  box-shadow: 0 4px 14px rgba(36, 29, 31, 0.035);
}

.primary-navigation a {
  letter-spacing: 0.035em;
}

.hero {
  padding-block: clamp(1.5rem, 3vw, 2.75rem);
}

.academy-carousel {
  min-height: clamp(27rem, 35vw, 29rem);
}

.hero .academy-carousel__title {
  font-size: clamp(2rem, 3.1vw, 3rem);
  line-height: 1.1;
}

.academy-carousel__link {
  border-radius: var(--am-radius-sm);
  box-shadow: 0 4px 12px rgba(155, 28, 49, 0.12);
}

.breadcrumb-wrap {
  padding-top: 1.5rem;
}

.breadcrumb-wrap a {
  color: var(--am-muted);
  text-decoration: none;
}

.breadcrumb-wrap a:hover {
  color: var(--am-primary);
  text-decoration: underline;
}

.main-content {
  margin-block: 1.75rem 3rem;
  padding: clamp(1.25rem, 3vw, 2.75rem);
  background: var(--am-surface);
  border: 1px solid var(--am-line);
  border-radius: var(--am-radius);
}

h1 {
  margin-bottom: 1.75rem;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  line-height: 1.15;
}

h1::before {
  width: 2.75rem;
  margin-bottom: 0.85rem;
}

.editorial-content {
  overflow-wrap: anywhere;
}

.node--view-mode-full .field--name-body {
  line-height: 1.8;
}

.node--view-mode-full .field--name-body p {
  margin-block: 0 1.1em;
}

.node--view-mode-full.node--presentation .field--name-body {
  width: 100%;
  max-width: none;
}

.node--presentation .field--name-body p {
  text-align: justify;
  text-align-last: start;
  hyphens: none;
}

.editorial-content > .field__item > :last-child {
  margin-bottom: 0;
}

.news-card,
.video-card,
.content-card {
  box-shadow: 0 3px 12px rgba(42, 30, 33, 0.04);
}

.news-card:hover,
.video-card:hover,
.content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(42, 30, 33, 0.075);
}

.news-card__media {
  height: auto;
  aspect-ratio: 16 / 10;
}

.news-card__content {
  padding: 1.35rem;
}

.news-card__title {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.35;
}

.news-card__meta {
  letter-spacing: 0.04em;
}

.pager__item--current {
  display: flex;
  align-items: center;
  padding-inline: 1rem;
  color: var(--am-muted);
  font-size: 0.88rem;
}

.site-footer__bottom {
  padding-block: 1.6rem;
}

@media (max-width: 64rem) {
  .js .site-header__identity > .menu-toggle {
    margin-inline-start: 0;
  }
}

@media (max-width: 48rem) {
  .site-header__identity {
    min-height: 0;
    padding-block: 0.75rem;
  }

  .js .site-header__identity > .menu-toggle {
    flex: 0 0 auto;
    margin-inline-start: auto;
    min-height: 2.5rem;
    padding: 0.4rem 0.7rem;
  }

  .site-header__branding {
    flex-basis: calc(100% - 6rem);
  }

  .hero {
    padding-block: 1rem 1.5rem;
  }

  .academy-carousel {
    min-height: 0;
  }

  .hero .academy-carousel__title {
    font-size: clamp(1.8rem, 7vw, 2.3rem);
  }

  .academy-carousel__content {
    padding: 1.4rem 1.25rem 5rem;
  }

  .main-content {
    margin-block: 1.25rem 2rem;
  }

  .news-card__media {
    aspect-ratio: 16 / 9;
  }
}

/* Titulares largos: tarjetas equilibradas sin perder el título del enlace. */
.news-card__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

@media (max-width: 48rem) {
  .news-card__title {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }
}

/* Detalle de noticia: título y texto comparten una columna de lectura centrada. */
.page-node-type-noticia .content-above,
.page-node-type-noticia .content-layout:not(.content-layout--sidebar) {
  width: 100%;
  max-width: 52rem;
  margin-inline: auto;
}

.page-node-type-noticia .node--view-mode-full .field--name-body,
.page-node-type-noticia .node--view-mode-full .field--type-text-with-summary {
  max-width: 100%;
}

.page-node-type-noticia .editorial-content {
  display: flow-root;
}

@media (max-width: 48rem) {
  .page-node-type-noticia .editorial-content img {
    float: none !important;
    display: block;
    max-width: 100%;
    height: auto !important;
    margin: 1.25rem 0 !important;
  }
}

/* Fecha y número destacados en la cabecera del detalle. */
.content-dateline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-block: 0 2rem;
  padding: 1rem 1.25rem;
  border-inline-start: 4px solid var(--am-primary);
  border-radius: 0 0.65rem 0.65rem 0;
  background: #f7f3ef;
}

.content-dateline__item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.content-dateline__label {
  color: #62605d;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.content-dateline__item--author {
  flex: 1 1 16rem;
}

.content-dateline__value {
  color: var(--am-primary);
  font-family: var(--am-serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* Junta de Gobierno: composición institucional a partir del contenido editorial. */
.governing-board {
  max-width: 64rem;
  margin-inline: auto;
}

.governing-board__intro {
  margin: 0 0 1.75rem;
  color: var(--am-muted);
  font-size: 1rem;
}

.governing-board__members {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.board-member {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 11rem;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  flex-direction: column;
  align-items: flex-start;
  background: var(--am-canvas);
  border: 1px solid var(--am-line);
  border-radius: var(--am-radius);
}

.board-member__role {
  margin: 0 0 0.85rem;
  color: var(--am-primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.board-member__name {
  margin: 0 0 1.25rem;
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  line-height: 1.3;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.board-member__accent {
  width: 2rem;
  height: 2px;
  margin-top: auto;
  background: var(--am-accent);
}

.board-member--president {
  grid-column: 1 / -1;
  min-height: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(110deg, var(--am-primary-dark), var(--am-primary));
  border-color: var(--am-primary-dark);
}

.board-member--president .board-member__role {
  color: #fff;
}

.board-member--president .board-member__name {
  color: #fff;
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
}

@media (max-width: 64rem) {
  .governing-board__members {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 40rem) {
  .governing-board__members {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .board-member {
    min-height: 0;
  }
}
