.historia { display: block; position: relative; font-family: 'Inter Tight', Helvetica, Arial, sans-serif; line-height: 1; font-size: 16px; }
.pagina:has(.historia) { overflow: clip; }
.pagina main.historia { padding: 0; margin: 0; max-width: none; width: 100%; }

.historia {
  --u: calc(1vw / 16);
  --margen: var(--lado);
  --hueco: calc(16 * var(--u));
  --celda-v: calc(96 * var(--u));
  --celda-h: calc(136 * var(--u));
  --arco: 50vw;

  --negro: #1e211e;
  --crema: #f4e6cd;
  --papel: #fff;
  --arena: #e2ccb2;
  --tela: #dbdcd9;

  --texto: var(--negro);
  --fondo: var(--arena);
  --raya: #1e211e1a;
  --apagado: #1e211e73;
}

.historia .sobre-crema { --texto: var(--negro); --fondo: var(--crema); --raya: #1e211e1a; --apagado: #1e211e73; }

.historia .sobre-negro { --texto: var(--crema); --fondo: var(--negro); --raya: #f4e6cd33; --apagado: #f4e6cd8c; }

.historia img { display: block; object-fit: cover; max-width: none; }

.historia a { color: inherit; text-decoration: none; }

.historia button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.historia svg { display: block; width: 100%; height: 100%; }

.historia .t1,
.historia .t2,
.historia .t3,
.historia .t4,
.historia .t5 {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--texto);
  font-variant-numeric: lining-nums proportional-nums;
}

.historia .t1 { font-size: calc(176 * var(--u)); line-height: 87.5%; letter-spacing: -.024em; }

.historia .t2 { font-size: calc(136 * var(--u)); line-height: 88.235%; letter-spacing: -.024em; }

.historia .t3 { font-size: calc(96 * var(--u)); line-height: 91.667%; letter-spacing: -.024em; }

.historia .t4 { font-size: calc(63 * var(--u)); line-height: 92%; letter-spacing: -.016em; }

.historia .t5 { font-size: calc(40 * var(--u)); line-height: 104%; letter-spacing: -.008em; }

.historia .a1 {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: calc(120 * var(--u));
  line-height: 100%;
  letter-spacing: -.02em;
  text-transform: none;
  color: var(--texto);
  display: block;
}

.historia .p1 {
  font-size: calc(13 * var(--u));
  line-height: 138.462%;
  letter-spacing: -.012em;
  color: var(--texto);
}

.historia .r1 {
  font-size: calc(11 * var(--u));
  line-height: 145.455%;
  letter-spacing: .048em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--texto);
}

.historia .r1.fina { font-weight: 400; color: var(--apagado); }

.historia .r2 {
  font-size: calc(9 * var(--u));
  line-height: 133.333%;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--texto);
}

.historia .c1 {
  font-family: 'Inter Tight', Helvetica, Arial, sans-serif;
  font-size: calc(25 * var(--u));
  line-height: 112%;
  letter-spacing: .8em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--texto);
}

.historia .centro { text-align: center; }

.historia .seccion { background: var(--fondo); color: var(--texto); }

.historia .recorta { overflow: clip; }

.historia .caja { padding-left: var(--margen); padding-right: var(--margen); }

.historia .rejilla {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-auto-columns: 1fr;
  column-gap: var(--hueco);
  row-gap: 0;
}

.historia .rejilla.c6 { grid-template-columns: repeat(6, 1fr); }

.historia .rejilla.c5 { grid-template-columns: repeat(5, 1fr); }

.historia .rejilla.c4 { grid-template-columns: repeat(4, 1fr); }

.historia .hueco-12 { height: calc(12 * var(--u)); flex: none; }

.historia .hueco-16 { height: calc(16 * var(--u)); flex: none; }

.historia .hueco-32 { height: calc(32 * var(--u)); flex: none; }

.historia .hueco-48 { height: calc(48 * var(--u)); flex: none; }

.historia .hueco-64 { height: calc(64 * var(--u)); flex: none; }

.historia .hueco-96 { height: calc(96 * var(--u)); flex: none; }

.historia .hueco-160 { height: calc(160 * var(--u)); flex: none; }

.historia .hueco-272 { height: calc(272 * var(--u)); flex: none; }

.historia .alto-pantalla { height: 100vh; }

.historia .solo-movil { display: none; }

.historia .marco { position: relative; display: flex; flex-flow: column; justify-content: center; align-items: stretch; width: 100%; height: 100%; overflow: clip; }

.historia .marco .img { width: 100%; height: 100%; flex: none; }

.historia .marco .img-p { width: 100%; height: 140%; flex: none; }

.historia .velo { z-index: 1; pointer-events: none; position: absolute; inset: 0; background-image: linear-gradient(#0000, #0000004d); }

.historia .velo.desde-arriba { background-image: linear-gradient(#0000004d, #0000); }

.historia .velo.abajo { inset: auto 0 0; }

.historia .velo.alto { height: 100vh; }

.historia .velo.x4 { height: calc(var(--celda-v) * 4 + var(--hueco) * 3); inset: auto 0 0; }

.historia .velo.desde-arriba.x4 { inset: 0 0 auto; }

.historia .linea-v { background: var(--texto); width: .75px; height: 100%; display: block; }

.historia .linea-h { background: var(--texto); width: 100%; height: .75px; display: block; }

.historia .divisoria { height: calc(var(--celda-v) * 2 + var(--hueco)); display: flex; justify-content: center; }

.historia .filete { float: left; width: calc(var(--celda-h) + var(--hueco)); height: calc(16 * var(--u)); }

.historia .rubrica { display: block; width: calc(220 * var(--u)); aspect-ratio: 2000 / 958; mix-blend-mode: multiply; }

.historia .rubrica img { width: 100%; height: 100%; object-fit: contain; }

.historia .ico-16 { display: block; width: calc(16 * var(--u)); aspect-ratio: 1; }

.historia .ico-16 svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }

.historia .barra {
  position: fixed;
  z-index: 1100;
  left: var(--margen);
  top: calc(var(--alto-nav) + var(--margen) + var(--celda-h));
  bottom: calc(var(--margen) + var(--celda-h) + var(--margen));
  width: var(--celda-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--negro);
  --avance: 0%;
}

.historia .barra-riel {
  position: relative;
  width: 1px;
  height: calc(var(--celda-h) * 2 + var(--hueco));
  background: currentColor;
  opacity: .25;
}

.historia .barra-pulgar {
  position: absolute;
  left: 50%;
  top: var(--avance);
  width: calc(24 * var(--u));
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.historia .barra-cifra { position: absolute; top: calc(50% - var(--celda-h) - var(--hueco)); color: currentColor; }

.historia .barra-rotulo { position: absolute; bottom: calc(60 * var(--u)); writing-mode: vertical-rl; color: currentColor; opacity: .7; }

.historia .barra-flecha { position: absolute; bottom: 0; width: calc(8 * var(--u)); height: calc(40 * var(--u)); }

.historia .barra-flecha svg { fill: none; stroke: currentColor; stroke-width: 1; }

.historia .sobre-luz { color: var(--crema); }

.historia .sobre-claro { color: var(--negro); }

.historia .franja { position: relative; }

.historia .franja-cuerpo { position: relative; z-index: 1; }

.historia .franja-rotulo { grid-area: 1 / 5 / 2 / 7; padding-left: calc(48 * var(--u)); padding-right: calc(48 * var(--u)); position: relative; z-index: 1; }

.historia .franja-lema { grid-area: 1 / 3 / 2 / 9; }

.historia .franja-texto { grid-area: 1 / 5 / 2 / 7; }

.historia .franja-sello { display: flex; justify-content: center; align-items: center; gap: calc(32 * var(--u)); position: relative; z-index: 1; }

.historia .adorno {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  width: calc(80 * var(--u) * 10);
  height: calc(80 * var(--u) * 10);
}

.historia .adorno img { width: 100%; height: 100%; object-fit: contain; }

.historia .adorno-franja { width: calc(340 * var(--u)); height: calc(340 * var(--u)); left: calc(-64 * var(--u)); bottom: calc(-32 * var(--u)); transform: rotate(-8deg); }

.historia .adorno-archivo { width: calc(300 * var(--u)); height: calc(300 * var(--u)); top: calc(64 * var(--u)); right: calc(-40 * var(--u)); transform: rotate(18deg); }

.historia .adorno-taller { width: 58%; height: auto; aspect-ratio: 1; right: calc(-48 * var(--u)); top: calc(-64 * var(--u)); }

.historia .adorno-porton-izq { width: calc(420 * var(--u)); height: calc(420 * var(--u)); left: calc(-40 * var(--u)); bottom: calc(-60 * var(--u)); transform: rotate(-14deg); }

.historia .adorno-porton-der { width: calc(420 * var(--u)); height: calc(420 * var(--u)); right: calc(-40 * var(--u)); bottom: calc(-60 * var(--u)); transform: rotate(12deg); }

.historia .oficio-recorrido { position: relative; height: calc(100vh * 2.5 + var(--arco)); }

.historia .pantalla-pegada { position: sticky; top: 0; z-index: 1; }

.historia .oficio { position: relative; }

.historia .oficio-cuerpo { height: 100vh; }

.historia .oficio-pases { height: 100%; position: relative; }

.historia .oficio-lista { height: 100%; position: relative; }

.historia .oficio-item { position: absolute; inset: 0; height: 100%; display: none; }

.historia .oficio-item:first-child,
.historia .oficio-item.activa { position: relative; display: block; }

.historia .oficio-pase { position: relative; z-index: 0; height: 100%; display: flex; flex-flow: column; justify-content: flex-end; }

.historia .oficio-pase-texto { position: relative; z-index: 1; }

.historia .oficio-pase-rotulo { grid-area: 1 / 3 / 2 / 6; }

.historia .oficio-pase-frase { grid-area: 2 / 2 / 3 / 6; }

.historia .oficio-pase-foto { position: absolute; z-index: 0; top: 0; bottom: 0; left: calc(var(--margen) * -1); right: calc(var(--margen) * -1); }

.historia .oficio-pase-foto .marco { width: 100%; height: 100%; }

.historia .oficio-pase-foto .img-p { object-position: center 22%; }

.historia .oficio-pase-foto .velo.desde-arriba { background-image: linear-gradient(180deg, #e8dcc6f2 0%, #e8dcc6a6 30%, #e8dcc600 62%); }

.historia .oficio-pase-foto .velo.x4 { height: calc(var(--celda-v) * 5 + var(--hueco) * 4); background-image: linear-gradient(0deg, #e8dcc6fa 0%, #e8dcc6d9 50%, #e8dcc600 100%); }

.historia .oficio-pestanas-caja { position: absolute; left: 0; right: 0; top: calc(160 * var(--u)); z-index: 1; pointer-events: none; }

.historia .oficio-pestanas { grid-area: 1 / 8 / 2 / 10; position: relative; pointer-events: auto; }

.historia .oficio-pestana { cursor: pointer; opacity: .45; transition: opacity .4s cubic-bezier(.25, 1, .5, 1); }

.historia .oficio-pestana.activa { opacity: 1; }

.historia .oficio-pestanas-linea { position: absolute; top: 0; bottom: 0; left: calc(var(--hueco) * -1); width: 1.25px; background: var(--raya); display: block; }

.historia .oficio-pestanas-luz { position: absolute; left: 0; width: 100%; height: calc(40 * var(--u)); background: var(--texto); border-radius: 2px; display: block; }

.historia .oficio-boton-caja { position: absolute; left: 0; right: 0; bottom: var(--margen); z-index: 2; pointer-events: none; }

.historia .oficio-boton { grid-area: 1 / 8 / 2 / 10; pointer-events: auto; }

.historia .oficio-temas { position: absolute; inset: 0; pointer-events: none; display: flex; flex-flow: column; }

.historia .oficio-temas span { flex: 1; }

.historia .seccion.arco { position: relative; z-index: 1; border-top-left-radius: var(--arco); border-top-right-radius: var(--arco); }

.historia .taller { position: relative; margin-top: calc((var(--arco) + 100vh) * -1); }

.historia .taller-cuerpo { position: relative; z-index: 1; }

.historia .taller-titulo { grid-area: 1 / 4 / 2 / 8; display: flex; flex-flow: column; align-items: center; justify-content: flex-start; }

.historia .taller-titulo-escrita { margin-top: calc(-40 * var(--u)); margin-left: calc(-40 * var(--u)); transform: rotate(-8deg); }

.historia .taller-fotos { display: flex; justify-content: space-between; width: 100%; gap: var(--hueco); }

.historia .taller-izq,
.historia .taller-der { flex: 1; min-width: 0; }

.historia .taller-izq-marco {
  grid-area: 1 / 1 / 2 / 5;
  aspect-ratio: 3 / 4;
  background: var(--negro);
  margin-left: calc(var(--margen) * -1);
  padding-left: var(--celda-h);
  padding-right: var(--celda-h);
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: clip;
}

.historia .taller-izq-foto { position: relative; width: 100%; aspect-ratio: 3 / 4; }

.historia .taller-izq-foto .marco { position: absolute; inset: 0; }

.historia .taller-izq-pie { grid-area: 2 / 3 / 3 / 5; }

.historia .taller-der-foto { position: relative; grid-area: 1 / 2 / 2 / 6; aspect-ratio: 4 / 3; margin-right: calc(var(--margen) * -1); }

.historia .taller-der-foto .marco { position: absolute; inset: 0; }

.historia .taller-der-frase { grid-area: 2 / 1 / 3 / 5; }

.historia .taller-der-texto { grid-area: 3 / 3 / 4 / 5; }

.historia .taller-der-boton { grid-area: 4 / 2 / 5 / 4; display: flex; flex-flow: column; align-items: center; justify-content: center; }

.historia .taller-galeria { grid-area: 1 / 3 / 2 / 11; margin-right: calc(var(--margen) * -1); }

.historia .taller-galeria-lista { position: relative; width: 100%; aspect-ratio: 16 / 10; }

.historia .taller-galeria-item { position: absolute; inset: 0; height: 100%; }

.historia .taller-galeria-item .marco { width: 100%; height: 100%; }

.historia .taller-galeria-pie { display: flex; justify-content: flex-start; margin-left: calc(-8 * var(--u)); }

.historia .taller-temas { position: absolute; inset: var(--arco) 0 0; pointer-events: none; display: flex; flex-flow: column; }

.historia .taller-temas > span { flex: 1; }

.historia .taller-temas-fila { display: flex; flex: 1; }

.historia .taller-temas-fila > span { flex: 1; }

.historia .pasador { height: calc(48 * var(--u)); display: flex; align-items: center; justify-content: center; gap: calc(32 * var(--u)); pointer-events: auto; }

.historia .pasador-antes,
.historia .pasador-despues { height: calc(48 * var(--u)); display: flex; align-items: center; gap: var(--hueco); }

.historia .pasador-antes { padding-left: calc(8 * var(--u)); }

.historia .pasador-despues { padding-right: calc(8 * var(--u)); }

.historia .pasador-ico { width: calc(16 * var(--u)); aspect-ratio: 1; }

.historia .pasador-ico svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }

.historia .pasador-riel { width: calc(160 * var(--u)); height: 1px; background: var(--raya); position: relative; }

.historia .pasador-avance { position: absolute; inset: 0 auto 0 0; width: 25%; background: var(--texto); }

.historia .series-recorrido { position: relative; }

.historia .series-porton { position: sticky; top: 0; z-index: 1; height: 100vh; margin-bottom: -100vh; pointer-events: none; }

.historia .series-porton-izq,
.historia .series-porton-der { position: absolute; background: var(--arena); display: block; }

.historia .series-porton-izq { inset: -1% calc(50% - 1px) 0 0; }

.historia .series-porton-der { inset: -1% 0 0 50%; }

.historia .series { position: sticky; top: 0; --texto: var(--negro); --raya: #1e211e1a; --apagado: #1e211e99; }

.historia .series-fondo .velo:first-of-type { inset: 0 0 auto; height: 100vh; background-image: linear-gradient(180deg, #e8dcc6f5 0%, #e8dcc6b3 40%, #e8dcc600 75%); }

.historia .series-fondo .velo:last-of-type { background-image: linear-gradient(0deg, #e8dcc6f7 0%, #e8dcc6c2 45%, #e8dcc600 100%); }

.historia .series-cuerpo {
  position: relative;
  z-index: 1;
  aspect-ratio: 144 / 168;
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  pointer-events: none;
}

.historia .series-alto,
.historia .series-bajo { pointer-events: auto; }

.historia .series-texto { grid-area: 1 / 4 / 2 / 8; }

.historia .series-cita { grid-area: 1 / 2 / 2 / 6; }

.historia .series-firma { grid-area: 1 / 2 / 2 / 5; }

.historia .series-boton { grid-area: 1 / 7 / 2 / 9; align-self: end; display: flex; flex-flow: column; align-items: center; justify-content: center; }

.historia .series-fondo { position: absolute; z-index: 0; inset: 0 calc(var(--margen) * -1); }

.historia .series-fondo .marco { width: 100%; height: 100%; }

.historia .series-temas { position: absolute; inset: 0; pointer-events: none; display: flex; flex-flow: column; }

.historia .series-temas > span:first-child { height: calc(100vh * 1.5); }

.historia .series-temas-oscuro { flex: 1; }

.historia .archivo { position: relative; }

.historia .archivo-cuerpo { position: relative; z-index: 1; }

.historia .archivo-lista { grid-area: 1 / 3 / 2 / 9; }

.historia .archivo-ficha { cursor: pointer; }

.historia .archivo-ficha-nombre { display: flex; justify-content: center; align-items: flex-start; }

.historia .archivo-ficha-titulo { position: relative; display: block; width: max-content; }

.historia .archivo-ficha-mas { position: absolute; left: calc(100% + 4 * var(--u)); top: calc(4 * var(--u)); display: block; }

.historia .archivo-ficha-info { overflow: hidden; height: 0; }

.historia .archivo-ficha-texto { grid-area: 1 / 2 / 2 / 6; display: flex; flex-flow: column; align-items: center; justify-content: flex-start; }

.historia .archivo-ficha-raya { width: calc(64 * var(--u)); }

.historia .archivo-ficha-foto { position: relative; width: calc(192 * var(--u)); aspect-ratio: 3 / 2; overflow: clip; }

.historia .archivo-ficha-foto img { width: 100%; height: 100%; }

.historia .cierre { position: relative; }

.historia .cierre-cuerpo {
  position: relative;
  z-index: 1;
  aspect-ratio: 144 / 168;
  pointer-events: none;
}

.historia .cierre-texto { grid-area: 1 / 4 / 2 / 8; pointer-events: auto; }

.historia .cierre-titulo { grid-area: 1 / 3 / 2 / 9; pointer-events: auto; }

.historia .cierre-boton { display: flex; flex-flow: column; align-items: center; justify-content: center; }

.historia .cierre-fondo { position: absolute; z-index: 0; inset: 0 calc(var(--margen) * -1); }

.historia .cierre-fondo .marco { width: 100%; height: 100%; }

.historia .boton-circulo {
  position: relative;
  height: calc(var(--celda-v) * 2 + var(--hueco));
  aspect-ratio: 1;
  padding: calc(48 * var(--u));
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
}

.historia .boton-circulo-aro { position: absolute; inset: 0; z-index: 0; }

.historia .boton-circulo-aro circle { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }

.historia .boton-circulo-aro circle:first-child { opacity: .3; }

.historia .boton-circulo-rotulo { position: relative; z-index: 1; width: 100%; text-align: center; }

.historia .boton-circulo-pila { position: relative; display: block; overflow: clip; }

.historia .boton-circulo-pila .r1:nth-child(2) { position: absolute; inset: 0 auto auto 0; width: 100%; }

.historia [data-revela],
.historia [data-texto],
.historia [data-parte] { visibility: hidden; }

.sin-motor .historia [data-revela],
.sin-motor .historia [data-texto],
.sin-motor .historia [data-parte] { visibility: visible; }

.historia .split-line { overflow: hidden; }

@media (max-width: 991px) {
  .historia .rejilla { grid-template-columns: repeat(4, 1fr); }
  .historia .solo-escritorio { display: none; }
  .historia .solo-movil { display: block; }
  .historia .franja-rotulo { grid-area: 1 / 2 / 2 / 4; padding: 0; }
  .historia .franja-lema,
.historia .franja-texto { grid-area: 1 / 1 / 2 / 5; }
  .historia .archivo-lista,
.historia .oficio-pase-rotulo,
.historia .oficio-pase-frase,
.historia .series-texto,
.historia .series-cita,
.historia .cierre-texto,
.historia .cierre-titulo,
.historia .taller-titulo,
.historia .taller-galeria { grid-area: auto / 1 / auto / 5; }
  .historia .oficio-pestanas { grid-area: auto / 1 / auto / 5; }
  .historia .oficio-boton { grid-area: auto / 1 / auto / 5; }
  .historia .taller-fotos { flex-flow: column; }
  .historia .archivo-ficha-texto { grid-area: 1 / 1 / 2 / 7; }
  .historia .adorno { width: calc(40 * var(--u) * 10); height: calc(40 * var(--u) * 10); }
  .historia .barra { display: none; }
}

.historia .hilo-recorrido { position: relative; z-index: 3; }

.historia .hilo-recorrido .pantalla-pegada { height: 100vh; overflow: clip; }

.historia .hilo-carril { position: relative; display: flex; flex: none; height: 100vh; }

.historia .hilo-intro { position: relative; flex: none; width: calc(var(--celda-h) * 8 + var(--hueco) * 7); height: 100vh; margin-right: var(--celda-h); }

.historia .hilo-intro-cuerpo { height: 100%; display: flex; flex-flow: column; justify-content: center; padding-top: var(--alto-nav); padding-bottom: calc(160 * var(--u)); }

.historia .hilo-intro-rotulo { grid-area: 1 / 1 / 2 / 5; }

.historia .hilo-intro-titulo { grid-area: 1 / 1 / 2 / 10; }

.historia .hilo-intro-texto { grid-area: 1 / 1 / 2 / 6; }

.historia .adorno-hilo { width: calc(300 * var(--u)); height: calc(300 * var(--u)); right: calc(-60 * var(--u)); top: 50%; transform: rotate(10deg); }

.historia .hilo-parada { position: relative; flex: none; width: calc(var(--celda-h) * 7 + var(--hueco) * 6); height: 100vh; margin-right: var(--celda-h); }

.historia .hilo-parada-cuerpo {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: auto 1fr auto;
  column-gap: var(--hueco);
  height: 100%;
  padding-top: calc(var(--alto-nav) + 32 * var(--u));
  padding-bottom: calc(128 * var(--u));
}

.historia .hilo-parada-alto { grid-area: 1 / 1 / 2 / 5; }

.historia .hilo-parada-doc { grid-area: 1 / 4 / 4 / 8; display: flex; justify-content: flex-end; align-items: center; gap: var(--hueco); }

.historia .hilo-parada-texto { grid-area: 3 / 1 / 4 / 4; align-self: end; }

.historia .documento { display: block; height: 62vh; cursor: zoom-in; padding: 0; }

.historia .documento .marco { height: 100%; width: auto; }

.historia .documento .marco .img { height: 100%; width: 100%; }

.historia .documento.apaisado { height: 44vh; }

.historia .documento-oculto { display: none; }

.historia .hilo-linea { position: absolute; left: 0; right: 0; bottom: calc(64 * var(--u)); height: .75px; background: var(--texto); display: block; }

.historia .hilo-punto { position: absolute; left: 0; bottom: calc(64 * var(--u) - 4px); width: 9px; height: 9px; border-radius: 50%; background: var(--texto); display: block; }

.historia .oficio-pase-foto[data-folios-doc] { cursor: zoom-in; }

.historia .rubrica { cursor: zoom-in; padding: 0; }

.historia .folios { position: fixed; inset: 0; z-index: 5000; display: none; }

.historia .folios.abierto { display: block; }

.historia .folios-velo { position: absolute; inset: 0; background: color-mix(in srgb, var(--crema) 96%, transparent); }

.historia .folios-caja { position: relative; z-index: 1; width: 100%; height: 100%; padding: calc(var(--alto-nav) + 8 * var(--u)) var(--margen) calc(96 * var(--u)); display: flex; flex-flow: column; }

.historia .folios-cerrar {
  position: absolute;
  top: var(--margen);
  right: var(--margen);
  z-index: 2;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--negro);
  padding: 0 0 6px;
  border-bottom: 1px solid currentColor;
}

.historia .folios-lienzo { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: auto; }

.historia .folios-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; cursor: zoom-in; box-shadow: 0 30px 80px #1e211e26; }

.historia .folios.ampliado .folios-lienzo { display: block; }

.historia .folios.ampliado .folios-img { max-width: none; max-height: none; width: auto; height: 220vh; margin: 0 auto; cursor: zoom-out; }

.historia .folios-pie { position: absolute; left: var(--margen); right: var(--margen); bottom: var(--margen); display: flex; align-items: center; gap: calc(24 * var(--u)); color: var(--negro); }

.historia .folios-flecha { width: calc(48 * var(--u)); height: calc(48 * var(--u)); display: flex; align-items: center; justify-content: center; }

.historia .folios-flecha svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }

.historia .folios-cuenta { color: var(--negro); }

.historia .folios-rotulo { margin-left: auto; text-align: right; }

@media (max-width: 991px) {
  .historia .hilo-recorrido .pantalla-pegada { position: static; height: auto; overflow: visible; }
  .historia .hilo-carril { flex-flow: column; height: auto; }
  .historia .hilo-intro,
.historia .hilo-parada { width: 100%; height: auto; margin-right: 0; }
  .historia .hilo-parada-cuerpo { display: block; height: auto; padding-bottom: calc(64 * var(--u)); }
  .historia .hilo-parada-doc { justify-content: flex-start; margin: calc(32 * var(--u)) 0; }
  .historia .documento { height: 70vh; }
  .historia .hilo-linea,
.historia .hilo-punto { display: none; }
}

@media (max-width: 991px) {
  .historia .p1 { font-size: max(15px, calc(13 * var(--u))); }
  .historia .r1 { font-size: max(12px, calc(11 * var(--u))); }
  .historia .r2 { font-size: max(12px, calc(9 * var(--u))); }
  .historia .t5 { font-size: max(20px, calc(40 * var(--u))); }
}

.pagina main.historia:has(.folios.abierto) { z-index: 5000; }
