/* ==============================================================
   RevisTEA · Base + componentes editoriales (parte 1)
   ============================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--rt-bg);
  color: var(--rt-text);
  font-family: var(--rt-font-text);
  font-size: var(--rt-fs-body);
  line-height: var(--rt-lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--rt-link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--rt-link-hover); }

:focus-visible {
  outline: 3px solid var(--rt-focus);
  outline-offset: 2px;
  border-radius: var(--rt-radius-sm);
}

h1, h2, h3, h4 {
  font-family: var(--rt-font-display);
  font-weight: 700;
  line-height: var(--rt-lh-title);
  letter-spacing: -.01em;
  margin: 0 0 var(--rt-space-4);
  text-wrap: balance;
}

p { margin: 0 0 var(--rt-space-4); }
p:last-child { margin-bottom: 0; }

code {
  font-family: var(--rt-font-mono);
  font-size: .9em;
  background: var(--rt-surface-2);
  padding: .1em .35em;
  border-radius: var(--rt-radius-sm);
}

/* ---------- Estructura ---------- */

.rt-shell {
  width: 100%;
  max-width: var(--rt-shell);
  margin-inline: auto;
  padding-inline: var(--rt-gutter);
}

.rt-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--rt-blue-600);
  color: var(--rt-text-invert);
  padding: var(--rt-space-3) var(--rt-space-5);
  z-index: var(--rt-z-overlay);
}
.rt-skip:focus { left: 0; }

/* ---------- Cabecera: marca, menú y barra fija ---------- */

.rt-masthead {
  position: sticky;
  top: 0;
  z-index: var(--rt-z-header);
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rt-border);
  transition: box-shadow var(--rt-dur) var(--rt-ease), background-color var(--rt-dur) var(--rt-ease);
}

/* Al bajar, la barra se afirma: fondo más sólido, sombra suave y marca más corta. */
.rt-masthead.is-condensed {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 14px 34px -26px rgba(19, 20, 40, .55);
}

.rt-masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--rt-space-3) var(--rt-space-6);
  padding-block: clamp(.65rem, .5rem + .6vw, 1.1rem);
  transition: padding var(--rt-dur) var(--rt-ease);
}

.rt-masthead.is-condensed .rt-masthead__inner { padding-block: .5rem; }

.rt-brand {
  display: flex;
  align-items: center;
  gap: var(--rt-space-4);
  flex: 0 0 auto;
  text-decoration: none;
}

.rt-brand__logo {
  height: clamp(2.05rem, 1.7rem + 1.3vw, 2.85rem);
  width: auto;
  transition: height var(--rt-dur) var(--rt-ease);
}

.rt-masthead.is-condensed .rt-brand__logo { height: 1.95rem; }

.rt-wordmark {
  font-family: var(--rt-font-display);
  font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--rt-blue-600);
  text-decoration: none;
  line-height: 1;
}
.rt-wordmark em { font-style: normal; color: var(--rt-accent); }
.rt-wordmark:hover { color: var(--rt-blue-700); }

.rt-brand__institution {
  padding-left: var(--rt-space-4);
  border-left: 1px solid var(--rt-border);
  font-size: var(--rt-fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--rt-text-soft);
  max-width: 13rem;
}

.rt-main { display: block; }

/* ---------- Portada de presentación (sin contenido publicado) ---------- */

.rt-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 130% at 8% 0%, rgba(136, 38, 75, .55) 0%, rgba(136, 38, 75, 0) 58%),
    linear-gradient(135deg, var(--rt-blue-800) 0%, var(--rt-blue-600) 55%, var(--rt-blue-700) 100%);
  color: var(--rt-text-invert);
  padding-block: clamp(3.4rem, 2.2rem + 7vw, 7rem);
  border-bottom: 3px solid var(--rt-highlight);
}

/* Resplandor suave del acento, para que el plano no se vea plano. */
.rt-hero::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -70%;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(closest-side, rgba(240, 202, 43, .22), rgba(240, 202, 43, 0));
  pointer-events: none;
}

.rt-eyebrow {
  margin: 0 0 var(--rt-space-5);
  font-size: var(--rt-fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--rt-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--rt-highlight);
}

.rt-hero__inner { position: relative; max-width: 62rem; }

.rt-hero__title {
  font-size: var(--rt-fs-display);
  line-height: var(--rt-lh-tight);
  margin-bottom: var(--rt-space-6);
  color: var(--rt-text-invert);
}

.rt-hero__deck {
  font-size: var(--rt-fs-lead);
  max-width: 54ch;
  color: var(--rt-blue-100);
  margin: 0;
}

.rt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rt-space-3);
  margin: var(--rt-space-8) 0 0;
}

/* ---------- Secciones ---------- */

.rt-section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }

.rt-section__head {
  border-bottom: 1px solid var(--rt-border-strong);
  padding-bottom: var(--rt-space-4);
  margin-bottom: var(--rt-space-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--rt-space-2) var(--rt-space-6);
  align-items: baseline;
  justify-content: space-between;
}

.rt-section__title { font-size: var(--rt-fs-h2); margin: 0; }
.rt-section__note { margin: 0; font-size: var(--rt-fs-sm); color: var(--rt-text-soft); }

/* ---------- Índice editorial ---------- */

.rt-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rt-border); }

.rt-index__item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--rt-space-5);
  padding-block: var(--rt-space-6);
  border-bottom: 1px solid var(--rt-border);
}

.rt-index__number {
  font-family: var(--rt-font-display);
  font-size: var(--rt-fs-h3);
  color: var(--rt-accent);
  line-height: 1;
}

.rt-index__name { font-size: var(--rt-fs-h3); margin: 0 0 var(--rt-space-2); }
.rt-index__summary { margin: 0; color: var(--rt-text-soft); max-width: var(--rt-max-read); }

/* ---------- Banda institucional ---------- */

.rt-institution {
  background: var(--rt-bg-soft);
  border-top: 1px solid var(--rt-border);
  border-bottom: 1px solid var(--rt-border);
  padding-block: var(--rt-space-10);
}

.rt-institution__line { margin: 0; font-size: var(--rt-fs-lead); max-width: 46ch; }
.rt-institution__line strong { color: var(--rt-blue-600); }

/* ---------- Pie de página ---------- */

.rt-footer {
  position: relative;
  margin-top: clamp(3rem, 2rem + 4vw, 6rem);
  padding-block: clamp(2.6rem, 2rem + 3vw, 4.25rem) 0;
  background:
    radial-gradient(95% 130% at 100% 0%, rgba(136, 38, 75, .45) 0%, rgba(136, 38, 75, 0) 62%),
    linear-gradient(160deg, var(--rt-blue-800), var(--rt-blue-900));
  color: var(--rt-blue-100);
  border-top: 3px solid var(--rt-highlight);
}

.rt-footer__inner {
  display: grid;
  gap: clamp(2rem, 1.6rem + 2vw, 3.25rem);
  grid-template-columns: 1fr;
}

.rt-footer__brand { max-width: 26rem; }

/* La marca sobre una placa blanca: se lee igual sobre el azul del pie. */
.rt-footer__logo {
  display: inline-block;
  padding: .8rem 1.05rem;
  background: var(--rt-white);
  border-radius: var(--rt-radius-lg);
  box-shadow: 0 20px 40px -30px rgba(0, 0, 0, .9);
}

.rt-footer__logo img { height: 2.2rem; width: auto; }

.rt-footer__tagline {
  margin: var(--rt-space-5) 0 var(--rt-space-3);
  font-size: var(--rt-fs-sm);
  color: var(--rt-blue-100);
}

.rt-footer__credit {
  margin: 0;
  font-size: var(--rt-fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rt-blue-300);
}

.rt-footer__title {
  margin: 0 0 var(--rt-space-4);
  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-highlight);
}

.rt-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--rt-space-2); }

.rt-footer__nav a {
  color: var(--rt-blue-100);
  text-decoration: none;
  transition: color var(--rt-dur-fast) var(--rt-ease);
}

.rt-footer__nav a:hover { color: var(--rt-white); text-decoration: underline; }

.rt-footer__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--rt-space-4); }
.rt-footer__facts li { display: grid; gap: .15rem; font-size: var(--rt-fs-sm); }

.rt-footer__fact-label {
  font-size: var(--rt-fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rt-blue-300);
}

.rt-footer__facts a { color: var(--rt-white); text-decoration: none; }
.rt-footer__facts a:hover { text-decoration: underline; }

.rt-footer__base {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.rt-footer__base .rt-shell {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rt-space-2) var(--rt-space-6);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--rt-space-5);
}

.rt-footer__base p { margin: 0; font-size: var(--rt-fs-xs); color: var(--rt-blue-300); }
.rt-footer__base-note { color: var(--rt-blue-200); }
.rt-footer a { color: var(--rt-white); }

/* ---------- Botones ---------- */

.rt-button {
  display: inline-flex;
  align-items: center;
  gap: var(--rt-space-2);
  padding: .72rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--rt-radius);
  font: inherit;
  font-size: var(--rt-fs-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--rt-dur) var(--rt-ease), color var(--rt-dur) var(--rt-ease),
              border-color var(--rt-dur) var(--rt-ease), transform var(--rt-dur-fast) var(--rt-ease);
}

.rt-button--primary { background: var(--rt-accent); color: var(--rt-text-invert); }
.rt-button--primary:hover { background: var(--rt-link-hover); color: var(--rt-text-invert); }
.rt-button--primary:active { transform: translateY(1px); }
.rt-button--highlight { background: var(--rt-highlight); color: var(--rt-blue-900); }
.rt-button--highlight:hover { background: var(--rt-yellow-300); color: var(--rt-blue-900); }
.rt-button--ghost { border-color: rgba(255, 255, 255, .5); color: var(--rt-text-invert); }
.rt-button--ghost:hover { border-color: var(--rt-white); background: rgba(255, 255, 255, .14); color: var(--rt-text-invert); }
.rt-button:disabled, .rt-button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* ---------- Página de mensajes ---------- */

.rt-message { padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
.rt-message__inner { max-width: 46rem; }
.rt-message__title { font-size: var(--rt-fs-h1); }
.rt-message__text { font-size: var(--rt-fs-lead); color: var(--rt-text-soft); }

.rt-message__detail {
  font-family: var(--rt-font-mono);
  font-size: var(--rt-fs-sm);
  background: var(--rt-surface-2);
  border-left: 3px solid var(--rt-accent);
  padding: var(--rt-space-4);
  overflow-wrap: anywhere;
}
.rt-message__actions { margin-top: var(--rt-space-8); }

/* ---------- Estados vacíos / etiquetas ---------- */

.rt-empty {
  border: 1px dashed var(--rt-border-strong);
  border-radius: var(--rt-radius);
  padding: var(--rt-space-6);
  color: var(--rt-text-soft);
  font-size: var(--rt-fs-sm);
}

.rt-tags { list-style: none; display: flex; flex-wrap: wrap; gap: var(--rt-space-2); margin: 0; padding: 0; }

.rt-tag {
  font-family: var(--rt-font-mono);
  font-size: var(--rt-fs-xs);
  background: var(--rt-surface-2);
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius-pill);
  padding: .2rem .6rem;
}

/* ---------- Artículo (vista previa editorial) ---------- */

.rt-previewbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--rt-space-4);
  padding: var(--rt-space-4) var(--rt-gutter);
  background: var(--rt-yellow-100);
  border-bottom: 2px solid var(--rt-yellow-500);
  font-size: var(--rt-fs-sm);
}

.rt-previewbar__text { margin: 0; display: flex; flex-wrap: wrap; gap: var(--rt-space-3); align-items: baseline; }
.rt-previewbar__text strong { letter-spacing: .06em; text-transform: uppercase; font-size: var(--rt-fs-xs); }
.rt-previewbar__text span { color: #6B5400; }

.rt-article { display: block; }

.rt-article__inner {
  max-width: 52rem;
  margin-inline: auto;
  padding-block: clamp(2rem, 1.4rem + 3vw, 4rem);
}

.rt-article__head { margin-bottom: var(--rt-space-8); }

.rt-article__title {
  font-size: var(--rt-fs-h1);
  line-height: var(--rt-lh-tight);
  margin-bottom: var(--rt-space-4);
}

.rt-article__deck {
  font-size: var(--rt-fs-lead);
  color: var(--rt-neutral-400);
  margin-bottom: var(--rt-space-5);
}

.rt-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rt-space-2) var(--rt-space-5);
  font-size: var(--rt-fs-sm);
  color: var(--rt-text-soft);
  margin-bottom: var(--rt-space-5);
}

.rt-tag--category {
  background: var(--rt-blue-50);
  border-color: var(--rt-blue-200);
  color: var(--rt-blue-700);
  font-family: var(--rt-font-text);
  font-weight: 600;
}

.rt-article__excerpt {
  font-size: var(--rt-fs-lead);
  border-left: 3px solid var(--rt-highlight);
  padding-left: var(--rt-space-5);
  margin-bottom: var(--rt-space-8);
}

.rt-article__media {
  background: var(--rt-surface-2);
  border-radius: var(--rt-radius);
  padding: var(--rt-space-4);
  font-size: var(--rt-fs-sm);
  overflow-wrap: anywhere;
}

.rt-article__foot {
  margin-top: var(--rt-space-10);
  padding-top: var(--rt-space-5);
  border-top: 1px solid var(--rt-border);
  font-size: var(--rt-fs-sm);
  color: var(--rt-text-soft);
}

/* ---------- Prosa (contenido largo) ---------- */

.rt-prose {
  font-size: var(--rt-fs-body);
  line-height: var(--rt-lh-body);
  max-width: var(--rt-measure);
}

.rt-prose > p:first-child { font-size: var(--rt-fs-lead); }

.rt-prose h2 { font-size: var(--rt-fs-h2); margin-top: var(--rt-space-12); }
.rt-prose h3 { font-size: var(--rt-fs-h3); margin-top: var(--rt-space-8); }

.rt-prose blockquote {
  margin: var(--rt-space-8) 0;
  padding-left: var(--rt-space-5);
  border-left: 3px solid var(--rt-accent);
  font-family: var(--rt-font-display);
  font-size: var(--rt-fs-h3);
  color: var(--rt-blue-700);
}

.rt-prose ul, .rt-prose ol { padding-left: var(--rt-space-6); margin-bottom: var(--rt-space-5); }
.rt-prose li { margin-bottom: var(--rt-space-2); }
.rt-prose hr { border: 0; border-top: 1px solid var(--rt-border-strong); margin: var(--rt-space-10) 0; }

.rt-prose img { margin-block: var(--rt-space-6); border-radius: var(--rt-radius); }

.rt-prose pre {
  background: var(--rt-blue-900);
  color: var(--rt-blue-100);
  padding: var(--rt-space-5);
  border-radius: var(--rt-radius);
  overflow-x: auto;
  font-size: var(--rt-fs-sm);
}

.rt-prose pre code { background: transparent; color: inherit; padding: 0; }

/* ---------- Utilidades ---------- */

.rt-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Aparición suave al bajar (la activa site.js) ---------- */

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

html[data-js="on"] [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

html[data-js="on"] [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--rt-dur-slow) var(--rt-ease) var(--rt-delay, 0ms),
    transform var(--rt-dur-slow) var(--rt-ease) var(--rt-delay, 0ms);
}

/* ---------- Responsive ---------- */

@media (min-width: 48rem) {
  .rt-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 62rem) {
  .rt-footer__inner { grid-template-columns: 1.35fr .85fr 1fr; }
  .rt-index { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--rt-space-12); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  html[data-js="on"] [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .rt-masthead, .rt-footer, .rt-skip { display: none; }
  body { color: #000; }
}

/* ==============================================================
   Modernización · capa de acabado
   Los nombres de clase no cambian: esta capa reescribe el aspecto
   (radios, sombras, degradados, estados e iconos) sin tocar el
   marcado de las vistas. Iconos: Lucide, el heredero mantenido de
   Feather Icons (mismo trazo, mismo tamaño de 24 px).
   ============================================================== */

/* ---------- Iconos ---------- */

svg.lucide,
.rt-icon svg {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -.14em;
  flex: 0 0 auto;
}

.rt-icon { display: inline-flex; align-items: center; justify-content: center; }
.rt-button svg.lucide { width: 1.05em; height: 1.05em; }

/* ---------- Tipografía ---------- */

h1, h2, h3, h4 { letter-spacing: var(--rt-tracking-tight); color: var(--rt-ink); }
.rt-prose blockquote, .rt-review__comment { font-family: var(--rt-font-serif); }

/* ---------- Botones ---------- */

.rt-button {
  padding: .78rem 1.5rem;
  border-radius: var(--rt-radius-pill);
  font-weight: 600;
  box-shadow: var(--rt-shadow-1);
}

.rt-button--primary { background: var(--rt-gradient-brand); }
.rt-button--primary:hover {
  background: var(--rt-gradient-brand);
  filter: brightness(1.07);
  box-shadow: 0 14px 26px -16px rgba(194, 35, 99, .75);
}

.rt-button--highlight { box-shadow: 0 14px 26px -18px rgba(201, 163, 24, .8); }

.rt-button--outline { background: var(--rt-white); border-color: var(--rt-border-strong); color: var(--rt-ink); }
.rt-button--outline:hover { border-color: var(--rt-accent); color: var(--rt-accent); background: var(--rt-accent-soft); }

/* ---------- Cabecera ---------- */

.rt-masthead { box-shadow: 0 1px 0 rgba(18, 18, 42, .02); }
.rt-masthead__inner { gap: var(--rt-space-3) var(--rt-space-5); }
.rt-brand__logo { height: clamp(2.15rem, 1.8rem + 1.4vw, 2.9rem); }
.rt-brand__institution { max-width: 12rem; }

.rt-nav__link {
  position: relative;
  padding: .55rem .85rem;
  letter-spacing: .08em;
  color: var(--rt-blue-700);
}

.rt-nav__link:hover { background: var(--rt-accent-soft); color: var(--rt-accent); }
.rt-nav__link.is-active { background: transparent; color: var(--rt-accent); }

/* Sección activa: subrayado corto, como en la referencia de diseño. */
.rt-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: -.2rem;
  height: 3px;
  border-radius: var(--rt-radius-pill);
  background: var(--rt-accent);
}

.rt-nav__link.is-active:hover { background: var(--rt-accent-soft); color: var(--rt-accent); }
.rt-nav__search:hover { background: var(--rt-accent); }
.rt-nav__cta { padding: .62rem 1.15rem; box-shadow: 0 12px 24px -16px rgba(194, 35, 99, .8); }
.rt-navtoggle { border-radius: var(--rt-radius-pill); }
.rt-navtoggle[aria-expanded="true"] { background: var(--rt-accent); border-color: var(--rt-accent); }

/* ---------- Pie de página ---------- */

.rt-footer { border-top: 0; background: var(--rt-gradient-foot); }

/* Filete de marca: magenta a ámbar, como el degradado del logotipo. */
.rt-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--rt-magenta-600) 0%, var(--rt-magenta-500) 45%, var(--rt-yellow-500) 100%);
}

.rt-footer__inner { gap: clamp(1.75rem, 1.2rem + 2.4vw, 3.5rem); }
.rt-footer__logo { padding: .7rem 1rem; border-radius: var(--rt-radius); }
.rt-footer__logo img { height: 2rem; }
.rt-footer__tagline { max-width: 32ch; }
.rt-footer__title { color: var(--rt-white); letter-spacing: .14em; }
.rt-footer__nav li { font-size: var(--rt-fs-sm); }

/* Redes: marcas de Feather (Lucide retiró los logotipos en su versión 1). */
.rt-footer__socials { list-style: none; display: flex; gap: var(--rt-space-2); margin: var(--rt-space-5) 0 0; padding: 0; }

.rt-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .10);
  color: var(--rt-white);
  transition: background-color var(--rt-dur) var(--rt-ease), transform var(--rt-dur-fast) var(--rt-ease);
}

.rt-footer__socials a:hover { background: var(--rt-accent); transform: translateY(-2px); }
.rt-footer__socials svg { width: 1.05rem; height: 1.05rem; }

.rt-footer__facts li { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .6rem; }
.rt-footer__fact-body { display: grid; gap: .12rem; }
.rt-footer__fact-icon { display: inline-flex; color: var(--rt-highlight); margin-top: .12rem; }
.rt-footer__fact-icon svg { width: 1.05rem; height: 1.05rem; }

.rt-footer__subscribe { display: grid; gap: var(--rt-space-3); align-content: start; }
.rt-footer__subscribe-note { margin: 0; font-size: var(--rt-fs-sm); color: var(--rt-blue-100); }
.rt-footer__subscribe .rt-button { justify-content: center; }
.rt-footer__base p a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); }

/* ---------- Portada de presentación sin contenido ---------- */

.rt-hero {
  background:
    radial-gradient(120% 130% at 8% 0%, rgba(194, 35, 99, .55) 0%, rgba(194, 35, 99, 0) 58%),
    var(--rt-gradient-deep);
  border-bottom: 0;
  border-radius: 0 0 var(--rt-radius-2xl) var(--rt-radius-2xl);
}

.rt-eyebrow { letter-spacing: .16em; }

/* ---------- Estados vacíos, etiquetas y avisos ---------- */

.rt-empty {
  border: 1px dashed var(--rt-border-strong);
  border-radius: var(--rt-radius-lg);
  background: var(--rt-bg-soft);
  padding: var(--rt-space-8) var(--rt-space-6);
  text-align: center;
}

.rt-tag { background: var(--rt-blue-50); border-color: var(--rt-blue-200); color: var(--rt-blue-700); }

/* Los avisos viven aquí porque los usan el sitio y el panel por igual. */
.rt-flash-stack { display: flex; flex-direction: column; gap: var(--rt-space-2); margin-bottom: var(--rt-space-6); }

.rt-flash {
  display: flex;
  align-items: flex-start;
  gap: var(--rt-space-3);
  padding: .85rem 1.05rem;
  border: 1px solid var(--rt-border);
  border-left: 4px solid var(--rt-blue-400);
  border-radius: var(--rt-radius);
  background: var(--rt-blue-50);
  color: var(--rt-blue-700);
  font-size: var(--rt-fs-sm);
  box-shadow: var(--rt-shadow-1);
}

.rt-flash__icon { display: inline-flex; margin-top: .1rem; }
.rt-flash__icon svg.lucide { width: 1.15rem; height: 1.15rem; }
.rt-flash__text { flex: 1 1 auto; }

.rt-flash__close {
  border: 0;
  background: transparent;
  border-radius: 50%;
  width: 1.6rem;
  height: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: .65;
}

.rt-flash__close:hover { opacity: 1; background: rgba(0, 0, 0, .06); }
.rt-flash--ok { border-color: #BFE3CE; border-left-color: #1F7A4D; background: #E9F7EF; color: #14512F; }
.rt-flash--danger { border-color: #F3C9D8; border-left-color: var(--rt-magenta-700); background: #FDF0F5; color: #5B1730; }
.rt-flash--warn { border-color: var(--rt-yellow-300); border-left-color: var(--rt-yellow-600); background: var(--rt-yellow-100); color: #6B5400; }
.rt-flash--info { border-color: var(--rt-blue-200); border-left-color: var(--rt-blue-500); background: var(--rt-blue-50); color: var(--rt-blue-700); }

/* ---------- Contenido largo ---------- */

.rt-article__title { font-weight: 800; }
.rt-article__excerpt {
  font-family: var(--rt-font-serif);
  border-left: 4px solid var(--rt-highlight);
  border-radius: 0 var(--rt-radius) var(--rt-radius) 0;
  background: var(--rt-yellow-100);
  padding: var(--rt-space-5) var(--rt-space-6);
}
.rt-article__media, .rt-article__facts { border-radius: var(--rt-radius-lg); }
.rt-article__facts { border-left: 4px solid var(--rt-accent); background: var(--rt-bg-soft); }
.rt-prose img { border-radius: var(--rt-radius-lg); }
.rt-prose pre { border-radius: var(--rt-radius); }
.rt-prose blockquote { border-left-width: 4px; }

/* ---------- Salto al contenido y foco ---------- */

.rt-skip { background: var(--rt-accent); border-radius: 0 0 var(--rt-radius) 0; }
:focus-visible { outline-color: var(--rt-focus); }

/* ---------- Rejilla del pie (cuatro columnas en pantallas anchas) ---------- */

@media (min-width: 48rem) {
  .rt-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 62rem) {
  .rt-footer__inner { grid-template-columns: 1.35fr .8fr 1fr 1.05fr; }
}
