/* Landing styles. "Cinta de pintor": sage wall, white woodwork, graphite ink,
   yellow masking tape. No gradients, no shadows. */

@font-face {
  font-family: "Red Hat Display";
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/red-hat-display-900.woff2") format("woff2");
}
@font-face {
  font-family: "Red Hat Display";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/red-hat-display-700.woff2") format("woff2");
}
@font-face {
  font-family: "Red Hat Text";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/red-hat-text-400.woff2") format("woff2");
}
@font-face {
  font-family: "Red Hat Text";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/red-hat-text-500.woff2") format("woff2");
}
@font-face {
  font-family: "Red Hat Text";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/red-hat-text-700.woff2") format("woff2");
}
@font-face {
  font-family: "Red Hat Mono";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/red-hat-mono-500.woff2") format("woff2");
}
@font-face {
  font-family: "Red Hat Mono";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/red-hat-mono-700.woff2") format("woff2");
}

:root {
  --pared: #b4c4ae;
  --papel: #edf0e8;
  --blanco: #ffffff;
  --rodapie: #f6f7f3;
  --suelo: #c49a6c;
  --tinta: #1c2520;
  --tinta-suave: #45504a;
  --salvia: #47604c;
  --linea: #d3dacd;
  --cinta: #f3c83e;
  --cinta-clara: #f9e9b0;
  --verde: #2c7a4b;
  --rojo: #b3372a;
  --gris: #6b746e;

  --titulo: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  --lectura: "Red Hat Text", "Segoe UI", system-ui, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, Consolas, monospace;

  --dientes: polygon(
    0 0, 100% 0,
    calc(100% - 5px) 12.5%, 100% 25%, calc(100% - 5px) 37.5%, 100% 50%,
    calc(100% - 5px) 62.5%, 100% 75%, calc(100% - 5px) 87.5%, 100% 100%,
    0 100%,
    5px 87.5%, 0 75%, 5px 62.5%, 0 50%, 5px 37.5%, 0 25%, 5px 12.5%
  );
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--lectura);
  font-size: 1.0625rem;
  line-height: 1.55;
}

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--titulo);
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.75rem, 3.3vw, 2.6rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}

a {
  color: inherit;
}

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

.ancho {
  width: min(100% - 32px, 1160px);
  margin-inline: auto;
}

.salto {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--tinta);
  color: var(--blanco);
  border-radius: 6px;
}

.salto:focus {
  top: 12px;
}

/* Tape */

.cinta {
  display: inline-block;
  padding: 0.6em 1.25em 0.55em;
  background: var(--cinta);
  color: var(--tinta);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-2deg);
  clip-path: var(--dientes);
}

.cinta--pronto {
  padding: 1.05em 1.7em 1em;
  font-size: 0.8125rem;
  transform: rotate(-1.5deg);
}

/* Buttons and links */

.boton {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  background: var(--tinta);
  color: var(--blanco);
  font-family: var(--titulo);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 10px;
  overflow-wrap: anywhere;
}

.boton:hover {
  background: #2e3a33;
}

.enlace {
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.enlace:hover {
  text-decoration-color: var(--salvia);
}

.acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

/* Header */

.cab {
  background: var(--pared);
}

.cab__fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--titulo);
  font-weight: 900;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.marca__signo {
  width: 40px;
  height: 40px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Wall, skirting board, floor */

.muro {
  background: var(--pared);
}

.rodapie {
  height: 16px;
  background: var(--rodapie);
}

.suelo {
  height: 88px;
  background: var(--suelo) url("/assets/app/suelo.svg") repeat-x left top / auto 88px;
}

/* Home: the room */

.sala {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 72px;
  align-items: end;
  padding-top: 40px;
}

.sala__texto {
  align-self: center;
  padding-bottom: 72px;
}

.sala__titulo {
  margin-top: 26px;
  font-size: clamp(2.3rem, 5.4vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.sala__entrada {
  max-width: 34em;
  margin-top: 24px;
  font-size: 1.1875rem;
  line-height: 1.5;
}

.sala .acciones {
  margin-top: 34px;
}

.sala__datos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 34px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sala__datos li::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  background: var(--tinta);
  border-radius: 2px;
  transform: rotate(-8deg);
}

.sala__pared {
  padding-top: 34px;
}

/* A capture: a sheet taped to the wall */

.hoja {
  position: relative;
  width: 360px;
  max-width: 100%;
}

.hoja__papel {
  display: block;
  overflow: hidden;
  background: var(--papel);
  border: 2px solid var(--tinta);
  border-radius: 18px;
}

.hoja__papel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hoja::before,
.hoja::after {
  content: "";
  position: absolute;
  top: 16px;
  z-index: 1;
  width: 104px;
  height: 27px;
  background: var(--cinta);
  clip-path: var(--dientes);
}

.hoja::before {
  left: -34px;
  transform: rotate(-42deg);
}

.hoja::after {
  right: -34px;
  transform: rotate(42deg);
}

.hoja .cinta--num {
  position: absolute;
  top: -15px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%) rotate(-3deg);
  white-space: nowrap;
}

.hoja--corta .hoja__papel {
  aspect-ratio: 448 / 770;
}

.hoja--sala {
  width: 400px;
}

.hoja--sala .hoja__papel {
  aspect-ratio: 448 / 700;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

/* Important note under the room */

.importante {
  background: var(--blanco);
  border-bottom: 2px solid var(--tinta);
}

.importante__fila {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 26px;
}

.importante .cinta {
  flex: none;
}

.importante p {
  font-weight: 500;
}

/* Section headings */

.rotulo {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 24px 64px;
  align-items: end;
}

.rotulo p {
  color: var(--tinta-suave);
}

/* Walkthrough */

.tramos {
  padding-block: 96px 40px;
}

.tramo {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 72px;
  align-items: center;
  padding-block: 72px;
}

.tramo + .tramo {
  border-top: 2px dashed var(--pared);
}

.tramo__hojas {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 16px 34px 0;
}

.tramo--par .tramo__hojas {
  padding-inline: 30px 34px;
}

.tramo--par .hoja {
  width: 312px;
}

.tramo--par {
  gap: 44px;
}

.tramo--vuelta .tramo__hojas {
  order: 2;
}

.tramo--vuelta {
  grid-template-columns: minmax(0, 1fr) auto;
}

.hoja--baja {
  margin-top: 56px;
}

.tramo__texto > * + * {
  margin-top: 18px;
}

.tramo__texto p {
  color: var(--tinta-suave);
}

.nota {
  font-size: 0.9375rem;
  color: var(--tinta-suave);
}

.ejemplo {
  padding: 2px 0 2px 16px;
  border-left: 6px solid var(--cinta);
  font-size: 0.9375rem;
}

.ejemplo__marca {
  display: block;
  margin-bottom: 4px;
  color: var(--tinta);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* State signs: told apart by shape as well as colour, as in the app */

.signo {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--blanco);
  font-family: var(--lectura);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1;
  border-radius: 6px;
}

.signo--ok {
  background: var(--verde);
  border-radius: 50%;
}

.signo--note {
  background: var(--cinta);
  color: var(--tinta);
  transform: rotate(-5deg);
}

.signo--damaged {
  background: var(--rojo);
}

.signo--na {
  background: var(--gris);
}

.signo--todo {
  border: 2px dashed var(--gris);
  border-radius: 50%;
}

.estados {
  display: grid;
  gap: 12px;
  padding: 20px 22px;
  background: var(--blanco);
  border-radius: 16px;
}

.estados li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.9688rem;
  color: var(--tinta-suave);
}

.estados strong {
  color: var(--tinta);
}

/* How the app counts */

.cuenta {
  padding-block: 96px;
  background: var(--blanco);
  border-top: 2px solid var(--tinta);
}

.cuenta__rejilla {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  margin-top: 72px;
}

.cuenta__hoja {
  padding-inline: 34px 0;
}

.cuenta__lado > * + * {
  margin-top: 36px;
}

.calculo {
  padding: 26px 28px;
  background: var(--papel);
  border-radius: 16px;
}

.calculo__titulo {
  font-weight: 700;
}

.calculo__estados {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 20px;
  padding-block: 18px;
  border-block: 1px solid var(--linea);
  font-size: 0.9375rem;
}

.calculo__estados li {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.calculo__estados b {
  font-family: var(--mono);
  font-weight: 700;
}

.calculo__cuentas > div {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  gap: 4px 16px;
  align-items: baseline;
  padding-block: 14px;
}

.calculo__cuentas > div + div {
  border-top: 1px solid var(--linea);
}

.calculo__cuentas > div:last-child {
  padding-bottom: 0;
}

.calculo__cuentas dt {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.calculo__cuentas dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 20px;
}

.cifras {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.9375rem;
}

.calculo__cuentas strong {
  font-family: var(--titulo);
  font-weight: 900;
  font-size: 1.75rem;
  line-height: 1;
  white-space: nowrap;
}

.reglas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 40px;
}

.reglas dt {
  font-family: var(--titulo);
  font-weight: 900;
  font-size: 1.0625rem;
}

.reglas dt::before {
  content: "";
  display: block;
  width: 34px;
  height: 9px;
  margin-bottom: 10px;
  background: var(--cinta);
  transform: rotate(-3deg);
}

.reglas dd {
  margin-top: 6px;
  font-size: 0.9688rem;
  color: var(--tinta-suave);
}

/* PDF draft */

.borrador {
  padding-block: 96px;
  background: var(--tinta);
  color: var(--papel);
}

.borrador :focus-visible {
  outline-color: var(--cinta);
}

.borrador__rejilla {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 72px;
  align-items: center;
}

.borrador__texto h2 {
  margin-top: 24px;
}

.borrador__texto > p {
  max-width: 36em;
  margin-top: 20px;
  color: #d5dccf;
}

.borrador__sub {
  margin-top: 30px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pared);
}

.marcas {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.marcas li {
  position: relative;
  padding-left: 30px;
}

.marcas li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 14px;
  height: 7px;
  border-left: 2.5px solid var(--cinta);
  border-bottom: 2.5px solid var(--cinta);
  transform: rotate(-45deg);
}

.marcas--claro li::before {
  border-color: var(--verde);
}

.aviso-pdf {
  max-width: 38em;
  margin-top: 36px;
  padding: 22px 24px;
  background: var(--cinta-clara);
  color: var(--tinta);
  border-radius: 10px;
}

.aviso-pdf p {
  font-weight: 500;
  font-size: 1.0625rem;
}

.aviso-pdf footer {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--tinta-suave);
}

.borrador__hoja {
  padding: 16px 34px 0;
}

.borrador .hoja__papel {
  border-color: var(--pared);
}

/* Data and limits: two notes on the wall */

.limites {
  padding-block: 104px 96px;
}

.limites__rejilla {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}

.nota-pared {
  position: relative;
  padding: 46px 36px 36px;
  background: var(--blanco);
  border: 2px solid var(--tinta);
  border-radius: 16px;
}

.nota-pared > .cinta {
  position: absolute;
  top: -16px;
  left: 28px;
}

.nota-pared h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

.nota-pared > p {
  margin-top: 24px;
}

.lista {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.lista li {
  position: relative;
  padding-left: 26px;
  color: var(--tinta-suave);
}

.lista li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 12px;
  height: 12px;
  background: var(--verde);
  border-radius: 50%;
}

.lista--no li::before {
  top: 0.72em;
  height: 3px;
  background: var(--rojo);
  border-radius: 0;
}

/* Last wall */

.final {
  position: relative;
  padding-block: 88px 80px;
}

.final__signo {
  position: absolute;
  right: 24px;
  bottom: 0;
  width: 280px;
  height: 280px;
}

.final h2 {
  max-width: 840px;
}

.final h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.02em;
}

.final p {
  max-width: 36em;
  margin-top: 20px;
  font-size: 1.125rem;
}

.final .acciones {
  margin-top: 32px;
}

/* Footer */

.pie {
  padding-block: 56px 40px;
  background: var(--tinta);
  color: var(--papel);
  font-size: 0.9688rem;
}

.pie :focus-visible {
  outline-color: var(--cinta);
}

.pie__rejilla {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 40px;
}

.pie__nombre {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--titulo);
  font-weight: 900;
  font-size: 1.125rem;
}

.pie__nombre img {
  border: 1px solid var(--salvia);
  border-radius: 8px;
}

.pie__marca p + p {
  max-width: 28em;
  color: #c3cdbe;
}

.pie__nav {
  display: grid;
  gap: 4px;
  align-content: start;
  justify-items: start;
}

.pie__nav a,
.pie__contacto a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.pie__rotulo {
  margin-bottom: 4px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cinta);
}

.pie__notas {
  display: grid;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #3a463f;
  font-size: 0.875rem;
  color: #c3cdbe;
}

/* Inner pages */

.muro--corto > .ancho {
  padding-block: 44px 56px;
}

.muro__titulo {
  margin-top: 22px;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
}

.muro__entrada {
  max-width: 34em;
  margin-top: 16px;
  font-size: 1.125rem;
}

.muro--corto .rodapie {
  border-bottom: 2px solid var(--tinta);
}

.interior {
  display: grid;
  grid-template-columns: 230px minmax(0, 720px);
  gap: 72px;
  align-items: start;
  padding-block: 64px 96px;
}

.interior--simple {
  grid-template-columns: minmax(0, 720px);
}

.indice {
  position: sticky;
  top: 24px;
  font-size: 0.9375rem;
}

.indice__rotulo {
  margin-bottom: 10px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--salvia);
}

.indice a {
  display: block;
  padding-block: 6px;
  text-decoration: none;
}

.indice a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.texto section + section {
  margin-top: 48px;
}

.texto h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
}

.texto h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 11px;
  margin-bottom: 14px;
  background: var(--cinta);
  transform: rotate(-3deg);
}

.texto section > * + * {
  margin-top: 16px;
}

.texto p a:not(.boton) {
  font-weight: 500;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.texto__ficha {
  margin-bottom: 40px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--salvia);
}

.tabla {
  overflow-x: auto;
  background: var(--blanco);
  border-radius: 16px;
}

table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
}

th {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

tbody tr {
  border-top: 1px solid var(--linea);
}

.pasos {
  counter-reset: paso;
  display: grid;
  gap: 16px;
}

.pasos li {
  position: relative;
  padding-left: 54px;
  counter-increment: paso;
}

.pasos li::before {
  content: "0" counter(paso);
  position: absolute;
  left: 0;
  top: 1px;
  padding: 3px 8px;
  background: var(--cinta);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.8125rem;
  transform: rotate(-3deg);
}

.metodo > div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 6px 28px;
  padding-block: 18px;
  border-top: 1px solid var(--linea);
}

.metodo dt {
  font-weight: 700;
}

.metodo dd p + p {
  margin-top: 10px;
}

.metodo dd {
  color: var(--tinta-suave);
}

.pag--aviso .texto {
  padding-block: 48px 96px;
}

/* Narrow screens */

@media (max-width: 1100px) {
  .final__signo {
    display: none;
  }

  .tramo--par .hoja {
    width: 270px;
  }

  .tramo,
  .tramo--par {
    gap: 36px;
  }

}

@media (max-width: 899px) {
  body {
    font-size: 1rem;
  }

  .cab__fila {
    padding-block: 10px;
  }

  .marca {
    gap: 8px;
    font-size: 0.9375rem;
  }

  .marca__signo {
    width: 30px;
    height: 30px;
  }

  .nav {
    gap: 16px;
    font-size: 0.9375rem;
  }

  .nav__extra {
    display: none !important;
  }

  .suelo {
    height: 56px;
    background-size: auto 56px;
  }

  .rodapie {
    height: 12px;
  }

  .sala {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 22px;
  }

  .sala__texto {
    padding-bottom: 40px;
  }

  .sala__titulo {
    margin-top: 20px;
  }

  .sala__entrada {
    margin-top: 18px;
    font-size: 1.0625rem;
  }

  .sala .acciones,
  .sala__datos {
    margin-top: 26px;
  }

  .sala__pared {
    display: flex;
    justify-content: center;
    padding-top: 20px;
  }

  .hoja--sala {
    width: 290px;
  }

  .hoja--sala .hoja__papel {
    aspect-ratio: 448 / 520;
  }

  .hoja::before,
  .hoja::after {
    top: 12px;
    width: 84px;
    height: 22px;
  }

  .hoja::before {
    left: -26px;
  }

  .hoja::after {
    right: -26px;
  }

  .importante__fila {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-block: 24px;
  }

  .rotulo {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .tramos {
    padding-block: 56px 8px;
  }

  .tramo,
  .tramo--par,
  .tramo--vuelta {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-block: 36px;
  }

  .tramo__hojas,
  .tramo--par .tramo__hojas {
    order: 2;
    gap: 44px;
    margin-inline: -16px;
    padding: 20px 44px 14px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .tramo .hoja,
  .tramo--par .hoja {
    flex: none;
    width: 260px;
    scroll-snap-align: center;
  }

  .hoja--baja {
    margin-top: 0;
  }

  .tramo .ejemplo {
    display: none;
  }

  .hoja--corta .hoja__papel,
  .hoja--larga .hoja__papel {
    aspect-ratio: 448 / 590;
  }

  .cuenta,
  .borrador {
    padding-block: 56px;
  }

  .cuenta__rejilla,
  .borrador__rejilla {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    margin-top: 0;
  }

  .cuenta__rejilla {
    margin-top: 40px;
  }

  .cuenta__hoja,
  .borrador__hoja {
    display: flex;
    justify-content: center;
    padding: 16px 0 0;
  }

  .cuenta__hoja .hoja,
  .borrador__hoja .hoja {
    width: 270px;
  }

  .borrador .hoja--larga .hoja__papel {
    aspect-ratio: 448 / 700;
  }

  .calculo {
    padding: 22px 18px;
  }

  .calculo__cuentas > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .reglas {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .reglas dt {
    font-size: 1rem;
  }

  .reglas dt::before {
    display: none;
  }

  .reglas dd {
    margin-top: 2px;
    font-size: 0.9375rem;
    line-height: 1.45;
  }

  .cuenta__lado > * + * {
    margin-top: 28px;
  }

  .limites {
    padding-block: 64px 56px;
  }

  .limites__rejilla {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .nota-pared {
    padding: 40px 22px 26px;
  }

  .nota-pared > .cinta {
    left: 18px;
  }

  .final {
    padding-block: 56px 48px;
  }

  .pie__rejilla {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .muro--corto > .ancho {
    padding-block: 28px 36px;
  }

  .interior {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-block: 40px 64px;
  }

  .indice {
    display: none;
  }

  .texto section + section {
    margin-top: 40px;
  }

  .metodo > div {
    grid-template-columns: minmax(0, 1fr);
  }

  table {
    min-width: 0;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  tbody tr {
    display: block;
    padding: 16px 18px;
  }

  tbody tr:first-child {
    border-top: 0;
  }

  td {
    display: block;
    padding: 0;
  }

  td + td {
    margin-top: 10px;
  }

  td:first-child {
    font-weight: 500;
  }

  td + td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--salvia);
  }
}

@media (max-width: 359px) {
  .marca__nombre {
    font-size: 0.8125rem;
  }

  .nav {
    gap: 12px;
    font-size: 0.875rem;
  }
}
