/* ==========================================================================
   Gótico sureño — hoja de estilos
   Paleta, tipografías y tamaños según el Brandbook v1.0.
   Para cambiar colores o tipografías, editá solo la sección "Variables".
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
  --fondo: #080b10;        /* Negro azulado · fondo principal */
  --panel: #0e141f;        /* Panel nocturno · bloques secundarios */
  --azul: #126bff;         /* Azul eléctrico · rellenos, bordes, detalles */
  --azul-texto: #5b9cff;   /* Mismo azul, más claro, para texto chico (cumple contraste AA) */
  --celeste: #8cc8ff;      /* Celeste · hipervínculos dentro de los textos */
  --blanco: #e6efff;       /* Blanco frío · titulares y lectura */
  --gris: #8fa3bb;         /* Gris azulado · metadatos y texto secundario */
  --linea: rgba(143, 163, 187, 0.18);
  --linea-fuerte: rgba(143, 163, 187, 0.34);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --marca: "Instrument Serif", "Newsreader", "Iowan Old Style", Georgia, serif;   /* solo para el nombre de la revista */
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --ancho: 82rem;
  --margen: clamp(1rem, 4vw, 2.75rem);
  --radio: 3px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--blanco);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, pre { margin: 0; }
ul, ol { padding: 0; }
::selection { background: var(--azul); color: #fff; }
:focus-visible { outline: 2px solid var(--azul-texto); outline-offset: 3px; border-radius: 2px; }

.contenedor { width: min(100% - 2 * var(--margen), var(--ancho)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.saltar { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--azul); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radio); text-decoration: none; font-weight: 500; }
.saltar:focus { top: 1rem; }

/* ---------- Piezas tipográficas ---------- */
.meta { font: 400 0.72rem/1.5 var(--mono); color: var(--gris); letter-spacing: 0.02em; }
.meta a { color: inherit; }
.nw { white-space: nowrap; }
.etiqueta { font: 500 0.72rem/1.4 var(--mono); color: var(--azul-texto); letter-spacing: 0.08em; text-transform: uppercase; }
.etiqueta a { text-decoration: none; }
.etiqueta a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.leer, .ver-todo { font: 500 0.8rem/1.4 var(--mono); }
.leer a, .ver-todo { color: var(--celeste); text-decoration: none; }
.ver-todo { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.leer a:hover, .ver-todo:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.demo { font: 500 0.62rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris); border: 1px solid var(--linea-fuerte); border-radius: 2px; padding: 0.2em 0.45em; vertical-align: middle; white-space: nowrap; }
.etiqueta .demo { margin-left: 0.4em; }

/* ---------- Fotografía: marco, grano y revelado ---------- */
.foto { position: relative; display: block; overflow: hidden; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto::after, .cta-ig-panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Fotografía: se funde con la página ----------
   Sin marco: los cuatro bordes se desvanecen de a poco hasta el color de la página, y se ve la foto "flotando".
   La máscara va sobre todo el contenedor, así el grano y la capa del negativo se desvanecen junto con la imagen.
   El ancho del difuminado es --f (hasta 4,5 rem, y como mucho el 14 % de la foto). */
.foto, .prosa .figura .neg-caja {
  --f: min(4.5rem, 14%);
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.08) calc(var(--f) * 0.2), rgba(0, 0, 0, 0.3) calc(var(--f) * 0.4), rgba(0, 0, 0, 0.65) calc(var(--f) * 0.6), rgba(0, 0, 0, 0.92) calc(var(--f) * 0.8), rgba(0, 0, 0, 1) calc(var(--f) * 1), rgba(0, 0, 0, 1) calc(100% - var(--f) * 1), rgba(0, 0, 0, 0.92) calc(100% - var(--f) * 0.8), rgba(0, 0, 0, 0.65) calc(100% - var(--f) * 0.6), rgba(0, 0, 0, 0.3) calc(100% - var(--f) * 0.4), rgba(0, 0, 0, 0.08) calc(100% - var(--f) * 0.2), rgba(0, 0, 0, 0) 100%), linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.08) calc(var(--f) * 0.2), rgba(0, 0, 0, 0.3) calc(var(--f) * 0.4), rgba(0, 0, 0, 0.65) calc(var(--f) * 0.6), rgba(0, 0, 0, 0.92) calc(var(--f) * 0.8), rgba(0, 0, 0, 1) calc(var(--f) * 1), rgba(0, 0, 0, 1) calc(100% - var(--f) * 1), rgba(0, 0, 0, 0.92) calc(100% - var(--f) * 0.8), rgba(0, 0, 0, 0.65) calc(100% - var(--f) * 0.6), rgba(0, 0, 0, 0.3) calc(100% - var(--f) * 0.4), rgba(0, 0, 0, 0.08) calc(100% - var(--f) * 0.2), rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.08) calc(var(--f) * 0.2), rgba(0, 0, 0, 0.3) calc(var(--f) * 0.4), rgba(0, 0, 0, 0.65) calc(var(--f) * 0.6), rgba(0, 0, 0, 0.92) calc(var(--f) * 0.8), rgba(0, 0, 0, 1) calc(var(--f) * 1), rgba(0, 0, 0, 1) calc(100% - var(--f) * 1), rgba(0, 0, 0, 0.92) calc(100% - var(--f) * 0.8), rgba(0, 0, 0, 0.65) calc(100% - var(--f) * 0.6), rgba(0, 0, 0, 0.3) calc(100% - var(--f) * 0.4), rgba(0, 0, 0, 0.08) calc(100% - var(--f) * 0.2), rgba(0, 0, 0, 0) 100%), linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.08) calc(var(--f) * 0.2), rgba(0, 0, 0, 0.3) calc(var(--f) * 0.4), rgba(0, 0, 0, 0.65) calc(var(--f) * 0.6), rgba(0, 0, 0, 0.92) calc(var(--f) * 0.8), rgba(0, 0, 0, 1) calc(var(--f) * 1), rgba(0, 0, 0, 1) calc(100% - var(--f) * 1), rgba(0, 0, 0, 0.92) calc(100% - var(--f) * 0.8), rgba(0, 0, 0, 0.65) calc(100% - var(--f) * 0.6), rgba(0, 0, 0, 0.3) calc(100% - var(--f) * 0.4), rgba(0, 0, 0, 0.08) calc(100% - var(--f) * 0.2), rgba(0, 0, 0, 0) 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* ---------- Cabecera ---------- */
.cabecera { position: relative; z-index: 20; border-bottom: 1px solid var(--linea); }
.cab-tira { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.45rem; border-bottom: 1px solid var(--linea); }
.cab-tira .meta { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0; }
.cabecera-in { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem 1.75rem; padding-block: 0.7rem 0.8rem; }
.logo { font: 400 clamp(2.3rem, 1.6rem + 2.4vw, 3.5rem)/0.95 var(--marca); letter-spacing: -0.012em; text-decoration: none; color: var(--blanco); white-space: nowrap; padding-block: 0.05em; justify-self: start; }
.logo em { font-style: italic; letter-spacing: -0.005em; }
.logo-estrella { display: inline-block; margin-left: 0.14em; font: 400 0.3em/1 var(--sans); color: var(--azul); vertical-align: 1.35em; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.logo:hover .logo-estrella { transform: rotate(72deg) scale(1.25); }
.nav, .cab-buscar { display: none; }
.nav ul, .menu-panel ul { list-style: none; display: flex; gap: clamp(1.25rem, 3vw, 2.75rem); margin: 0; padding: 0; }
.nav a { white-space: nowrap; font: 400 0.9375rem/1 var(--sans); text-decoration: none; color: var(--blanco); padding-block: 0.4rem; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--azul-texto); }
.nav a[aria-current="page"] { border-bottom-color: var(--azul); }


.menu { justify-self: end; }
.menu summary { list-style: none; cursor: pointer; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; margin-right: -0.75rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu-ico { display: grid; place-items: center; color: var(--blanco); }
.menu-ico .ico-x { display: none; }
.menu[open] .menu-ico .ico-lupa { display: none; }
.menu[open] .menu-ico .ico-x { display: block; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--panel); border-bottom: 1px solid var(--linea-fuerte); padding: 1.25rem var(--margen) 1.75rem; }
.menu-panel ul { flex-direction: column; gap: 0.25rem; margin-bottom: 1.25rem; }
.menu-panel a { display: block; font: 400 1.75rem/1.3 var(--serif); text-decoration: none; padding-block: 0.3rem; }
.menu-panel a[aria-current="page"] { color: var(--azul-texto); }

@media (min-width: 48rem) {
  .cabecera-in { grid-template-columns: 1fr auto auto; }
  .nav { display: block; }
  .cab-buscar { display: block; justify-self: end; }
  .cab-buscar .buscador { width: 12.5rem; transition: width 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .cab-buscar .buscador:focus-within { width: 15.5rem; }
  .menu { display: none; }
}
@media (min-width: 62rem) {
  .cab-buscar .buscador { width: 16rem; }
  .cab-buscar .buscador:focus-within { width: 23rem; }
}

/* ---------- Buscador (formulario) ---------- */
.buscador { position: relative; display: block; width: 100%; }
.buscador input { width: 100%; background: transparent; color: var(--blanco); border: 0; border-bottom: 1px solid var(--linea-fuerte); border-radius: 0; padding: 0.55rem 2.25rem 0.5rem 0; font: 400 0.95rem/1.3 var(--sans); -webkit-appearance: none; appearance: none; transition: border-color 0.25s, box-shadow 0.25s; }
.buscador input::placeholder { color: var(--gris); opacity: 1; font: 400 0.7rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.buscador input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.buscador input:hover { border-bottom-color: var(--gris); }
.buscador input:focus { outline: none; border-bottom-color: var(--azul); box-shadow: 0 1px 0 var(--azul); }
.buscador button { position: absolute; top: 0; right: 0; bottom: 0; width: 2.25rem; display: grid; place-items: center; background: none; border: 0; color: var(--gris); cursor: pointer; transition: color 0.25s; }
.buscador:focus-within button, .buscador button:hover { color: var(--azul-texto); }
.buscador button:focus-visible { outline: 2px solid var(--azul-texto); outline-offset: 2px; border-radius: 2px; }
.buscador--grande { max-width: 46rem; margin-top: 1.75rem; }
.buscador--grande input { font: 400 clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem)/1.2 var(--serif); padding: 0.4rem 3rem 0.55rem 0; }
.buscador--grande input::placeholder { font: italic 400 clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem)/1.2 var(--serif); letter-spacing: 0; text-transform: none; }
.buscador--grande button { width: 3rem; }
.menu-panel .buscador { margin-bottom: 1.5rem; }
.menu-panel .buscador input { font-size: 1.1rem; padding-block: 0.7rem 0.6rem; }

/* ---------- Resultados de búsqueda ---------- */
.resumen { margin: 0.5rem 0 1.25rem; min-height: 1.5em; }
.resultados { list-style: none; margin: 0; border-top: 1px solid var(--linea-fuerte); }
.resultado { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid var(--linea); }
.resultado-foto { aspect-ratio: 4 / 3; }
.resultado .etiqueta { margin-bottom: 0.3rem; }
.resultado-titulo { font: 400 clamp(1.3rem, 1.15rem + 0.6vw, 1.7rem)/1.2 var(--serif); }
.resultado-titulo a { text-decoration: none; }
.resultado-titulo a:hover { text-decoration: underline; text-decoration-color: var(--azul); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.resultado-extracto { margin: 0.5rem 0 0.6rem; font: 400 1rem/1.5 var(--serif); color: var(--gris); max-width: 62ch; overflow-wrap: anywhere; }
.resultado mark { background: rgba(18, 107, 255, 0.28); color: var(--blanco); border-radius: 2px; padding: 0 0.1em; }
@media (min-width: 40rem) { .resultado { grid-template-columns: 9rem minmax(0, 1fr); gap: 1.5rem; } }

/* ---------- Portada ---------- */
.hero { display: grid; gap: 1.75rem; padding-block: clamp(1.25rem, 3vw, 2.25rem) clamp(2rem, 4vw, 3rem); }
.hero-foto { order: -1; aspect-ratio: 4 / 3; }
.hero-titulo { margin: 0.6rem 0 1rem; font: 400 clamp(2.125rem, 1.3rem + 3.7vw, 4rem)/1.02 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.hero-titulo a { text-decoration: none; }
.hero-titulo a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; text-decoration-color: var(--azul); }
.hero .leer { margin-top: 1rem; }
.hero-extracto {
  margin: 1.1rem 0 0; max-width: 40ch; font: 400 clamp(1rem, 0.95rem + 0.3vw, 1.15rem)/1.55 var(--serif); color: rgba(230, 239, 255, 0.78);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent); mask-image: linear-gradient(to bottom, #000 50%, transparent);
}
@media (min-width: 56rem) { .hero-extracto { -webkit-line-clamp: 6; line-clamp: 6; } }
@media (min-width: 40rem) { .hero-foto { aspect-ratio: 16 / 9; } }
@media (min-width: 56rem) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
  .hero-foto { order: 0; aspect-ratio: 16 / 10; }
}
@keyframes revelar { from { filter: blur(14px) brightness(0.55); opacity: 0.25; transform: scale(1.03); } to { filter: none; opacity: 1; transform: none; } }
.hero-foto img:not(.neg) { animation: revelar 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

.recientes { margin-top: clamp(1rem, 3vw, 2rem); padding-top: clamp(1.5rem, 3vw, 2.25rem); border-top: 1px solid var(--linea); }
.seccion-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.seccion-cab h2 { font: 400 clamp(1.5rem, 1.3rem + 0.7vw, 1.9rem)/1.2 var(--serif); }

/* ---------- Tarjetas ---------- */
.tarjetas { display: grid; gap: 0; }
.tarjeta { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding-block: 1.1rem; border-top: 1px solid var(--linea); }
.tarjeta:first-child { border-top: 0; padding-top: 0; }
.tarjeta-foto { aspect-ratio: 4 / 3; }
.tarjeta .etiqueta { margin-bottom: 0.3rem; }
.tarjeta-titulo { font: 400 clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem)/1.2 var(--serif); }
.tarjeta-titulo a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: text-decoration-color 0.2s; }
.tarjeta-titulo a:hover { text-decoration-color: var(--azul); }
.tarjeta-extracto { display: none; margin: 0.5rem 0 0.9rem; font: 400 1rem/1.5 var(--serif); color: rgba(230, 239, 255, 0.72); -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.tarjeta .meta { margin-top: 0.4rem; }
@media (min-width: 40rem) {
  .tarjetas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
  .tarjeta { display: block; padding: 0; border-top: 0; }
  .tarjeta:first-child { padding-top: 0; }
  .tarjeta-foto { aspect-ratio: 16 / 9; }
  .tarjeta-texto { padding-top: 0.9rem; }
  .tarjeta-extracto { display: -webkit-box; }
}

/* ---------- Artículo ---------- */
.articulo-cab { padding-top: clamp(2rem, 6vw, 4.5rem); --titulo-tam: clamp(2.25rem, 1rem + 4.2vw, 4.5rem); }
.articulo-cab .etiqueta { margin-bottom: 1rem; }
.articulo-titulo { font: 400 var(--titulo-tam)/1.04 var(--serif); letter-spacing: -0.014em; max-width: 17em; text-wrap: balance; }
.aviso-demo { display: block; width: fit-content; max-width: 100%; margin-top: 1.5rem; padding: 0.5rem 0.8rem; border: 1px dashed var(--linea-fuerte); border-radius: var(--radio); }
.articulo-foto { margin-block: clamp(1.5rem, 4vw, 2.75rem); }
.articulo-foto .foto { aspect-ratio: 4 / 3; }
.articulo-foto figcaption { margin-top: 0.6rem; }
@media (min-width: 40rem) { .articulo-foto .foto { aspect-ratio: 16 / 8; } }
@media (min-width: 70rem) { .articulo-foto .foto { aspect-ratio: 21 / 9; } }

.articulo-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.datos { display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; border-block: 1px solid var(--linea); padding-block: 0.8rem; }
.datos dt { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.66rem; }
.datos dd { font: 400 0.9375rem/1.4 var(--sans); }
.datos a { text-decoration: none; border-bottom: 1px solid var(--linea-fuerte); }
.datos a:hover { border-bottom-color: var(--azul-texto); }
@media (min-width: 62rem) {
  .articulo-cuerpo { grid-template-columns: 12rem minmax(0, 41rem); column-gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
  .riel { position: sticky; top: 1.5rem; }
  .datos { display: block; border-block: 0; padding: 0; }
  .datos > div { padding-block: 0.8rem; border-top: 1px solid var(--linea); }
  .datos > div:last-child { border-bottom: 1px solid var(--linea); }
  .datos dd { margin-top: 0.15rem; }
}

.prosa { font: 400 clamp(1.0625rem, 1rem + 0.25vw, 1.25rem)/1.72 var(--serif); font-optical-sizing: auto; max-width: 41rem; overflow-wrap: break-word; hyphens: manual; }
.prosa > * + * { margin-top: 1.3em; }
.prosa > p:first-child { font-size: 1.1em; }
.prosa h2, .prosa h3, .prosa h4 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin-top: 2.2em; text-wrap: balance; scroll-margin-top: 1.5rem; }
.prosa h2 { font-size: 1.75rem; }
.prosa h3 { font-size: 1.4rem; }
.prosa h4 { font-size: 1.15rem; }
.prosa h2 + *, .prosa h3 + *, .prosa h4 + * { margin-top: 0.7em; }
.prosa a { color: var(--celeste); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.prosa a:hover { color: var(--blanco); }
.prosa ul, .prosa ol { padding-left: 1.3em; }
.prosa li + li { margin-top: 0.4em; }
.prosa li::marker { color: var(--azul-texto); }
.prosa blockquote { margin-block: 2.2em; padding-left: 1.4rem; border-left: 2px solid var(--azul); font-style: italic; font-size: 1.22em; line-height: 1.45; }
.prosa blockquote p + p { margin-top: 0.6em; }
.prosa .cita-autor { font: 400 0.75rem/1.4 var(--mono); font-style: normal; color: var(--gris); letter-spacing: 0.02em; }
.prosa hr { border: 0; text-align: center; margin-block: 2.6em; height: auto; }
.prosa hr::after { content: "★"; color: var(--azul); font-size: 0.85rem; }
.prosa strong { font-weight: 500; color: #fff; }
.prosa code { font: 400 0.85em var(--mono); background: var(--panel); padding: 0.1em 0.35em; border-radius: 2px; }
.prosa pre { background: var(--panel); padding: 1rem; overflow-x: auto; border-radius: var(--radio); font-size: 0.9rem; line-height: 1.5; }
.prosa pre code { background: none; padding: 0; }
.prosa .figura { margin-block: 2.2em; }
.prosa .figura img { width: 100%; }
.prosa figcaption { font: 400 0.72rem/1.5 var(--mono); color: var(--gris); margin-top: 0.6rem; }

.articulo-pie { margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--linea); }
.autor-caja { margin-top: 2rem; padding: 1.5rem; background: var(--panel); border: 1px solid var(--linea); border-radius: var(--radio); max-width: 41rem; }
.autor-nombre { font: 400 1.6rem/1.2 var(--serif); margin-top: 0.25rem; }
.autor-bio { margin-top: 0.6rem; color: var(--gris); font-size: 0.9375rem; max-width: 52ch; }
.autor-caja .leer { margin-top: 1rem; }
.seguir { display: grid; gap: 0; margin-top: 2.5rem; }
.seguir a { display: block; text-decoration: none; padding-block: 1.25rem; border-top: 1px solid var(--linea); }
.seguir-titulo { display: block; margin-top: 0.3rem; font: 400 1.4rem/1.25 var(--serif); text-wrap: balance; }
.seguir a:hover .seguir-titulo { text-decoration: underline; text-decoration-color: var(--azul); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
@media (min-width: 40rem) {
  .seguir { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .seguir-next { text-align: right; }
}

/* ---------- Bloque de Instagram al final de la nota ---------- */
.cta-ig { margin-top: clamp(2rem, 5vw, 3rem); max-width: 41rem; }
@media (min-width: 62rem) { .cta-ig { grid-column: 2; } }
.cta-ig-panel { position: relative; isolation: isolate; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(1rem, 3vw, 1.75rem); overflow: hidden; padding: clamp(1.25rem, 3vw, 2rem); background: var(--panel); border: 1px solid var(--linea-fuerte); border-radius: var(--radio); color: var(--blanco); text-decoration: none; transition: border-color 0.35s; --mx: 0; --my: 0; }
.cta-ig-panel:hover { border-color: var(--azul); }
.cta-ig-panel:focus-visible { outline-offset: 4px; }

/* Cielo: estrellitas que titilan y se corren un poco con el cursor (la profundidad es --d). */
.cta-cielo { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cta-mini { position: absolute; left: var(--px); top: var(--py); width: var(--s); height: var(--s); color: var(--c); transform: translate(calc(var(--mx) * var(--d) * 16px), calc(var(--my) * var(--d) * 16px)); }
.cta-mini svg, .cta-estrella svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.cta-mini svg { opacity: 0.55; }

/* La estrella azul, grande: late, gira despacio, se agranda al pasar el cursor y lo sigue un poco. */
.cta-estrella { position: relative; width: clamp(2.75rem, 8vw, 4.5rem); aspect-ratio: 1; color: var(--azul); transform: translate(calc(var(--mx) * 12px), calc(var(--my) * 12px)); transition: scale 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); filter: drop-shadow(0 0 0.7rem rgba(18, 107, 255, 0.8)); }
.cta-ig-panel:hover .cta-estrella { scale: 1.2; }

.cta-texto { display: block; min-width: 0; }
/* El título se dibuja dos veces, una sobre otra: la base apagada y el brillo blanco, visible solo donde llega la luz. */
.cta-luz { position: relative; display: inline-block; --x: 14%; --y: 50%; padding-block: 0.05em; font: 400 clamp(2rem, 1.1rem + 3.8vw, 3.6rem)/0.95 var(--marca); letter-spacing: -0.015em; white-space: nowrap; }
.cta-luz em { font-style: italic; letter-spacing: -0.005em; }
.cta-base, .cta-brillo { display: block; }
.cta-base .linea, .cta-brillo .linea { display: block; }
.cta-base { color: rgba(230, 239, 255, 0.6); transition: color 0.4s; }
.cta-ig-panel:hover .cta-base { color: rgba(230, 239, 255, 0.82); }
.cta-brillo {
  position: absolute; left: 0; top: 0.05em; color: #fff; pointer-events: none;
  text-shadow: 0 0 0.04em rgba(160, 200, 255, 0.95), 0 0 0.26em rgba(18, 107, 255, 0.55);
  -webkit-mask-image: radial-gradient(ellipse 34% 80% at var(--x) var(--y), #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 34% 80% at var(--x) var(--y), #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
}
.cta-usuario { display: block; margin-top: 0.9rem; font: 500 0.78rem/1 var(--mono); letter-spacing: 0.14em; color: var(--celeste); transition: color 0.3s, letter-spacing 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.cta-ig-panel:hover .cta-usuario { color: #fff; letter-spacing: 0.22em; }
.cta-flecha { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--celeste); border-radius: 50%; color: var(--celeste); font: 400 1.15rem/1 var(--sans); transition: background 0.35s, border-color 0.35s, color 0.35s, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.cta-ig-panel:hover .cta-flecha { background: var(--azul); border-color: var(--azul); color: #fff; transform: rotate(45deg); }

@keyframes giro { to { transform: rotate(360deg); } }
@keyframes latido { 50% { filter: drop-shadow(0 0 1.5rem rgba(18, 107, 255, 1)); } }
@keyframes titilar { 0%, 100% { opacity: 0.2; transform: scale(0.75); } 50% { opacity: 1; transform: scale(1.2); } }
@media (prefers-reduced-motion: no-preference) {
  .cta-estrella { animation: latido 4.5s ease-in-out infinite; }
  .cta-estrella svg { animation: giro 24s linear infinite; }
  .cta-mini svg { animation: titilar 3.4s ease-in-out var(--t) infinite; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cta-ig-panel { animation: cita-luz linear both; animation-timeline: view(); animation-range: entry 5% entry 70%; }
  }
}

/* ---------- Páginas de listado y archivo ---------- */
.pagina-cab { padding-top: clamp(2rem, 6vw, 4.5rem); padding-bottom: clamp(1rem, 3vw, 2rem); }
.pagina-cab .etiqueta { margin-bottom: 0.9rem; }
.pagina-titulo { font: 400 clamp(2.125rem, 1.3rem + 3.7vw, 4rem)/1.04 var(--serif); letter-spacing: -0.015em; text-wrap: balance; max-width: 18ch; }
.pagina-bajada { margin: 1rem 0 0.9rem; font: 400 clamp(1.1rem, 1.05rem + 0.4vw, 1.35rem)/1.4 var(--serif); color: var(--gris); max-width: 46ch; text-wrap: pretty; }
.listado { margin-top: clamp(1rem, 3vw, 2rem); }
.vacio-fijo { font: 400 1.25rem/1.5 var(--serif); color: var(--gris); padding-block: 2rem; }
.vacio-fijo a { color: var(--celeste); }
.error .pagina-titulo { max-width: 16ch; }
.error .leer { margin-top: 1.5rem; }

.filtros { display: flex; flex-wrap: wrap; gap: 1.5rem 3.5rem; padding-block: 1.25rem; border-block: 1px solid var(--linea); }
.filtro { border: 0; margin: 0; padding: 0; min-width: 0; }
.filtro legend { padding: 0; margin-bottom: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; }
.chip { position: relative; display: inline-block; margin: 0 0.4rem 0.5rem 0; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip > span { display: block; padding: 0.45rem 0.85rem; border: 1px solid var(--linea-fuerte); border-radius: 2px; font: 400 0.875rem/1.2 var(--sans); color: var(--blanco); }
.chip:hover > span { border-color: var(--azul-texto); }
.chip:has(input:checked) > span { background: var(--azul); border-color: var(--azul); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--azul-texto); outline-offset: 2px; }
.chip-n { font: 400 0.7rem var(--mono); opacity: 0.7; margin-left: 0.25em; }

.lista-archivo { list-style: none; margin: 0; }
.item { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); grid-template-areas: "foto texto" "foto datos"; gap: 0.35rem 1rem; align-items: start; padding-block: 1.1rem; border-bottom: 1px solid var(--linea); }
.item-foto { grid-area: foto; aspect-ratio: 4 / 3; }
.item-num { display: none; }
.item-texto { grid-area: texto; min-width: 0; }
.item-titulo { font: 400 1.3rem/1.2 var(--serif); }
.item-titulo a { text-decoration: none; }
.item-titulo a:hover { text-decoration: underline; text-decoration-color: var(--azul); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.item-extracto { display: none; margin-top: 0.3rem; font: 400 0.95rem/1.45 var(--serif); color: rgba(230, 239, 255, 0.7); -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.item-datos { grid-area: datos; display: flex; flex-wrap: wrap; gap: 0.1rem 0.9rem; }
.item-datos p { margin: 0; }
.vacio { display: none; padding: 2.5rem 0; font: 400 1.25rem/1.5 var(--serif); color: var(--gris); }
@media (min-width: 40rem) { .item-extracto { display: -webkit-box; } .item { grid-template-columns: 7rem minmax(0, 1fr); } }
@media (min-width: 62rem) {
  .item { grid-template-columns: 7.5rem 2.75rem minmax(0, 1fr) 6.5rem 9.5rem 5.5rem; grid-template-areas: "foto num texto cat autor fecha"; gap: 1rem 1.25rem; align-items: center; padding-block: 1.2rem; }
  .item-num { display: block; grid-area: num; }
  .item-datos { display: contents; }
  .item-cat { grid-area: cat; }
  .item-autor { grid-area: autor; }
  .item-fecha { grid-area: fecha; text-align: right; }
  .item-titulo { font-size: 1.5rem; }
}

/* ---------- Sobre nosotros ---------- */
.sobre-titulo { font: 500 clamp(2rem, 0.8rem + 6.5vw, 6rem)/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; overflow-wrap: anywhere; }
.pagina-sobre .pagina-cab { padding-top: clamp(3rem, 10vw, 8rem); }
.pagina-sobre .estrella { margin: 0 0.3em 0 0; font-size: 0.8rem; }
.pagina-sobre .pagina-bajada { margin-top: 1.5rem; color: var(--blanco); }
.sobre-cuerpo { padding-bottom: clamp(2rem, 6vw, 4rem); font: 400 clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem)/1.5 var(--serif); }
.sobre-cuerpo p { max-width: 36ch; padding-top: 1.25rem; border-top: 1px solid var(--linea-fuerte); }
.sobre-cuerpo a { color: var(--celeste); text-underline-offset: 0.2em; }
.sobre-cuerpo a:hover { color: var(--blanco); }

/* ---------- (heredado) Integrantes ---------- */
.integrantes { margin-top: clamp(3rem, 7vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--linea); }
.integrantes-lista { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem 2.5rem; }
.integrante { padding-top: 1rem; border-top: 1px solid var(--linea-fuerte); }
.integrante-nombre { font: 400 1.6rem/1.2 var(--serif); }
.integrante .meta { margin-top: 0.3rem; }
.integrante-bio { margin-top: 0.8rem; font-size: 0.9375rem; color: var(--gris); }
.integrante .leer { margin-top: 1rem; }

/* ---------- Tapa de la portada ---------- */
.cabecera--tapa { border-bottom: 1px solid var(--linea); }
.tapa { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); padding-block: 0.25rem clamp(1.25rem, 3vw, 2.25rem); }
.tapa .menu { justify-self: end; }
.tapa .menu-panel { top: 2.75rem; left: calc(var(--margen) * -1); right: calc(var(--margen) * -1); z-index: 30; }
.tapa-logo { display: block; --tapa-tam: 15.2vw; margin-block: clamp(0.25rem, 1vw, 1rem) clamp(1rem, 2vw, 1.75rem); color: var(--blanco); text-decoration: none; }
@media (min-width: 48rem) { .tapa-logo { --tapa-tam: min(17.5vw, 15rem); } }

/* El nombre se dibuja dos veces, una sobre otra: la base, apagada, y el brillo, blanco, visible solo donde llega la luz. */
.tapa-luz { position: relative; display: inline-block; --x: 64%; --y: 42%; padding: 0.1em 0.22em 0.02em 0; font: 400 var(--tapa-tam)/0.88 var(--marca); letter-spacing: -0.022em; white-space: nowrap; }
.tapa-luz em { font-style: italic; letter-spacing: -0.01em; }
.tapa-base, .tapa-brillo { display: block; }
.tapa-base { color: rgba(230, 239, 255, 0.56); }
.tapa-brillo {
  position: absolute; left: 0; top: 0.1em; color: #fff; pointer-events: none;
  text-shadow: 0 0 0.04em rgba(160, 200, 255, 0.95), 0 0 0.28em rgba(18, 107, 255, 0.55);
  -webkit-mask-image: radial-gradient(ellipse 20% 64% at var(--x) var(--y), #000 0%, rgba(0, 0, 0, 0.6) 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 20% 64% at var(--x) var(--y), #000 0%, rgba(0, 0, 0, 0.6) 40%, transparent 100%);
}
.pal { display: inline; }
.tapa-estrella { position: absolute; top: 0.16em; right: 0; font: 400 0.2em/1 var(--sans); color: var(--azul); text-shadow: 0 0 0.7em var(--azul), 0 0 1.6em rgba(18, 107, 255, 0.6); }
.tapa-logo:hover .tapa-estrella { transform: rotate(72deg) scale(1.2); transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }

.tapa-fila { display: none; padding-top: 0.9rem; border-top: 1px solid var(--linea); }
@media (min-width: 48rem) {
  .tapa-fila { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 1.75rem; }
  .tapa-temas .temas { column-gap: 1.25rem; }
  .tapa-temas .temas li + li::before { display: none; }
  .tapa-fila .cab-buscar { justify-self: end; }
}
@media (min-width: 62rem) {
  .tapa-temas .temas { column-gap: 0; }
  .tapa-temas .temas li + li::before { display: inline; }
}

@keyframes letra { from { filter: blur(0.16em); opacity: 0; } to { filter: none; opacity: 1; } }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
@keyframes destello { 0%, 100% { opacity: 0.7; transform: scale(0.9) rotate(0deg); } 50% { opacity: 1; transform: scale(1.2) rotate(18deg); } }
@media (prefers-reduced-motion: no-preference) {
  .tapa-base .l { animation: letra 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i) * 75ms + 200ms); }
  .tapa-brillo { animation: aparecer 1.2s ease 1.5s both; }
  .tapa-estrella { animation: destello 5s ease-in-out 1.8s infinite; }
}

/* ---------- Foto vacía (nota sin fotografía todavía) y portada sin publicaciones ---------- */
.foto--vacia { display: grid; place-items: center; text-decoration: none; background: var(--panel); }
.vacia-estrella { color: var(--azul); font: 400 1.6rem/1 var(--sans); text-shadow: 0 0 0.8em rgba(18, 107, 255, 0.7); }
.hero-foto .vacia-estrella { font-size: clamp(3rem, 8vw, 7rem); }
.tarjeta-foto .vacia-estrella, .item-foto .vacia-estrella { font-size: 1.1rem; }
@media (min-width: 40rem) { .tarjeta-foto .vacia-estrella { font-size: 2rem; } }
.articulo--sin-foto .articulo-cuerpo { margin-top: clamp(1.75rem, 4vw, 3rem); }
.pronto { padding-block: clamp(2rem, 6vw, 5rem) clamp(2rem, 6vw, 4rem); }
.pronto-titulo { margin: 0.9rem 0 1.5rem; max-width: 18ch; font: 400 clamp(2.125rem, 1.3rem + 3.7vw, 4rem)/1.04 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }

/* ---------- Pie ---------- */
.pie { margin-top: clamp(3rem, 7vw, 5rem); padding-block: 1.5rem 2rem; border-top: 1px solid var(--linea); }
.pie-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.temas { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 0; }
.temas a { font: 400 0.72rem/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gris); text-decoration: none; }
.temas a:hover { color: var(--blanco); text-decoration: underline; text-underline-offset: 0.3em; text-decoration-color: var(--azul); }
.temas { column-gap: 1.5rem; }
@media (min-width: 40rem) {
  .temas { column-gap: 0; }
  .temas li + li::before { content: "/"; color: var(--gris); opacity: 0.5; margin-inline: 0.9rem; font: 400 0.72rem var(--mono); }
}
.firma { letter-spacing: 0.08em; text-transform: uppercase; }
.estrella { color: var(--azul); margin-left: 0.4em; font-size: 0.95rem; }
.pie-sub { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--linea); }
.pie-sub a { text-underline-offset: 0.25em; white-space: nowrap; }
.pie-sub p:last-child { flex-shrink: 0; }

/* ---------- Negativo de las fotos de las notas ----------
   Cada foto tiene una segunda capa (la misma imagen, sin descargarla otra vez) pasada por el filtro #negativo,
   que la repinta solo con los colores del sitio. Se muestra al pasar el mouse, o al tocar en el celular. */
.neg-caja { position: relative; display: block; }
.neg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: url(#negativo); transition: opacity 0.55s ease; pointer-events: none; }
@media (hover: hover) { .neg-caja:hover .neg { opacity: 1; } }
/* Con mouse y JavaScript: el negativo se ve solo dentro de una lente que sigue al cursor (--lx, --ly las pone negativo.js). */
.neg-caja.lente { --lr: clamp(3.5rem, 8vw, 8rem); }
.neg-caja.lente .neg {
  opacity: 0; transition: opacity 0.35s ease;
  -webkit-mask-image: radial-gradient(circle var(--lr) at var(--lx, 50%) var(--ly, 50%), rgba(0,0,0,1) 0%, rgba(0,0,0,0.94) 14%, rgba(0,0,0,0.8) 28%, rgba(0,0,0,0.58) 42%, rgba(0,0,0,0.34) 58%, rgba(0,0,0,0.14) 74%, rgba(0,0,0,0.04) 88%, transparent 100%);
  mask-image: radial-gradient(circle var(--lr) at var(--lx, 50%) var(--ly, 50%), rgba(0,0,0,1) 0%, rgba(0,0,0,0.94) 14%, rgba(0,0,0,0.8) 28%, rgba(0,0,0,0.58) 42%, rgba(0,0,0,0.34) 58%, rgba(0,0,0,0.14) 74%, rgba(0,0,0,0.04) 88%, transparent 100%);
}
.neg-caja.lente.dentro .neg { opacity: 1; }


/* ---------- Movimiento ligado al scroll (solo CSS) ----------
   Si el navegador no lo soporta, las fotos se ven normales y no aparece la barra. */

/* Barra de progreso de lectura: una línea de azul eléctrico que crece mientras se lee el texto. */
.articulo:not(.articulo--larga) .progreso { display: none; }   /* solo en notas de 3 minutos o más */
.progreso { position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: 2px; background: var(--azul); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
@supports (animation-timeline: view()) and (timeline-scope: --lectura) {
  .articulo { timeline-scope: --lectura; }
  .articulo .prosa { view-timeline: --lectura block; }
  .progreso {
    animation: avance linear both;
    animation-timeline: --lectura;
    animation-range: entry 100% exit 0%;   /* de "el texto llega arriba" a "el texto termina abajo" */
  }
}
@keyframes avance { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Revelado de las fotos: del desenfoque a la nitidez al entrar en pantalla. */
@keyframes revelar-foto { from { filter: blur(14px) brightness(0.55); opacity: 0.25; transform: scale(1.03); } to { filter: none; opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .articulo-foto img:not(.neg) { animation: revelar 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @supports (animation-timeline: view()) {
    .prosa .figura img:not(.neg) {
      animation: revelar-foto linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 75%;
    }
  }
}

/* ---------- Más movimiento ligado al scroll y a la carga ---------- */

/* Títulos de las notas: cada letra sale del desenfoque, una tras otra (como en la tapa). */
@media (prefers-reduced-motion: no-preference) {
  .articulo-titulo .l { animation: letra 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(min(var(--i) * 30ms, 900ms) + 120ms); }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* La tapa se desenfoca y se apaga mientras se va de la pantalla; la nota principal se enciende al entrar. */
    .tapa-luz { animation: tapa-sale linear both; animation-timeline: view(); animation-range: exit 0% exit 90%; }
    .hero-foto { animation: hero-luz linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }

    /* Citas: la línea azul se enciende con un destello al entrar en pantalla y el texto gana luz. */
    .prosa blockquote { position: relative; border-left-color: transparent; }
    .prosa blockquote::before { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--azul); transform-origin: 50% 0; animation: destello-cita linear both; animation-timeline: view(); animation-range: entry 5% entry 80%; }
    .prosa blockquote > * { animation: cita-luz linear both; animation-timeline: view(); animation-range: entry 10% entry 80%; }
  }
}
@keyframes tapa-sale { from { filter: none; opacity: 1; transform: none; } to { filter: blur(0.06em) brightness(0.7); opacity: 0.1; transform: translateY(-0.05em); } }
@keyframes hero-luz { from { filter: brightness(0.45); opacity: 0.35; } to { filter: none; opacity: 1; } }
@keyframes destello-cita {
  0% { transform: scaleY(0); background: var(--azul); box-shadow: none; }
  55% { transform: scaleY(1); background: #fff; box-shadow: 0 0 1.4rem 0.25rem rgba(120, 180, 255, 0.9); }
  100% { transform: scaleY(1); background: var(--azul); box-shadow: 0 0 0.6rem rgba(18, 107, 255, 0.35); }
}
@keyframes cita-luz { from { opacity: 0.3; filter: blur(2px); } to { opacity: 1; filter: none; } }

/* ---------- Celular: orden y ritmo ---------- */
.menu-temas { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--linea); }
.menu-temas .meta { margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.66rem; }
.menu-panel .menu-temas .temas { flex-direction: column; gap: 0; }
.menu-panel .menu-temas .temas li + li::before { display: none; }
.menu-panel .menu-temas .temas a { display: block; padding-block: 0.45rem; font: 400 0.8rem/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gris); }

@media (max-width: 47.99rem) {
  /* El nombre de la revista, en una sola línea, con el botón del menú a su lado (sin fila aparte). */
  .tapa { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 0.5rem; padding-block: 0.7rem 0.85rem; }
  .tapa-logo { grid-column: 1; grid-row: 1; margin: 0; }
  .tapa .menu { grid-column: 2; grid-row: 1; }
  .tapa .menu-panel { top: 100%; }
}
@media (max-width: 39.99rem) {
  /* La nota principal empieza enseguida: foto de borde a borde y, debajo, título y vista previa del texto. */
  .hero { gap: 1.1rem; padding-block: 0.5rem 1.75rem; }
  .hero-foto { margin-inline: calc(var(--margen) * -1); aspect-ratio: 3 / 2; }
  .hero-titulo { margin: 0.5rem 0 0.7rem; }
  .articulo-foto.contenedor { width: 100%; }
  .articulo-foto figcaption { padding-inline: var(--margen); }
  .pie { margin-top: 2.25rem; padding-block: 1.25rem 1.75rem; }
  .pie-in { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .pie-sub { flex-direction: column; align-items: flex-start; gap: 0.5rem; margin-top: 1rem; }
}

/* ---------- Preferencias del sistema ---------- */
@media (prefers-reduced-motion: reduce) {
  .cta-base, .cta-flecha, .cta-ig-panel, .cta-estrella, .cta-usuario { transition: none; }
  .neg { transition: none; }
  .tapa-logo:hover .tapa-estrella { transition: none; }
  .logo-estrella, .buscador input, .buscador button, .cab-buscar .buscador { transition: none; }
  .hero-foto img:not(.neg) { animation: none; }
  .tarjeta-titulo a { transition: none; }
}
@media print {
  body { background: #fff; color: #000; }
  .cabecera, .pie, .riel, .filtros, .seguir, .progreso { display: none; }
  .prosa { color: #000; max-width: none; }
}
