/*
 * PrecioJusto landing. Art direction "El tique": the page is a shop counter in sticker red with till
 * receipts on it (zigzag edges, perforation lines, dotted leaders) and real app screens that run under a torn edge.
 * No scripts, no third-party resources.
 */

@font-face {
  font-family: "Bitter";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/bitter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Bitter";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/bitter-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin-700-normal.woff2") format("woff2");
}

:root {
  --papel: #faf5ea;
  --crema: #f3ecdc;
  --tinta: #1e1b16;
  --tinta-suave: #5c5548;
  --linea: #e4dac6;
  --linea-fuerte: #cfc3aa;
  --rojo: #d03a22;
  --rojo-oscuro: #a62b17;
  --sol: #f5c542;
  --sol-suave: #fdf0c4;
  --sobre-sol: #3d2f00;
  --bien: #1f7a54;
  --bien-suave: #dcefe5;
  --ojo: #8a5a00;
  --ojo-suave: #fcebc0;
  --mal: #b3261e;
  --mal-suave: #faddd9;

  --titulos: "Bitter", Georgia, "Times New Roman", serif;
  --texto: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --margen: 16px;
  --tramo: 72px;
}

@media (min-width: 720px) {
  :root {
    --margen: 32px;
    --tramo: 112px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--rojo);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3 {
  font-family: var(--titulos);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

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

a {
  color: var(--rojo-oscuro);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

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

.cabecera :focus-visible,
.portada :focus-visible,
.cierre__texto :focus-visible,
.formulas :focus-visible,
.pie :focus-visible {
  outline-color: #fff;
}

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.92em;
  background: var(--crema);
  padding: 2px 6px;
  border-radius: 4px;
}

.ancho {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--margen);
}

.ancho--estrecho {
  max-width: 880px;
}

.salto {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  background: var(--sol);
  color: var(--sobre-sol);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
}

.salto:focus {
  top: 12px;
}

.antetitulo {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--rojo-oscuro);
  margin-bottom: 14px;
}

.antetitulo--claro {
  color: #fff;
}

.antetitulo--sol {
  color: var(--sol);
}

.entrada {
  font-size: 1.125rem;
  color: var(--tinta-suave);
  max-width: 34em;
  margin-top: 16px;
}

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

.cabecera {
  background: var(--rojo);
  color: #fff;
}

.cabecera__fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 28px;
  padding-top: 16px;
  padding-bottom: 8px;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--papel);
  text-decoration: none;
}

.marca img {
  width: 40px;
  height: auto;
}

.menu {
  flex: 1 1 100%;
  order: 3;
}

.menu ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  font-weight: 600;
  font-size: 0.975rem;
  text-decoration: none;
}

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

.menu a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--sol);
  text-decoration-thickness: 3px;
}

.cabecera__cta {
  display: none;
}

@media (min-width: 960px) {
  .cabecera__fila {
    flex-wrap: nowrap;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .menu {
    flex: 1 1 auto;
    order: 0;
  }

  .menu ul {
    justify-content: flex-end;
    column-gap: 28px;
  }

  .cabecera__cta {
    display: block;
  }
}

/* ---------- Buttons ---------- */

.boton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
}

.boton svg {
  flex: none;
}

.boton--play {
  background: var(--sol);
  color: var(--sobre-sol);
  border: 2px solid var(--tinta);
  box-shadow: 0 4px 0 var(--tinta);
}

a.boton--play:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--tinta);
}

.boton--pronto {
  background: transparent;
  color: #fff;
  border: 2px dashed #fff;
  box-shadow: none;
  cursor: default;
}

.boton--pequeno {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.95rem;
}

.boton--pequeno.boton--play:not(.boton--pronto) {
  box-shadow: 0 3px 0 var(--tinta);
}

.enlace-claro {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  font-weight: 700;
}

/* ---------- Receipt ("tique") ---------- */

.tique {
  position: relative;
  background: var(--papel);
  color: var(--tinta);
  padding: 28px 22px;
}

.tique::before,
.tique::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background-repeat: repeat-x;
  background-size: 16px 10px;
}

.tique::before {
  top: -9px;
  background-image: url("/assets/img/diente-arriba-papel.svg");
}

.tique::after {
  bottom: -9px;
  background-image: url("/assets/img/diente-abajo-papel.svg");
}

@media (min-width: 720px) {
  .tique {
    padding: 40px;
  }
}

.tique__cabecera {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--tinta-suave);
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 2px dashed var(--linea-fuerte);
}

.tique__cabecera span:first-child {
  color: var(--rojo-oscuro);
}

.tique__pie {
  font-size: 0.875rem;
  color: var(--tinta-suave);
  margin-top: 18px;
  padding-top: 14px;
  border-top: 2px dashed var(--linea-fuerte);
}

.tique__resultado {
  margin: 18px 0;
  padding: 18px 20px 18px 44px;
  background: var(--rojo);
  color: #fff;
  border-radius: 28px 10px 10px 28px;
  position: relative;
}

.tique__resultado::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 24px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--papel);
}

.tique__etiqueta {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tique__cifra {
  font-family: var(--titulos);
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 3.6rem);
  line-height: 1.05;
  margin-top: 4px;
}

.tique__unidad {
  font-weight: 600;
}

.pegatina {
  position: absolute;
  top: -60px;
  right: -10px;
  width: 84px;
  height: 84px;
  padding: 20px 14px;
  border-radius: 50%;
  background: var(--sol);
  transform: rotate(10deg);
  z-index: 2;
}

/* Receipt lines with dotted leaders */

.cuenta__linea {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  padding: 7px 0;
}

.cuenta dt {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: baseline;
}

.cuenta dt::after {
  content: "";
  flex: 1 1 20px;
  min-width: 20px;
  margin: 0 8px;
  border-bottom: 2px dotted var(--linea-fuerte);
  position: relative;
  top: -4px;
}

.cuenta dd {
  font-family: var(--titulos);
  font-weight: 600;
  font-size: 1.0625rem;
  white-space: nowrap;
}

.cuenta dd.cuenta__nota {
  flex: 0 0 100%;
  font-family: var(--texto);
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--tinta-suave);
  white-space: normal;
  padding-right: 20%;
}

.cuenta__linea--total {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 2px dashed var(--linea-fuerte);
}

.cuenta__linea--total dt,
.cuenta__linea--fuerte dt {
  font-weight: 700;
}

.cuenta__linea--total dd:not(.cuenta__nota) {
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--rojo-oscuro);
}

.cuenta__linea--fuerte dd {
  font-weight: 700;
}

.cuenta__linea--mal dd {
  color: var(--mal);
}

/* Price tag */

.etiqueta {
  display: inline-block;
  position: relative;
  background: var(--rojo);
  color: #fff;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  padding: 7px 14px 7px 32px;
  border-radius: 20px 6px 6px 20px;
}

.etiqueta::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--papel);
}

/* Status chips, as in the app: never colour alone */

.estado {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

.estado::before {
  font-weight: 700;
}

.estado--rentable {
  background: var(--bien-suave);
  color: var(--bien);
}

.estado--rentable::before {
  content: "✓";
}

.estado--ajustado {
  background: var(--ojo-suave);
  color: var(--ojo);
}

.estado--ajustado::before {
  content: "=";
}

.estado--bajo {
  background: var(--mal-suave);
  color: var(--mal);
}

.estado--bajo::before {
  content: "↓";
}

/* App screens: ink outline, rounded top, torn bottom edge in the colour of the section behind */

.pantalla {
  display: grid;
  width: 100%;
  max-width: 340px;
}

.pantalla img {
  grid-area: 1 / 1;
  width: 100%;
  border: 3px solid var(--tinta);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background: var(--papel);
}

.pantalla::before {
  content: "";
  grid-area: 1 / 1;
  align-self: end;
  height: 10px;
  z-index: 1;
  background-repeat: repeat-x;
  background-size: 16px 10px;
}

.pantalla--rojo::before {
  background-image: url("/assets/img/diente-arriba-rojo.svg");
}

.pantalla--crema::before {
  background-image: url("/assets/img/diente-arriba-crema.svg");
}

.pantalla--papel::before {
  background-image: url("/assets/img/diente-arriba-papel.svg");
}

.pantalla figcaption {
  grid-area: 2 / 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tinta-suave);
  padding-top: 10px;
}

/* ---------- Hero ---------- */

.portada {
  background: var(--rojo);
  color: #fff;
  padding: 32px 0 72px;
}

.portada__rejilla {
  display: grid;
  gap: 56px;
}

.portada h1 {
  font-size: clamp(2.5rem, 10.5vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--papel);
}

.portada h1 em {
  font-style: normal;
  color: var(--sol);
  display: block;
}

.portada__entrada {
  font-size: clamp(1.125rem, 2.2vw, 1.3rem);
  line-height: 1.5;
  max-width: 31em;
  margin-top: 24px;
}

.portada__acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 30px;
}

.portada__aviso {
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 32em;
}

.portada__aviso a,
.cierre__contacto a {
  color: #fff;
  font-weight: 700;
}

.portada__tique {
  max-width: 480px;
  width: 100%;
  justify-self: center;
}

@media (min-width: 960px) {
  .portada {
    padding: 56px 0 104px;
  }

  .portada__rejilla {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 64px;
    align-items: center;
  }

  .portada__tique {
    justify-self: end;
    transform: rotate(1.6deg);
    margin-top: 24px;
  }

  .pegatina {
    top: -50px;
    right: -22px;
  }
}

/* ---------- Facts strip ---------- */

.franja {
  background: var(--sol);
  color: var(--sobre-sol);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  padding: 18px var(--margen);
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.05rem;
  border-top: 3px solid var(--tinta);
  border-bottom: 3px solid var(--tinta);
}

.franja span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.franja span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tinta);
}

/* ---------- Steps ---------- */

.pasos {
  background: var(--crema);
  padding: var(--tramo) 0;
}

.pasos h2,
.ademas h2,
.privado h2 {
  font-size: clamp(2rem, 5.4vw, 3.2rem);
  letter-spacing: -0.015em;
  max-width: 15em;
}

.pasos__rejilla {
  display: grid;
  gap: 56px;
}

.lista-pasos {
  margin-top: 36px;
  display: grid;
  gap: 0;
}

.lista-pasos li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-top: 2px dashed var(--linea-fuerte);
}

.lista-pasos li:last-child {
  border-bottom: 2px dashed var(--linea-fuerte);
}

.lista-pasos__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sol);
  color: var(--sobre-sol);
  border: 2px solid var(--tinta);
  display: grid;
  place-items: center;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
}

.lista-pasos h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.lista-pasos p {
  color: var(--tinta-suave);
  margin-top: 8px;
}

.lista-pasos p.etiqueta {
  color: #fff;
  margin-top: 14px;
}

.pasos__pantallas,
.ademas__imagen {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(70vw, 300px);
  gap: 16px;
  overflow-x: auto;
  padding: 4px var(--margen) 12px;
  margin: 0 calc(var(--margen) * -1);
  scroll-snap-type: x proximity;
  align-items: start;
}

.pasos__pantallas .pantalla,
.ademas__imagen .pantalla {
  scroll-snap-align: center;
}

@media (min-width: 960px) {
  .pasos__rejilla {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: start;
  }

  .pasos__pantallas,
  .ademas__imagen {
    grid-auto-flow: initial;
    grid-template-columns: 1fr 1fr;
    grid-auto-columns: initial;
    gap: 24px;
    overflow: visible;
    padding: 0;
    margin: 0;
  }

  .pantalla--baja {
    margin-top: 72px;
  }
}

/* ---------- Feature stories on the counter ---------- */

.mostrador {
  background: var(--rojo);
  padding: var(--tramo) 0;
}

.mostrador__titulo {
  color: #fff;
  max-width: 44em;
  margin-bottom: 64px;
}

.mostrador__titulo h2 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  letter-spacing: -0.015em;
  color: var(--papel);
}

.mostrador__titulo p:last-child {
  font-size: 1.125rem;
  margin-top: 16px;
}

.historia {
  display: grid;
  gap: 40px;
}

.historia + .historia {
  margin-top: 88px;
}

.historia h3 {
  font-size: clamp(1.6rem, 4.4vw, 2.3rem);
  letter-spacing: -0.01em;
}

.historia__texto {
  color: var(--tinta-suave);
  font-size: 1.0625rem;
  margin-top: 14px;
  max-width: 36em;
}

.recibo {
  margin-top: 24px;
  padding: 20px 0;
  border-top: 2px dashed var(--linea-fuerte);
  border-bottom: 2px dashed var(--linea-fuerte);
}

.recibo__titulo {
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.25;
}

.recibo__meta {
  font-size: 0.9rem;
  color: var(--tinta-suave);
  margin-bottom: 10px;
}

.recibo .estado {
  margin-top: 12px;
}

.puntos {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.puntos li {
  position: relative;
  padding-left: 26px;
}

.puntos li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 3px;
  background: var(--rojo);
}

.historia__imagen {
  display: grid;
  justify-items: center;
}

.hoja {
  width: 82%;
  max-width: 340px;
  margin-top: -26%;
  justify-self: end;
  position: relative;
  z-index: 2;
  transform: rotate(2deg);
  border: 2px solid var(--tinta);
  background: #fff;
}

.historia__imagen--doble .pantalla {
  justify-self: start;
  width: 82%;
}

@media (min-width: 900px) {
  .historia {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 64px;
    align-items: start;
  }

  .historia + .historia {
    margin-top: 128px;
  }

  .historia__imagen {
    margin-top: 48px;
  }

  .historia--invertida .historia__tique {
    order: 2;
  }

  .historia--invertida {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  }

  .historia:nth-child(odd) .historia__tique {
    transform: rotate(-0.5deg);
  }

  .historia:nth-child(even) .historia__tique {
    transform: rotate(0.5deg);
  }
}

/* ---------- Statuses and extras ---------- */

.ademas {
  background: var(--papel);
  padding: var(--tramo) 0;
}

.ademas__rejilla {
  display: grid;
  gap: 48px;
}

.estados {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.estados li {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.ademas__subtitulo {
  font-size: 1.5rem;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 2px dashed var(--linea-fuerte);
}

.extras {
  margin-top: 18px;
  display: grid;
  gap: 18px 32px;
}

.extras dt {
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.0625rem;
}

.extras dd {
  color: var(--tinta-suave);
  font-size: 0.975rem;
  line-height: 1.5;
  margin-top: 2px;
}

@media (min-width: 620px) {
  .estados li {
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: baseline;
    gap: 16px;
  }

  .extras {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .ademas__rejilla {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 72px;
    align-items: start;
  }

  .ademas__texto {
    order: 2;
  }

  .extras {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px 48px;
  }

  .pasos__pantallas,
  .historia__imagen {
    position: sticky;
    top: 32px;
  }
}

/* ---------- Formulas ---------- */

.formulas {
  background: var(--tinta);
  color: var(--papel);
  padding: var(--tramo) 0;
}

.formulas__titulo {
  max-width: 44em;
}

.formulas__titulo h2 {
  font-size: clamp(2rem, 5.4vw, 3.2rem);
  letter-spacing: -0.015em;
}

.formulas__titulo p:last-child {
  color: var(--linea-fuerte);
  font-size: 1.125rem;
  margin-top: 16px;
}

.formulas__lista {
  margin-top: 48px;
  display: grid;
  gap: 0 48px;
}

.formulas__lista li {
  padding: 26px 0;
  border-top: 2px dashed rgba(250, 245, 234, 0.28);
}

.formulas__num {
  font-family: var(--titulos);
  font-weight: 700;
  color: var(--sol);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.formulas__lista h3 {
  font-family: var(--texto);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--linea-fuerte);
  margin-top: 6px;
}

.formulas__formula {
  font-family: var(--titulos);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.3;
  margin-top: 12px;
  text-wrap: balance;
}

.formulas__lista li p:last-child {
  color: var(--linea-fuerte);
  font-size: 0.975rem;
  margin-top: 10px;
}

.importante {
  margin-top: 40px;
  background: var(--sol);
  color: var(--sobre-sol);
  padding: 24px;
  border-radius: 28px 10px 10px 28px;
  max-width: 820px;
}

.importante h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

@media (min-width: 720px) {
  .formulas__lista {
    grid-template-columns: 1fr 1fr;
  }

  .importante {
    padding: 28px 36px 28px 44px;
  }
}

@media (min-width: 1040px) {
  .formulas__lista {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ---------- Privacy summary ---------- */

.privado {
  background: var(--papel);
  padding: var(--tramo) 0;
}

.privado__lista {
  margin-top: 40px;
  display: grid;
  gap: 28px 32px;
}

.privado__lista li {
  border-top: 4px solid var(--tinta);
  padding-top: 16px;
}

.privado__lista h3 {
  font-size: 1.3rem;
}

.privado__lista p {
  color: var(--tinta-suave);
  margin-top: 8px;
}

.privado__enlace {
  margin-top: 36px;
  font-size: 1.0625rem;
}

@media (min-width: 620px) {
  .privado__lista {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1040px) {
  .privado__lista {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Closing call ---------- */

.cierre {
  background: var(--rojo);
  color: #fff;
  padding: var(--tramo) 0;
}

.cierre__rejilla {
  display: grid;
  gap: 56px;
}

.cierre h2 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  letter-spacing: -0.015em;
  color: var(--papel);
  max-width: 12em;
}

.cierre__texto > p {
  font-size: 1.125rem;
  margin-top: 18px;
  max-width: 30em;
}

.cierre__texto > p.cierre__contacto {
  font-size: 1rem;
  margin-top: 22px;
}

.tique--cierre {
  max-width: 440px;
  width: 100%;
  justify-self: center;
}

@media (min-width: 960px) {
  .cierre__rejilla {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 64px;
    align-items: center;
  }

  .tique--cierre {
    justify-self: end;
    transform: rotate(-1.4deg);
  }
}

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

.pie {
  background: var(--tinta);
  color: var(--linea-fuerte);
  padding: 56px 0 32px;
  font-size: 0.975rem;
}

.pie a {
  color: var(--papel);
}

.pie__rejilla {
  display: grid;
  gap: 36px;
}

.marca--pie {
  font-size: 1.5rem;
}

.pie__marca p {
  margin-top: 10px;
  max-width: 24em;
}

.pie__titulo {
  font-family: var(--texto);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--sol);
  margin-bottom: 8px;
}

.pie li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.pie__correo {
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.pie__nota {
  max-width: 22em;
  font-size: 0.9rem;
}

.pie__legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px dashed rgba(250, 245, 234, 0.28);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  font-size: 0.875rem;
}

@media (min-width: 720px) {
  .pie__rejilla {
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 48px;
  }
}

/* ---------- Document pages: one long receipt ---------- */

.documento {
  padding: 40px 0 96px;
}

.tique--documento {
  padding-top: 32px;
  padding-bottom: 40px;
}

@media (min-width: 720px) {
  .documento {
    padding: 48px 0 128px;
  }

  .tique--documento {
    padding: 48px 64px 64px;
  }
}

.prosa h1 {
  font-size: clamp(2.1rem, 6.5vw, 3.2rem);
  letter-spacing: -0.015em;
}

.documento__meta {
  color: var(--tinta-suave);
  margin-top: 12px;
}

.prosa h2 {
  font-size: 1.45rem;
  line-height: 1.2;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 2px dashed var(--linea-fuerte);
  scroll-margin-top: 16px;
}

.prosa h2 + p,
.prosa h2 + ul,
.prosa h2 + ol,
.prosa h2 + div {
  margin-top: 14px;
}

.prosa p + p,
.prosa p + ul,
.prosa ul + p,
.prosa div + p,
.prosa ol + p,
.prosa section + p {
  margin-top: 14px;
}

.prosa ul:not(.puntos) li {
  position: relative;
  padding-left: 26px;
}

.prosa ul li + li {
  margin-top: 8px;
}

.prosa ul:not(.puntos) li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 3px;
  background: var(--rojo);
}

.resumen {
  margin-top: 28px;
  background: var(--sol-suave);
  color: var(--sobre-sol);
  padding: 22px 24px;
  border-radius: 28px 10px 10px 28px;
}

.prosa .resumen h2 {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  font-size: 1.2rem;
}

.prosa .resumen ul li::before {
  background: var(--sobre-sol);
}

.resumen a {
  color: var(--sobre-sol);
  font-weight: 700;
}

.tabla-envoltura {
  overflow-x: auto;
  border: 2px solid var(--linea-fuerte);
  border-radius: 10px;
  background: #fff;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 0.95rem;
  line-height: 1.45;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--linea);
}

th {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tinta-suave);
  background: var(--crema);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.lista-pasos--documento {
  margin-top: 14px;
}

.lista-pasos--documento h3 {
  font-size: 1.15rem;
}

.preguntas details {
  border-bottom: 2px dashed var(--linea-fuerte);
}

.preguntas summary {
  cursor: pointer;
  font-family: var(--titulos);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.3;
  padding: 16px 0;
  min-height: 44px;
}

.preguntas summary:hover {
  color: var(--rojo-oscuro);
}

.preguntas details p {
  color: var(--tinta-suave);
  padding: 0 0 18px;
  max-width: 40em;
}

.version h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.version__nombre {
  font-size: 1.25rem;
}

.version ul {
  margin-top: 18px;
}

.cuenta--enlaces {
  margin-top: 24px;
}

.cuenta--enlaces dd a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a.boton--play:hover {
    transform: none;
  }
}

@media print {
  .cabecera,
  .pie,
  .salto {
    display: none;
  }

  body,
  .documento {
    background: #fff;
  }
}

/* ---------- Small-screen adjustments ---------- */

.portada {
  overflow-x: clip;
}

.portada__rejilla {
  row-gap: 80px;
}

@media (max-width: 899px) {
  /* On a phone the story screens are cut shorter by the torn edge so the page stays a reasonable length. */
  .historia .pantalla img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top;
  }

  .historia__imagen--doble .pantalla img {
    aspect-ratio: 4 / 5.6;
  }
}

@media (max-width: 959px) {
  .ademas__texto {
    order: -1;
  }
}

@media (max-width: 899px) {
  .hoja {
    margin-top: -14%;
  }
}
