/* Entre Redes: la revista mensual de las inferiores (versión de prueba).
   Una sola grilla (.wrap), el mismo aire en todas las secciones, fondo blanco
   y una línea azul fina entre secciones, como velez.com.ar. La tipografía del
   manual del club es Gotham (paga): se usa Montserrat, la libre más parecida,
   en Black para los títulos (Gotham Ultra) y Regular para el texto (Gotham Book). */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../fonts/montserrat-latin.woff2) format("woff2");
}

:root {
  /* Paleta del Manual de marca CAVS 2025: azul, naranja (la estrella), rojo y
     verde, con sus tintes al 80, 60, 40 y 20 %. Para el texto, el negro y el
     gris que el manual usa en las versiones a un color y en grises. */
  --cavs-azul: #0063a8;
  --cavs-azul-rgb: 0, 99, 168;
  --cavs-azul-80: #3382b9;
  --cavs-azul-20: #cce0ee;
  --cavs-naranja: #f9a54f;
  --cavs-naranja-20: #feeddc;
  --cavs-rojo: #ed1c24;
  --cavs-verde: #00a550;
  --cavs-negro: #231f20;
  --cavs-gris: #58595b;

  --rv-azul-noche: var(--cavs-azul);
  --rv-oro: var(--cavs-naranja);
  --rv-oro-texto: var(--cavs-negro);
  --rv-naranja-suave: var(--cavs-naranja-20);
  --rv-aire: 56px;
}

/* La revista usa solo los colores del manual: los tokens del portal se
   redefinen dentro de ella (el menú y el pie siguen como en todo el portal). */
.rv,
.revista-prueba {
  --blue: var(--cavs-azul);
  --blue-rgb: var(--cavs-azul-rgb);
  --blue-dark: var(--cavs-azul);
  --blue-dark-rgb: var(--cavs-azul-rgb);
  --blue-soft: var(--cavs-azul-20);
  --text: var(--cavs-negro);
  --muted: var(--cavs-gris);
  --line: var(--cavs-azul-20);
}
.rv {
  background: #fff;
  color: var(--text);
  font-family: "Montserrat", "Archivo", system-ui, sans-serif;
}

.revista-prueba {
  padding: 10px 0;
  background: var(--cavs-naranja-20);
  border-bottom: 1px solid var(--cavs-naranja);
  color: var(--cavs-negro);
  font-size: 0.9rem;
}

/* ---------- Portada ---------- */
.rv-portada {
  padding: 32px 0 var(--rv-aire);
  background: linear-gradient(160deg, var(--blue-dark) 0%, var(--rv-azul-noche) 100%);
  color: #fff;
}
.rv-portada-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
}
.rv-marca p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.02rem;
  font-weight: 600;
}
.rv-folio {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 0;
  text-align: right;
  line-height: 1.1;
}
.rv-folio span {
  color: #cce0ee;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.rv-folio strong {
  font-family: "Montserrat", "Archivo", sans-serif;
  font-weight: 900;
  font-size: 4.2rem;
  line-height: 0.85;
}
.rv-portada-foto {
  margin: 28px 0 0;
}
.rv-portada-foto img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.rv-portada-texto {
  max-width: 820px;
  margin-top: 26px;
}
.rv-portada-texto h1 {
  /* Aire arriba: los acentos de las mayúsculas (LLEGÓ) no deben tocar el antetítulo. */
  margin: 0 0 12px;
  padding-top: 0.2em;
  font-family: "Montserrat", "Archivo", sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.rv-portada-texto > p:not(.rv-kicker) {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
  line-height: 1.6;
}

/* Aviso de la tapa: el evento que pide una acción, en blanco sobre el azul. */
.rv-portada-texto > p.rv-portada-aviso {
  margin: 22px 0 0;
  font-size: 1rem;
}
.rv-portada-aviso a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.rv-portada-aviso a:hover,
.rv-portada-aviso a:focus-visible {
  background: var(--cavs-azul-20);
}
@media print {
  .rv-portada-aviso {
    display: none;
  }
}

/* Botones sobre fondo oscuro */
.rv-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.rv-btn-claro {
  background: #fff;
  color: var(--blue-dark);
}
.rv-btn-borde {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
}

/* ---------- Qué es y sumario ---------- */
.rv-intro {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.rv-sumario {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rv-sumario a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.rv-sumario a:hover {
  border-color: var(--blue);
}

.rv-datos {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
}
.rv-datos strong {
  color: var(--blue-dark);
}

/* Los saltos del sumario y del botón "Índice" no quedan tapados por el menú fijo. */
.rv-seccion,
.rv-intro {
  scroll-margin-top: 90px;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Botón flotante "↑ Índice": aparece después del sumario (lo maneja entre-redes.js). */
.rv-arriba {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--blue-dark);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(var(--cavs-azul-rgb), 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.rv-arriba.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.rv-arriba:hover,
.rv-arriba:focus-visible {
  background: var(--blue);
}
@media (prefers-reduced-motion: reduce) {
  .rv-arriba {
    transition: none;
  }
}

/* ---------- Secciones: mismo aire arriba y abajo, fondos alternados ---------- */
.rv-seccion {
  padding: var(--rv-aire) 0;
  background: var(--paper);
}
.rv-alt {
  background: var(--paper);
}
.rv-seccion + .rv-seccion {
  border-top: 1px solid var(--cavs-azul-20);
}
.rv-cab {
  margin-bottom: 22px;
}
.rv-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 6px;
}
.rv-kicker > span:first-child {
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.rv-kicker-claro > span:first-child {
  color: #cce0ee;
}
.rv-solo {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: italic;
  font-weight: 700;
}
.rv-cab h1,
.rv-cab h2 {
  margin: 0;
  padding-top: 0.12em;
  font-family: "Montserrat", "Archivo", sans-serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 4.4vw, 2.3rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.rv-bajada {
  max-width: 760px;
  margin: -8px 0 22px;
  color: var(--muted);
}
.rv-texto {
  max-width: 760px;
}
.rv-texto p {
  margin: 0 0 14px;
  font-size: 1.08rem;
  line-height: 1.7;
}
.rv-subtitulo {
  margin: 36px 0 14px;
  font-size: 1.15rem;
  color: var(--blue-dark);
}

/* ---------- Tira por tira: tarjetas parejas ---------- */
.rv-tiras {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rv-tira {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 18px 18px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--text);
  text-decoration: none;
}
.rv-tira::after {
  content: "→";
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: var(--blue);
  font-weight: 800;
}
.rv-tira:hover {
  border-color: var(--blue);
}
.rv-tira-meta {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rv-tira strong {
  font-family: "Montserrat", "Archivo", sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.rv-tira-texto {
  line-height: 1.5;
}
.rv-campeon {
  align-self: flex-start;
  order: -1;
  margin-bottom: 2px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--rv-oro);
  color: var(--rv-oro-texto);
  font-size: 0.75rem;
  font-weight: 800;
}

/* ---------- Historias ---------- */
.rv-historias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.rv-historia {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.rv-historia img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.rv-historia > div {
  padding: 18px 20px 20px;
}
.rv-historia h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--blue-dark);
}
.rv-historia p {
  margin: 0 0 12px;
  line-height: 1.6;
}
.rv-historia a {
  font-weight: 700;
  color: var(--blue);
}
/* Una sola historia: foto al costado, para que no le gane en peso a la tapa. */
@media (min-width: 821px) {
  .rv-historia:only-child {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
  }
  .rv-historia:only-child img {
    height: 100%;
  }
  .rv-historia:only-child > div {
    padding: 24px 28px;
  }
}

/* ---------- Voces del club: nota de un profesional ---------- */
.rv-voces {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.rv-autor {
  position: sticky;
  top: 96px;
  text-align: center;
}
.rv-autor img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto 12px;
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(var(--cavs-azul-rgb), 0.18);
}
.rv-autor p {
  margin: 0 0 4px;
}
.rv-autor-nombre {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--blue-dark);
}
.rv-autor-rol {
  color: var(--muted);
}
.rv-autor a {
  font-weight: 700;
  color: var(--blue);
}
.rv-articulo h2,
.rv-articulo h3 {
  margin: 30px 0 10px;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--blue-dark);
}
.rv-articulo h2:first-child,
.rv-articulo h3:first-child {
  margin-top: 0;
}
.rv-articulo ul {
  margin: 0 0 16px;
  padding-left: 1.3em;
}
.rv-articulo li {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.6;
}
.rv-articulo strong {
  color: var(--blue-dark);
}
.rv-seguir {
  margin: 4px 0 8px;
}
.rv-articulo-resto.is-cerrado {
  display: none;
}
.rv-articulo .rv-mas {
  margin-top: 22px;
}

/* ---------- Nota de Voces del club en su página ---------- */
.rv-volver {
  margin: 0 0 18px;
  font-weight: 700;
}
.rv-volver a {
  color: var(--blue);
}
.rv-acciones-nota {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.rv-aclaracion {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.rv-texto .rv-aclaracion {
  font-size: 0.95rem;
}
@media (max-width: 820px) {
  .rv-voces {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .rv-autor {
    position: static;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    align-items: center;
    text-align: left;
  }
  .rv-autor img {
    margin: 0;
  }
}

/* ---------- Las que egresan: las que terminan su etapa en las inferiores ---------- */
/* Va dentro de "Historias", antes de las historias, separado por una línea. */
.rv-egresan {
  margin: 8px 0 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.rv-egresan .rv-subtitulo {
  margin: 4px 0 8px;
  font-size: 1.5rem;
  line-height: 1.25;
}
.rv-despedidas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.rv-despedida {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.rv-despedida img,
.rv-despedida-numero {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
}
.rv-despedida img {
  height: auto;
  object-fit: cover;
  object-position: center top;
}
/* Sin foto: el número de camiseta, como en la espalda. */
.rv-despedida-numero {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--blue-dark) 0%, var(--rv-azul-noche) 100%);
  color: #fff;
  font-family: "Montserrat", "Archivo", sans-serif;
  font-weight: 900;
  font-size: 4.2rem;
  line-height: 1;
}
.rv-despedida h4 {
  margin: 0 0 2px;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--blue-dark);
}
.rv-despedida-rol {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}
.rv-despedida blockquote {
  margin: 0 0 12px;
  padding-left: 14px;
  border-left: 3px solid var(--blue);
}
.rv-despedida blockquote p {
  margin: 0;
  font-style: italic;
  line-height: 1.6;
}
.rv-despedida a {
  font-weight: 700;
  color: var(--blue);
}
@media (max-width: 480px) {
  .rv-despedida {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }
  .rv-despedida-numero {
    font-size: 3rem;
  }
}

/* La nota completa, en su página */
.rv-despedidas-intro,
.rv-despedidas-cierre,
.rv-despedida-nota {
  max-width: 760px;
}
.rv-despedidas-intro p:first-child {
  font-size: 1.15rem;
}
.rv-despedida-nota {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.rv-despedida-nota h2 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--blue-dark);
}
.rv-despedida-nota .rv-despedida-rol {
  margin: 4px 0 18px;
}
.rv-despedida-fotos {
  margin: 0 0 22px;
}
.rv-despedida-fotos--par {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 12px;
  align-items: end;
}
.rv-despedida-fotos--iguales {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.rv-despedida-foto {
  margin: 0;
}
.rv-despedida-foto img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.rv-despedida-foto figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}
.rv-despedida-texto {
  margin: 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--blue);
}
.rv-despedida-texto p {
  margin: 0 0 14px;
  font-size: 1.08rem;
  line-height: 1.7;
}
.rv-despedida-texto p:last-child {
  margin-bottom: 0;
}
.rv-despedidas-cierre {
  margin-top: 40px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--blue-soft);
}
.rv-despedidas-cierre p {
  margin: 0;
  font-weight: 700;
  color: var(--blue-dark);
}
@media (max-width: 620px) {
  .rv-despedida-fotos--par {
    grid-template-columns: 1fr;
  }
  /* Dos verticales iguales: lado a lado también en el celular. */
  .rv-despedida-fotos--iguales {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .rv-despedida-texto {
    padding-left: 14px;
  }
}
@media print {
  .rv-despedida,
  .rv-despedida-foto {
    break-inside: avoid;
  }
  .rv-despedida-fotos--par {
    grid-template-columns: 5cm 7cm;
  }
}

/* ---------- Se viene: el evento del mes (Voley Fest) ---------- */
/* Como los destacados de la home del portal y de velez.com.ar: una sola caja
   azul lisa, con el texto en blanco y los datos clave en tarjetas blancas. */
.rv-fiesta-caja {
  padding: 34px 34px 30px;
  border-radius: 24px;
  background: var(--blue);
  color: #fff;
}
.rv-fiesta-caja .rv-cab h2 {
  color: #fff;
}
.rv-fiesta-intro {
  max-width: 760px;
  margin: 0 0 22px;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.65;
}
.rv-fiesta-datos {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  gap: 12px;
  margin: 0 0 26px;
}
.rv-fiesta-datos > div {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  color: var(--text);
}
.rv-fiesta-datos dt {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.rv-fiesta-datos dd {
  margin: 0;
  line-height: 1.5;
}
.rv-fiesta-sub {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.05rem;
}
.rv-fiesta-programa {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.rv-fiesta-programa li {
  position: relative;
  padding-left: 20px;
  line-height: 1.5;
}
.rv-fiesta-programa li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}
.rv-fiesta-nota {
  margin: 0 0 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 700;
}
@media (max-width: 820px) {
  .rv-fiesta-caja {
    padding: 24px 18px 22px;
  }
  .rv-fiesta-datos,
  .rv-fiesta-programa {
    grid-template-columns: 1fr;
  }
}
@media print {
  .rv-fiesta-caja {
    padding: 0;
    background: none;
    color: #000;
  }
  .rv-fiesta-caja .rv-cab h2,
  .rv-fiesta-intro,
  .rv-fiesta-sub,
  .rv-fiesta-nota {
    color: #000;
  }
  .rv-fiesta-datos > div {
    border: 1px solid #000;
  }
  .rv-fiesta-programa li::before {
    background: #000;
  }
  .rv-fiesta .rv-acciones {
    display: none;
  }
}

/* ---------- Vida de club ---------- */
.rv-notas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.rv-nota {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--text);
  line-height: 1.5;
  text-decoration: none;
}
.rv-nota:hover {
  border-color: var(--blue);
}
.rv-icono {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}
.rv-icono svg {
  display: block;
  width: 24px;
  height: 24px;
}
.rv-nota strong {
  color: var(--blue-dark);
  font-size: 1.05rem;
}
.rv-gracias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rv-gracias li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  line-height: 1.45;
}
/* Todos los logos en el mismo contenedor redondo y blanco */
.rv-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
}
.rv-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

/* ---------- Si te lo perdiste: lista con flecha ---------- */
.rv-lista {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.rv-lista li {
  border-bottom: 1px solid var(--line);
}
.rv-lista a {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 14px 36px 14px 4px;
  color: var(--text);
  text-decoration: none;
}
.rv-lista a::after {
  content: "→";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  font-weight: 800;
}
.rv-lista strong {
  color: var(--blue);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rv-lista span {
  font-size: 1.02rem;
  line-height: 1.5;
}
.rv-lista a:hover span {
  text-decoration: underline;
}

/* ---------- Para agendar: como un calendario ---------- */
.rv-agenda {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.rv-agenda li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--paper);
  line-height: 1.45;
}
.rv-fecha {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 82px;
  padding: 8px 6px;
  border-radius: 14px;
  background: var(--blue-dark);
  color: #cce0ee;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.rv-fecha strong {
  font-family: "Montserrat", "Archivo", sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
}
.rv-mas {
  margin: 0;
}

/* ---------- Cierre ---------- */
.rv-cierre {
  padding: var(--rv-aire) 0;
  background: linear-gradient(160deg, var(--blue-dark) 0%, var(--rv-azul-noche) 100%);
  color: #fff;
}
.rv-cierre p {
  margin: 16px 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}
.rv-cierre .rv-staff {
  max-width: 640px;
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  line-height: 1.55;
}
.rv-cierre .rv-staff a {
  color: #fff;
}
.rv-tira-mas {
  border-style: dashed;
  background: transparent;
}
.rv-cierre .rv-pedido {
  margin: 22px 0 0;
}
.rv-cierre .rv-pedido a {
  color: #fff;
}
.rv-cierre .rv-proximo {
  margin: 22px 0 0;
  font-weight: 700;
}

.rv-pie-tiras {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Compu ancha: foto a la izquierda y el titular a la derecha, dentro de la franja */
@media (min-width: 1000px) {
  .rv-portada .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    column-gap: 36px;
    align-items: end;
  }
  .rv-portada-top {
    grid-column: 1 / -1;
  }
  .rv-portada-texto {
    margin-top: 0;
  }
  .rv-portada-texto h1 {
    font-size: clamp(2.4rem, 3.2vw, 3rem);
  }
}

/* ---------- Celular ---------- */
@media (max-width: 620px) {
  :root {
    --rv-aire: 40px;
  }
  .rv-portada {
    padding-top: 22px;
  }
  .rv-portada-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .rv-folio {
    text-align: left;
  }
  .rv-folio strong {
    font-size: 3rem;
  }
  .rv-portada-foto {
    margin-top: 20px;
  }
}


@media (max-width: 620px) {
  .rv-tiras {
    gap: 10px;
  }
  .rv-tira {
    padding: 14px 40px 14px 16px;
  }
  .rv-tira::after {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
}

/* La foto del mes: foto grande y su historia al lado (apiladas en el celular) */
.rv-foto-mes {
  background: var(--paper);
  color: var(--text);
}
.rv-foto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: center;
}
.rv-foto {
  margin: 0;
}
.rv-foto {
  justify-self: center;
}
.rv-foto img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 620px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(var(--cavs-azul-rgb), 0.18);
}
/* Foto horizontal: a todo el ancho, arriba del texto. */
.rv-foto-grid--ancha {
  grid-template-columns: 1fr;
  gap: 26px;
}
.rv-foto-grid--ancha .rv-foto {
  justify-self: stretch;
}
.rv-foto-grid--ancha .rv-foto img {
  width: 100%;
  max-height: none;
}
.rv-foto-grid--ancha .rv-foto-texto {
  max-width: 820px;
}
.rv-foto-mes .rv-kicker > span:first-child {
  color: var(--blue);
}
.rv-foto-mes .rv-cab h2 {
  color: var(--blue);
}
.rv-foto-texto p {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.65;
}
.rv-foto-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 8px;
}
.rv-foto-links a {
  color: var(--blue);
  font-weight: 800;
}
@media (max-width: 820px) {
  .rv-foto-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .rv-foto img {
    max-height: 520px;
    margin: 0 auto;
    width: auto;
    max-width: 100%;
  }
}

/* Portal o revista: qué es cada cosa (número 1) */
.rv-que-es {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 900px;
  margin: 8px 0 22px;
}
.rv-que-es > div {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--blue-soft);
}
.rv-que-es > div:last-child {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: #fff;
}
.rv-que-es p {
  margin: 0 0 8px;
  line-height: 1.55;
}
.rv-que-es-titulo {
  font-family: "Montserrat", "Archivo", sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.rv-que-es > div:last-child .rv-que-es-titulo {
  color: #fff;
}
.rv-que-es-cuando {
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.rv-que-es > div:last-child .rv-que-es-cuando {
  color: #cce0ee;
}
.rv-que-es a {
  font-weight: 800;
  color: var(--blue);
}
@media (max-width: 620px) {
  .rv-que-es {
    grid-template-columns: 1fr;
  }
}

/* ---------- El tema del mes: la nota de tapa, después de "Qué es" ---------- */
.rv-nota-mes {
  display: grid;
  gap: 20px;
  align-items: center;
}
.rv-nota-mes img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.rv-nota-mes .rv-texto p:last-child {
  margin-bottom: 0;
}
.rv-nota-mes-foto {
  margin: 0;
}
.rv-nota-mes-foto figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}
/* Con destacados, al costado de la foto va solo la bajada, en grande. */
.rv-nota-mes-bajada p {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--blue-dark);
}
.rv-tiras-tapa {
  margin-top: 26px;
}
@media (min-width: 860px) {
  .rv-tiras-tapa {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  /* Con cuatro destacados, 2 × 2: así ninguno queda solo en una fila */
  .rv-tiras-tapa:has(> li:nth-child(4)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 860px) {
  .rv-nota-mes {
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
  }
}


/* Tapa del primer número: el logo grande, sin fotos. */
.rv-portada-logo {
  display: flex;
  justify-content: center;
  margin: 28px 0 0;
}
.rv-portada-logo img {
  display: block;
  width: min(560px, 100%);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}

/* ---------- PDF ("Guardar en PDF") ----------
   Fondo blanco y texto oscuro: los navegadores no imprimen los fondos, así que
   las cajas oscuras pasan a blanco con borde. Fotos más chicas y títulos pegados
   a su contenido, para que no queden solos al pie de una hoja. */
@media print {
  @page {
    margin: 14mm 12mm;
  }
  .site-header,
  .site-footer,
  .skip-link,
  .revista-prueba,
  .rv-sumario,
  .rv-acciones,
  .rv-mas,
  .rv-cierre,
  .rv-icono,
  .rv-tira::after,
  .rv-lista a::after {
    display: none !important;
  }
  body {
    background: #fff;
    font-size: 11pt;
  }
  .wrap {
    width: 100%;
    max-width: none;
    padding: 0;
  }
  .rv-portada,
  .rv-alt,
  .rv-foto-mes {
    background: none !important;
    color: var(--blue-dark);
  }
  .rv-portada {
    padding: 0 0 10mm;
  }
  .rv-portada .wrap {
    display: block;
  }
  .rv-portada-logo img {
    width: 9cm;
    filter: none;
  }
  .rv-portada-texto {
    max-width: none;
    text-align: center;
  }
  .rv-portada-texto .rv-kicker {
    justify-content: center;
  }
  .rv-portada-texto h1 {
    font-size: 30pt;
  }
  .rv-portada-texto > p:not(.rv-kicker),
  .rv-marca p,
  .rv-folio span,
  .rv-folio strong,
  .rv-kicker-claro > span:first-child,
  .rv-foto-mes .rv-kicker > span:first-child,
  .rv-foto-mes .rv-cab h2,
  .rv-foto-texto p,
  .rv-foto-links a {
    color: var(--blue-dark) !important;
  }
  .rv-seccion {
    padding: 6mm 0;
  }
  .rv-cab,
  .rv-cab + .rv-bajada,
  h2,
  h3 {
    break-after: avoid;
  }
  .rv-cab,
  .rv-bajada {
    break-inside: avoid;
  }
  .rv-volver,
  .rv-acciones-nota,
  .rv-articulo .rv-mas {
    display: none;
  }
  .rv-cab h1,
  .rv-cab h2 {
    font-size: 20pt;
  }
  .rv-tira,
  .rv-historia,
  .rv-nota,
  .rv-gracias li,
  .rv-agenda li,
  .rv-lista li,
  .rv-que-es > div,
  .rv-nota-mes,
  .rv-foto-grid:not(.rv-foto-grid--ancha),
  .rv-foto {
    break-inside: avoid;
  }
  /* "Qué es": las dos cajas, blancas con borde. */
  .rv-que-es > div,
  .rv-que-es > div:last-child {
    border: 1px solid var(--blue-dark);
    background: #fff;
    color: var(--blue-dark);
  }
  .rv-que-es > div:last-child .rv-que-es-titulo,
  .rv-que-es > div:last-child .rv-que-es-cuando {
    color: var(--blue-dark);
  }
  /* Fotos de tamaño razonable, enteras. */
  .rv-nota-mes {
    grid-template-columns: 7cm 1fr;
    gap: 6mm;
  }
  .rv-nota-mes img {
    max-height: 6cm;
    object-fit: contain;
  }
  .rv-foto-grid {
    grid-template-columns: 6cm 1fr;
    gap: 6mm;
  }
  .rv-foto img {
    max-height: 8cm;
    box-shadow: none;
  }
  /* En papel, la foto horizontal va al costado del texto: ocupa menos alto. */
  .rv-foto-grid--ancha {
    grid-template-columns: 8cm 1fr;
  }
  .rv-foto-grid--ancha .rv-foto img {
    width: 100%;
    max-height: none;
  }
  .rv-historia img {
    max-height: 4.5cm;
  }
  .rv-arriba,
  .rv-seguir {
    display: none !important;
  }
  .rv-articulo-resto.is-cerrado {
    display: block;
  }
  .rv-voces {
    display: block;
  }
  .rv-voces::after {
    content: "";
    display: block;
    clear: both;
  }
  .rv-autor {
    position: static;
    display: block;
    float: left;
    width: 3.2cm;
    margin: 0 6mm 3mm 0;
    text-align: center;
    font-size: 8.5pt;
  }
  .rv-articulo ul {
    overflow: hidden;
  }
  .rv-autor img {
    width: 100%;
    max-height: none;
    margin: 0 auto 2mm;
    box-shadow: none;
  }
  .rv-articulo h2,
  .rv-articulo h3 {
    margin: 3mm 0 1.5mm;
  }
  .rv-articulo p {
    margin: 0 0 1.5mm;
  }
  .rv-articulo ul {
    margin: 0 0 2mm;
  }
  .rv-articulo li {
    margin: 0 0 0.5mm;
  }
  /* Los botones se leen como links. */
  .btn {
    padding: 0;
    border: 0;
    background: none !important;
    color: var(--blue) !important;
    box-shadow: none;
  }
  .rv-fecha {
    border: 1px solid var(--blue-dark);
    background: #fff;
    color: var(--blue-dark);
  }
  .rv-fecha strong {
    color: var(--blue-dark);
  }
  .rv-agenda li,
  .rv-tira,
  .rv-nota,
  .rv-historia,
  .rv-gracias li {
    background: #fff;
  }
  /* Más compacto: menos aire, más columnas, tarjetas bajas. */
  body {
    font-size: 10pt;
  }
  .rv-seccion {
    padding: 3mm 0;
  }
  .rv-cab {
    margin-bottom: 2mm;
  }
  .rv-cab h2 {
    font-size: 17pt;
  }
  .rv-bajada {
    margin: 0 0 3mm;
  }
  .rv-texto p {
    margin: 0 0 2mm;
    line-height: 1.45;
  }
  .rv-portada {
    padding-bottom: 4mm;
  }
  .rv-portada-logo {
    margin-top: 2mm;
  }
  .rv-portada-logo img {
    width: 6.5cm;
  }
  .rv-portada-texto {
    margin-top: 2mm;
  }
  .rv-portada-texto h1 {
    font-size: 24pt;
    margin-bottom: 2mm;
  }
  .rv-que-es {
    gap: 3mm;
    margin: 2mm 0 3mm;
  }
  .rv-que-es > div {
    padding: 3mm 4mm;
  }
  .rv-que-es-titulo {
    font-size: 13pt;
  }
  .rv-tiras {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5mm;
  }
  .rv-tira-meta {
    font-size: 6.5pt;
  }
  .rv-tira {
    padding: 2.5mm 3mm;
    min-height: 0;
  }
  .rv-tira strong {
    font-size: 12pt;
  }
  .rv-historias {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4mm;
  }
  .rv-historia img {
    max-height: 3.6cm;
    object-fit: contain;
    background: var(--paper);
  }
  .rv-historia > div {
    padding: 3mm 4mm;
  }
  .rv-historia h3 {
    font-size: 11.5pt;
  }
  .rv-historia p {
    margin-bottom: 2mm;
    line-height: 1.45;
  }
  .rv-notas {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5mm;
  }
  .rv-nota {
    padding: 3mm;
    gap: 1mm;
  }
  .rv-gracias {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5mm;
  }
  .rv-gracias li {
    padding: 2mm;
  }
  .rv-agenda {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2mm 4mm;
  }
  .rv-agenda li {
    padding: 1.5mm 0;
    gap: 3mm;
  }
  .rv-fecha {
    min-width: 15mm;
    padding: 1mm;
  }
  .rv-fecha strong {
    font-size: 13pt;
  }
  .rv-lista a {
    padding: 1.5mm 0;
  }
  .rv-pie-tiras {
    margin-top: 2mm;
  }

}

/* "Si te lo perdiste", dentro de "Tira por tira": lista en una caja blanca,
   porque la sección tiene el fondo del tinte azul. */
.rv-perdiste {
  margin-top: 36px;
  padding: 22px 24px 8px;
  border-radius: var(--radius);
  background: var(--cavs-azul-20);
  scroll-margin-top: 96px;
}
.rv-perdiste .rv-subtitulo {
  margin: 0 0 4px;
}
.rv-perdiste .rv-bajada {
  margin: 0 0 12px;
}
.rv-perdiste .rv-lista {
  border-top: 0;
}
.rv-perdiste .rv-lista li {
  border-bottom-color: #fff;
}
.rv-perdiste .rv-lista li:last-child {
  border-bottom: 0;
}
@media (max-width: 620px) {
  .rv-perdiste {
    padding: 18px 16px 4px;
  }
}
