:root {
  --pulso: cubic-bezier(.65, 0, .35, 1);
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.arriba__volver {
  white-space: nowrap;
}
@media (max-width: 560px) {
  .arriba__largo {
    display: none;
  }
}
.cabeza {
  text-align: center;
  padding: clamp(56px, 9vw, 112px) var(--margen) 0;
}
.cabeza ~ .legal {
  padding-top: clamp(30px, 4.5vw, 56px);
}
.cabeza ~ .legal > .entrada:first-child {
  text-align: center;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}
.cabeza ~ .legal > .entrada:first-child + .en {
  text-align: center;
}
.cabeza ~ .legal > .indice {
  justify-content: center;
}
.estela {
  margin: 0;
  font-family: var(--titular);
  font-weight: 400;
  line-height: 1.25;
  font-variation-settings: normal;
}
h1.estela {
  font-size: clamp(1.45rem, .95rem + 1.5vw, 2.25rem);
}
.losa {
  --ala-i: 3.6em;
  --ala-d: 3.5em;
  --rollo: 1.5s;
  position: relative;
  isolation: isolate;
  display: inline-block;
  max-width: 100%;
  padding: .95em calc(var(--ala-d) + .3em) .8em calc(var(--ala-i) + .3em);
  text-align: center;
  filter: drop-shadow(5px 9px 11px rgba(20, 22, 26, .2)) drop-shadow(1px 2px 2px rgba(20, 22, 26, .14));
}
.losa::before,
.losa::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.losa::before {
  inset: 0;
  background: url(../img/losa_izq.webp) left top / var(--ala-i) 100% no-repeat, url(../img/losa_centro.webp) calc(var(--ala-i) - 3px) top / calc(100% - var(--ala-i) - var(--ala-d) + 9px) 100% no-repeat;
  clip-path: inset(0 calc(var(--ala-d) - 6px) 0 0);
}
.losa::after {
  top: 0;
  bottom: 0;
  right: 0;
  width: var(--ala-d);
  background: url(../img/losa_der.webp) center / 100% 100% no-repeat;
}
.losa--estrecha::before {
  background: url(../img/losa_izq.webp) left center / var(--ala-i) auto no-repeat, url(../img/losa_centro.webp) calc(var(--ala-i) * .5) top / calc(100% - var(--ala-i) * .5 - var(--ala-d) * .5 + 4px) 100% no-repeat;
}
.losa--estrecha::after {
  top: 50%;
  bottom: auto;
  height: calc(var(--ala-d) / .933);
  transform: translateY(-50%);
}
.losa__texto {
  display: block;
}
.losa__linea {
  display: block;
  white-space: nowrap;
}
.losa .p {
  white-space: nowrap;
}
.losa .l {
  color: rgba(34, 35, 37, .88);
  text-shadow: .02em .03em 0 rgba(255, 255, 255, .8), -.012em -.018em .01em rgba(0, 0, 0, .16);
}
.js .losa {
  opacity: 0;
  transition: opacity .35s ease;
}
.js .losa::before {
  clip-path: inset(0 calc(100% - var(--ala-i) - 6px) 0 0);
  transition: clip-path var(--rollo) var(--pulso) .3s;
}
.js .losa::after {
  right: calc(100% - var(--ala-i) - var(--ala-d));
  transition: right var(--rollo) var(--pulso) .3s;
}
.js .estela.grabada .losa {
  opacity: 1;
}
.js .estela.grabada .losa::before {
  clip-path: inset(0 calc(var(--ala-d) - 6px) 0 0);
}
.js .estela.grabada .losa::after {
  right: 0;
}
.js .estela.midiendo .losa::before,
.js .estela.midiendo .losa::after {
  transition: none;
}
.js .estela .losa .l {
  opacity: 0;
}
.js .estela.sugerida .losa .l {
  opacity: 1;
  color: rgba(77, 108, 142, .3);
  text-shadow: none;
  transition: opacity .5s ease;
}
.js .estela .losa .l.va,
.js .estela.hecha .losa .l {
  opacity: 1;
  color: rgba(34, 35, 37, .88);
  text-shadow: .02em .03em 0 rgba(255, 255, 255, .8), -.012em -.018em .01em rgba(0, 0, 0, .16);
  transition: color .7s ease, text-shadow .9s ease;
}
.js .estela .losa .l.va.tecla {
  color: var(--azul);
  text-shadow: none;
  transition: none;
}
.js .estela .losa .l.va.tecla.rojo {
  color: var(--rojo);
}
.cursor-codigo {
  position: absolute;
  width: .07em;
  background: var(--azul);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.cursor-codigo.activo {
  opacity: 1;
  animation: parpadeo .9s steps(1) infinite;
}
.cursor-codigo.activo.tecleando {
  animation: none;
}
@keyframes parpadeo {
  50% {
    opacity: 0;
  }
}
.js .cabeza ~ .legal {
  opacity: 0;
  translate: 0 10px;
  transition: opacity 1.1s ease, translate 1.1s var(--curva);
}
.js body.listo .cabeza ~ .legal {
  opacity: 1;
  translate: 0 0;
}
.olivo {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.6s ease;
}
body.listo .olivo {
  opacity: 1;
}
.olivo {
  --u: max(1vw, 7px);
}
.olivo img {
  position: absolute;
  max-width: none;
  animation: mecer var(--t) ease-in-out infinite alternate;
}
.olivo__alta {
  width: calc(53 * var(--u));
  left: calc(100vw + 8.6 * var(--u));
  top: calc(-31.6 * var(--u));
  transform-origin: 2.6% 90.4%;
  --giro: -190deg;
  --vaiven: -1.7deg;
  --t: 5.6s;
  opacity: .17;
}
.olivo__baja {
  width: calc(53.6 * var(--u));
  left: calc(-10.75 * var(--u));
  top: calc(100vh - 24.4 * var(--u));
  transform-origin: 2.56% 90.5%;
  --giro: -4deg;
  --vaiven: 1.36deg;
  --t: 7.4s;
  opacity: .13;
}
@keyframes mecer {
  from {
    transform: rotate(var(--giro));
  }
  to {
    transform: rotate(calc(var(--giro) + var(--vaiven)));
  }
}
.pie__desc {
  margin-right: auto;
}
.pie__marca {
  margin-right: 0;
}
.pie__enlaces {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.6rem;
}
.pie__enlaces a {
  font-size: .875rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: .25em;
  transition: text-decoration-color .3s;
}
.pie__enlaces a:hover,
.pie__enlaces a:focus-visible {
  color: inherit;
  text-decoration-color: currentColor;
}
@media print {
  .olivo {
    display: none;
  }
  .js .cabeza ~ .legal {
    opacity: 1;
    translate: none;
  }
}
