/* ==============================================================
   RevisTEA · Sitio público (Fase 5)
   Portada, secciones, página de contenido, columnistas y buscador.
   Se carga después de tokens.css y base.css, solo en el sitio público.
   ============================================================== */

/* ---------- Menú: enlaces en píldora y panel móvil ---------- */

.rt-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rt-space-2) var(--rt-space-4);
  margin-left: auto;
}

.rt-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rt-space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.rt-nav__link {
  display: inline-block;
  padding: .5rem .78rem;
  border-radius: var(--rt-radius-pill);
  font-size: var(--rt-fs-xs);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--rt-blue-700);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--rt-dur) var(--rt-ease), color var(--rt-dur) var(--rt-ease);
}

.rt-nav__link:hover { background: var(--rt-blue-50); color: var(--rt-blue-900); }
.rt-nav__link.is-active { background: var(--rt-blue-600); color: var(--rt-text-invert); }
.rt-nav__link.is-active:hover { background: var(--rt-blue-700); color: var(--rt-text-invert); }

.rt-nav__actions { display: flex; align-items: center; gap: var(--rt-space-2); }

.rt-nav__search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  color: var(--rt-blue-700);
  background: var(--rt-blue-50);
  transition: background-color var(--rt-dur) var(--rt-ease), color var(--rt-dur) var(--rt-ease);
}

.rt-nav__search:hover { background: var(--rt-blue-600); color: var(--rt-text-invert); }

.rt-nav__cta { padding: .55rem 1.05rem; white-space: nowrap; }

.rt-navtoggle {
  display: none;
  align-items: center;
  gap: .45rem;
  margin-left: auto;
  padding: .55rem .95rem;
  font: inherit;
  font-size: var(--rt-fs-xs);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--rt-blue-700);
  background: var(--rt-blue-50);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius-pill);
  cursor: pointer;
  transition: background-color var(--rt-dur) var(--rt-ease), color var(--rt-dur) var(--rt-ease);
}

.rt-navtoggle:hover { background: var(--rt-blue-100); }

.rt-navtoggle[aria-expanded="true"] {
  background: var(--rt-blue-600);
  border-color: var(--rt-blue-600);
  color: var(--rt-text-invert);
}

/* ---------- Portada: destacado sobre la imagen + columna de secundarios ---------- */

.rt-front { padding-block: clamp(1.75rem, 1.2rem + 3vw, 3.25rem) clamp(1.25rem, 1rem + 2vw, 2.5rem); }

.rt-front__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--rt-space-2) var(--rt-space-6);
  margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem);
}

.rt-front__kicker {
  margin: 0;
  font-family: var(--rt-font-text);
  font-size: var(--rt-fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--rt-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--rt-accent);
}

.rt-front__note { margin: 0; font-size: var(--rt-fs-sm); color: var(--rt-text-soft); }

.rt-front__inner {
  display: grid;
  gap: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  align-items: start;
}

.rt-front__lead { min-width: 0; }

.rt-front__side { display: grid; gap: var(--rt-space-5); align-content: start; }

.rt-front__sidetitle {
  margin: 0;
  padding-bottom: var(--rt-space-3);
  border-bottom: 2px solid var(--rt-highlight);
  font-family: var(--rt-font-text);
  font-size: var(--rt-fs-xs);
  font-weight: 700;
  letter-spacing: var(--rt-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--rt-text-soft);
}

.rt-sidelines { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--rt-space-5); }

.rt-sidelines__item {
  padding-bottom: var(--rt-space-5);
  border-bottom: 1px solid var(--rt-border);
}

.rt-sidelines__item:last-child { padding-bottom: 0; border-bottom: 0; }

/* ---------- Tarjetas de contenido ---------- */

.rt-cards {
  display: grid;
  gap: var(--rt-space-8) var(--rt-space-6);
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.rt-card { display: flex; flex-direction: column; gap: var(--rt-space-4); }

.rt-card__media {
  position: relative;
  margin: 0;
  border-radius: var(--rt-radius-lg);
  overflow: hidden;
  background: var(--rt-surface-2);
}

.rt-card__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform var(--rt-dur-slow) var(--rt-ease);
}

.rt-card:hover .rt-card__media img { transform: scale(1.035); }

/* Sello de video: se ve en cualquier rejilla, sin abrir el contenido. */
.rt-card__play {
  position: absolute;
  right: var(--rt-space-3);
  bottom: var(--rt-space-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgba(19, 20, 40, .72);
  color: var(--rt-white);
  padding-left: .15rem;
  backdrop-filter: blur(4px);
}

.rt-card__body { display: flex; flex-direction: column; gap: var(--rt-space-2); }

.rt-card__eyebrow {
  margin: 0;
  font-size: var(--rt-fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--rt-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--rt-accent);
}

.rt-card__title {
  margin: 0;
  font-size: var(--rt-fs-h3);
  line-height: var(--rt-lh-title);
}

.rt-card__title a { color: var(--rt-blue-700); text-decoration: none; }
.rt-card__title a:hover { color: var(--rt-accent); text-decoration: underline; }

.rt-card__deck {
  margin: 0;
  font-size: var(--rt-fs-sm);
  color: var(--rt-text-soft);
  max-width: var(--rt-max-read);
}

.rt-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rt-space-1) var(--rt-space-3);
  margin: 0;
  font-size: var(--rt-fs-xs);
  color: var(--rt-text-soft);
}

.rt-card__meta > * + *::before {
  content: "·";
  margin-right: var(--rt-space-3);
  color: var(--rt-border-strong);
}

.rt-card__author { font-weight: 600; color: var(--rt-blue-600); }

/* Destacado principal */
.rt-card--lead { gap: var(--rt-space-6); }
.rt-card--lead .rt-card__media img { aspect-ratio: 16 / 9; }
.rt-card--lead .rt-card__title { font-size: var(--rt-fs-h1); line-height: var(--rt-lh-tight); }
.rt-card--lead .rt-card__deck { font-size: var(--rt-fs-lead); }

/* Secundarios de portada (variante antigua, en fila con miniatura) */
.rt-card--side { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--rt-space-4); }
.rt-card--side .rt-card__media img,
.rt-card--side .rt-card__media { aspect-ratio: 1 / 1; }
.rt-card--side .rt-card__title { font-size: 1.05rem; }
.rt-card--side .rt-card__deck { display: none; }

/* ---------- Destacado sobre la imagen (portada) ---------- */

.rt-card--overlay {
  position: relative;
  display: block;
  min-height: clamp(21rem, 15rem + 16vw, 31rem);
  border-radius: var(--rt-radius-lg);
  overflow: hidden;
  background: linear-gradient(140deg, var(--rt-blue-700), var(--rt-blue-900));
  box-shadow: var(--rt-shadow-2);
}

.rt-card--overlay .rt-card__media {
  position: absolute;
  inset: 0;
  border-radius: 0;
  background: var(--rt-blue-800);
}

.rt-card--overlay .rt-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

/* Velo para que el texto se lea sobre cualquier fotografía. */
.rt-card--overlay .rt-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(19, 20, 40, .18) 0%,
    rgba(19, 20, 40, .04) 30%,
    rgba(19, 20, 40, .74) 74%,
    rgba(19, 20, 40, .93) 100%
  );
}

.rt-card--overlay .rt-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--rt-space-3);
  min-height: inherit;
  padding: clamp(1.35rem, 1rem + 1.6vw, 2.4rem);
}

.rt-card--overlay .rt-card__eyebrow { color: var(--rt-highlight); }
.rt-card--overlay .rt-card__title { margin: 0; font-size: var(--rt-fs-h1); line-height: var(--rt-lh-tight); }
.rt-card--overlay .rt-card__title a { color: var(--rt-white); text-decoration: none; }
.rt-card--overlay .rt-card__title a:hover { color: var(--rt-highlight); }

/* Toda la tarjeta se puede pulsar: el enlace del título se estira por encima. */
.rt-card--overlay .rt-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }

.rt-card--overlay .rt-card__deck { max-width: 54ch; color: rgba(255, 255, 255, .88); }
.rt-card--overlay .rt-card__meta { color: rgba(255, 255, 255, .78); }
.rt-card--overlay .rt-card__author { color: var(--rt-white); }
.rt-card--overlay .rt-card__meta > * + *::before { color: rgba(255, 255, 255, .45); }

/* ---------- Secundarios en columna: miniatura + título ---------- */

.rt-card--list {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: var(--rt-space-4);
  align-items: start;
}

.rt-card--list .rt-card__media,
.rt-card--list .rt-card__media img { aspect-ratio: 1 / 1; }

.rt-card--list .rt-card__body { gap: var(--rt-space-1); }
.rt-card--list .rt-card__eyebrow { font-size: .62rem; letter-spacing: .14em; }
.rt-card--list .rt-card__title { font-size: 1.02rem; }
.rt-card--list .rt-card__deck { display: none; }
.rt-card--list .rt-card__meta { gap: 0 .55rem; }

/* ---------- Bandas de sección ---------- */

.rt-band { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); border-top: 1px solid var(--rt-border); }
.rt-band--alt { background: var(--rt-bg-soft); }

.rt-band__head {
  display: grid;
  gap: var(--rt-space-2);
  margin-bottom: var(--rt-space-8);
  border-bottom: 1px solid var(--rt-border-strong);
  padding-bottom: var(--rt-space-4);
}
/* ---------- Cabecera de página, migas y etiquetas ---------- */

.rt-pagehead {
  border-bottom: 1px solid var(--rt-border);
  background: var(--rt-bg-soft);
  padding-block: clamp(1.75rem, 1.3rem + 2vw, 3rem);
}

.rt-pagehead--article { background: var(--rt-surface); }

.rt-pagehead__title {
  font-size: var(--rt-fs-h1);
  line-height: var(--rt-lh-tight);
  margin: 0 0 var(--rt-space-3);
  max-width: 30ch;
}

.rt-pagehead__note { margin: 0; font-size: var(--rt-fs-sm); color: var(--rt-text-soft); }

.rt-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rt-space-2);
  margin-bottom: var(--rt-space-4);
  font-size: var(--rt-fs-xs);
  color: var(--rt-text-soft);
}
.rt-crumbs a { color: var(--rt-text-soft); }
.rt-crumbs a:hover { color: var(--rt-accent); }

.rt-chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--rt-space-2); margin: 0 0 var(--rt-space-6); padding: 0; }

.rt-chip {
  display: inline-block;
  font-size: var(--rt-fs-xs);
  font-weight: 600;
  text-decoration: none;
  color: var(--rt-blue-700);
  background: var(--rt-blue-50);
  border: 1px solid var(--rt-blue-200);
  border-radius: var(--rt-radius-pill);
  padding: .3rem .8rem;
}
.rt-chip:hover { background: var(--rt-blue-100); color: var(--rt-blue-900); }

/* ---------- Firma del contenido ---------- */

.rt-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rt-space-3);
  margin-top: var(--rt-space-4);
  font-size: var(--rt-fs-sm);
  color: var(--rt-text-soft);
}

.rt-byline__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: var(--rt-blue-600);
  color: var(--rt-text-invert);
  font-weight: 700;
  font-size: var(--rt-fs-xs);
  overflow: hidden;
}
.rt-byline__avatar img { width: 100%; height: 100%; object-fit: cover; }

.rt-byline__author { color: var(--rt-text); }
.rt-byline__author a { font-weight: 600; }

/* ---------- Página de contenido ---------- */

.rt-article__title { font-size: var(--rt-fs-h1); line-height: var(--rt-lh-tight); margin: 0 0 var(--rt-space-3); }
.rt-article__deck { font-size: var(--rt-fs-lead); color: var(--rt-text-soft); margin: 0 0 var(--rt-space-3); max-width: var(--rt-max-read); }

.rt-article__cover { margin: 0; background: var(--rt-surface-2); }
.rt-article__cover img { width: 100%; max-height: 34rem; object-fit: cover; }

.rt-article__facts {
  margin-top: var(--rt-space-8);
  padding: var(--rt-space-5);
  background: var(--rt-surface-2);
  border-left: 3px solid var(--rt-accent);
  border-radius: var(--rt-radius);
  font-size: var(--rt-fs-sm);
}
.rt-article__facts p { margin: 0 0 var(--rt-space-2); overflow-wrap: anywhere; }
.rt-article__facts p:last-child { margin-bottom: 0; }

/* ---------- Lectura por voz ---------- */

.rt-voice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rt-space-3);
  margin: 0 0 var(--rt-space-8);
  padding: var(--rt-space-4);
  background: var(--rt-yellow-100);
  border: 1px solid var(--rt-yellow-300);
  border-radius: var(--rt-radius);
}

.rt-voice__status { margin: 0; font-size: var(--rt-fs-xs); color: #6B5400; }
.rt-voice[data-voice-playing="true"] { background: var(--rt-blue-50); border-color: var(--rt-blue-200); }

.rt-voice__stop {
  font: inherit;
  font-size: var(--rt-fs-sm);
  font-weight: 600;
  background: transparent;
  color: var(--rt-text);
  border: 1px solid var(--rt-border-strong);
  border-radius: var(--rt-radius);
  padding: .55rem 1rem;
  cursor: pointer;
}
.rt-voice__stop[hidden] { display: none; }

/* ---------- Paginación ---------- */

.rt-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--rt-space-4);
  margin-top: var(--rt-space-10);
  padding-top: var(--rt-space-5);
  border-top: 1px solid var(--rt-border);
}

.rt-pagination__link { font-size: var(--rt-fs-sm); font-weight: 600; text-decoration: none; }
.rt-pagination__link.is-disabled { color: var(--rt-border-strong); }
.rt-pagination__status { margin: 0; font-size: var(--rt-fs-sm); color: var(--rt-text-soft); }
.rt-pagination__count { color: var(--rt-text-soft); }


.rt-band__number {
  margin: 0;
  font-family: var(--rt-font-display);
  font-size: var(--rt-fs-h3);
  color: var(--rt-accent);
}

.rt-band__title { margin: 0; font-size: var(--rt-fs-h2); }
.rt-band__note { margin: 0; font-size: var(--rt-fs-sm); color: var(--rt-text-soft); max-width: var(--rt-max-read); }

.rt-band__more {
  justify-self: start;
  font-size: var(--rt-fs-sm);
  font-weight: 600;
  color: var(--rt-accent);
  text-decoration: none;
}
.rt-band__more:hover { text-decoration: underline; }

/* ---------- Columnistas y equipo ---------- */

.rt-people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--rt-space-8) var(--rt-space-6);
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.rt-person { display: flex; flex-direction: column; gap: var(--rt-space-2); }

.rt-person__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--rt-blue-100);
  color: var(--rt-blue-700);
  font-family: var(--rt-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  overflow: hidden;
}
.rt-person__avatar img { width: 100%; height: 100%; object-fit: cover; }

.rt-person__name { margin: 0; font-size: var(--rt-fs-h3); }
.rt-person__name a { color: var(--rt-blue-700); text-decoration: none; }
.rt-person__name a:hover { color: var(--rt-accent); text-decoration: underline; }
.rt-person__role { margin: 0; font-size: var(--rt-fs-sm); font-weight: 600; color: var(--rt-accent); }
.rt-person__bio { margin: 0; font-size: var(--rt-fs-sm); color: var(--rt-text-soft); }
.rt-person__meta { margin: 0; font-size: var(--rt-fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--rt-text-soft); }

/* ---------- Ficha de una persona ---------- */

.rt-personhead { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--rt-space-6); }

.rt-personhead__avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: var(--rt-blue-100);
  color: var(--rt-blue-700);
  font-family: var(--rt-font-display);
  font-size: 2rem;
  font-weight: 700;
  overflow: hidden;
}
.rt-personhead__avatar img { width: 100%; height: 100%; object-fit: cover; }

.rt-personhead__data { display: grid; gap: var(--rt-space-2); }
.rt-personhead__role { margin: 0; font-size: var(--rt-fs-sm); font-weight: 600; color: var(--rt-accent); }
.rt-personhead__bio {
  margin: var(--rt-space-6) 0 0;
  max-width: var(--rt-max-read);
  font-size: var(--rt-fs-lead);
  color: var(--rt-text-soft);
}

.rt-socials { list-style: none; display: flex; flex-wrap: wrap; gap: var(--rt-space-4); margin: 0; padding: 0; font-size: var(--rt-fs-sm); }

/* ---------- Buscador ---------- */

.rt-search { display: flex; gap: var(--rt-space-3); margin-top: var(--rt-space-6); max-width: 34rem; }

.rt-search__input {
  flex: 1 1 auto;
  font: inherit;
  padding: .7rem 1rem;
  color: var(--rt-text);
  background: var(--rt-white);
  border: 1px solid var(--rt-border-strong);
  border-radius: var(--rt-radius);
}

.rt-search__hint, .rt-search__count { font-size: var(--rt-fs-sm); color: var(--rt-text-soft); }
.rt-search__count { margin-bottom: var(--rt-space-6); }

/* ---------- Índice editorial de respaldo ---------- */

.rt-index__flag { margin: 0; font-size: var(--rt-fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rt-text-soft); }
.rt-index__item--soon .rt-index__number { color: var(--rt-border-strong); }
.rt-index__item--soon .rt-index__name { color: var(--rt-text-soft); }

/* ---------- Columnas del pie ---------- */

.rt-footer__contact { display: grid; gap: var(--rt-space-4); align-content: start; }
.rt-footer__nav { align-content: start; }

/* ---------- Video incrustado (YouTube, Vimeo, Dailymotion y archivos) ---------- */

.rt-embed { margin: 0 0 var(--rt-space-6); }

.rt-embed__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--rt-radius-lg);
  overflow: hidden;
  background: var(--rt-blue-900);
  box-shadow: 0 26px 60px -40px rgba(19, 20, 40, .85);
}

.rt-embed--file .rt-embed__frame { aspect-ratio: auto; }

.rt-embed__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.rt-embed__frame video { width: 100%; height: auto; display: block; }

.rt-embed__caption {
  margin: var(--rt-space-3) 0 0;
  font-size: var(--rt-fs-xs);
  letter-spacing: .04em;
  color: var(--rt-text-soft);
}

/* El video principal de un contenido: ancho de lectura cómodo. */
.rt-article__video {
  max-width: 62rem;
  margin-inline: auto;
  padding-block: clamp(1.5rem, 1.1rem + 2vw, 2.75rem);
}

.rt-article__video .rt-embed { margin-bottom: 0; }
.rt-article__video--inline .rt-embed { margin-bottom: var(--rt-space-5); }

/* ---------- Volver arriba ---------- */

.rt-totop {
  position: fixed;
  right: clamp(.9rem, .5rem + 1.4vw, 1.9rem);
  bottom: clamp(.9rem, .5rem + 1.4vw, 1.9rem);
  z-index: var(--rt-z-header);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem 1rem;
  font: inherit;
  font-size: var(--rt-fs-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--rt-text-invert);
  background: rgba(47, 48, 102, .95);
  border: 0;
  border-radius: var(--rt-radius-pill);
  box-shadow: 0 16px 34px -22px rgba(19, 20, 40, .85);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--rt-dur) var(--rt-ease), transform var(--rt-dur) var(--rt-ease),
              visibility var(--rt-dur) var(--rt-ease), background-color var(--rt-dur) var(--rt-ease);
}

.rt-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.rt-totop:hover { background: var(--rt-accent); }

/* ---------- Menú móvil: panel desplegable (sin JS el menú se ve siempre) ---------- */

@keyframes rt-panel {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 63.9375rem) {
  html[data-js="on"] .rt-navtoggle { display: inline-flex; }

  html[data-js="on"] .rt-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: var(--rt-space-4) var(--rt-gutter) var(--rt-space-6);
    background: var(--rt-white);
    border-bottom: 1px solid var(--rt-border);
    box-shadow: 0 30px 60px -34px rgba(19, 20, 40, .55);
    max-height: calc(100vh - 100%);
    overflow-y: auto;
  }

  html[data-js="on"] .rt-nav.is-open {
    display: flex;
    animation: rt-panel var(--rt-dur) var(--rt-ease);
  }

  .rt-nav__list { flex-direction: column; align-items: stretch; gap: 0; }

  .rt-nav__link {
    display: block;
    padding: .85rem .2rem;
    border-bottom: 1px solid var(--rt-border);
    border-radius: 0;
    font-size: var(--rt-fs-sm);
    letter-spacing: .05em;
  }

  .rt-nav__link:hover { background: transparent; color: var(--rt-accent); }
  .rt-nav__link.is-active { background: transparent; color: var(--rt-accent); }

  .rt-nav__actions { justify-content: space-between; margin-top: var(--rt-space-5); }
  .rt-nav__cta { flex: 1 1 auto; justify-content: center; }

  .rt-card--side { grid-template-columns: 4.5rem 1fr; }
}

/* ---------- Responsive ---------- */

@media (min-width: 48rem) {
  .rt-cards { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
  .rt-band__head { grid-template-columns: 4rem 1fr; }
  .rt-band__number { grid-column: 1; grid-row: 1 / span 3; }
  .rt-band__title, .rt-band__note, .rt-band__more { grid-column: 2; }
}

@media (min-width: 62rem) {
  .rt-cards { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
}

/* La portada pasa a dos columnas cuando hay ancho para el destacado. */
@media (min-width: 64rem) {
  .rt-front__inner { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
}

/* ---------- Impresión ---------- */

@media print {
  .rt-nav, .rt-navtoggle, .rt-voice, .rt-pagination, .rt-footer__nav, .rt-totop { display: none; }
  .rt-article__cover img { max-height: 16rem; }
  .rt-embed__frame { box-shadow: none; }
}


/* ---------- Ajustes finos de la portada y la ficha ---------- */

.rt-byline__date, .rt-byline__time { white-space: nowrap; }
.rt-front__lead { min-width: 0; }
.rt-pagehead--person { background: var(--rt-surface); }
.rt-voice__toggle { flex: none; }

.rt-article__caption {
  max-width: var(--rt-shell);
  margin: 0 auto;
  padding: var(--rt-space-3) var(--rt-gutter) 0;
  font-size: var(--rt-fs-sm);
  color: var(--rt-text-soft);
}


/* ---------- Avisos para quien visita el sitio ---------- */

.rt-flash-stack {
  display: flex;
  flex-direction: column;
  gap: var(--rt-space-2);
  padding-top: var(--rt-space-6);
}

.rt-flash {
  display: flex;
  align-items: flex-start;
  gap: var(--rt-space-3);
  padding: var(--rt-space-3) var(--rt-space-4);
  border: 1px solid var(--rt-border);
  border-left-width: 4px;
  border-radius: var(--rt-radius);
  background: var(--rt-white);
  font-size: var(--rt-fs-sm);
}

.rt-flash__text { flex: 1 1 auto; }

.rt-flash__close {
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 .2rem;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.rt-flash--ok { border-color: #1F7A4D; background: #E7F5EE; color: #14512F; }
.rt-flash--danger { border-color: var(--rt-magenta-700); background: #FBE9EF; color: #5B1730; }
.rt-flash--warn { border-color: var(--rt-yellow-600); background: var(--rt-yellow-100); color: #6B5400; }
.rt-flash--info { border-color: var(--rt-blue-500); background: var(--rt-blue-50); color: var(--rt-blue-800); }

/* ---------- Formulario de contacto ---------- */

.rt-contactform {
  margin-top: var(--rt-space-8);
  padding-top: var(--rt-space-6);
  border-top: 1px solid var(--rt-border);
}

.rt-contactform__title {
  margin: 0 0 var(--rt-space-2);
  font-family: var(--rt-font-display);
  font-size: var(--rt-fs-h3);
}

.rt-contactform__note {
  margin: 0 0 var(--rt-space-5);
  max-width: var(--rt-max-read);
  font-size: var(--rt-fs-sm);
  color: var(--rt-text-soft);
}

.rt-contactform__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rt-contactform__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--rt-space-5);
}

.rt-contactform__field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin: 0;
}

.rt-contactform__field label { font-size: var(--rt-fs-sm); font-weight: 600; }
.rt-contactform__optional { font-weight: 400; font-size: var(--rt-fs-xs); color: var(--rt-text-soft); }

.rt-contactform__field input,
.rt-contactform__field textarea {
  font: inherit;
  font-size: var(--rt-fs-sm);
  padding: .65rem .85rem;
  color: var(--rt-text);
  background: var(--rt-white);
  border: 1px solid var(--rt-border-strong);
  border-radius: var(--rt-radius);
}

.rt-contactform__field textarea { min-height: 8rem; resize: vertical; }

.rt-contactform__field input:focus-visible,
.rt-contactform__field textarea:focus-visible,
.rt-contactform__send:focus-visible {
  outline: 3px solid var(--rt-focus);
  outline-offset: 1px;
}

.rt-contactform__field--error input,
.rt-contactform__field--error textarea { border-color: var(--rt-magenta-600); }

.rt-contactform__error { margin: 0; font-size: var(--rt-fs-xs); color: var(--rt-magenta-700); }

.rt-contactform__actions { margin: var(--rt-space-5) 0 0; }

.rt-contactform__send {
  font: inherit;
  font-size: var(--rt-fs-sm);
  font-weight: 600;
  padding: .7rem 1.4rem;
  color: var(--rt-white);
  background: var(--rt-accent);
  border: 1px solid var(--rt-accent);
  border-radius: var(--rt-radius-pill);
  cursor: pointer;
}

.rt-contactform__send:hover { background: var(--rt-magenta-700); border-color: var(--rt-magenta-700); }

@media (min-width: 48rem) {
  .rt-contactform__grid { grid-template-columns: 1fr 1fr; }
  .rt-contactform__field--wide { grid-column: 1 / -1; }
}

/* ---------- Llamado a participar (sección Comunidad) ---------- */

.rt-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rt-space-4) var(--rt-space-6);
  align-items: center;
  justify-content: space-between;
  margin: 0 0 var(--rt-space-8);
  padding: var(--rt-space-5) var(--rt-space-6);
  background: var(--rt-blue-50);
  border: 1px solid var(--rt-border);
  border-left: 4px solid var(--rt-accent);
  border-radius: var(--rt-radius);
}

.rt-cta__body { max-width: var(--rt-max-read); }

.rt-cta__eyebrow {
  margin: 0;
  font-size: var(--rt-fs-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rt-text-soft);
}

.rt-cta__title {
  margin: var(--rt-space-1) 0 var(--rt-space-2);
  font-family: var(--rt-font-display);
  font-size: var(--rt-fs-h3);
}

.rt-cta__note { margin: 0; font-size: var(--rt-fs-sm); color: var(--rt-text-soft); }

.rt-cta__list {
  margin: 0 0 var(--rt-space-3);
  padding-left: 1.1rem;
  font-size: var(--rt-fs-sm);
  color: var(--rt-text-soft);
}

.rt-cta__actions { margin: 0; }

.rt-cta__link {
  display: inline-block;
  font-size: var(--rt-fs-sm);
  font-weight: 600;
  padding: .7rem 1.4rem;
  color: var(--rt-white);
  background: var(--rt-accent);
  border: 1px solid var(--rt-accent);
  border-radius: var(--rt-radius-pill);
  text-decoration: none;
}

.rt-cta__link:hover { background: var(--rt-magenta-700); border-color: var(--rt-magenta-700); }

.rt-cta__link:focus-visible {
  outline: 3px solid var(--rt-focus);
  outline-offset: 1px;
}

/* ---------- Formulario de envíos de la comunidad ---------- */

.rt-submitform__rights { margin-top: var(--rt-space-5); }

.rt-submitform__check {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: var(--rt-fs-sm);
  font-weight: 400;
}

.rt-submitform__check input { margin-top: .2rem; }

.rt-submitform .rt-contactform__field select {
  font: inherit;
  font-size: var(--rt-fs-sm);
  padding: .65rem .85rem;
  color: var(--rt-text);
  background: var(--rt-white);
  border: 1px solid var(--rt-border-strong);
  border-radius: var(--rt-radius);
}

.rt-submitform .rt-contactform__field select:focus-visible {
  outline: 3px solid var(--rt-focus);
  outline-offset: 1px;
}

.rt-submitform .rt-contactform__field textarea { min-height: 14rem; }

/* ---------- Impresión del formulario ---------- */

@media print {
  .rt-contactform, .rt-cta, .rt-flash-stack { display: none; }
}


/* ---------- Bloques curados de sección (armador) ---------- */

.rt-blocks {
  display: grid;
  gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  margin-block-end: var(--rt-space-12);
}

.rt-block { display: grid; gap: var(--rt-space-6); }

.rt-block__head {
  display: grid;
  gap: var(--rt-space-2);
  padding-block-end: var(--rt-space-3);
  border-bottom: 1px solid var(--rt-border-strong);
}

.rt-block__eyebrow {
  margin: 0;
  font-size: var(--rt-fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--rt-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--rt-accent);
}

.rt-block__title { margin: 0; font-size: var(--rt-fs-h2); line-height: var(--rt-lh-title); }

.rt-block__note {
  margin: 0;
  font-size: var(--rt-fs-sm);
  color: var(--rt-text-soft);
  max-width: var(--rt-max-read);
}

/* Rejilla sin resumen: solo título y datos. */
.rt-block--terse .rt-card__deck { display: none; }

/* Destacado manual: la pieza abre la sección. */
.rt-block--pick { gap: var(--rt-space-5); }

/* El llamado reutiliza el recuadro .rt-cta; dentro de la pila no lleva margen. */
.rt-block--call { margin-block-end: 0; }

/* Lista de lectura numerada */
.rt-readlist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rt-border);
}

.rt-readlist__item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--rt-space-4);
  padding-block: var(--rt-space-5);
  border-bottom: 1px solid var(--rt-border);
}

.rt-readlist__index {
  font-family: var(--rt-font-display);
  font-size: var(--rt-fs-h3);
  line-height: 1;
  color: var(--rt-border-strong);
}

.rt-readlist__body { display: grid; gap: var(--rt-space-2); }

.rt-readlist__title { margin: 0; font-size: 1.05rem; line-height: var(--rt-lh-title); }
.rt-readlist__title a { color: var(--rt-blue-700); text-decoration: none; }
.rt-readlist__title a:hover { color: var(--rt-accent); text-decoration: underline; }

.rt-readlist__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rt-space-1) var(--rt-space-3);
  margin: 0;
  font-size: var(--rt-fs-xs);
  color: var(--rt-text-soft);
}

.rt-readlist__meta > * + *::before {
  content: "·";
  margin-right: var(--rt-space-3);
  color: var(--rt-border-strong);
}

/* ==============================================================
   Modernización del sitio público · capa de acabado
   Portada de revista digital: destacado ancho, columna «Lo último»,
   accesos rápidos por sección, rejillas con chip de sección,
   pestañas de filtro, llamados en color y banda de cifras.
   Los nombres de clase siguen siendo los de siempre.
   ============================================================== */

/* ---------- Portada: destacado + columna lateral ---------- */

.rt-front { padding-block: clamp(2rem, 1.4rem + 3vw, 3.5rem) clamp(1.25rem, 1rem + 2vw, 2.5rem); }
.rt-front__top { align-items: flex-end; }

.rt-front__kicker {
  position: relative;
  padding-left: 1.1rem;
  font-size: var(--rt-fs-h3);
  font-weight: 800;
  letter-spacing: var(--rt-tracking-tight);
  text-transform: none;
  color: var(--rt-ink);
}

/* Filete de color a la izquierda del título de portada. */
.rt-front__kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  bottom: .18em;
  width: 4px;
  border-radius: var(--rt-radius-pill);
  background: var(--rt-gradient-brand);
}

.rt-front__note { max-width: 46ch; }
.rt-front__inner { gap: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem); }
.rt-front__side { gap: var(--rt-space-4); }

.rt-front__sidetitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rt-space-3);
  padding-bottom: var(--rt-space-3);
  border-bottom: 2px solid var(--rt-ink);
  font-family: var(--rt-font-display);
  font-size: var(--rt-fs-h4);
  font-weight: 800;
  letter-spacing: var(--rt-tracking-tight);
  text-transform: none;
  color: var(--rt-ink);
}

.rt-front__sidemore,
.rt-band__more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--rt-font-text);
  font-size: var(--rt-fs-xs);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--rt-accent);
  text-decoration: none;
  white-space: nowrap;
}

.rt-front__sidemore:hover, .rt-band__more:hover { color: var(--rt-accent-strong); text-decoration: underline; }
.rt-front__sidemore svg.lucide, .rt-band__more svg.lucide { width: 1rem; height: 1rem; }

.rt-sidelines { gap: 0; }
.rt-sidelines__item { padding-block: var(--rt-space-4); }

/* ---------- Tarjetas ---------- */

.rt-cards { gap: var(--rt-space-6); grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }

.rt-card {
  gap: 0;
  overflow: hidden;
  background: var(--rt-surface);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius-xl);
  box-shadow: var(--rt-shadow-1);
  transition:
    transform var(--rt-dur) var(--rt-ease-out),
    box-shadow var(--rt-dur) var(--rt-ease-out),
    border-color var(--rt-dur) var(--rt-ease-out);
}

.rt-card:hover {
  transform: translateY(-4px);
  border-color: var(--rt-border-strong);
  box-shadow: var(--rt-shadow-card);
}

.rt-card__media { border-radius: 0; margin: 0; }
.rt-card__media img { aspect-ratio: 16 / 10; }
.rt-card__body { padding: var(--rt-space-5); gap: var(--rt-space-2); }

/* Chip de sección: sobre la foto cuando hay imagen, sobre el texto si no. */
.rt-card__chip {
  display: inline-block;
  align-self: flex-start;
  padding: .3rem .75rem;
  border-radius: var(--rt-radius-pill);
  background: var(--rt-gradient-brand);
  color: var(--rt-text-invert);
  font-size: var(--rt-fs-micro);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rt-card__media .rt-card__chip {
  position: absolute;
  top: var(--rt-space-3);
  left: var(--rt-space-3);
  z-index: 2;
  box-shadow: 0 10px 20px -14px rgba(18, 18, 42, .9);
}

.rt-card__eyebrow { letter-spacing: .12em; }
.rt-card__title { font-size: 1.16rem; font-weight: 800; line-height: 1.28; }

.rt-card--grid .rt-card__title,
.rt-card--grid .rt-card__deck {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rt-card--grid .rt-card__title { -webkit-line-clamp: 3; }
.rt-card--grid .rt-card__deck { -webkit-line-clamp: 2; }

.rt-card__meta { align-items: center; gap: var(--rt-space-1) var(--rt-space-3); }
.rt-card__meta > * { display: inline-flex; align-items: center; }
.rt-card__meta svg.lucide { width: .95rem; height: .95rem; margin-right: .3rem; opacity: .75; }

.rt-card__play {
  width: 2.4rem;
  height: 2.4rem;
  background: rgba(255, 255, 255, .92);
  color: var(--rt-accent);
  box-shadow: 0 12px 26px -16px rgba(18, 18, 42, .9);
}

/* ---------- Destacado sobre la imagen ---------- */

.rt-card--overlay {
  border: 0;
  min-height: clamp(22rem, 15rem + 17vw, 33rem);
  border-radius: var(--rt-radius-2xl);
  box-shadow: var(--rt-shadow-3);
}

.rt-card--overlay .rt-card__media::after { background: var(--rt-gradient-mask); }
.rt-card--overlay .rt-card__body { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); gap: var(--rt-space-3); }

.rt-card--overlay .rt-card__chip {
  position: static;
  align-self: flex-start;
  box-shadow: 0 14px 28px -18px rgba(0, 0, 0, .9);
}

.rt-card--overlay .rt-card__title { font-size: clamp(1.6rem, 1.15rem + 2vw, 2.55rem); font-weight: 800; }
.rt-card--overlay .rt-card__deck { font-size: var(--rt-fs-body); }

/* Botón «Leer artículo»: pastilla clara que se enciende al pasar el cursor. */
.rt-card__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  align-self: flex-start;
  margin: var(--rt-space-2) 0 0;
  padding: .62rem 1.2rem;
  border-radius: var(--rt-radius-pill);
  background: var(--rt-white);
  color: var(--rt-ink);
  font-size: var(--rt-fs-sm);
  font-weight: 700;
  transition: background-color var(--rt-dur) var(--rt-ease), color var(--rt-dur) var(--rt-ease);
}

.rt-card__cta svg.lucide { width: 1rem; height: 1rem; }
.rt-card--overlay:hover .rt-card__cta { background: var(--rt-highlight); color: var(--rt-blue-900); }

/* ---------- Miniatura + texto (columna «Lo último» y secundarios) ---------- */

.rt-card--list { grid-template-columns: 5.25rem minmax(0, 1fr); gap: var(--rt-space-4); }
.rt-card--list .rt-card__media { border-radius: var(--rt-radius); }
.rt-card--list .rt-card__eyebrow,
.rt-card--list .rt-card__chip { font-size: .64rem; letter-spacing: .1em; }
.rt-card--list .rt-card__title { font-size: 1rem; font-weight: 700; }
.rt-card--list .rt-card__meta { margin-top: .1rem; }

/* ---------- Accesos rápidos por sección ---------- */

.rt-quick {
  display: grid;
  gap: var(--rt-space-3);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin: var(--rt-space-2) 0 var(--rt-space-12);
}

.rt-quick__item {
  display: flex;
  align-items: center;
  gap: var(--rt-space-4);
  padding: var(--rt-space-4) var(--rt-space-5);
  background: var(--rt-surface);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius-lg);
  box-shadow: var(--rt-shadow-1);
  color: var(--rt-text);
  text-decoration: none;
  transition:
    transform var(--rt-dur) var(--rt-ease-out),
    box-shadow var(--rt-dur) var(--rt-ease-out),
    border-color var(--rt-dur) var(--rt-ease-out);
}

.rt-quick__item:hover {
  transform: translateY(-3px);
  border-color: var(--rt-accent);
  box-shadow: var(--rt-shadow-card);
  color: var(--rt-text);
}

.rt-quick__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  border-radius: var(--rt-radius);
  background: var(--rt-accent-soft);
  color: var(--rt-accent);
}

.rt-quick__icon svg.lucide { width: 1.3rem; height: 1.3rem; }
.rt-quick__item--blue .rt-quick__icon { background: var(--rt-blue-50); color: var(--rt-blue-600); }
.rt-quick__item--yellow .rt-quick__icon { background: var(--rt-yellow-100); color: var(--rt-yellow-600); }
.rt-quick__text { display: grid; gap: .1rem; min-width: 0; }
.rt-quick__label { font-size: var(--rt-fs-sm); font-weight: 700; color: var(--rt-ink); }
.rt-quick__note { font-size: var(--rt-fs-micro); color: var(--rt-text-soft); }
.rt-quick__arrow { display: inline-flex; margin-left: auto; color: var(--rt-border-strong); }
.rt-quick__item:hover .rt-quick__arrow { color: var(--rt-accent); }

/* ---------- Pestañas de filtro del listado ---------- */

.rt-tabs { display: flex; flex-wrap: wrap; gap: var(--rt-space-2); }

.rt-tabs__link {
  padding: .45rem 1rem;
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius-pill);
  background: var(--rt-surface);
  color: var(--rt-text-soft);
  font: inherit;
  font-size: var(--rt-fs-xs);
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
}

.rt-tabs__link:hover { border-color: var(--rt-accent); color: var(--rt-accent); }
.rt-tabs__link.is-active { background: var(--rt-accent); border-color: var(--rt-accent); color: var(--rt-text-invert); }

/* Sin JavaScript las pestañas llevan a cada sección; con JavaScript filtran. */
.rt-cards[data-filtered] .rt-card[hidden] { display: none; }
.rt-latest__empty { margin-top: var(--rt-space-6); }

/* ---------- «Últimos artículos»: rejilla + llamado lateral ---------- */

.rt-latest { display: grid; gap: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); align-items: start; }
.rt-latest__grid { min-width: 0; }
.rt-latest__aside { display: grid; gap: var(--rt-space-4); }

/* ---------- Llamado a la acción ---------- */

.rt-cta {
  display: grid;
  gap: var(--rt-space-3);
  align-items: start;
  justify-content: start;
  padding: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  background: var(--rt-gradient-soft);
  border: 1px solid var(--rt-magenta-100);
  border-radius: var(--rt-radius-xl);
}

.rt-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--rt-radius);
  background: var(--rt-gradient-brand);
  color: var(--rt-text-invert);
}

.rt-cta__icon svg.lucide { width: 1.4rem; height: 1.4rem; }
.rt-cta__body { max-width: none; }
.rt-cta__eyebrow { color: var(--rt-accent); letter-spacing: .12em; }
.rt-cta__title { font-size: var(--rt-fs-h3); font-weight: 800; }
.rt-cta__note { color: var(--rt-text-soft); }
.rt-cta__link { display: inline-flex; align-items: center; gap: .5rem; box-shadow: 0 16px 30px -18px rgba(194, 35, 99, .8); }
.rt-cta__link svg.lucide { width: 1rem; height: 1rem; }
.rt-cta__actions { margin: 0; }

/* ---------- Banda de cifras de la portada ---------- */

.rt-stats {
  position: relative;
  overflow: hidden;
  margin-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0;
  background: var(--rt-gradient-deep);
  color: var(--rt-text-invert);
}

.rt-stats__media { position: absolute; inset: 0; margin: 0; }
.rt-stats__media img { width: 100%; height: 100%; object-fit: cover; }

/* Velo lateral: el texto se lee y la fotografía respira a la derecha. */
.rt-stats__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 18, 42, .94) 0%, rgba(18, 18, 42, .78) 48%, rgba(18, 18, 42, .48) 100%);
}

.rt-stats__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  align-items: center;
  padding-block: clamp(3rem, 2.4rem + 3vw, 5.5rem);
}

.rt-stats__eyebrow {
  width: fit-content;
  margin: 0 0 var(--rt-space-4);
  padding: .32rem .85rem;
  border-radius: var(--rt-radius-pill);
  background: var(--rt-gradient-brand);
  color: var(--rt-text-invert);
  font-size: var(--rt-fs-micro);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.rt-stats__title {
  color: var(--rt-text-invert);
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.3rem);
  font-weight: 800;
}

.rt-stats__note { max-width: 46ch; color: var(--rt-blue-100); }
.rt-stats__actions { margin: var(--rt-space-6) 0 0; }

.rt-stats__list {
  list-style: none;
  display: grid;
  gap: var(--rt-space-6);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
}

.rt-stats__item { display: grid; gap: .35rem; justify-items: center; text-align: center; }

.rt-stats__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: var(--rt-text-invert);
}

.rt-stats__icon svg.lucide { width: 1.5rem; height: 1.5rem; }
.rt-stats__value { font-size: 1.85rem; font-weight: 800; letter-spacing: var(--rt-tracking-tight); }
.rt-stats__label { font-size: var(--rt-fs-xs); color: var(--rt-blue-200); }

/* ---------- Bandas y bloques de sección ---------- */

.rt-band { border-top: 1px solid var(--rt-border); padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem); }
.rt-band--alt { background: var(--rt-bg-soft); }
.rt-band__head { gap: var(--rt-space-2); padding-bottom: var(--rt-space-4); border-bottom: 2px solid var(--rt-border); }
.rt-band__number { font-size: var(--rt-fs-sm); font-weight: 800; letter-spacing: .1em; color: var(--rt-accent); }
.rt-band__title { font-weight: 800; }

.rt-block__head { border-bottom: 2px solid var(--rt-border); }
.rt-block__eyebrow { color: var(--rt-accent); }
.rt-block__title { font-weight: 800; }
.rt-institution { background: var(--rt-gradient-soft); border-inline: 0; }
.rt-institution__line strong { color: var(--rt-accent); }

/* ---------- Cabeceras de página, migas y etiquetas ---------- */

.rt-pagehead { background: var(--rt-gradient-soft); border-bottom: 1px solid var(--rt-border); }
.rt-pagehead--article { background: var(--rt-surface); }
.rt-pagehead--person { background: var(--rt-gradient-soft); }
.rt-pagehead__title { font-weight: 800; }
.rt-crumbs { align-items: center; }
.rt-crumbs [aria-hidden="true"] { color: var(--rt-border-strong); }
.rt-chip { background: var(--rt-white); border-color: var(--rt-blue-100); box-shadow: var(--rt-shadow-1); }
.rt-chip:hover { background: var(--rt-accent); border-color: var(--rt-accent); color: var(--rt-text-invert); }

/* ---------- Buscador ---------- */

.rt-search { max-width: 40rem; }
.rt-search__input { border-radius: var(--rt-radius-pill); padding: .8rem 1.2rem; background: var(--rt-white); box-shadow: var(--rt-shadow-1); }
.rt-search__input:focus-visible { border-color: var(--rt-accent); box-shadow: var(--rt-ring); }
.rt-search__hint { max-width: var(--rt-max-read); }
.rt-search__count { font-weight: 600; color: var(--rt-ink); }

/* ---------- Lista de lectura numerada ---------- */

.rt-readlist { border-top: 0; }
.rt-readlist__item { border-bottom: 1px solid var(--rt-border); }
.rt-readlist__index { color: var(--rt-accent); font-weight: 800; }
.rt-readlist__title { font-size: 1.1rem; font-weight: 700; }

/* ---------- Paginación ---------- */

.rt-pagination__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.05rem;
  border: 1px solid var(--rt-border-strong);
  border-radius: var(--rt-radius-pill);
  background: var(--rt-white);
  text-decoration: none;
  box-shadow: var(--rt-shadow-1);
}

.rt-pagination__link:hover { border-color: var(--rt-accent); color: var(--rt-accent); }
.rt-pagination__link.is-disabled { border-style: dashed; background: transparent; box-shadow: none; color: var(--rt-border-strong); }
.rt-pagination__link svg.lucide { width: 1rem; height: 1rem; }

/* ---------- Lectura por voz ---------- */

.rt-voice { background: var(--rt-yellow-100); border-radius: var(--rt-radius-lg); }
.rt-voice__stop { display: inline-flex; align-items: center; gap: .4rem; border-radius: var(--rt-radius-pill); }
.rt-voice__stop svg.lucide { width: 1rem; height: 1rem; }
.rt-voice__toggle svg.lucide { width: 1.05em; height: 1.05em; }

/* ---------- Columnistas y equipo ---------- */

.rt-people { gap: var(--rt-space-6); grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }

.rt-person {
  padding: var(--rt-space-6);
  background: var(--rt-surface);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius-xl);
  box-shadow: var(--rt-shadow-1);
  transition: transform var(--rt-dur) var(--rt-ease-out), box-shadow var(--rt-dur) var(--rt-ease-out);
}

.rt-person:hover { transform: translateY(-4px); box-shadow: var(--rt-shadow-card); }
.rt-person__avatar { width: 5rem; height: 5rem; background: var(--rt-blue-50); color: var(--rt-blue-600); }
.rt-person__meta { letter-spacing: .08em; }

.rt-personhead {
  align-items: center;
  padding: var(--rt-space-6);
  background: var(--rt-surface);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius-xl);
  box-shadow: var(--rt-shadow-1);
}

.rt-personhead__avatar { background: var(--rt-gradient-brand); color: var(--rt-text-invert); }
.rt-personhead__bio { margin-top: var(--rt-space-8); }
.rt-socials { gap: var(--rt-space-3); }

.rt-socials a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius-pill);
  background: var(--rt-white);
  text-decoration: none;
}

.rt-socials a:hover { border-color: var(--rt-accent); color: var(--rt-accent); }

/* ---------- Video incrustado y volver arriba ---------- */

.rt-embed__frame { box-shadow: var(--rt-shadow-3); }
.rt-totop { background: var(--rt-gradient-brand); }
.rt-totop:hover { filter: brightness(1.07); }

/* ---------- Página de contenido ---------- */

.rt-article__cover { border-radius: 0 0 var(--rt-radius-2xl) var(--rt-radius-2xl); overflow: hidden; }
.rt-article__caption { font-size: var(--rt-fs-xs); }
.rt-byline__avatar { background: var(--rt-gradient-brand); }

/* ---------- Formularios públicos ---------- */

.rt-contactform {
  border-top: 0;
  border-radius: var(--rt-radius-xl);
  background: var(--rt-bg-soft);
  padding: clamp(1.5rem, 1.2rem + 1.6vw, 2.5rem);
}

.rt-contactform__field input,
.rt-contactform__field textarea,
.rt-contactform__field select,
.rt-submitform .rt-contactform__field select {
  border-radius: var(--rt-radius);
  background: var(--rt-white);
}

.rt-contactform__field input:focus-visible,
.rt-contactform__field textarea:focus-visible,
.rt-contactform__field select:focus-visible {
  outline: none;
  border-color: var(--rt-accent);
  box-shadow: var(--rt-ring);
}

.rt-contactform__send {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--rt-gradient-brand);
  border-color: transparent;
  box-shadow: 0 16px 30px -18px rgba(194, 35, 99, .8);
}

.rt-contactform__send:hover { background: var(--rt-gradient-brand); filter: brightness(1.07); border-color: transparent; }
.rt-contactform__send svg.lucide { width: 1rem; height: 1rem; }

/* ---------- Responsive ---------- */

@media (min-width: 48rem) {
  .rt-cards { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
}

@media (min-width: 62rem) {
  .rt-latest { grid-template-columns: minmax(0, 1fr) 20rem; }
  .rt-latest__aside { position: sticky; top: 6.5rem; }
}

@media (min-width: 64rem) {
  .rt-front__inner { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
  .rt-stats__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}

/* En el panel móvil los enlaces van apilados: sin subrayado flotante. */
@media (max-width: 63.9375rem) {
  .rt-nav__link.is-active::after { display: none; }
  .rt-nav__link.is-active { background: var(--rt-accent-soft); border-radius: var(--rt-radius); }
  .rt-card--list { grid-template-columns: 4.5rem minmax(0, 1fr); }
}

@media print {
  .rt-stats, .rt-quick, .rt-tabs, .rt-cta, .rt-latest__aside { display: none; }
}

/* ---------- Ajustes finos de las piezas nuevas ---------- */

/* Encabezado de banda en fila: título a la izquierda, enlaces a la derecha. */
.rt-band__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--rt-space-3) var(--rt-space-6);
}

.rt-card__play svg.lucide { width: 1.05rem; height: 1.05rem; }

/* En pantallas angostas el icono del acceso rápido se achica y el texto manda. */
@media (max-width: 35rem) {
  .rt-quick { grid-template-columns: 1fr; }
  .rt-quick__note { display: none; }
  .rt-stats__value { font-size: 1.5rem; }
  .rt-stats__icon { width: 2.9rem; height: 2.9rem; }
}
