@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --night: #0b1d33;
  --deep: #081628;
  --bough: #12294a;
  --chalk: #eaf2fb;
  --haze: #9db4cf;
  --signal: #5cd3e6;
  --ember: #f2b880;
  --twig: #2a4a73;
  --trunk: 2px;
  --gap: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --nudo-letra: "Fraunces", Georgia, "Times New Roman", serif;
  --hoja-letra: "Manrope", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--night);
  color: var(--chalk);
  font-family: var(--hoja-letra);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

button,
select,
input,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgb(92 211 230 / 0.2);
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--signal);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 3px;
}

h1,
h2,
h3 {
  font-family: var(--nudo-letra);
  font-weight: 500;
  font-variation-settings: "SOFT" 30;
  line-height: 1.14;
  text-wrap: balance;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.3rem);
}

h3 {
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  padding: 0.6rem 1rem;
  background: var(--signal);
  color: var(--night);
  font-weight: 700;
  border-radius: 999px;
}

.skip:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: min(100% - 2.5rem, 74rem);
  margin-inline: auto;
}

.prose {
  max-width: 66ch;
}

.prose h2 {
  margin-top: 1.8em;
}

.prose h3 {
  margin-top: 1.6em;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
  margin: 0 0 1.2em;
}

.prose li {
  margin-bottom: 0.4em;
}

.lead {
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
  color: var(--haze);
  max-width: 60ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.6rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--signal);
  color: var(--night);
  font: 700 1rem/1.2 var(--hoja-letra);
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: #8be2ef;
}

.copa {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(11 29 51 / 0.94);
  border-bottom: 1px solid var(--twig);
  padding-top: env(safe-area-inset-top);
}

@supports (backdrop-filter: blur(6px)) {
  .copa {
    background: rgb(11 29 51 / 0.82);
    backdrop-filter: blur(6px);
  }
}

.copa-in {
  width: min(100% - 2.5rem, 74rem);
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem 0.6rem;
}

.raiz {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.6rem;
  color: var(--chalk);
  text-decoration: none;
  font-family: var(--nudo-letra);
  font-size: 1.2rem;
  font-variation-settings: "SOFT" 60;
  white-space: nowrap;
}

.nudo {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgb(92 211 230 / 0.18);
  flex-shrink: 0;
}

.ramas {
  flex: 1;
  display: flex;
  align-items: flex-start;
}

.ramas::before {
  content: "";
  width: 2rem;
  height: var(--trunk);
  margin-top: calc(1.3rem - 1px);
  background: var(--twig);
  flex-shrink: 0;
}

.ramas ul {
  display: flex;
  flex: 1;
  margin: calc(1.3rem - 1px) 0 0;
  padding: 0;
  list-style: none;
  border-top: var(--trunk) solid var(--twig);
}

.ramas li {
  position: relative;
  flex: 1;
  text-align: center;
}

.ramas li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--trunk);
  height: 0.7rem;
  margin-left: -1px;
  background: var(--twig);
}

.ramas a {
  position: relative;
  display: block;
  padding: 1.35rem 0.4rem 0.35rem;
  color: var(--haze);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.ramas a::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  left: 50%;
  width: 0.6rem;
  height: 0.6rem;
  margin-left: -0.3rem;
  border-radius: 50%;
  background: var(--night);
  border: 2px solid var(--twig);
}

.ramas a:hover {
  color: var(--chalk);
}

.ramas a:hover::before {
  border-color: var(--haze);
}

.ramas a[aria-current="page"] {
  color: var(--chalk);
}

.ramas a[aria-current="page"]::before {
  background: var(--signal);
  border-color: var(--signal);
}

.ramas-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--twig);
  border-radius: 999px;
  background: var(--bough);
  color: var(--chalk);
  font: 600 0.95rem/1 var(--hoja-letra);
  cursor: pointer;
}

.ramas-toggle:hover {
  border-color: var(--signal);
}

.ramas-toggle svg {
  width: 1.3rem;
  height: 1.3rem;
}

.dialog-menu {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-y: auto;
  background: var(--deep);
  color: var(--chalk);
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgb(3 10 20 / 0.72);
}

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: max(1rem, env(safe-area-inset-top)) 1.25rem 1rem;
  border-bottom: 1px solid var(--twig);
}

.menu-top h2 {
  margin: 0;
  font: 600 1rem/1.2 var(--hoja-letra);
  color: var(--haze);
}

.close {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  border: 1px solid var(--twig);
  border-radius: 50%;
  background: transparent;
  color: var(--chalk);
  cursor: pointer;
}

.close:hover {
  border-color: var(--signal);
}

.close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.menu-list {
  list-style: none;
  margin: 2rem 1.25rem;
  padding: 0 0 0 1.4rem;
  border-left: var(--trunk) solid var(--twig);
}

.menu-list li {
  position: relative;
}

.menu-list li::before {
  content: "";
  position: absolute;
  left: -1.4rem;
  top: 50%;
  width: 1.1rem;
  height: var(--trunk);
  background: var(--twig);
}

.menu-list a {
  position: relative;
  display: block;
  padding: 0.55rem 0 0.55rem 0.4rem;
  color: var(--chalk);
  text-decoration: none;
  font-family: var(--nudo-letra);
  font-size: clamp(1.6rem, 1.3rem + 2vw, 2.4rem);
  line-height: 1.2;
}

.menu-list a::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: -0.35rem;
  border-radius: 50%;
  background: var(--deep);
  border: 2px solid var(--twig);
}

.menu-list .menu-raiz a {
  font-size: 1.05rem;
  font-family: var(--hoja-letra);
  font-weight: 700;
  color: var(--haze);
}

.menu-list a[aria-current="page"] {
  color: var(--signal);
}

.menu-list a[aria-current="page"]::before {
  background: var(--signal);
  border-color: var(--signal);
}

.cruce {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) clamp(2rem, 1rem + 3vw, 4rem);
}

.cruce-arbol {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cruce-raiz {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 48rem;
}

.nudo-raiz-arbol {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 6px rgb(92 211 230 / 0.16);
}

.cruce h1 {
  max-width: 16ch;
  margin-bottom: 0.5em;
}

.cruce .lead {
  margin-inline: auto;
  max-width: 54ch;
}

.cruce-raiz p:last-child {
  margin-bottom: 0;
}

.sigue {
  display: inline-block;
  padding-block: 0.35rem;
  color: var(--chalk);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--signal);
}

.sigue:hover {
  color: var(--signal);
}

.tallo {
  display: block;
  width: var(--trunk);
  height: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  margin-inline: auto;
  background: var(--twig);
}

.tallo-movil {
  display: none;
}

.eleccion {
  width: 100%;
}

.eleccion fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.eleccion legend {
  display: block;
  width: 100%;
  padding: 0;
  margin-bottom: 0.75rem;
  text-align: center;
  font-family: var(--nudo-letra);
  font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.3rem);
  font-variation-settings: "SOFT" 80;
}

.escena-corta {
  position: relative;
  max-width: 46ch;
  margin: 0 auto;
  padding: 1rem 1.4rem;
  border: 1px solid var(--twig);
  border-radius: 20px;
  background: var(--bough);
  color: var(--chalk);
}

.ramas-eleccion {
  display: block;
  width: 100%;
  height: clamp(5rem, 4rem + 4vw, 7.5rem);
  overflow: visible;
}

.ramas-eleccion path {
  fill: none;
  stroke: var(--twig);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.escena-corta::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.6rem;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: -0.55rem;
  border-radius: 50%;
  background: var(--signal);
}

@media (width < 48rem) {
  .escena-corta::after {
    display: none;
  }
}

.eleccion[data-elegida="subir4"] [data-rama="subir4"],
.eleccion[data-elegida="pasar"] [data-rama="pasar"],
.eleccion[data-elegida="subir6"] [data-rama="subir6"] {
  stroke: var(--signal);
  stroke-width: 5;
}

@media (prefers-reduced-motion: no-preference) {
  .ramas-eleccion path {
    transition: stroke 0.25s ease;
  }
}

.opciones,
.consecuencia {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(0.75rem, 0.4rem + 2vw, 2.5rem);
}

.opcion {
  position: relative;
  display: block;
  justify-self: center;
  width: min(100%, 15rem);
  cursor: pointer;
}

.opcion input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.opcion span {
  display: grid;
  place-items: center;
  min-height: 3rem;
  padding: 0.55rem 0.8rem;
  border: 2px solid var(--twig);
  border-radius: 999px;
  background: var(--night);
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
}

.opcion:hover span {
  border-color: var(--haze);
}

.opcion input:checked + span {
  border-color: var(--signal);
  background: #153c58;
  color: var(--chalk);
}

.opcion input:focus-visible + span {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.consecuencia {
  min-height: 12rem;
  margin-top: 1.5rem;
  text-align: center;
}

.aviso-eleccion {
  grid-column: 1 / -1;
  color: var(--haze);
}

.salida {
  position: relative;
  padding-top: 1.75rem;
}

.salida::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--trunk);
  height: 1.25rem;
  margin-left: -1px;
  background: var(--signal);
}

.salida[data-salida="subir4"] {
  grid-column: 1;
}

.salida[data-salida="pasar"] {
  grid-column: 2;
}

.salida[data-salida="subir6"] {
  grid-column: 3;
}

.salida.riesgo::before {
  background: var(--ember);
}

.salida p {
  color: var(--haze);
}

.salida p:last-child {
  margin-bottom: 0;
}

.salida .cifra {
  margin: 0 0 0.4rem;
  font-family: var(--nudo-letra);
  font-size: clamp(2.4rem, 2rem + 1.5vw, 3.2rem);
  line-height: 1;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}

.salida.riesgo .cifra {
  color: var(--ember);
}

@media (width < 48rem) {
  .ramas-eleccion {
    display: none;
  }

  .tallo-movil {
    display: block;
  }

  .opciones,
  .consecuencia {
    grid-template-columns: minmax(0, 1fr);
  }

  .opciones {
    position: relative;
    gap: 1.1rem;
    justify-items: center;
  }

  .opciones::before {
    content: "";
    position: absolute;
    top: -0.5rem;
    bottom: -1.5rem;
    left: 50%;
    width: var(--trunk);
    margin-left: -1px;
    background: var(--twig);
  }

  .opcion {
    width: min(100%, 17rem);
  }

  .salida[data-salida] {
    grid-column: 1;
  }

  .consecuencia {
    min-height: 0;
    margin-top: 1.5rem;
  }
}

.tronco {
  padding-bottom: 2rem;
}

.rama,
.page-head > .wrap,
.block > .wrap,
.dossier > .wrap {
  position: relative;
  padding-left: var(--gap);
  border-left: var(--trunk) solid var(--twig);
}

.rama {
  padding-block: clamp(2.5rem, 1.8rem + 2.5vw, 4.5rem);
}

.rama > h2,
.block > .wrap h2,
.dossier h2,
.page-head h1 {
  position: relative;
}

.rama > h2::before,
.block > .wrap > h2::before,
.block > .wrap > .prose > h2:first-child::before,
.dossier .prose > h2::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--gap) - var(--trunk) / 2 - 0.5rem);
  top: 0.32em;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--night);
  border: 2px solid var(--signal);
}

.page-head h1::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--gap) - var(--trunk) / 2 - 0.7rem);
  top: 0.3em;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 5px rgb(92 211 230 / 0.18);
}

.page-head > .wrap {
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) 2rem;
}

.page-head .lead {
  margin-bottom: 0;
}

.block > .wrap {
  padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.horquilla {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

.hoja {
  position: relative;
}

.hoja .cifra,
.catalogo .cifra {
  margin: 0 0 0.6rem;
  font-family: var(--nudo-letra);
  font-size: 2.3rem;
  line-height: 1;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}

.hoja .cifra span,
.catalogo .cifra span {
  display: block;
  margin-top: 0.35rem;
  font: 600 0.85rem/1.3 var(--hoja-letra);
  color: var(--haze);
}

.hoja-glosario .cifra {
  color: var(--ember);
}

.hoja h3 a,
.catalogo h3 a {
  color: var(--chalk);
  text-decoration: none;
}

.hoja h3 a:hover,
.catalogo h3 a:hover {
  color: var(--signal);
  text-decoration: underline;
}

.hoja p {
  color: var(--haze);
}

.hoja .meta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--chalk);
  margin: 0;
}

@media (width < 62rem) {
  .horquilla {
    margin-left: 0.2rem;
    padding-left: 1.4rem;
    border-left: var(--trunk) solid var(--twig);
  }

  .hoja::before {
    content: "";
    position: absolute;
    left: -1.4rem;
    top: 1.1rem;
    width: 1rem;
    height: var(--trunk);
    background: var(--twig);
  }
}

@media (width >= 62rem) {
  .horquilla {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.5rem;
    border-top: var(--trunk) solid var(--twig);
  }

  .hoja {
    --drop: 1.6rem;
    padding-top: calc(var(--drop) + 0.8rem);
  }

  .hoja:nth-child(even) {
    --drop: 4.2rem;
  }

  .hoja::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0.45rem;
    width: var(--trunk);
    height: var(--drop);
    background: var(--twig);
  }

  .hoja::after {
    content: "";
    position: absolute;
    top: var(--drop);
    left: 0.1rem;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: var(--night);
    border: 2px solid var(--haze);
  }
}

.calc {
  display: grid;
  gap: 2rem 3.5rem;
  margin-top: 2rem;
}

@media (width >= 58rem) {
  .calc {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
  }
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.field label {
  font-weight: 600;
}

.field small {
  color: var(--haze);
  font-size: 0.875rem;
}

.field input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--twig);
  border-radius: 12px;
  background: var(--deep);
  color: var(--chalk);
  font: 600 1.1rem/1.2 var(--hoja-letra);
  font-variant-numeric: tabular-nums;
}

.field input:hover {
  border-color: var(--haze);
}

.field input:user-invalid {
  border-color: var(--ember);
}

.arbol-ex {
  width: 100%;
  max-width: 34rem;
  overflow: visible;
}

.arbol-ex path {
  fill: none;
  stroke-linecap: round;
}

.rama-bien {
  stroke: var(--signal);
}

.rama-mal {
  stroke: var(--ember);
}

.nudo-raiz {
  fill: var(--chalk);
}

.nudo-bien {
  fill: var(--signal);
}

.nudo-mal {
  fill: var(--ember);
}

.arbol-ex text {
  font-family: var(--hoja-letra);
  font-size: 15px;
  font-weight: 600;
}

.arbol-ex .t-dim {
  fill: var(--haze);
  font-weight: 500;
}

.arbol-ex .t-bien {
  fill: var(--signal);
}

.arbol-ex .t-mal {
  fill: var(--ember);
}

@media (prefers-reduced-motion: no-preference) {
  .arbol-ex path {
    transition: stroke-width 0.3s ease;
  }
}

.readout {
  margin-top: 1.25rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--signal);
}

.readout > span {
  color: var(--haze);
  font-size: 0.92rem;
}

.readout .ex {
  display: block;
  margin: 0.2rem 0 0.7rem;
  font-family: var(--nudo-letra);
  font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--signal);
}

.readout .ex.minus {
  color: var(--ember);
}

.readout p:last-child {
  margin: 0;
}

.formula {
  font-size: 0.9rem;
  color: var(--haze);
}

.table-scroll {
  margin-top: 1.5rem;
  overflow-x: auto;
  container-type: inline-size;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

caption {
  text-align: left;
  padding: 0 0 0.8rem;
  color: var(--haze);
  font-size: 0.92rem;
}

th,
td {
  padding: 0.85rem 1rem 0.85rem 0;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--twig);
}

thead th {
  border-top: 0;
  border-bottom: 2px solid var(--twig);
  font-size: 0.85rem;
  color: var(--haze);
}

tbody th {
  font-family: var(--nudo-letra);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--signal);
}

td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@container (width < 36rem) {
  .stack thead {
    display: none;
  }

  .stack tr,
  .stack th,
  .stack td {
    display: block;
  }

  .stack tbody tr {
    padding: 0.6rem 0;
    border-top: 1px solid var(--twig);
  }

  .stack tbody th,
  .stack td {
    border-top: 0;
    padding: 0.3rem 0;
  }

  .stack td::before {
    content: attr(data-label) ": ";
    display: block;
    font-size: 0.8rem;
    color: var(--haze);
  }
}

.notice {
  padding: 1.25rem 1.5rem;
  border: 1px dashed var(--twig);
  border-radius: 16px;
  color: var(--chalk);
}

.notice p:last-child {
  margin: 0;
}

.contact-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem 2rem;
  grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
}

.contact-card {
  position: relative;
  padding-left: 1.4rem;
  border-left: var(--trunk) solid var(--twig);
}

.contact-card::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 0.35rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--night);
  border: 2px solid var(--signal);
}

.contact-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.contact-card p {
  color: var(--haze);
  margin-bottom: 0.6rem;
}

.contact-card p:last-child {
  margin-bottom: 0;
  color: var(--chalk);
  font-weight: 600;
}

.contact-card a,
.foot-mail a,
.apply a,
.contact-data a {
  overflow-wrap: break-word;
}

.contact-data {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.contact-data div {
  display: grid;
}

.contact-data dt {
  color: var(--haze);
  font-size: 0.82rem;
}

.contact-data dd {
  margin: 0;
}

.hours {
  list-style: none;
  margin: 0;
  padding: 0;
}

.figure {
  margin: 2rem 0;
}

.figure img,
.figure svg {
  width: 100%;
  border-radius: 16px;
}

.figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--haze);
}

.diagram text {
  font-family: var(--hoja-letra);
}

.split {
  display: grid;
  gap: 2rem 3.5rem;
  align-items: start;
}

@media (width >= 60rem) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  }
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.filters legend {
  float: left;
  width: 100%;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--haze);
}

.filters button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.4rem 1rem 0.4rem 0.8rem;
  border: 1px solid var(--twig);
  border-radius: 999px;
  background: transparent;
  color: var(--chalk);
  font: 600 0.95rem/1.2 var(--hoja-letra);
  cursor: pointer;
}

.filters button::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  border: 2px solid var(--haze);
}

.filters button:hover {
  border-color: var(--haze);
}

.filters button[aria-pressed="true"] {
  border-color: var(--signal);
  background: rgb(92 211 230 / 0.12);
}

.filters button[aria-pressed="true"]::before {
  background: var(--signal);
  border-color: var(--signal);
}

.sorter {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
}

.sorter label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--haze);
}

.sorter select {
  width: 100%;
  max-width: 100%;
  min-height: 2.75rem;
  padding: 0.4rem 2rem 0.4rem 0.9rem;
  border: 1px solid var(--twig);
  border-radius: 12px;
  background: var(--bough);
  color: var(--chalk);
  font: 600 0.95rem/1.2 var(--hoja-letra);
}

.catalogo {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.catalogo li {
  position: relative;
  display: grid;
  gap: 0.2rem 2rem;
  padding: 1.5rem 0;
  border-top: 1px dashed var(--twig);
}

.catalogo li::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--gap) - var(--trunk) / 2 - 0.4rem);
  top: 1.9rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--night);
  border: 2px solid var(--haze);
}

@media (width >= 48rem) {
  .catalogo li {
    grid-template-columns: 11rem minmax(0, 1fr);
  }

  .catalogo .cifra {
    grid-row: span 3;
  }
}

.catalogo h3 {
  margin-bottom: 0.3rem;
}

.catalogo p {
  color: var(--haze);
  margin: 0;
}

.catalogo .meter {
  display: flex;
  gap: 1rem;
  margin: 0;
  font-size: 0.85rem;
  color: var(--haze);
}

.catalogo .meter dt {
  display: inline;
}

.catalogo .meter dd {
  display: inline;
  margin: 0 0 0 0.25rem;
  color: var(--chalk);
  font-weight: 700;
}

.dossier-grid {
  display: grid;
  gap: 2rem 4rem;
  padding-block: clamp(2.5rem, 1.8rem + 2.5vw, 4.5rem);
}

@media (width >= 62rem) {
  .dossier-grid {
    grid-template-columns: minmax(0, 1fr) 17rem;
  }

  .dossier-side {
    position: sticky;
    top: 6.5rem;
    align-self: start;
  }
}

.portada {
  width: 100%;
  max-width: 17rem;
  border-radius: 16px;
  margin-bottom: 1.25rem;
}

.facts {
  margin: 0;
  display: grid;
  gap: 0.75rem;
  padding-left: 1rem;
  border-left: var(--trunk) solid var(--twig);
  font-size: 0.92rem;
}

.facts div {
  display: grid;
}

.facts dt {
  color: var(--haze);
  font-size: 0.82rem;
}

.facts dd {
  margin: 0;
  font-weight: 600;
}

.scene {
  position: relative;
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background: var(--bough);
  border: 1px solid var(--twig);
}

.scene b {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  color: var(--ember);
}

.scene p:last-child {
  margin: 0;
}

.source {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--twig);
  font-size: 0.92rem;
  color: var(--haze);
}

.term {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline dotted var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  cursor: help;
}

.term:hover {
  color: var(--signal);
}

.dialog-term {
  width: min(100% - 2rem, 34rem);
  padding: 1.75rem;
  border: 1px solid var(--twig);
  border-radius: 20px;
  background: var(--bough);
  color: var(--chalk);
}

.dialog-term h2 {
  font-size: 1.6rem;
}

.dialog-term .row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
}

.glossary {
  margin: 2rem 0 0 0.3rem;
  padding-left: 1.5rem;
  border-left: var(--trunk) solid var(--twig);
}

.glossary details {
  position: relative;
}

.glossary summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 3.2rem;
  padding: 0.6rem 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--nudo-letra);
  font-size: 1.35rem;
  font-variation-settings: "SOFT" 60;
}

.glossary summary::-webkit-details-marker {
  display: none;
}

.glossary summary::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 50%;
  width: 1.1rem;
  height: var(--trunk);
  background: var(--twig);
}

.glossary summary::after {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 0.45rem - 1px);
  top: 50%;
  width: 0.8rem;
  height: 0.8rem;
  margin-top: -0.4rem;
  border-radius: 50%;
  background: var(--night);
  border: 2px solid var(--haze);
}

.glossary details[open] > summary::after {
  background: var(--signal);
  border-color: var(--signal);
}

.glossary summary:hover {
  color: var(--signal);
}

.glossary .def {
  max-width: 64ch;
  padding: 0 0 1.25rem;
}

.glossary .def p:last-child {
  margin-bottom: 0;
}

.glossary .eg {
  color: var(--haze);
}

.jobs {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 2rem 2.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr));
}

.jobs li {
  position: relative;
  padding-left: 1.4rem;
  border-left: var(--trunk) solid var(--twig);
}

.jobs li::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 0.3rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--night);
  border: 2px solid var(--ember);
}

.jobs .kind {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ember);
  font-size: 0.88rem;
  font-weight: 700;
}

.jobs h2 {
  font-size: 1.45rem;
}

.jobs h2::before {
  display: none;
}

.jobs p:last-child {
  margin-bottom: 0;
}

.apply {
  font-size: 0.92rem;
  color: var(--haze);
}

.charter {
  list-style: none;
  padding: 0 0 0 1.4rem;
  margin: 1.5rem 0 0;
  border-left: var(--trunk) solid var(--twig);
}

.charter li {
  position: relative;
  padding: 0.6rem 0;
}

.charter li::before {
  content: "";
  position: absolute;
  left: calc(-1.4rem - 0.45rem - 1px);
  top: 1rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--night);
  border: 2px solid var(--signal);
}

.site-foot {
  padding-block: 3rem 1.5rem;
  background: var(--deep);
  border-top: var(--trunk) solid var(--twig);
  font-size: 0.95rem;
}

.foot-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
}

.foot-grid > * {
  position: relative;
  padding-left: 1rem;
  border-left: 1px solid var(--twig);
}

.foot-brand {
  font-family: var(--nudo-letra);
  font-size: 1.4rem;
  font-variation-settings: "SOFT" 60;
  color: var(--chalk);
  margin: 0 0 0.4rem;
}

.site-foot h2 {
  font-family: var(--hoja-letra);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--haze);
  margin: 0 0 0.8rem;
}

.site-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-foot li + li {
  margin-top: 0.35rem;
}

.site-foot a {
  color: var(--chalk);
  text-decoration: none;
}

.site-foot a:hover {
  color: var(--signal);
  text-decoration: underline;
}

.site-foot p {
  color: var(--haze);
}

.foot-mail li {
  display: grid;
}

.foot-mail span {
  font-size: 0.8rem;
  color: var(--haze);
}

.site-foot .contact-data {
  margin-top: 1rem;
  color: var(--chalk);
}

.foot-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--twig);
  color: var(--haze);
  font-size: 0.85rem;
}

.lost {
  min-height: 100svh;
  display: grid;
  place-content: center;
  padding: 2rem 1.25rem;
  text-align: center;
}

.lost .code {
  font-family: var(--nudo-letra);
  font-size: clamp(4rem, 3rem + 8vw, 9rem);
  line-height: 1;
  color: var(--ember);
  margin: 0 0 1rem;
}

.lost p {
  max-width: 40ch;
  margin-inline: auto;
  color: var(--haze);
}

@media (width < 62rem) {
  .ramas {
    display: none;
  }

  .ramas-toggle {
    display: inline-flex;
  }

  .copa-in {
    align-items: center;
    padding-block: 0.6rem;
  }
}

@media (width < 30rem) {
  :root {
    --gap: 1.1rem;
  }

  .raiz {
    font-size: 1.05rem;
  }

  .ramas-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .ramas-toggle {
    padding: 0.4rem 0.7rem;
  }
}
