/* Contrato Checklist landing — "Carpeta de gomas": a blue cardboard folder, cream paper, cocoa ink. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --crema: #f6f1e7;
  --papel: #fffdf8;
  --cacao: #2e211b;
  --cacao-suave: #6b5a50;
  --azul: #a9cbe8;
  --azul-claro: #dbe9f5;
  --azul-profundo: #255a84;
  --frambuesa: #a02c5a;
  --rosa: #f4dde6;
  --ocre: #f7e6bf;
  --linea: rgba(46, 33, 27, 0.16);
  --linea-fuerte: rgba(46, 33, 27, 0.32);
  --titulos: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", sans-serif;
  --texto: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --borde: 16px;
  --ancho: 1180px;
  --lado: clamp(18px, 4vw, 40px);
}

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

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

body {
  margin: 0;
  background: var(--crema);
  color: var(--cacao);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}

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

h1,
h2,
h3 {
  font-family: var(--titulos);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 0.16em;
}
:focus-visible {
  outline: 3px solid var(--azul-profundo);
  outline-offset: 3px;
  border-radius: 4px;
}
.tramo--frambuesa :focus-visible,
.pie :focus-visible {
  outline-color: var(--papel);
}

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.9em;
  background: rgba(46, 33, 27, 0.07);
  padding: 0.1em 0.35em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}

.ancho {
  width: 100%;
  max-width: calc(var(--ancho) + 2 * var(--lado));
  margin: 0 auto;
  padding: 0 var(--lado);
  position: relative;
}

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

.salto {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 20;
  background: var(--cacao);
  color: var(--papel);
  padding: 10px 16px;
  border-radius: 10px;
}
.salto:focus {
  top: 12px;
}

/* ---------- Small pieces ---------- */

.sobre {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cacao-suave);
}
.sobre--frambuesa {
  color: var(--frambuesa);
}
.tapa .sobre,
.lomo .sobre {
  color: var(--cacao);
}

.boton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--cacao);
  color: var(--papel);
  font-family: var(--titulos);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.15;
  text-decoration: none;
  border: 2px solid var(--cacao);
  transition: background-color 0.15s ease, color 0.15s ease;
}
a.boton:hover {
  background: var(--papel);
  color: var(--cacao);
}
.boton svg {
  flex: none;
}
.boton--s {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.9375rem;
  border-radius: 10px;
}
/* "Coming soon": not a link, so it must not look pressable */
.boton--pronto {
  background: transparent;
  color: var(--cacao);
  border-style: dashed;
  cursor: default;
}

.enlace {
  font-weight: 700;
  color: var(--cacao);
}
.tramo--crema .enlace,
.tramo--papel .enlace {
  color: var(--azul-profundo);
}

.goma {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(120px, 21vw, 290px);
  height: clamp(120px, 21vw, 290px);
  color: var(--cacao);
  pointer-events: none;
}

.sello {
  display: inline-block;
  width: 26px;
  height: 12px;
  border-radius: 4px;
  background: var(--frambuesa);
  margin-right: 10px;
  vertical-align: 0;
}

/* Real captures of the app, shown as a sheet of paper with a cocoa outline */
.hoja {
  border: 4px solid var(--cacao);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  overflow: hidden;
  background: var(--papel);
}
.hoja__img {
  width: 100%;
}

/* ---------- Header ---------- */

.cabecera {
  background: var(--crema);
}
.cabecera__fila {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  min-height: 44px;
}
.marca__icono {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: none;
}
.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-weight: 500;
  font-size: 0.9688rem;
  white-space: nowrap;
}
.menu a {
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 9px;
}
.menu a:hover {
  background: rgba(46, 33, 27, 0.07);
}
.menu a[aria-current="page"] {
  background: var(--azul);
}

/* ---------- Home: the folder cover ---------- */

.tapa {
  position: relative;
  background: var(--azul);
  overflow: hidden;
}
.tapa__rejilla {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: end;
}
.tapa__texto {
  padding: clamp(48px, 7vw, 96px) 0 clamp(84px, 9vw, 124px);
}
.tapa h1 {
  font-size: clamp(2.75rem, 7.2vw, 6rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin-top: 18px;
  max-width: 11ch;
}
.tapa__entrada {
  margin-top: 26px;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.45;
  max-width: 38em;
}
.tapa__accion {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
}
.tapa__datos {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  border-top: 2px solid var(--cacao);
  max-width: 44em;
}
.tapa__datos li {
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.3;
  padding: 12px 22px 0 0;
  margin-right: 22px;
  flex: 1 1 150px;
}
.tapa__aviso {
  margin-top: 26px;
  font-size: 0.9375rem;
  font-weight: 700;
}
.tapa__hoja {
  align-self: end;
  padding-top: clamp(40px, 5vw, 64px);
  height: 100%;
  max-height: 720px;
  display: flex;
}
.hoja--portada {
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  border-width: 5px;
  border-radius: 30px 30px 0 0;
  align-self: stretch;
  min-height: 420px;
}

/* ---------- Sections with an index tab ---------- */

.tramo {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 9vw, 128px);
}
.tramo--crema {
  background: var(--crema);
}
.tramo--papel {
  background: var(--papel);
}
.tramo--frambuesa {
  background: var(--frambuesa);
  color: var(--papel);
}

/* The tab rises from the top edge of its section, over the previous one */
.pestana {
  position: absolute;
  left: var(--lado);
  top: calc(-1 * clamp(56px, 7vw, 96px));
  transform: translateY(-100%);
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 26px 11px;
  border-radius: 14px 14px 0 0;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.2;
  background: var(--crema);
  color: var(--cacao);
  white-space: nowrap;
}
.pestana span {
  letter-spacing: 0.14em;
  font-size: 0.8125rem;
  color: var(--cacao-suave);
}
.tramo--papel .pestana {
  background: var(--papel);
}
.tramo--frambuesa .pestana {
  background: var(--frambuesa);
  color: var(--papel);
}
.tramo--frambuesa .pestana span {
  color: #f6d3e0;
}

.tramo h2 {
  font-size: clamp(2rem, 4.2vw, 3.375rem);
}

.dos {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
}
.dos__titulo p {
  margin-top: 20px;
  color: var(--cacao-suave);
  max-width: 30em;
}
.dos__titulo p + p {
  margin-top: 16px;
}

.encabezado {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px clamp(28px, 6vw, 88px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.encabezado p {
  color: var(--cacao-suave);
  font-size: 0.9688rem;
}

/* Steps */
.pasos {
  border-top: 2px solid var(--cacao);
}
.paso {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--linea);
}
.paso__n {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--azul);
  display: grid;
  place-items: center;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.5rem;
}
.paso h3 {
  font-size: 1.375rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.paso p {
  margin-top: 6px;
  color: var(--cacao-suave);
}

/* Deal types: the index sheet of the folder */
.indice {
  margin-top: clamp(48px, 7vw, 88px);
  background: var(--papel);
  border: 1px solid var(--linea-fuerte);
  border-radius: var(--borde);
  overflow: hidden;
}
.indice__cab {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 16px clamp(24px, 5vw, 72px);
  padding: clamp(22px, 3vw, 36px);
  background: var(--azul);
  align-items: end;
}
.indice__cab h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
}
.indice__cab p {
  font-size: 0.9688rem;
}
.indice__lista {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.indice__lista li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 8px;
  padding: 18px clamp(18px, 2.4vw, 30px);
  border-top: 1px solid var(--linea);
  border-right: 1px solid var(--linea);
}
.indice__lista li:nth-child(3n) {
  border-right: 0;
}
.indice__n {
  grid-row: span 2;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--azul-profundo);
  padding-top: 4px;
}
.indice__lista strong {
  font-family: var(--titulos);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.2;
}
.indice__lista li > span:last-child {
  font-size: 0.9063rem;
  color: var(--cacao-suave);
  line-height: 1.4;
  margin-top: 3px;
}

/* Feature stories: text next to a "pocket" with a sheet sticking out */
.historia {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid var(--linea);
}
.historia--vuelta {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}
.historia--vuelta .historia__texto {
  order: 2;
}
.historia h3 {
  font-size: clamp(1.75rem, 3.2vw, 2.625rem);
  margin-top: 12px;
}
.historia__texto > p:not(.sobre) {
  margin-top: 16px;
  font-size: 1.125rem;
  line-height: 1.5;
}

.rayas {
  margin-top: 22px;
  border-top: 1px solid var(--linea-fuerte);
}
.rayas li {
  position: relative;
  padding: 11px 0 11px 30px;
  border-bottom: 1px solid var(--linea);
  font-size: 0.9688rem;
  line-height: 1.45;
}
.rayas li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 16px;
  width: 13px;
  height: 7px;
  border-left: 2.5px solid var(--azul-profundo);
  border-bottom: 2.5px solid var(--azul-profundo);
  transform: rotate(-45deg);
}

.nota-app {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--ocre);
  border-radius: 12px;
  font-size: 0.9688rem;
  line-height: 1.45;
}
.nota-app strong {
  display: block;
  font-family: var(--titulos);
  font-size: 1.0625rem;
  margin-bottom: 3px;
}

.bolsillo {
  height: clamp(340px, 38vw, 480px);
  padding: clamp(24px, 3.4vw, 44px) clamp(24px, 5vw, 72px) 0;
  border-radius: var(--borde);
  overflow: hidden;
  display: flex;
  justify-content: center;
  gap: 18px;
}
.bolsillo--azul {
  background: var(--azul);
}
.bolsillo--rosa {
  background: var(--rosa);
}
.bolsillo--ocre {
  background: var(--ocre);
}
.bolsillo .hoja {
  width: 100%;
  max-width: 380px;
  flex: 0 1 auto;
  align-self: flex-start;
  min-height: 100%;
}
.bolsillo--doble {
  padding-left: clamp(16px, 2.4vw, 32px);
  padding-right: clamp(16px, 2.4vw, 32px);
}
.bolsillo--doble .hoja {
  max-width: 290px;
  flex: 1 1 0;
  border-width: 3px;
  border-radius: 20px 20px 0 0;
}
.bolsillo--doble .hoja + .hoja {
  margin-top: 44px;
}

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid var(--linea);
}
.bolsillo--bajo {
  height: clamp(220px, 22vw, 290px);
  padding: 24px 28px 0;
}
.bolsillo--bajo .hoja {
  max-width: 280px;
  border-width: 3px;
  border-radius: 20px 20px 0 0;
}
.ficha h3 {
  font-size: 1.5rem;
  line-height: 1.12;
  margin-top: 20px;
}
.ficha p {
  margin-top: 10px;
  color: var(--cacao-suave);
  font-size: 0.9688rem;
}

.ademas {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 20px clamp(28px, 5vw, 72px);
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 2px solid var(--cacao);
}
.ademas h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
}
.ademas__lista {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
}
.ademas__lista > div {
  padding: 0 0 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--linea);
}
.ademas__lista dt {
  font-family: var(--titulos);
  font-weight: 600;
  font-size: 1.125rem;
}
.ademas__lista dd {
  margin-top: 4px;
  color: var(--cacao-suave);
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* Limits: the raspberry mark */
.limites {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: end;
}
.limites h2 {
  font-size: clamp(2.125rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.limites__cita {
  margin-top: 28px;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  max-width: 36em;
  padding-left: 20px;
  border-left: 4px solid var(--papel);
}
.limites__lista {
  border-top: 2px solid var(--papel);
}
.limites__lista li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 253, 248, 0.35);
  font-weight: 500;
  line-height: 1.4;
}
.limites__lista svg {
  margin-top: 2px;
}

/* Data */
.cuadro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--cacao);
  border-left: 1px solid var(--linea);
}
.cuadro > div {
  padding: 20px 22px 22px;
  border-right: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
  background: var(--papel);
}
.cuadro dt {
  font-family: var(--titulos);
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.2;
}
.cuadro dd {
  margin-top: 6px;
  color: var(--cacao-suave);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.limite-copia {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 12px clamp(24px, 5vw, 72px);
  padding: clamp(20px, 3vw, 32px);
  background: var(--ocre);
  border-radius: var(--borde);
}
.limite-copia h3 {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
}

/* FAQ */
.dudas {
  border-top: 2px solid var(--cacao);
}
.dudas details {
  border-bottom: 1px solid var(--linea);
}
.dudas summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 18px 48px 18px 0;
  font-family: var(--titulos);
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.25;
}
.dudas summary::-webkit-details-marker {
  display: none;
}
.dudas summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 22px;
  width: 11px;
  height: 11px;
  border-right: 2.5px solid var(--cacao);
  border-bottom: 2.5px solid var(--cacao);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.dudas details[open] summary::after {
  transform: translateY(5px) rotate(-135deg);
}
.dudas details p {
  padding: 0 48px 20px 0;
  color: var(--cacao-suave);
  max-width: 44em;
}

/* Closing: the folder again */
.cierre {
  position: relative;
  background: var(--azul);
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0;
}
.cierre__fila {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px clamp(28px, 6vw, 88px);
  align-items: end;
}
.cierre h2 {
  font-size: clamp(2.25rem, 5.4vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.cierre__fila > div > p {
  margin-top: 18px;
  font-size: 1.125rem;
  max-width: 34em;
}
.cierre__accion p {
  margin-top: 16px;
  font-size: 0.9688rem;
}
.cierre__accion a:not(.boton) {
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* ---------- Inner pages ---------- */

.lomo {
  position: relative;
  background: var(--azul);
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px) 0 clamp(84px, 9vw, 116px);
}
.lomo .goma {
  width: clamp(96px, 15vw, 200px);
  height: clamp(96px, 15vw, 200px);
}
.lomo h1 {
  font-size: clamp(2.375rem, 5.6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 14px;
  max-width: 14ch;
}
.lomo__entrada {
  margin-top: 20px;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.45;
  max-width: 36em;
}
.lomo--solo {
  padding-bottom: clamp(72px, 10vw, 140px);
}
.lomo__accion {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
}

/* First block of an inner page: a rounded sheet pulled over the blue */
.tramo--doc {
  border-radius: 22px 22px 0 0;
  margin-top: -22px;
}
.tramo--doc .pestana {
  top: calc(-1 * clamp(56px, 7vw, 96px) + 1px);
}

.doc {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: start;
}
.doc__indice {
  position: sticky;
  top: 24px;
  font-size: 0.9375rem;
}
.doc__rotulo {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cacao-suave);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cacao);
}
.doc__indice ol {
  counter-reset: indice;
}
.doc__indice li {
  counter-increment: indice;
  border-bottom: 1px solid var(--linea);
}
.doc__indice a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 8px 0;
  text-decoration: none;
  line-height: 1.3;
}
.doc__indice a::before {
  content: counter(indice, decimal-leading-zero);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--azul-profundo);
  padding-top: 2px;
}
.doc__indice a:hover {
  text-decoration: underline;
}

.prosa {
  max-width: 46em;
}
.prosa section + section {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--linea);
}
.prosa h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.12;
}
.prosa p,
.prosa ul {
  margin-top: 16px;
}
.prosa ul {
  list-style: none;
}
.prosa ul li {
  position: relative;
  padding-left: 24px;
  margin-top: 10px;
}
.prosa ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: var(--azul-profundo);
}
.prosa a {
  color: var(--azul-profundo);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.prosa__aviso {
  margin-top: 20px;
  padding: 16px 18px 16px 20px;
  border-left: 5px solid var(--frambuesa);
  background: var(--papel);
  border-radius: 0 12px 12px 0;
  font-weight: 500;
  color: var(--cacao) !important;
  font-size: 0.9688rem;
}
.tramo--papel .prosa__aviso {
  background: var(--crema);
}

.tabla {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--linea-fuerte);
  border-radius: 12px;
  background: var(--papel);
}
.tabla table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.tabla th,
.tabla td {
  text-align: left;
  vertical-align: top;
  padding: 11px 14px;
  border-bottom: 1px solid var(--linea);
}
.tabla thead th {
  background: var(--azul);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tabla tbody th {
  font-family: var(--titulos);
  font-weight: 600;
  font-size: 1rem;
}
.tabla tbody tr:last-child th,
.tabla tbody tr:last-child td {
  border-bottom: 0;
}
.tabla td {
  color: var(--cacao-suave);
}

.contacto {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 24px clamp(28px, 6vw, 88px);
  align-items: start;
}
.contacto p {
  margin-top: 16px;
  color: var(--cacao-suave);
  max-width: 30em;
}
.contacto__correo {
  font-family: var(--titulos);
  font-weight: 700;
  font-size: clamp(1.375rem, 3vw, 2.125rem);
  letter-spacing: -0.01em;
  color: var(--cacao);
  overflow-wrap: anywhere;
}
.contacto .rayas {
  margin-top: 6px;
}

.version {
  max-width: 46em;
}
.version h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}
.version h2 span {
  display: inline-block;
  background: var(--azul);
  border-radius: 10px;
  padding: 2px 12px 4px;
  margin-right: 8px;
}
.version__pie {
  margin-top: 32px;
  color: var(--cacao-suave);
  max-width: 46em;
}

/* ---------- Footer ---------- */

.pie {
  background: var(--cacao);
  color: var(--crema);
  padding: clamp(44px, 6vw, 72px) 0 28px;
  font-size: 0.9688rem;
}
.pie__rejilla {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 32px clamp(28px, 5vw, 72px);
}
.pie__nombre {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.375rem;
}
.pie__nombre img {
  border-radius: 8px;
}
.pie__marca p + p {
  margin-top: 12px;
  max-width: 30em;
  color: #d9cfc4;
}
.pie__marca .pie__aviso {
  color: var(--crema);
  font-weight: 700;
}
.pie__col h2 {
  font-family: var(--texto);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azul);
  margin-bottom: 8px;
}
.pie__col li a {
  display: inline-block;
  padding: 7px 0;
}
.pie__col p {
  padding: 7px 0 0;
  color: #d9cfc4;
}
.pie__correo {
  color: var(--crema);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.pie__legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(246, 241, 231, 0.24);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  font-size: 0.8438rem;
  color: #d9cfc4;
}
.pie__legal p:last-child {
  max-width: 46em;
}

/* ---------- Narrower screens ---------- */

@media (max-width: 1020px) {
  .menu__largo {
    display: none;
  }
}

@media (max-width: 899px) {
  .tapa__rejilla,
  .dos,
  .encabezado,
  .historia,
  .limites,
  .cierre__fila,
  .doc,
  .contacto,
  .ademas,
  .limite-copia,
  .indice__cab {
    grid-template-columns: minmax(0, 1fr);
  }
  .tapa__texto {
    padding-bottom: 8px;
  }
  .tapa__hoja {
    height: 300px;
    padding-top: 28px;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  .hoja--portada {
    margin: 0 auto;
    max-width: 340px;
    min-height: 0;
  }
  /* Room for the tab of the next section, which sits over the foot of the sheet */
  .historia--vuelta {
    grid-template-columns: minmax(0, 1fr);
  }
  .historia--vuelta .historia__texto {
    order: 0;
  }
  .indice__lista {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .indice__lista li:nth-child(3n) {
    border-right: 1px solid var(--linea);
  }
  .indice__lista li:nth-child(2n) {
    border-right: 0;
  }
  .trio {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .bolsillo {
    height: 300px;
  }
  .bolsillo--bajo {
    height: 230px;
  }
  .doc__indice {
    position: static;
  }
  .doc__indice ol {
    columns: 2;
    column-gap: 24px;
  }
  .doc__indice li {
    break-inside: avoid;
  }
  .pie__rejilla {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .pie__marca {
    grid-column: 1 / -1;
  }
}

@media (max-width: 599px) {
  body {
    font-size: 1rem;
  }
  .cabecera__cta {
    display: none;
  }
  .cabecera__fila {
    gap: 8px;
    min-height: 60px;
  }
  .marca {
    font-size: 1.0625rem;
    gap: 8px;
  }
  .marca__icono {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .menu {
    gap: 0;
    font-size: 0.875rem;
  }
  .menu a {
    padding: 13px 7px;
  }
  .boton {
    width: 100%;
    justify-content: center;
  }
  .tapa__datos li {
    flex-basis: 100%;
    margin-right: 0;
    padding: 9px 0;
    border-bottom: 1px solid rgba(46, 33, 27, 0.25);
  }
  .tapa__datos li:last-child {
    border-bottom: 0;
  }
  .pestana {
    padding: 11px 18px 9px;
    font-size: 0.875rem;
  }
  .indice__lista,
  .cuadro,
  .ademas__lista {
    grid-template-columns: minmax(0, 1fr);
  }
  .indice__lista li {
    border-right: 0 !important;
    padding: 14px 18px;
  }
  .bolsillo {
    height: 270px;
    padding-left: 22px;
    padding-right: 22px;
  }
  .bolsillo--doble {
    padding-left: 14px;
    padding-right: 14px;
    gap: 12px;
  }
  .bolsillo--doble .hoja + .hoja {
    display: none;
  }
  .bolsillo.bolsillo--doble {
    height: 350px;
  }
  .bolsillo--doble .hoja {
    max-width: 380px;
  }
  .historia__texto > p:not(.sobre) {
    font-size: 1rem;
  }
  .indice__lista li > span:last-child {
    display: none;
  }
  .indice__lista li {
    align-items: baseline;
  }
  .bolsillo--bajo {
    height: 210px;
  }
  .dudas summary {
    font-size: 1.0625rem;
  }
  .dudas details p {
    padding-right: 0;
  }
  .doc__indice ol {
    columns: 1;
  }
  .tabla table {
    font-size: 0.875rem;
  }
  .tabla th,
  .tabla td {
    padding: 9px 10px;
  }
  .pie__rejilla {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
