/* === PUBLICACIÓN 80 · «Más Deporte en el IES Virgen de la Esperanza» ===
 * Diseño propio de esta publicación. ver.php enlaza esta hoja solo al abrir
 * la publicación 80 (porque existe css/publicaciones/pub-80.css) y pone la
 * clase pub-80 en <body>: la portada, los listados y el resto de
 * publicaciones no cambian. Se carga solo en pantalla; impresa, la
 * publicación sale con el estilo normal de la web.
 *
 * Idea: la pista. Negro de asfalto, tiza de las líneas, el amarillo albero de
 * la gravilla y el rojo de la casa para lo que duele. Letra de la web: Anton
 * en los titulares y Atkinson en el texto, sin pedir nada a otros servidores.
 *
 * El texto sale del editor sin clases, así que cada módulo se elige por su
 * posición (2.ª lista = marcador, 4.ª = propuestas...). Si se reordena o se
 * corrige el artículo hay que repasar los «:nth-of-type» y, sobre todo, las
 * cifras del marcador (7 · 7 · 0 · 0), que están escritas en esta hoja.
 */

body.pub-80 {
  --p-tinta: #151112;
  --p-tinta-2: #231c1c;
  --p-tiza: #f6f1e8;
  --p-papel: #f6f1e8;
  --p-ficha: #fffdf8;
  --p-albero: #f2b632;
  --p-rojo: var(--rojo, #c00000);
  --p-rojo-luz: #ff4b3e;            /* rojo que se lee sobre negro */
  --p-grava: #645b55;               /* gris cálido para la letra pequeña */
  --p-linea: rgba(21, 17, 18, .16);
  --p-linea-tiza: rgba(246, 241, 232, .2);

  /* Hasta 1000 px todo va en una columna; a partir de ahí el texto se queda en
     el centro y la foto, las fichas y el marcador se abren a la columna ancha. */
  --p-margen: clamp(1.15rem, 5vw, 3.5rem);  /* aire a los lados */
  --p-texto: 46rem;                         /* columna de lectura */
  --p-ancho: 46rem;                         /* columna ancha: foto, fichas, marcador */
  --p-solape: clamp(3.25rem, 12vw, 10.5rem);/* cuánto sube la foto sobre el negro */
  --p-sombra: clamp(6px, 1.1vw, 16px);

  /* Grano de gravilla: ruido generado, sin pedir ninguna imagen */
  --p-grano: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 -.215'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --p-grano-oscuro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .42 -.165'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

@media (min-width: 1000px) {
  body.pub-80 {
    --p-texto: 43rem;
    --p-ancho: 70rem;
  }
}

/* ---------- La fila de sectores se oscurece para que la apertura no se corte ---------- */

body.pub-80 .sk-sectores {
  background: var(--negro, #111);
  border-bottom-color: #2b2424;
}
body.pub-80 .sk-sectores .sk-ancho {
  scrollbar-color: #4a4141 transparent;
}
body.pub-80 .sk-sectores-titulo {
  color: #a39a93;
}
body.pub-80 .sk-sectores a {
  border-color: #3a3231;
  color: #e9e4e4;
}
body.pub-80 .sk-sectores a:hover {
  border-color: var(--p-albero);
  color: var(--p-albero);
}

/* ---------- La página deja de ser una tarjeta en una columna estrecha ---------- */

body.pub-80 .contenido-principal {
  padding: 0;
  background: var(--p-papel);
}
body.pub-80 .contenido-principal > main {
  max-width: none;
  position: relative;
}

/* Una sola rejilla para todo: margen | ala | texto | ala | margen.
   El cuerpo se «disuelve» (display: contents) y sus párrafos, títulos y listas
   pasan a ser celdas de esta rejilla; cada uno elige si ocupa el texto, la
   columna ancha o la pantalla entera. */
body.pub-80 .publicacion-detalle {
  max-width: none;
  margin: 0;
  padding: 0 0 clamp(3.5rem, 8vw, 6rem);
  background: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  counter-reset: p80-seccion;
  color: var(--p-tinta);
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  line-height: 1.6;
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--p-margen), 1fr)
    [wide-start] minmax(0, calc((var(--p-ancho) - var(--p-texto)) / 2))
    [text-start] min(var(--p-texto), 100% - 2 * var(--p-margen))
    [text-end] minmax(0, calc((var(--p-ancho) - var(--p-texto)) / 2))
    [wide-end] minmax(var(--p-margen), 1fr)
    [full-end];
}
body.pub-80 .publicacion-cuerpo {
  display: contents;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}
body.pub-80 .publicacion-detalle > *,
body.pub-80 .publicacion-cuerpo > * {
  grid-column: text;
  min-width: 0;
}

/* ---------- Apertura: negro de asfalto con las líneas de la pista ---------- */

body.pub-80 .publicacion-detalle::before {
  --cx: 86%;
  --cy: 42%;
  --r: clamp(6.5rem, 19vw, 17rem);
  content: "";
  grid-column: full;
  grid-row: 1 / 3;
  background:
    var(--p-grano),
    radial-gradient(circle at var(--cx) var(--cy), rgba(246, 241, 232, .42) 0 3px, transparent 4.5px),
    radial-gradient(circle at var(--cx) var(--cy),
      transparent calc(var(--r) - 2.5px),
      rgba(246, 241, 232, .15) calc(var(--r) - 1px),
      rgba(246, 241, 232, .15) calc(var(--r) + 1px),
      transparent calc(var(--r) + 2.5px)),
    linear-gradient(90deg,
      transparent calc(var(--cx) - 1px),
      rgba(246, 241, 232, .15) calc(var(--cx) - 1px),
      rgba(246, 241, 232, .15) calc(var(--cx) + 1px),
      transparent calc(var(--cx) + 1px)),
    linear-gradient(180deg, #1d1718 0%, #120e0f 100%);
}

body.pub-80 .btn-volver {
  position: absolute;
  z-index: 3;
  top: clamp(1.1rem, 2.6vw, 1.9rem);
  left: max(var(--p-margen), calc((100% - var(--p-ancho)) / 2));
  margin: 0;
  padding: .45rem 1.05rem .45rem .9rem;
  border: 1px solid rgba(246, 241, 232, .38);
  border-radius: 999px;
  background: transparent;
  color: var(--p-tiza);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
body.pub-80 .btn-volver:hover {
  background: var(--p-tiza);
  border-color: var(--p-tiza);
  color: var(--p-tinta);
}

body.pub-80 .publicacion-header {
  grid-column: wide;
  grid-row: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(5rem, 9vw, 7.25rem) 0 0;
  border: 0;
  color: var(--p-tiza);
}

/* Fecha y firma, arriba del titular, como antetítulo */
body.pub-80 .publicacion-meta-grande {
  order: -1;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 clamp(1rem, 2.2vw, 1.6rem);
  color: var(--p-albero);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
body.pub-80 .publicacion-meta-grande::before {
  content: "";
  width: 2.5rem;
  height: .5rem;
  margin-right: .9rem;
  background: var(--p-rojo-luz);
}
body.pub-80 .publicacion-meta-grande > span + span::before {
  content: "·";
  margin: 0 .7em;
}
@media (max-width: 380px) {
  body.pub-80 .publicacion-meta-grande {
    font-size: .75rem;
    letter-spacing: .1em;
  }
  body.pub-80 .publicacion-meta-grande::before {
    width: 1.5rem;
    margin-right: .6rem;
  }
  body.pub-80 .publicacion-meta-grande > span + span::before {
    margin: 0 .45em;
  }
}

body.pub-80 .publicacion-titulo-grande {
  margin: 0;
  color: var(--p-tiza);
  font-family: var(--fuente-titular);
  font-weight: 400;
  font-size: clamp(2.5rem, 1.3rem + 5.4vw, 5.9rem);
  line-height: .97;
  letter-spacing: .004em;
  text-transform: uppercase;
  text-wrap: balance;
}
body.pub-80 .publicacion-titulo-grande::first-line {
  color: var(--p-albero);
}

/* Entradilla: sigue sobre el negro, bajo el titular */
body.pub-80 .publicacion-cuerpo > p:first-child {
  grid-column: wide;
  grid-row: 2;
  position: relative;
  z-index: 1;
  max-width: 47rem;
  margin: clamp(1.5rem, 3.2vw, 2.4rem) 0 calc(var(--p-solape) + clamp(2rem, 5vw, 3.5rem));
  padding: .15rem 0 .15rem clamp(1rem, 2vw, 1.4rem);
  border-left: 4px solid var(--p-albero);
  color: rgba(246, 241, 232, .93);
  font-size: clamp(1.15rem, 1rem + .85vw, 1.55rem);
  line-height: 1.42;
}
body.pub-80 .publicacion-cuerpo > p:first-child strong,
body.pub-80 .publicacion-cuerpo > p:first-child em {
  margin: 0;
  padding: 0;
  background: none;
  color: inherit;
  font-style: normal;
  font-weight: 500;
}

/* La foto, entera (lleva su propio rótulo), a caballo entre el negro y el papel */
body.pub-80 .publicacion-imagen-grande {
  grid-column: wide;
  grid-row: 3;
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: auto 3 / 2;
  margin: calc(-1 * var(--p-solape)) 0 0;
  border-radius: 0;
  background: var(--p-tinta-2);
  box-shadow: var(--p-sombra) var(--p-sombra) 0 var(--p-albero);
}

/* ---------- Texto ---------- */

body.pub-80 .publicacion-cuerpo > p {
  margin: 1.15em 0 0;
  line-height: inherit;
  text-wrap: pretty;
}
body.pub-80 .publicacion-detalle ::selection {
  background: var(--p-albero);
  color: var(--p-tinta);
}
body.pub-80 .publicacion-cuerpo > h2 + p {
  margin-top: 1.4rem;
}
body.pub-80 .publicacion-cuerpo em {
  color: inherit;
}
body.pub-80 .publicacion-cuerpo a {
  color: var(--p-rojo);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Lo que el texto pone en negrita queda subrayado con rotulador */
body.pub-80 .publicacion-cuerpo > p > strong {
  margin: 0 -.12em;
  padding: 0 .12em;
  background: linear-gradient(to top, transparent .13em, var(--p-albero) .13em, var(--p-albero) .74em, transparent .74em) no-repeat 0 100% / 100% 100%;
  font-weight: 700;
}

/* Títulos de sección: número de dorsal + título de cartel */
body.pub-80 .publicacion-cuerpo > h2 {
  counter-increment: p80-seccion;
  margin: clamp(3.25rem, 8vw, 5.5rem) 0 0;
  padding: 1rem 0 0;
  border-top: 3px solid var(--p-tinta);
  color: var(--p-tinta);
  font-family: var(--fuente-titular);
  font-weight: 400;
  font-size: clamp(1.85rem, 1.25rem + 2.6vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-wrap: balance;
}
body.pub-80 .publicacion-cuerpo > h2::before {
  content: counter(p80-seccion, decimal-leading-zero);
  content: counter(p80-seccion, decimal-leading-zero) / ""; /* adorno: no se lee en voz alta */
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 .3rem;
  background: none;
  color: var(--p-rojo);
  font-size: 1.35em;
  line-height: 1;
}
body.pub-80 .publicacion-cuerpo > h3,
body.pub-80 .publicacion-cuerpo > h4 {
  margin: 2.2rem 0 0;
  font-size: 1.3em;
  font-weight: 800;
  line-height: 1.25;
}

/* Listas: número grande y una línea entre puntos */
body.pub-80 .publicacion-cuerpo > ol,
body.pub-80 .publicacion-cuerpo > ul {
  list-style: none;
  list-style-type: "";
  margin: 1.6rem 0 0;
  padding: 0;
  border-bottom: 1px solid var(--p-linea);
  counter-reset: p80-punto;
}
body.pub-80 .publicacion-cuerpo > ol > li,
body.pub-80 .publicacion-cuerpo > ul > li {
  counter-increment: p80-punto;
  position: relative;
  margin: 0;
  padding: .95rem 0 .95rem clamp(2.5rem, 9vw, 3.4rem);
  border-top: 1px solid var(--p-linea);
  text-wrap: pretty;
}
body.pub-80 .publicacion-cuerpo > ol > li::before {
  content: counter(p80-punto);
  position: absolute;
  left: 0;
  top: .82rem;
  color: var(--p-rojo);
  font-family: var(--fuente-titular);
  font-size: 1.9rem;
  line-height: 1;
}
body.pub-80 .publicacion-cuerpo > ul > li::before {
  content: "";
  position: absolute;
  left: .2rem;
  top: 1.55rem;
  width: .7rem;
  height: .7rem;
  background: var(--p-rojo);
}

body.pub-80 .publicacion-cuerpo > blockquote {
  margin: 2rem 0 0;
  padding-left: 1.1rem;
  border-left: .4rem solid var(--p-rojo);
  font-size: 1.15em;
  font-weight: 600;
}
body.pub-80 .publicacion-cuerpo > p img,
body.pub-80 .publicacion-cuerpo > img,
body.pub-80 .publicacion-cuerpo > figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0 0;
}

body.pub-80 .publicacion-cuerpo > hr {
  height: 3px;
  margin: 3rem 0 0;
  border: 0;
  background: var(--p-tinta);
}

/* ---------- 01 · Las ventajas, en fichas ---------- */

@media (min-width: 800px) {
  body.pub-80 .publicacion-cuerpo > ol:nth-of-type(1) {
    grid-column: wide;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2.25rem clamp(1.25rem, 2.6vw, 2.5rem);
    margin-top: 2rem;
    border: 0;
  }
  body.pub-80 .publicacion-cuerpo > ol:nth-of-type(1) > li {
    grid-column: span 2;
    padding: 1rem 0 0;
    border-top: 3px solid var(--p-tinta);
    font-size: .95em;
    line-height: 1.5;
  }
  body.pub-80 .publicacion-cuerpo > ol:nth-of-type(1) > li:nth-child(-n+2) {
    grid-column: span 3;
  }
  body.pub-80 .publicacion-cuerpo > ol:nth-of-type(1) > li::before {
    position: static;
    display: block;
    margin: 0 0 .65rem;
    font-size: 3.1rem;
  }
  body.pub-80 .publicacion-cuerpo > ol:nth-of-type(1) + p {
    margin-top: 2.75rem;
  }
}

/* ---------- 02 · El marcador: talleres por curso ---------- */

body.pub-80 .publicacion-cuerpo > h2:nth-of-type(2) + p,
body.pub-80 .publicacion-cuerpo > h2:nth-of-type(2) + p + ol {
  grid-column: full;
  padding-inline: max(var(--p-margen), calc((100% - var(--p-ancho)) / 2));
  background: var(--p-grano), var(--p-tinta);
}
body.pub-80 .publicacion-cuerpo > h2:nth-of-type(2) + p {
  margin-top: 2rem;
  padding-top: clamp(2rem, 5vw, 3.25rem);
  color: rgba(246, 241, 232, .8);
  font-size: .95em;
}
body.pub-80 .publicacion-cuerpo > h2:nth-of-type(2) + p + ol {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding-top: 1.5rem;
  padding-bottom: clamp(2.25rem, 6vw, 4rem);
  border: 0;
  color: rgba(246, 241, 232, .86);
}
body.pub-80 .publicacion-cuerpo > h2:nth-of-type(2) + p + ol::before {
  content: "Talleres por curso";
  grid-column: 1 / -1;
  padding-bottom: .8rem;
  color: var(--p-albero);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
body.pub-80 .publicacion-cuerpo > h2:nth-of-type(2) + p + ol > li {
  min-height: 6.9rem;
  padding: 1.05rem 0 1.15rem 5.1rem;
  border-top: 1px solid var(--p-linea-tiza);
  font-size: .92em;
  line-height: 1.5;
}
body.pub-80 .publicacion-cuerpo > h2:nth-of-type(2) + p + ol > li > strong {
  color: var(--p-rojo-luz);
  font-weight: 700;
}
body.pub-80 .publicacion-cuerpo > h2:nth-of-type(2) + p + ol > li > strong:first-child {
  color: var(--p-tiza);
  font-size: .82em;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
body.pub-80 .publicacion-cuerpo > h2:nth-of-type(2) + p + ol > li::before {
  content: "–";
  top: 1rem;
  color: var(--p-albero);
  font-size: 5.4rem;
  line-height: .86;
}
/* Las cifras salen del propio texto: siete, otros siete, ninguno, no solicitado */
body.pub-80 .publicacion-cuerpo > h2:nth-of-type(2) + p + ol > li:nth-child(1)::before,
body.pub-80 .publicacion-cuerpo > h2:nth-of-type(2) + p + ol > li:nth-child(2)::before {
  content: "7";
  content: "7" / "";
}
body.pub-80 .publicacion-cuerpo > h2:nth-of-type(2) + p + ol > li:nth-child(3)::before,
body.pub-80 .publicacion-cuerpo > h2:nth-of-type(2) + p + ol > li:nth-child(4)::before {
  content: "0";
  content: "0" / "";
  color: var(--p-rojo-luz);
}
@supports (-webkit-text-stroke: 2px red) {
  /* El cero, hueco: no hay nada dentro */
  body.pub-80 .publicacion-cuerpo > h2:nth-of-type(2) + p + ol > li:nth-child(3)::before,
  body.pub-80 .publicacion-cuerpo > h2:nth-of-type(2) + p + ol > li:nth-child(4)::before {
    color: transparent;
    -webkit-text-stroke: 2px var(--p-rojo-luz);
  }
}

@media (min-width: 640px) {
  body.pub-80 .publicacion-cuerpo > h2:nth-of-type(2) + p + ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 4vw, 3rem);
  }
  body.pub-80 .publicacion-cuerpo > h2:nth-of-type(2) + p + ol > li {
    min-height: 0;
    padding: 1.4rem 0 1.75rem;
  }
  body.pub-80 .publicacion-cuerpo > h2:nth-of-type(2) + p + ol > li::before {
    position: static;
    display: block;
    margin: 0 0 1.1rem;
    font-size: clamp(7rem, 15vw, 9rem);
    line-height: .82;
  }
}
@media (min-width: 1000px) {
  body.pub-80 .publicacion-cuerpo > h2:nth-of-type(2) + p + ol {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 2.6vw, 2.5rem);
  }
  body.pub-80 .publicacion-cuerpo > h2:nth-of-type(2) + p + ol > li::before {
    font-size: clamp(8.5rem, 12.5vw, 11.5rem);
  }
}

/* ---------- 03 · Lo que se pregunta: una ficha y una frase de cartel ---------- */

body.pub-80 .publicacion-cuerpo > ol:nth-of-type(3) {
  margin-top: 1.6rem;
  margin-right: var(--p-sombra);
  padding: .35rem clamp(1rem, 3vw, 1.75rem);
  border: 2px solid var(--p-tinta);
  background: var(--p-ficha);
  box-shadow: var(--p-sombra) var(--p-sombra) 0 var(--p-rojo);
}
body.pub-80 .publicacion-cuerpo > ol:nth-of-type(3) > li {
  font-weight: 600;
}
body.pub-80 .publicacion-cuerpo > ol:nth-of-type(3) > li:first-child {
  border-top: 0;
}

body.pub-80 .publicacion-cuerpo > ol:nth-of-type(3) + p {
  margin-top: clamp(2.5rem, 6vw, 3.75rem);
  padding-left: clamp(.9rem, 2.2vw, 1.5rem);
  border-left: .5rem solid var(--p-rojo);
  font-family: var(--fuente-titular);
  font-size: clamp(1.6rem, 1rem + 3vw, 3rem);
  line-height: 1.07;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* ---------- 04 · La nota sobre las imágenes ---------- */

body.pub-80 .publicacion-cuerpo > p:has(> em:only-child):not(hr ~ p) {
  margin-top: 1.6rem;
  padding-left: 1rem;
  border-left: 3px solid var(--p-albero);
  color: var(--p-grava);
  font-size: .92em;
  line-height: 1.55;
}

/* ---------- 05 · La propuesta, sobre albero ---------- */

body.pub-80 .publicacion-cuerpo > h2:nth-of-type(5),
body.pub-80 .publicacion-cuerpo > h2:nth-of-type(5) + ol {
  grid-column: full;
  padding-inline: max(var(--p-margen), calc((100% - var(--p-texto)) / 2));
  background: var(--p-grano-oscuro), var(--p-albero);
}
body.pub-80 .publicacion-cuerpo > h2:nth-of-type(5) {
  padding-top: clamp(2.5rem, 6vw, 4.25rem);
  border-top: 0;
}
body.pub-80 .publicacion-cuerpo > h2:nth-of-type(5)::before {
  color: var(--p-tinta);
}
body.pub-80 .publicacion-cuerpo > h2:nth-of-type(5) + ol {
  margin: 0;
  padding-top: 1.75rem;
  padding-bottom: clamp(2.75rem, 6vw, 4.5rem);
  border: 0;
}
body.pub-80 .publicacion-cuerpo > h2:nth-of-type(5) + ol > li {
  border-top-color: rgba(21, 17, 18, .3);
}
body.pub-80 .publicacion-cuerpo > h2:nth-of-type(5) + ol > li:last-child {
  border-bottom: 1px solid rgba(21, 17, 18, .3);
}
body.pub-80 .publicacion-cuerpo > h2:nth-of-type(5) + ol > li::before {
  color: var(--p-tinta);
}

/* ---------- 06 · Los fundamentos ---------- */

body.pub-80 .publicacion-cuerpo > ol:nth-of-type(5) > li > strong:first-child {
  color: var(--p-rojo);
}

/* ---------- Cierre: banda roja, fuentes y compartir ---------- */

body.pub-80 .publicacion-cuerpo > p:has(+ hr) {
  grid-column: full;
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: clamp(2.25rem, 6vw, 4.25rem) max(var(--p-margen), calc((100% - var(--p-ancho)) / 2));
  background: var(--p-rojo);
  color: #fff;
  font-family: var(--fuente-titular);
  font-size: clamp(2.1rem, 1rem + 5.2vw, 5.25rem);
  line-height: .98;
  letter-spacing: .005em;
  text-transform: uppercase;
}
body.pub-80 .publicacion-cuerpo > p:has(+ hr) > strong {
  margin: 0;
  padding: 0;
  background: none;
  font-weight: 400;
}
body.pub-80 .publicacion-cuerpo > p:has(+ hr) + hr {
  display: none;
}
body.pub-80 .publicacion-cuerpo > hr ~ p {
  margin-top: 2rem;
  padding: 0;
  border: 0;
  color: var(--p-grava);
  font-size: .875rem;
  line-height: 1.55;
}

body.pub-80 .documentos-adjuntos,
body.pub-80 .compartir-seccion {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding: 1.4rem 0 0;
  border-top: 3px solid var(--p-tinta);
  background: none;
}
body.pub-80 .documentos-adjuntos h3,
body.pub-80 .compartir-titulo {
  margin: 0 0 1.1rem;
  color: var(--p-tinta);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
body.pub-80 .botones-compartir {
  gap: .6rem;
}
body.pub-80 .btn-compartir {
  gap: .5rem;
  padding: .55rem 1.1rem;
  border: 1.5px solid var(--p-tinta);
  border-radius: 999px;
  background: transparent;
  color: var(--p-tinta);
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color .18s ease, color .18s ease;
}
body.pub-80 .btn-compartir svg {
  width: 18px;
  height: 18px;
}
body.pub-80 .btn-compartir:hover {
  transform: none;
  box-shadow: none;
  background: var(--p-tinta);
  color: var(--p-tiza);
}
body.pub-80 .btn-compartir.copiado {
  background: var(--p-albero);
  color: var(--p-tinta);
}
body.pub-80 .btn-volver:focus-visible {
  outline: 3px solid var(--p-albero);
  outline-offset: 3px;
}
body.pub-80 .btn-compartir:focus-visible,
body.pub-80 .publicacion-cuerpo a:focus-visible {
  outline: 3px solid var(--p-rojo);
  outline-offset: 3px;
}

/* ---------- Desde 1000 px: el número de sección cuelga en el ala izquierda ---------- */

@media (min-width: 1000px) {
  body.pub-80 .publicacion-detalle {
    line-height: 1.7;
  }
  body.pub-80 .publicacion-cuerpo > h2 {
    grid-column: wide;
    display: grid;
    grid-template-columns: max(0px, calc((100% - var(--p-texto)) / 2)) minmax(0, var(--p-texto));
    align-items: start;
    padding-top: 1.15rem;
  }
  body.pub-80 .publicacion-cuerpo > h2::before {
    margin: 0;
    font-size: clamp(4.25rem, 6.4vw, 6rem);
    line-height: .8;
  }
  body.pub-80 .publicacion-cuerpo > h2:nth-of-type(5) {
    grid-column: full;
    padding-inline: max(var(--p-margen), calc((100% - var(--p-ancho)) / 2));
  }
  body.pub-80 .publicacion-cuerpo > ol:nth-of-type(3) + p {
    grid-column: wide-start / text-end;
  }
}

/* ---------- Movimiento (solo si el navegador lo permite y nadie ha pedido reducirlo) ---------- */

@media (prefers-reduced-motion: no-preference) {
  @keyframes p80-sube {
    from { opacity: 0; transform: translateY(1.4rem); }
  }
  body.pub-80 .publicacion-meta-grande,
  body.pub-80 .publicacion-titulo-grande,
  body.pub-80 .publicacion-cuerpo > p:first-child,
  body.pub-80 .publicacion-imagen-grande {
    animation: p80-sube .8s cubic-bezier(.2, .7, .2, 1) both;
  }
  body.pub-80 .publicacion-titulo-grande { animation-delay: .08s; }
  body.pub-80 .publicacion-cuerpo > p:first-child { animation-delay: .2s; }
  body.pub-80 .publicacion-imagen-grande { animation-delay: .32s; }

  @supports (animation-timeline: view()) {
    /* Barra de lectura: avanza mientras se recorre el artículo */
    @keyframes p80-lectura {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }
    body.pub-80 {
      timeline-scope: --p80-articulo;
    }
    body.pub-80 .publicacion-detalle {
      view-timeline: --p80-articulo block;
    }
    body.pub-80::before {
      content: "";
      position: fixed;
      z-index: 60;
      inset: 0 0 auto 0;
      height: 4px;
      background: linear-gradient(90deg, var(--p-rojo-luz), var(--p-albero));
      transform-origin: 0 50%;
      animation: p80-lectura linear both;
      animation-timeline: --p80-articulo;
      animation-range: contain 0% contain 100%;
    }

    /* El rotulador se pasa al llegar a la frase */
    @keyframes p80-rotulador {
      from { background-size: 0% 100%; }
      to { background-size: 100% 100%; }
    }
    body.pub-80 .publicacion-cuerpo > p > strong {
      animation: p80-rotulador linear both;
      animation-timeline: view();
      animation-range: entry 60% cover 34%;
    }

    /* Números de sección, fichas y cifras del marcador entran al aparecer */
    @keyframes p80-entra {
      from { opacity: 0; transform: translateY(1.75rem); }
    }
    body.pub-80 .publicacion-cuerpo > h2,
    body.pub-80 .publicacion-cuerpo > ol:nth-of-type(1) > li,
    body.pub-80 .publicacion-cuerpo > h2:nth-of-type(2) + p + ol > li,
    body.pub-80 .publicacion-cuerpo > ol:nth-of-type(3) + p {
      animation: p80-entra linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }
    body.pub-80 .publicacion-cuerpo > ol:nth-of-type(1) > li:nth-child(even),
    body.pub-80 .publicacion-cuerpo > h2:nth-of-type(2) + p + ol > li:nth-child(even) {
      animation-range: entry 20% cover 27%;
    }
  }
}
