/* Suez One and Heebo, SIL Open Font License 1.1 (static/fonts/OFL-suez-one.txt, static/fonts/OFL-heebo.txt).
   Suez One has no ₪ (U+20AA): it falls back to Heebo. */
@font-face{font-family:"Suez One";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/suez-one-400-hebrew.woff2) format("woff2");unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+25CC,U+FB1D-FB4F}
@font-face{font-family:"Suez One";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/suez-one-400-latin.woff2) format("woff2");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:"Heebo";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/heebo-400-hebrew.woff2) format("woff2");unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:"Heebo";font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/heebo-400-latin.woff2) format("woff2");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}
/* NexYn v2, «Cartel»: flat fields of colour, heavy type, engravings pasted on.
   Ported from maquetas/v2/loud-flat-poster/styles.css. This file holds the shell (tokens, base, buttons,
   header, footer), the home (top half Task 4, bottom half Task 5) and the inner pages (Task 7).
   Logical properties for anything directional, so Hebrew mirrors by itself. */

:root {
  /* the four fields */
  --naranja: #EC6400;
  --negro: #121212;
  --blanco: #FFFFFF;
  --amarillo: #F2C230;
  /* supporting inks */
  --gris: #5A5A5A;          /* 6.9:1 on white */
  --antes: #5E2D08;         /* «A mano» on orange, 3.4:1 (display only) */
  --paso: #EDEDED;          /* one step of tone on white */
  --falta: #B00E28;         /* FALTA marker */
  --radio: 0;
  --m: 24px;

  --display: "Suez One", "Heebo", Georgia, serif;
  --texto: "Heebo", "Helvetica Neue", Arial, sans-serif;

  /* five steps that do the work, plus two small ones */
  --h1: clamp(64px, 11vw, 170px);      /* hero and the verbs */
  --t-xl: clamp(56px, 8.8vw, 140px);   /* «Tu empresa funciona.», «Se hace solo», the big figure */
  --t-l: clamp(40px, 5.4vw, 92px);     /* figures, task list, poster titles */
  --t-m: clamp(28px, 3.1vw, 48px);     /* section titles (28 px up to 900 px: the longest keeps two lines in its column) */
  --t-stmt: clamp(22px, 2.5vw, 36px);  /* sentences said out loud */
  --t-lead: clamp(19px, 2vw, 29px);
  --t-body: 19px;
  --t-small: 15px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blanco);
  color: var(--negro);
  font: 400 var(--t-body)/1.5 var(--texto);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
strong, b { font-family: var(--display); font-weight: 400; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--negro); color: var(--amarillo); }
:focus-visible { outline: 3px solid var(--negro); outline-offset: 3px; }
.pie :focus-visible, .menu__lista :focus-visible { outline-color: var(--blanco); }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden; /* text for screen readers only, not a line: taste-skill-ignore */
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.saltar {
  position: absolute; z-index: 10; inset-inline-start: var(--m); top: 12px;
  background: var(--negro); color: var(--blanco); padding: 12px 16px; text-decoration: none;
  clip-path: inset(50%); white-space: nowrap;
}
.saltar:focus { clip-path: none; }
html:not(.js) .js-solo { display: none !important; }
.falta { color: var(--falta); }
mark.falta { background-color: transparent; }  /* not the browser's yellow */

/* ---------- buttons and links ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  background: var(--negro); color: var(--blanco);
  font: 400 var(--t-body)/1.15 var(--texto); text-decoration: none; text-align: center;
  border: 0; border-radius: var(--radio); cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.boton:active { transform: scale(0.97); }
.enlace {
  font-size: var(--t-body);
  text-decoration: underline; text-decoration-color: currentColor;
  transition: text-decoration-color var(--t-hover) ease, text-underline-offset var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .boton:hover { background: var(--naranja); color: var(--negro); }
  .boton--negro:hover { background: var(--blanco); color: var(--negro); }
  .enlace:hover { text-underline-offset: 0.32em; }
  .nav a:hover, .pie a:hover { text-decoration: underline; }
}

/* ---------- header ---------- */
.arriba {
  position: absolute; z-index: 5; top: 0; inset-inline: 0;
  display: flex; align-items: center; gap: 28px;
  padding: 24px var(--m) 0;
}
.marca { font: 400 var(--t-lead)/1 var(--display); text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; gap: 24px; font-size: var(--t-small); }
.nav a { text-decoration: none; padding-block: 10px; }
.nav a[aria-current="page"], .menu__lista a[aria-current="page"] { text-decoration: underline; }
.boton--arriba { margin-inline-start: auto; }
.menu { display: none; }
/* below 1100 px the links fold into "Menú": with "Qué automatizar" in it, the widest header (ES, with the Hebrew draft's
   language link) holds one line only from about 1057 px (Task 10, measured at 900, 1024, 1100, 1280 and 1440) */
@media (max-width: 1099px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary {
    list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center;
    font-size: var(--t-small); text-decoration: underline; text-underline-offset: 0.2em;
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu__lista {
    position: absolute; top: 100%; inset-inline-start: -16px; z-index: 6;
    display: grid; min-width: 220px; padding: 8px 16px 16px;
    background: var(--negro); color: var(--blanco);
  }
  .menu__lista a { padding: 10px 0; text-decoration: none; }
}

/* ---------- footer: the name built in blocks ---------- */
.pie { background: var(--negro); color: var(--blanco); padding: 104px var(--m) 0; }
.pie__columnas {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  font-size: var(--t-small);
}
.pie__enlaces { grid-column: 1 / 9; display: grid; grid-template-columns: repeat(3, max-content); gap: 10px 48px; }
.pie__enlaces a, .pie__contacto a { text-decoration: none; }
.pie__enlaces a { justify-self: start; }
.pie__contacto { grid-column: 9 / 13; display: grid; gap: 10px; align-content: start; }
.pie__contacto a { text-decoration: underline; }
.pie__creditos { margin-top: 48px; font-size: var(--t-small); line-height: 1.5; max-width: 78ch; }
/* NEXYN is a Latin word: it reads left to right on Hebrew pages too */
.bloques {
  direction: ltr; display: flex; align-items: flex-end; gap: 4px; height: 34svh; min-height: 220px; margin-top: 88px;
  overflow: clip;  /* the blocks rise from below this row (motion, Task 6): never past the end of the page */
}
.bloque {
  flex: 1; display: flex; align-items: center; justify-content: center;
  color: var(--negro);
  font: 400 var(--t-xl)/1 var(--display);
}
.bloque--n1 { height: 72%; background: var(--naranja); }
.bloque--e { height: 60%; background: var(--blanco); }
.bloque--x { height: 84%; background: var(--amarillo); }
.bloque--y { height: 100%; background: var(--naranja); }
.bloque--n2 { height: 66%; background: var(--blanco); }

/* ---------- phone ---------- */
@media (max-width: 899px) {
  :root {
    --m: 16px;
    --t-body: 18px;
    --t-xl: 13vw;
    --h1: 15.5vw;
    --t-l: 11vw;
    --t-m: min(30px, 7.5vw);   /* 30 px from 400 px up; below, the longest section title keeps two lines */
    --t-stmt: 22px;
    --t-lead: 19px;
  }
  .arriba { gap: 14px; padding-top: 16px; }
  .boton--arriba { min-height: 48px; padding: 6px 12px; font-size: var(--t-small); max-width: 156px; line-height: 1.2; }

  .pie { padding: 88px var(--m) 0; }
  .bloques { height: 22svh; min-height: 150px; margin-top: 64px; }
  .pie__columnas { display: block; }
  .pie__enlaces { grid-template-columns: 1fr 1fr; gap: 6px 24px; }
  .pie__enlaces a { padding: 6px 0; }
  .pie__contacto { margin-top: 28px; }
}

/* ---------- home, top half (Task 4): portada, Tu empresa funciona, El tiempo, Qué se puede automatizar ----------
   Ported from the mockup with the fixes of 11 §6: the seam higher and the hand inside the white half (1),
   tiles as tall as their content with the amount inside the orange one and a visible slider track (3).
   Rules on generic names (.campo, .nota, .cifra, .apoyo…) stay under their section: other pages use those names.
   No entrance states here: the motion (and anything that starts hidden) comes with Task 6. */

/* portada: the seam between two centuries. White above (the 1700s, the hand with the quill), orange below.
   The hero is as tall as its content: the seam comes after the header, a strip of white, the first line and half
   of the second, which keeps it at 40–44 % of the hero and leaves no empty orange under the button. */
.portada {
  --lh: 0.86;                                     /* the h1's line height */
  --portada-h1: clamp(64px, 8.4vw, 150px);       /* uppercase "DEL SIGLO XVIII" is 7.9 em wide; "From the 1700s" 7.2 */
  --costura: calc(var(--portada-h1) * var(--lh) * 1.5 + 166px);
  --mano-alto: calc(var(--costura) - 124px);
  position: relative;
  display: flex; flex-direction: column;
  padding-top: var(--costura);
  background: var(--blanco);
  overflow-x: clip;
}
.costura {
  position: absolute; inset: 0; z-index: 2;
  font: 400 var(--portada-h1)/var(--lh) var(--display);
  letter-spacing: -0.005em;
  text-transform: uppercase;
  pointer-events: none;
}
html[lang="en"] .costura { text-transform: none; }  /* "From the 1700s", never "1700S" */
.copia { position: absolute; inset: 0; display: block; }
.copia--arriba { color: var(--naranja); clip-path: inset(0 0 calc(100% - var(--costura)) 0); }
.copia--abajo { color: var(--negro); clip-path: inset(var(--costura) 0 0 0); }
.copia__lineas {
  position: absolute; inset-inline: var(--m);
  /* the middle of the second line falls on the seam */
  top: calc(var(--costura) - var(--lh) * 1.5em + 0.03em);
  display: block; text-align: start;
}
.renglon, .renglon__texto { display: block; white-space: nowrap; }  /* a line never breaks in two */
.recorte--mano {
  position: absolute; z-index: 1;
  top: 96px; inset-inline-end: calc(var(--m) + 2vw);
  width: calc(var(--mano-alto) * 0.8);
}
.recorte--mano img { width: 100%; transform: rotate(4deg); }
.portada__texto {
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  padding: calc(var(--portada-h1) * var(--lh) / 2 + 40px) var(--m) clamp(64px, 5.6vw, 96px);
  min-height: calc(var(--costura) * 1.28);  /* the seam never goes past 44 % of the hero, whatever the text's length */
  background: var(--naranja);
}
.portada .apoyo { font-size: var(--t-lead); line-height: 1.35; max-width: 40ch; }
.portada .datos { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.portada .datos li { display: flex; align-items: baseline; gap: 0.5em; }  /* a wrapped fact hangs under its own text */
.portada .datos li::before { content: ""; flex: none; width: 0.5em; height: 0.5em; background: var(--negro); }
.portada__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 6px; }
@media (hover: hover) and (pointer: fine) {
  .boton--portada:hover { background: var(--blanco); color: var(--negro); }  /* orange on orange would vanish */
}

/* Tu empresa funciona: the paragraph on black */
.intro { background: var(--negro); color: var(--blanco); padding: 152px var(--m) 160px; }
.intro__titulo { font: 400 var(--t-xl)/0.95 var(--display); letter-spacing: -0.012em; }
.intro__texto {
  margin-top: 44px; max-width: 37em;  /* three lines in EN, ES and HE from 900 px up (a statement, not a headline) */
  font: 400 var(--t-stmt)/1.17 var(--display);
  text-wrap: pretty;
}

/* section titles */
.titulo-seccion { font: 400 var(--t-m)/1.02 var(--display); letter-spacing: -0.01em; }

/* El tiempo: the calculator in three tiles, each as tall as its content */
.tiempo {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 8px; row-gap: 8px; align-items: start;
  padding: 152px var(--m) 128px;
}
.tiempo__cabeza { grid-column: 7 / 13; grid-row: 1; padding-inline-start: 24px; padding-block-end: 20px; }
.tiempo__cabeza p { margin-top: 20px; max-width: 46ch; }
.tiempo .ficha { position: relative; padding: 28px; }
.tiempo .cifra { font: 400 var(--t-l)/0.9 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.tiempo .leyenda { margin-top: 10px; }
.tiempo .ficha--amarilla {
  grid-column: 1 / 7; grid-row: 1 / 4;
  background: var(--amarillo);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto;
  gap: 24px 16px;
}
.tiempo .ficha__cifra { grid-column: 1; grid-row: 1; }
.tiempo .ficha--amarilla .cifra { font-size: var(--t-xl); }
.tiempo .ficha--amarilla .leyenda { font-size: var(--t-lead); }
.recorte--reloj {
  grid-column: 2; grid-row: 1 / 3;
  width: clamp(110px, 13vw, 200px);
  margin-block-start: -6px; margin-inline-end: -6px;
}
.recorte--reloj img {
  width: 100%;
  mix-blend-mode: multiply;
  clip-path: polygon(30% 0, 70% 0, 84% 12%, 100% 24%, 100% 90%, 90% 100%, 10% 100%, 0 90%, 0 24%, 16% 12%);
  transform: rotate(-5deg);
}
.calc .campos { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 34rem; }  /* fits at 320 px */
.calc .campo label { display: block; font-size: var(--t-small); margin-bottom: 6px; }
.calc .campo__fila { display: flex; gap: 8px; align-items: center; }
.calc .campo input, .calc .campo select {
  height: 56px; min-width: 0;
  background: var(--blanco); border: 0; border-radius: var(--radio);
  padding: 0 14px; font: 400 var(--t-body) var(--texto);
}
.calc .campo input:focus-visible, .calc .campo select:focus-visible { outline: 3px solid var(--negro); outline-offset: 0; }
.calc #personas { width: 88px; text-align: center; }
.calc #sueldo { flex: 1; }
.calc #moneda { width: 96px; cursor: pointer; }
.calc .corto { width: 88px; text-align: center; }
.calc .paso-boton {
  width: 56px; height: 56px; flex: none;
  background: var(--negro); color: var(--blanco); border: 0; border-radius: var(--radio);
  font: 400 var(--t-lead)/1 var(--display); cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.calc .paso-boton:active { transform: scale(0.94); }
/* the slider: a black track you can see on yellow (3 px of it would be enough for 3:1; it gets 6) */
.calc .campo .rango { flex: 1; height: 56px; margin: 0; padding: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.calc .rango::-webkit-slider-runnable-track { height: 6px; background: var(--negro); }
.calc .rango::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; box-sizing: border-box;
  width: 24px; height: 44px; margin-top: -19px;
  background: var(--blanco); border: 3px solid var(--negro); border-radius: 0;
}
.calc .rango::-moz-range-track { height: 6px; background: var(--negro); }
.calc .rango::-moz-range-thumb { box-sizing: border-box; width: 24px; height: 44px; background: var(--blanco); border: 3px solid var(--negro); border-radius: 0; }
.calc .ficha__pie { grid-column: 1 / -1; grid-row: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.calc .nota { font-size: var(--t-small); line-height: 1.4; max-width: 44ch; }
.calc .volver {
  flex: none; min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
  font-size: var(--t-small); text-decoration: underline; text-underline-offset: 0.2em;
}
.tiempo .ficha--negra { grid-column: 7 / 10; grid-row: 2; background: var(--negro); color: var(--blanco); }
.tiempo .ficha--naranja { grid-column: 10 / 13; grid-row: 2; margin-block-start: 48px; background: var(--naranja); }
.tiempo .monto { margin-top: 22px; font: 400 var(--t-lead)/1.2 var(--display); }
/* a figure wider than its tile (200 people, 240 minutes: 16.000 hours) steps down a size; calculadora.js decides */
.tiempo .ficha.es-larga .cifra { font-size: calc(var(--t-l) * 0.72); }
.tiempo__pie { grid-column: 7 / 13; grid-row: 3; padding-block-start: 28px; padding-inline-start: 24px; }
.tiempo .cierre { font: 400 var(--t-stmt)/1.12 var(--display); max-width: 17em; }

/* Qué se puede automatizar: a list at poster scale */
.tareas {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: baseline;
  padding: 152px var(--m) 160px;
}
.tareas__lista, .tareas__cierre, .tareas__enlace { grid-column: 1 / -1; }
.tarea {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px; align-items: baseline;
  padding-block-start: 26px;
}
.tareas__titulo, .tarea h3 {
  grid-column: 1 / 9;
  font: 400 var(--t-l)/1 var(--display); letter-spacing: -0.012em;
  transition: color var(--t-hover) ease;
}
.tareas__titulo { color: var(--gris); }
.tareas__intro, .tarea p { grid-column: 9 / 13; max-width: 34em; }
.tareas__lista { margin-block-start: 0.3em; }
.tareas__cierre { margin-block-start: 88px; max-width: 24em; font: 400 var(--t-stmt)/1.15 var(--display); }
.tareas__enlace { margin-block-start: 28px; }
@media (hover: hover) and (pointer: fine) {
  .tareas__lista:hover .tarea h3 { color: var(--gris); }
  .tareas__lista .tarea:hover h3 { color: var(--negro); }
}

@media (max-width: 899px) {
  .portada {
    /* each h1 line fills the width and no more: the size per language, at least 40 px at 390 */
    --portada-h1: calc((100vw - 2 * var(--m)) / 8.1);
    --mano-alto: 160px;
    --costura: calc(88px + var(--mano-alto) + var(--portada-h1) * var(--lh) * 1.5);
  }
  html[lang="en"] .portada { --portada-h1: calc((100vw - 2 * var(--m)) / 7.8); }  /* sentence case: 7.2 em */
  .recorte--mano { top: 78px; inset-inline-end: var(--m); }
  .portada__texto { gap: 18px; padding: calc(var(--portada-h1) * var(--lh) / 2 + 28px) var(--m) clamp(48px, 12vw, 96px); }
  .portada .apoyo { font-size: clamp(18px, 3.4vw, 26px); max-width: 32ch; }
  .portada .datos { flex-direction: column; font-size: clamp(18px, 2.8vw, 22px); }
  .portada__acciones { margin-top: 4px; }

  .intro { padding: 104px var(--m); }
  .intro__texto { margin-top: 28px; line-height: 1.22; }

  .tiempo { grid-template-columns: 1fr 1fr; column-gap: 6px; row-gap: 6px; padding: 104px var(--m) 96px; }
  .tiempo__cabeza { grid-column: 1 / -1; grid-row: 1; padding: 0 0 18px; }
  .tiempo .ficha { padding: 18px; }
  .tiempo .ficha--amarilla { grid-column: 1 / -1; grid-row: 2; gap: 20px 10px; }
  .tiempo .ficha--amarilla .cifra { font-size: 15.5vw; }
  .recorte--reloj { width: min(28vw, 172px); }  /* on a tablet the clock stays clear of the minutes field */
  .calc .campos { max-width: none; }
  .calc .ficha__pie { flex-direction: column; align-items: flex-start; gap: 6px; }
  .tiempo .ficha--negra { grid-column: 1; grid-row: 3; }
  .tiempo .ficha--naranja { grid-column: 2; grid-row: 3; margin-block-start: 32px; }
  .tiempo .ficha--negra .cifra, .tiempo .ficha--naranja .cifra { font-size: var(--t-l); }
  .tiempo .ficha--negra .leyenda, .tiempo .ficha--naranja .leyenda { font-size: var(--t-small); line-height: 1.3; }
  .tiempo .monto { margin-top: 16px; font-size: var(--t-body); }
  .tiempo .ficha.es-larga .cifra { font-size: var(--t-m); }
  .tiempo__pie { grid-column: 1 / -1; grid-row: 4; padding: 24px 0 0; }

  .tareas { padding: 104px var(--m) 112px; }
  .tareas__titulo, .tarea h3 { font-size: 10.6vw; }  /* the longest task (EN) on two lines down to 320 px */
  .tareas, .tarea { display: block; }
  .tareas__intro { margin-block-start: 20px; }
  .tarea { padding-block-start: 30px; }
  .tarea p { margin-block-start: 10px; padding-inline-start: var(--m); }
  .tareas__cierre { margin-block-start: 56px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .portada .apoyo { max-width: 38ch; }  /* three lines in EN, ES and HE */
  .portada { --mano-alto: 150px; }  /* the lines grow faster than the text under them: a smaller hand keeps the seam near 42 % */
}
/* a phone on its side (844 × 390): the lines at their desktop size beside the hand, so the h1 is on the first screen */
@media (max-width: 899px) and (orientation: landscape) and (max-height: 500px) {
  html[lang] .portada {
    --portada-h1: clamp(48px, 8.4vw, 150px);
    --costura: calc(var(--portada-h1) * var(--lh) * 1.5 + 150px);
    --mano-alto: calc(var(--costura) - 124px);
  }
  .recorte--mano { top: 80px; inset-inline-end: calc(var(--m) + 2vw); }
  .portada__texto { padding-block-start: calc(var(--portada-h1) * var(--lh) / 2 + 32px); }
}

/* ---------- home, bottom half (Task 5): Se hace solo, Cómo trabajamos, Muestra, Quiénes somos, Preguntas, Contacto ----------
   Ported from the mockup; every rule sits under its section class. Fix 2 of 11 §6: from 1200 px the panel is pasted
   on «A MANO» (set at the end of its line) and leaves the h2 and «CON TU OK.» whole; the third line once, at 30 % ink;
   the draft and «OK, enviar» inside the section's first screen at 1440 × 900. No entrance states here (Task 6). */

/* Se hace solo: the schedule in front of the words */
.solo {
  --solo-t: clamp(56px, 7.4vw, 132px);  /* the lines leave the panel room beside the h2 ("SE HACE SOLO" is 6.8 em) */
  position: relative; overflow: clip;
  background: var(--naranja);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  padding: 128px var(--m) 160px;
}
html[lang="en"] .solo { --solo-t: clamp(52px, 6.6vw, 118px); }  /* "WITH YOUR OK." is 7.65 em, wider than the h2 */
.solo .solo__lineas {
  grid-column: 1 / -1; grid-row: 1;
  font: 400 var(--solo-t)/0.94 var(--display); letter-spacing: -0.012em;
  text-transform: uppercase; white-space: nowrap;
}
.solo .linea { display: block; font: inherit; letter-spacing: inherit; }
.solo .linea__texto { display: inline-block; }
.solo .linea--antes { color: var(--antes); }
.solo .linea--ahora { color: var(--negro); }
.solo .linea--eco { color: var(--antes); }  /* «CON TU OK.» once, whole, in the supporting ink: 3.4:1 on orange (at 30 % ink it read 1.7:1) */
.solo .solo__texto { grid-column: 1 / 7; grid-row: 2; padding-block-start: 56px; max-width: 36em; }
.solo .pasos { margin-block-start: 28px; }
.solo .pasos li { margin-block-start: 10px; }
.solo .pasos li span {
  padding: 0.08em 0.25em; margin-inline-start: -0.25em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}  /* the highlight switches at once: fading ink and ground together passed through grey on orange (2:1) */
.solo[data-paso="1"] .pasos li:nth-child(1) span,
.solo[data-paso="2"] .pasos li:nth-child(2) span,
.solo[data-paso="3"] .pasos li:nth-child(3) span,
.solo[data-paso="4"] .pasos li:nth-child(4) span,
.solo[data-paso="5"] .pasos li:nth-child(5) span { background: var(--negro); color: var(--blanco); }
.solo .solo__pie { margin-block-start: 28px; }
.solo .solo__texto .boton { margin-block-start: 32px; }

/* the panel: a fragment of interface, with its own rules inside. Up to 1199 px it sits beside the text. */
.solo .gantt {
  grid-column: 7 / 13; grid-row: 2; justify-self: end; align-self: start;
  position: relative; z-index: 2;
  width: 100%; max-width: 640px;
  margin-block-start: 56px;
  padding: 20px 22px 22px;
  background: var(--blanco); color: var(--negro);
  font: 400 15px/1.35 var(--texto);
  transform: rotate(3deg);
}
@media (min-width: 1200px) {
  /* pasted on «A MANO»: the panel's top edge crosses the lower third of the letters (the word still reads),
     and it sits beside the h2 and the third line, never on them */
  .solo .linea--antes { text-align: end; }
  .solo .gantt { grid-column: 8 / 13; grid-row: 1 / span 2; margin-block-start: calc(var(--solo-t) * 0.94 * 0.68); }
}
.solo .g-cabeza { display: grid; grid-template-columns: minmax(0, 1fr) 172px; gap: 16px; align-items: start; }
.solo .g-titulo strong { display: block; font-size: var(--t-body); line-height: 1.2; margin-block-end: 4px; text-wrap: balance; }
.solo .g-carpeta { background: var(--paso); padding: 8px 10px 10px; min-height: 96px; }
.solo .g-carpeta__nombre { font-size: 13px; color: var(--gris); }
.solo .g-acta {
  margin-block-start: 6px; padding: 6px 8px;
  background: var(--blanco); border: 2px solid var(--negro);
  font-size: 13px; line-height: 1.3;
  transform-origin: 70% 0;
  transition: transform 800ms var(--ease-expo), opacity 300ms ease, visibility 0s;
}
.solo .g-acta strong { display: block; font-size: 14px; }
.solo .g-tabla {
  position: relative; margin-block-start: 20px;
  display: grid; grid-template-columns: 112px repeat(8, minmax(0, 1fr));
  align-items: center; row-gap: 12px; padding-block-end: 26px;
}
.solo .g-eje { grid-row: 1; font-size: 13px; color: var(--gris); text-align: center; }
.solo .g-eje--nombre { grid-column: 1; text-align: start; }
.solo .g-eje:nth-child(2) { grid-column: 2; } .solo .g-eje:nth-child(3) { grid-column: 3; }
.solo .g-eje:nth-child(4) { grid-column: 4; } .solo .g-eje:nth-child(5) { grid-column: 5; }
.solo .g-eje:nth-child(6) { grid-column: 6; } .solo .g-eje:nth-child(7) { grid-column: 7; }
.solo .g-eje:nth-child(8) { grid-column: 8; } .solo .g-eje:nth-child(9) { grid-column: 9; }
.solo .g-hoy {
  grid-column: 7; grid-row: 2 / 6; align-self: stretch; justify-self: start;
  width: 3px; margin-inline-start: -1px; background: var(--negro); position: relative;
}
.solo .g-hoy span {
  position: absolute; bottom: -26px; inset-inline-start: -14px;
  background: var(--negro); color: var(--blanco); font-size: 13px; line-height: 1; padding: 4px 6px;
}
.solo .g-tarea { grid-column: 1; line-height: 1.2; }
.solo .g-tarea p:first-child { font-size: 15px; }
.solo .g-rotulo { font-size: 13px; color: var(--gris); }
.solo .g-fila-1 { grid-row: 2; } .solo .g-fila-2 { grid-row: 3; }
.solo .g-fila-3 { grid-row: 4; } .solo .g-fila-4 { grid-row: 5; }
.solo .g-barra { position: relative; height: 28px; background: var(--paso); overflow: hidden; transition: background-color 400ms ease; }
.solo .g-avance {
  position: absolute; inset: 0; background: var(--negro);
  transform-origin: 0 50%; transform: scaleX(1);
  transition: transform 1000ms var(--ease-in-out), background-color 400ms ease;
}
html[dir="rtl"] .solo .g-avance { transform-origin: 100% 50%; }  /* the bars grow from the right in Hebrew */
.solo .g-demolicion { grid-column: 2 / 4; }
.solo .g-instalaciones { grid-column: 4 / 7; }
.solo .g-revoques { grid-column: 7 / 9; background: var(--amarillo); }
.solo .g-revoques .g-avance { background: var(--naranja); transform: scaleX(0.12); }
.solo .g-pintura { grid-column: 9 / 10; }
.solo .g-pintura .g-avance { transform: scaleX(0); }
/* «sin saltos» (spec §10): whatever swaps between steps shares one grid cell with what it replaces, and only its
   visibility changes, so every row is as tall as its tallest state from the start. The label pairs of the table,
   the status line (animacion.js stacks an invisible copy of each step in it, .g-molde) and the line under the
   draft («Esperando tu OK.» → the after-OK text, with a copy of the latter) work the same way. */
.solo .g-rotulo, .solo .g-estado, .solo .g-aviso { display: grid; }
.solo .g-rotulo > *, .solo .g-estado > *, .solo .g-aviso > * { grid-area: 1 / 1; }
.solo .g-r-curso, .solo .g-r-espera, .solo .g-molde { visibility: hidden; }
.solo .g-estado {
  margin-block-start: 18px; min-height: 2.9em;
  background: var(--negro); color: var(--blanco);
  padding: 8px 12px; font-size: 15px; line-height: 1.35;
}
.solo .g-borrador {
  margin-block-start: 10px; padding: 12px 14px;
  background: var(--amarillo);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: end;
  transition: transform 700ms var(--ease-out), opacity 400ms ease, visibility 0s;
}
.solo .g-borrador__texto { grid-column: 1; grid-row: 1; font-size: 15px; line-height: 1.4; }
.solo .g-aviso { grid-column: 1; grid-row: 2; font-size: 15px; line-height: 1.4; font-family: var(--display); }
.solo .g-ok {
  grid-column: 2; grid-row: 1 / span 2;
  min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--radio);
  background: var(--negro); color: var(--blanco); font-size: 15px; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.solo .g-ok:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .solo .g-ok:hover { background: var(--naranja); color: var(--negro); } }
/* after the OK: the button leaves (hidden, at runtime) but keeps its box, so the text beside it does not re-wrap */
.solo .g-ok[hidden] { display: block; visibility: hidden; }
.solo .gantt.is-enviado .g-espera { visibility: hidden; }

/* the states before the last, set by animacion.js (Task 6); without it the markup's final state shows */
.solo .gantt[data-estado="1"] .g-instalaciones, .solo .gantt[data-estado="2"] .g-instalaciones { background: var(--amarillo); }
.solo .gantt[data-estado="1"] .g-instalaciones .g-avance,
.solo .gantt[data-estado="2"] .g-instalaciones .g-avance { background: var(--naranja); transform: scaleX(0.8); }
/* the labels sit in the task column (.g-tarea), not in the bar: they are reached by their own class */
.solo .gantt[data-estado="1"] .g-r-hecha, .solo .gantt[data-estado="2"] .g-r-hecha { visibility: hidden; }
.solo .gantt[data-estado="1"] .g-r-curso, .solo .gantt[data-estado="2"] .g-r-curso { visibility: visible; }
.solo .gantt[data-estado="1"] .g-revoques, .solo .gantt[data-estado="2"] .g-revoques { background: var(--paso); }
.solo .gantt[data-estado="1"] .g-revoques .g-avance, .solo .gantt[data-estado="2"] .g-revoques .g-avance { transform: scaleX(0); }
.solo .gantt[data-estado="1"] .g-r-arranca, .solo .gantt[data-estado="2"] .g-r-arranca { visibility: hidden; }
.solo .gantt[data-estado="1"] .g-r-espera, .solo .gantt[data-estado="2"] .g-r-espera { visibility: visible; }
/* before it arrives the record waits above the panel, over the third poster line: out of sight and out of reach
   (visibility after its fade, as the draft below), so it never sits invisible on the words (Task 12a) */
.solo .gantt[data-estado="1"] .g-acta {
  transform: translateY(-150%) rotate(-12deg); opacity: 0; visibility: hidden;
  transition: transform 800ms var(--ease-expo), opacity 300ms ease, visibility 0s 300ms;
}
/* the draft and its button stay out of reach (not only out of sight) until the notice is ready */
.solo .gantt[data-estado="1"] .g-borrador, .solo .gantt[data-estado="2"] .g-borrador,
.solo .gantt[data-estado="3"] .g-borrador {
  transform: translateY(14px); opacity: 0; visibility: hidden;
  transition: transform 700ms var(--ease-out), opacity 400ms ease, visibility 0s 400ms;  /* fades out, then leaves the focus order */
}
.solo .gantt[data-estado="3"] .g-acta, .solo .gantt[data-estado="4"] .g-acta,
.solo .gantt[data-estado="5"] .g-acta { transform: none; }  /* from step 3 the record stays filed */

/* Cómo trabajamos: one verb per screen, sticky over its engraving, then the four rules */
.como { background: var(--negro); color: var(--blanco); }
.como :focus-visible { outline-color: var(--blanco); }
.como .como__cabeza { padding: 136px var(--m) 56px; }
.como .como__cabeza .titulo-seccion { font-size: var(--t-l); }
.como .verbo { position: relative; height: 82svh; min-height: 540px; overflow: clip; isolation: isolate; background: var(--negro); }
.como .verbo__foto { position: absolute; inset: -4% 0 auto; display: block; width: 100%; height: 108%; }
.como .verbo__foto img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.como .verbo__pista { position: absolute; inset: 0 0 var(--reserva, 200px); }
.como .verbo__palabra { position: sticky; top: 9svh; margin-block-start: 9svh; padding-inline: var(--m); }
.como .verbo__palabra h3 {
  display: inline-block;
  padding: 0.06em 0.14em 0.01em;
  background: var(--naranja); color: var(--negro);
  font: 400 var(--h1)/0.92 var(--display); letter-spacing: -0.012em; text-transform: uppercase;
}
.como .verbo:nth-child(even) .verbo__palabra h3 { background: var(--amarillo); }
.como .verbo__texto {
  position: absolute; z-index: 2; inset-inline-start: var(--m); inset-block-end: var(--m);
  max-width: 34em; padding: 20px 24px;
  background: var(--negro); color: var(--blanco);
}
.como .reglas {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end;
  padding: 104px var(--m) 160px;
}
.como .reglas__lista {
  grid-column: 1 / 10;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px;
  font: 400 var(--t-lead)/1.2 var(--display);
}
.como .reglas .enlace { grid-column: 10 / 13; justify-self: end; }
.como .enlace--claro { color: var(--blanco); }

/* Muestra: a wall of square tiles, colours in rotation, the four sample pages in colour */
.muestra { padding: 152px var(--m); }
.muestra .pared { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.muestra .loseta {
  position: relative; aspect-ratio: 1; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
}
.muestra .loseta--titulo { grid-column: span 2; aspect-ratio: auto; align-items: flex-start; justify-content: flex-end; text-align: start; padding: 28px; }
.muestra .loseta--titulo h2 { font: 400 var(--t-l)/0.95 var(--display); letter-spacing: -0.012em; max-width: 9em; }
.muestra .loseta--negra { background: var(--negro); color: var(--blanco); }
.muestra .loseta--amarilla { background: var(--amarillo); }
.muestra .loseta--naranja { background: var(--naranja); }
.muestra .loseta__palabra { font: 400 var(--t-m)/1 var(--display); letter-spacing: -0.01em; }
.muestra .loseta__nota { position: absolute; inset-inline: 16px; inset-block-end: 18px; font-size: var(--t-small); }
.muestra .loseta--foto { padding: 0; background: var(--paso); }
.muestra .loseta--foto picture { display: block; width: 100%; height: 100%; }
.muestra .loseta--foto img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 600ms var(--ease-out); }
.muestra .loseta--texto {
  grid-column: span 2; aspect-ratio: auto;
  background: var(--paso);
  align-items: flex-start; justify-content: space-between; text-align: start; gap: 24px; padding: 28px;
}
.muestra .loseta--texto p { max-width: 40ch; }
@media (hover: hover) and (pointer: fine) {
  .muestra .loseta--foto:hover img { transform: scale(1.04); }
}

/* Quiénes somos: two columns of large text with flat highlights; "Quiénes somos:" is the h2, inline */
.quienes { background: var(--amarillo); padding: 144px var(--m) 152px; }
.quienes .quienes__texto {
  columns: 2; column-gap: 40px;
  font: 400 var(--t-lead)/1.32 var(--texto);
  text-align: start; hyphens: manual; -webkit-hyphens: manual;
}
.quienes .quienes__texto p + p { margin-block-start: 0.8em; }
.quienes .en-linea { display: inline; }
.quienes h2 { font: 400 1em/1 var(--display); }
.quienes mark { color: inherit; padding: 0 0.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.quienes .m-naranja { background: var(--naranja); color: var(--negro); }
.quienes .m-blanco { background: var(--blanco); color: var(--negro); }
.quienes .m-negro { background: var(--negro); color: var(--blanco); }
.quienes .quienes__final { break-inside: avoid; }
.quienes .quienes__final a { text-decoration: none; font-family: var(--display); }
.quienes .quienes__texto .quienes__detalle { margin-block-start: 14px; font-size: var(--t-body); break-inside: avoid; }
@media (hover: hover) and (pointer: fine) {
  .quienes .quienes__final a:hover .m-negro { background: var(--naranja); color: var(--negro); }
}

/* Preguntas: an accordion of filled tiles, the open one orange */
.preguntas {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start;
  padding: 152px var(--m) 168px;
}
.preguntas .preguntas__titulo { grid-column: 1 / 5; position: sticky; top: 96px; font-size: var(--t-l); }
.preguntas .preguntas__lista { grid-column: 5 / 13; display: grid; gap: 8px; }
.preguntas .pregunta { background: var(--paso); transition: background-color 240ms ease; }
.preguntas .pregunta[open] { background: var(--naranja); }
.preguntas .pregunta summary {
  position: relative; list-style: none; cursor: pointer;
  min-height: 72px; padding-block: 20px; padding-inline: 24px 72px;
  font: 400 var(--t-lead)/1.2 var(--display);
}
.preguntas .pregunta summary::-webkit-details-marker { display: none; }
.preguntas .pregunta summary::before, .preguntas .pregunta summary::after {
  content: ""; position: absolute; inset-inline-end: 28px; top: 50%;
  width: 18px; height: 3px; margin-block-start: -1.5px; background: var(--negro);
  transition: transform 240ms var(--ease-out);
}
.preguntas .pregunta summary::after { transform: rotate(90deg); }
.preguntas .pregunta[open] summary::after { transform: rotate(0deg); }
.preguntas .pregunta__respuesta { padding: 0 24px 26px; }
.preguntas .pregunta__respuesta p { max-width: 52ch; }
@media (hover: hover) and (pointer: fine) {
  .preguntas .pregunta:not([open]):hover { background: var(--amarillo); }
}

/* Contacto: a still strip of engraved tools and a bar of three cells, on yellow. The strip (.tira) is shared with
   the inner pages that have no plates of their own (.tira--pagina, page.html.j2): a band under the header, or after
   the first look form, clipped at the sides like here */
.contacto { background: var(--amarillo); padding: 48px var(--m) 160px; overflow: clip; }
.tira {
  display: flex; justify-content: center; gap: 8px;
  height: 150px; margin-inline: calc(var(--m) * -1);
}
.tira picture { display: block; flex: none; height: 100%; }
.tira img { height: 100%; width: auto; max-width: none; mix-blend-mode: multiply; }
.tira--pagina { box-sizing: content-box; margin-inline: 0; overflow: clip; padding-block: 48px; background: var(--amarillo); }  /* on yellow, as on the home: the plates' paper melts in */
.contacto .contacto__titulo { margin-block-start: 80px; font: 400 var(--t-l)/0.98 var(--display); letter-spacing: -0.012em; max-width: 14em; }
.contacto .contacto__nota { margin-block-start: 28px; max-width: 48ch; }
.contacto .barra { margin-block-start: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.contacto .celda {
  min-height: 96px; padding: 16px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; text-align: center;
  font: 400 var(--t-lead)/1.15 var(--display); text-decoration: none;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.contacto a.celda:active { transform: scale(0.98); }
.contacto .celda--blanca { background: var(--blanco); text-decoration: underline; text-decoration-thickness: 0.06em; }
.contacto .celda--naranja { background: var(--naranja); }
.contacto .celda--negra { background: var(--negro); color: var(--blanco); }
@media (hover: hover) and (pointer: fine) {
  .contacto .celda--negra:hover { background: var(--naranja); color: var(--negro); }
  .contacto .celda--blanca:hover { background: var(--negro); color: var(--blanco); }
}

@media (max-width: 899px) {
  /* each poster line fits the width whole: the widest is 6.8 em in ES, 7.65 em in EN */
  .solo { --solo-t: min(13vw, calc((100vw - 2 * var(--m)) / 7)); grid-template-columns: minmax(0, 1fr); padding: 104px var(--m) 112px; }
  html[lang="en"] .solo { --solo-t: calc((100vw - 2 * var(--m)) / 7.8); }
  .solo .gantt { grid-column: 1; grid-row: 2; justify-self: stretch; width: auto; max-width: none; margin-block-start: 32px; padding: 14px 14px 16px; transform: rotate(2deg); }
  .solo .g-cabeza { grid-template-columns: minmax(0, 1fr) 132px; gap: 10px; }
  .solo .g-carpeta { min-height: 84px; }
  .solo .g-tabla { grid-template-columns: 88px repeat(8, minmax(0, 1fr)); }
  /* the draft across the top; «Esperando tu OK.» and its button share the row under it, so after the OK the
     button's kept box is just an empty spot beside the new line */
  .solo .g-borrador { row-gap: 8px; }
  .solo .g-borrador__texto { grid-column: 1 / -1; }
  .solo .g-aviso { align-self: center; }
  .solo .g-ok { grid-row: 2; }
  .solo .solo__texto { grid-column: 1; grid-row: 3; padding-block-start: 48px; }

  .como .como__cabeza { padding: 104px var(--m) 48px; }
  .como .verbo { --reserva: 290px; height: 88svh; }
  .como .verbo__texto { inset-inline: var(--m); padding: 16px 18px; }
  .como .reglas { display: block; padding: 72px var(--m) 112px; }
  .como .reglas__lista { grid-template-columns: 1fr; gap: 14px; }
  .como .reglas .enlace { display: inline-block; margin-block-start: 36px; }

  .muestra { padding: 104px var(--m); }
  .muestra .pared { grid-template-columns: 1fr 1fr; gap: 6px; }
  .muestra .loseta { padding: 14px; }
  .muestra .loseta--titulo { padding: 20px 18px; min-height: 150px; }
  .muestra .loseta--texto { padding: 20px 18px; }
  .muestra .loseta__palabra { font-size: 7vw; }
  .muestra .loseta__nota { inset-block-end: 12px; }

  .quienes { padding: 104px var(--m); }
  .quienes .quienes__texto { columns: 1; font-size: var(--t-stmt); line-height: 1.36; }

  .preguntas { display: block; padding: 104px var(--m) 112px; }
  .preguntas .preguntas__titulo { position: static; margin-block-end: 28px; }
  .preguntas .preguntas__lista { gap: 6px; }
  .preguntas .pregunta summary { min-height: 64px; padding-block: 18px; padding-inline: 18px 60px; font-size: 19px; }
  .preguntas .pregunta summary::before, .preguntas .pregunta summary::after { inset-inline-end: 22px; }
  .preguntas .pregunta__respuesta { padding: 0 18px 20px; }

  .contacto { padding: 40px var(--m) 112px; }
  .tira { height: 110px; }
  .tira--pagina { padding-block: 32px; }
  .contacto .contacto__titulo { margin-block-start: 56px; font-size: var(--t-m); line-height: 1.02; }
  .contacto .barra { grid-template-columns: 1fr; }
  .contacto .celda { min-height: 60px; font-size: 19px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .solo .gantt { max-width: 600px; justify-self: end; }  /* on a tablet the panel keeps its phone size, pasted to the end */
}

/* ---------- inner pages (Task 7): one structure for all (spec §9) ----------
   The h1 in Suez One on a field of colour (`campo` in each page's TOML: one per page), a plate cut out and pasted
   on it, then rows on white: the title in Suez One with its plate under it, beside the text. "Cómo trabajamos" adds
   the four steps and the decision sheet; "Muestra" its wall of pages and the sheets; "Primera lectura" the form.
   Rules on generic names stay under their block (.form .campo: the calculator owns .calc .campo). */

/* the shared header sits over the first field (position: absolute): its ink follows the field (body.campo--…) */
.campo--negro .arriba { color: var(--blanco); }
.campo--negro .arriba :focus-visible { outline-color: var(--blanco); }
.campo--negro .boton--arriba { background: var(--naranja); color: var(--negro); }  /* never black on black */
.campo--negro .menu__lista { background: var(--blanco); color: var(--negro); }
.campo--negro .menu__lista :focus-visible { outline-color: var(--negro); }
@media (hover: hover) and (pointer: fine) {
  .campo--negro .boton--arriba:hover, .campo--naranja .boton--arriba:hover { background: var(--blanco); color: var(--negro); }
}

/* the h1 on two lines at every width (house rule): the measure first (nine columns beside the plate), then the size */
.pagina { --pagina-h1: clamp(44px, 5.2vw, 96px); }
.pagina__cabeza {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end;
  padding: 176px var(--m) 96px;  /* clears the header bar (76 px at 1440) with the field's own air */
  overflow-x: clip;
}
.pagina--naranja .pagina__cabeza { background: var(--naranja); }
.pagina--amarillo .pagina__cabeza { background: var(--amarillo); }
.pagina--negro .pagina__cabeza { background: var(--negro); color: var(--blanco); }
.pagina--negro .pagina__cabeza :focus-visible { outline-color: var(--blanco); }
.pagina--blanco .pagina__cabeza { background: var(--blanco); }
.pagina__texto { grid-column: 1 / 10; }
.pagina__texto h1 {
  font: 400 var(--pagina-h1)/0.98 var(--display); letter-spacing: -0.02em;
  text-wrap: balance; overflow-wrap: break-word;
}
.pagina--blanco .pagina__texto h1 { color: var(--naranja); }  /* orange on white: display size only (≥ 44 px) */
.pagina__lead { margin-block-start: 32px; max-width: 36ch; font-size: var(--t-lead); line-height: 1.35; }
.pagina__ficcion { margin-block-start: 16px; font-family: var(--display); }
.pagina__fecha { margin-block-start: 16px; font-size: var(--t-small); }
.pagina__texto .doc-pdf { margin-block-start: 32px; }
/* the plate pasted on the field: ink on orange, yellow and white (multiply); on black it keeps its paper */
.pagina__recorte { grid-column: 10 / 13; justify-self: end; align-self: center; display: block; width: min(100%, 260px); }
.pagina__recorte img { width: 100%; mix-blend-mode: multiply; transform: rotate(4deg); }
.pagina--negro .pagina__recorte img { mix-blend-mode: normal; transform: rotate(-4deg); }
/* the clock without the corners of its plate (as on the home's calculator) */
.pagina__recorte--reloj img { clip-path: polygon(30% 0, 70% 0, 84% 12%, 100% 24%, 100% 90%, 90% 100%, 10% 100%, 0 90%, 0 24%, 16% 12%); }

/* a row: the title (and its plate) beside the text */
.fila {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start;
  padding: 80px var(--m) 0;
}
.pagina > .fila:last-child, .pagina > :last-child > .fila:last-child, .fila--prosa { padding-block-end: 152px; }
.fila__titulo { grid-column: 1 / 6; }
.fila__titulo h2 { font: 400 var(--t-m)/1.02 var(--display); letter-spacing: -0.01em; max-width: 13em; text-wrap: balance; }
.fila__cuerpo { grid-column: 7 / 13; max-width: 40em; }
.fila--prosa .fila__cuerpo { grid-column: 1 / 9; }
.fila__cuerpo > * + * { margin-block-start: 1em; }
.fila__lista li { position: relative; padding-inline-start: 1.1em; }
.fila__lista li + li { margin-block-start: 0.5em; }
.fila__lista li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0.55em;
  width: 0.45em; height: 0.45em; background: var(--negro);
}
.fila__cuerpo > .fila__enlace { margin-block-start: 1.6em; }
.fila__lamina { display: block; margin-block-start: 32px; }
.fila__lamina img { width: 100%; }
.fila__lamina--recorte { width: clamp(120px, 13vw, 200px); }
.fila__lamina--recorte img { mix-blend-mode: multiply; transform: rotate(-4deg); }

/* the four steps of "Cómo trabajamos": the verb as a poster word, the step's plate under its title */
.fila--paso { padding-block-start: 104px; }
.fila__verbo {
  display: inline-block; margin-block-end: 20px; padding: 0.06em 0.16em 0.01em;
  background: var(--naranja);
  font: 400 var(--t-l)/0.92 var(--display); letter-spacing: -0.012em; text-transform: uppercase;
}
.fila--paso:nth-child(even) .fila__verbo { background: var(--amarillo); }
.fila--paso .fila__cuerpo { padding-block-start: calc(var(--t-l) * 0.92 + 20px); }  /* the text starts level with the title */

/* the facts of "Quiénes somos": tiles of colour, each with its figure cut out of a plate */
.hechos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hecho { display: flex; flex-direction: column; gap: 18px; padding: 24px; background: var(--amarillo); }
.hecho:nth-child(4n + 2) { background: var(--naranja); }
.hecho:nth-child(4n + 3) { background: var(--negro); color: var(--blanco); }
.hecho__recorte { display: block; width: 132px; }
.hecho__recorte img { width: 100%; mix-blend-mode: multiply; transform: rotate(-4deg); }
.hecho:nth-child(4n + 3) .hecho__recorte img { mix-blend-mode: normal; transform: rotate(3deg); }
.hecho p { font: 400 var(--t-lead)/1.25 var(--display); }
.hecho__clave { display: block; font: 400 var(--t-small)/1.4 var(--texto); }
.hecho .rot { font-family: var(--texto); }  /* the label as everywhere else, not in the tile's Suez One */

/* "¿Qué se puede automatizar?": the sectors as links under the lead, then one row per sector with its four answers,
   the example on a flat tile (yellow, orange, black in turn) and its links */
.pagina__indice { margin-block-start: 28px; }
.pagina__indice ul { display: flex; flex-wrap: wrap; gap: 0 28px; max-width: 46em; }
.pagina__indice a { display: inline-block; padding-block: 8px; }
.rubro__partes { display: grid; gap: 22px; margin: 0; }
.rubro__parte dt { font: 400 var(--t-lead)/1.2 var(--display); }
.rubro__parte dd { margin: 6px 0 0; }
.rubro__ejemplo { padding: 22px 24px; background: var(--amarillo); }
.rubro:nth-of-type(3n + 2) .rubro__ejemplo { background: var(--naranja); }
.rubro:nth-of-type(3n) .rubro__ejemplo { background: var(--negro); color: var(--blanco); }
.rubro__clave { font-family: var(--display); }
.fila__cuerpo > .rubro__enlaces { margin-block-start: 1.4em; display: grid; gap: 4px; }
.rubro__enlaces a { display: inline-block; padding-block: 6px; }
.rubros__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* labels and what they mean */
.tabla { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.tabla th, .tabla td { text-align: start; vertical-align: top; padding: 14px 16px; font-weight: 400; }
.tabla thead th { font-size: var(--t-small); color: var(--gris); padding-block: 0; }
.tabla tbody th, .tabla tbody td { background: var(--paso); }
.tabla tbody th { white-space: nowrap; }

/* the decision sheet on yellow: each decision a white tile, the answer on black (_decisiones.html.j2 keeps its
   root class .hoja, shared with the sample sheets: everything here is under .decisiones) */
.decisiones {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start;
  margin-block-start: 104px; padding: 120px var(--m) 136px;
  background: var(--amarillo);
}
.decisiones__cabeza { grid-column: 1 / 6; position: sticky; top: 32px; }
.decisiones__cabeza h2 { font: 400 var(--t-l)/0.95 var(--display); letter-spacing: -0.012em; max-width: 8em; }
.decisiones__cabeza p { margin-block-start: 24px; max-width: 34ch; }
.decisiones .hoja { grid-column: 7 / 13; background: none; padding: 0; margin: 0; }
.decisiones .fs { min-inline-size: 0; margin: 0 0 8px; padding: 24px; border: 0; background: var(--blanco); }
.decisiones .fs.es-no { background: var(--paso); }  /* set aside: grey, and the yellow label still shows on it */
.decisiones .fs.es-no .ops label:first-child { background: var(--blanco); }  /* the unchosen "yes" stays a button on grey */
.decisiones .fs legend { float: inline-start; width: 100%; padding: 0; margin-block-end: 10px; font: 400 var(--t-lead)/1.2 var(--display); }
.decisiones .fs legend b { margin-inline-end: 0.2em; }
.decisiones .porque { clear: both; }
.decisiones .ops { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 16px; }
.decisiones .ops label {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px;
  background: var(--paso); cursor: pointer;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.decisiones .ops label:has(input:checked) { background: var(--negro); color: var(--blanco); }
.decisiones .ops input { width: 20px; height: 20px; margin: 0; accent-color: var(--naranja); }
.decisiones .ops input:checked:focus-visible { outline-color: var(--blanco); }  /* the checked option is black */
.decisiones .salida { margin-block-start: 8px; padding: 24px; background: var(--negro); color: var(--blanco); }
.decisiones .salida strong { font-size: var(--t-lead); }
.decisiones .salida p + p { margin-block-start: 8px; }
/* the legend on a white tile too: the yellow "Supuesto" label would vanish on the yellow field */
.decisiones .hoja .rotulos { list-style: none; margin-block-start: 8px; padding: 18px 24px; display: grid; gap: 8px; max-inline-size: none; background: var(--blanco); font-size: var(--t-small); }
.decisiones .rotulos li + li { margin-block-start: 0; }
.decisiones .rotulos .rot { margin-inline-end: 8px; }
@media (hover: hover) and (pointer: fine) {
  .decisiones .ops label:not(:has(input:checked)):hover { background: var(--amarillo); }
}

/* "Muestra": the four pages pasted on the field, then the six sheets */
.muro { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-block-start: 64px; }
.muro__hoja { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paso); }
.muro__hoja img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.muro__hoja:nth-child(odd) { transform: rotate(-1.2deg); }
.muro__hoja:nth-child(even) { transform: rotate(1deg); }
/* the sheets pasted on orange: the white field above and the black footer below stay apart in luminosity */
.hojas { padding: 72px var(--m) 152px; background: var(--naranja); }
.hojas .hoja + .hoja { margin-block-start: 16px; }

/* "Primera lectura": the other ways to write beside the form */
.pedido {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start;
  padding: 88px var(--m) 152px;
}
.pedido__lado { grid-column: 1 / 5; display: grid; gap: 1em; }
.pedido__lado > p:first-child { font: 400 var(--t-lead)/1.3 var(--display); }
.pedido__privacidad { font-size: var(--t-small); color: var(--gris); }
.form { grid-column: 6 / 13; max-width: 680px; }
.form .form__nota { margin-block-end: 24px; font-size: var(--t-small); color: var(--gris); }
.form .campo + .campo { margin-block-start: 24px; }
.form .campo label { display: block; margin-block-end: 6px; font: 400 var(--t-body)/1.3 var(--display); }
.form .ayuda { margin-block: -2px 8px; font-size: var(--t-small); color: var(--gris); }
.form .campo input, .form .campo select, .form .campo textarea {
  display: block; width: 100%; min-height: 56px; padding: 12px 14px;
  background: var(--paso); color: var(--negro); border: 0; border-radius: var(--radio);
  font: 400 var(--t-body)/1.4 var(--texto);
  transition: background-color var(--t-hover) ease;
}
.form .campo textarea { min-height: 140px; resize: vertical; }
.form .campo input:focus-visible, .form .campo select:focus-visible, .form .campo textarea:focus-visible {
  outline: 3px solid var(--negro); outline-offset: 0; background: var(--blanco);
}
.form .form__enviar { margin-block-start: 36px; }
.form .honey { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 899px) {
  .pagina { --pagina-h1: min(10.4vw, 52px); }
  /* a title over 30 characters (page.html.j2): 32 px at 390, scaled with the screen, so its lines keep their breaks;
     orange on white never goes under 32 px (display size) */
  .pagina--h1-largo { --pagina-h1: min(calc((100vw - 2 * var(--m)) / 11.1), 52px); }
  .pagina--blanco.pagina--h1-largo { --pagina-h1: max(32px, min(calc((100vw - 2 * var(--m)) / 11.1), 52px)); }
  .pagina__cabeza { display: flex; flex-direction: column; align-items: stretch; padding: 96px var(--m) 56px; }
  .pagina__recorte { order: -1; align-self: flex-end; width: 32vw; max-width: 170px; margin-block-end: 12px; }
  .pagina__lead { margin-block-start: 22px; }
  .fila { display: block; padding: 56px var(--m) 0; }
  .pagina > .fila:last-child, .pagina > :last-child > .fila:last-child, .fila--prosa { padding-block-end: 104px; }
  .fila__cuerpo { margin-block-start: 20px; }
  .fila__lamina { margin-block-start: 24px; }
  .fila__lamina--recorte { width: 34vw; max-width: 150px; }
  .fila--paso { padding-block-start: 104px; }  /* the link that closes a step stays with its step, not over the next verb */
  .fila--paso .fila__cuerpo { padding-block-start: 0; }
  .hechos { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .hecho { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 16px; padding: 18px; }
  .hecho__recorte { width: 88px; }
  .hecho p { font-size: 19px; }
  .tabla, .tabla tbody, .tabla tr, .tabla th, .tabla td { display: block; }
  .tabla thead { display: none; }
  .tabla tr { margin-block-start: 6px; }
  .tabla tbody th { padding-block-end: 4px; }
  .tabla tbody td { padding-block-start: 4px; }
  .decisiones { display: block; margin-block-start: 72px; padding: 88px var(--m) 96px; }
  .decisiones__cabeza { position: static; }
  .decisiones .hoja { margin-block-start: 32px; }
  .decisiones .fs { padding: 18px; }
  .decisiones .fs legend { font-size: 19px; line-height: 1.3; }
  .muro { grid-template-columns: 1fr 1fr; gap: 6px; margin-block-start: 36px; }
  .hojas { padding: 40px var(--m) 104px; }
  .hojas .hoja + .hoja { margin-block-start: 10px; }
  .pedido { display: block; padding: 56px var(--m) 104px; }
  .pedido__lado { margin-block-end: 40px; }
}

/* ---------- sample sheets, the sample PDF, share image and icon ----------
   The v1 rules on the new tokens, so the sample page prints and tools/shoot.py photographs
   in Suez One + Heebo. The sample page is restyled in Task 7, the share image and icon in Task 9. */
.hoja { background: var(--paso); padding: 0 48px 56px; margin-block-start: 8px; }
.hoja-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  background: var(--negro); color: var(--blanco);
  margin-inline: -48px; padding: 14px 48px;
  font-size: var(--t-small);
}
.hoja-wm { font: 400 28px/1 var(--display); letter-spacing: -0.01em; }
.hoja-firm { margin-block-start: 28px; font-size: var(--t-small); color: var(--gris); }
.hoja h2 { font: 400 var(--t-lead)/1.2 var(--display); margin-block-start: 8px; }
.hoja-lead { margin-block-start: 12px; }
@media (min-width: 1001px) { .hoja-lead, .hoja ul, .hoja .decs p { max-inline-size: 70ch; } }
.hoja h3 { font: 400 var(--t-body)/1.3 var(--display); margin-block: 28px 8px; }
.hoja ul { list-style: disc; padding-inline-start: 1.1em; }
.hoja li + li { margin-block-start: 0.45em; }
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-block-start: 24px; }
.area { background: var(--blanco); padding: 20px; }
.area h3 { margin-block-start: 0; }
.area p + p { margin-block-start: 0.5em; }
.etapas, .decs { margin-block-start: 24px; display: grid; gap: 8px; }
.etapas li, .decs li { background: var(--blanco); padding: 18px 20px; }
.etapas h3, .decs h3 { margin-block: 0 4px; }
.etapas .cuando { font-size: var(--t-small); color: var(--gris); }
.decs h3 b { margin-inline-end: 0.2em; }
.decs p + p { margin-block-start: 0.35em; }
.rec { display: inline-block; background: var(--naranja); color: var(--negro); font-size: var(--t-small); padding-inline: 8px; line-height: 1.6; margin-inline-end: 0.3em; }
.rot { display: inline-block; font-size: var(--t-small); line-height: 1.6; padding-inline: 8px; white-space: nowrap; }
.rot-real { background: var(--negro); color: var(--blanco); }
.rot-assumption { background: var(--amarillo); color: var(--negro); }
.rot-missing { background: var(--gris); color: var(--blanco); }
.numeros { inline-size: 100%; border-collapse: separate; border-spacing: 0 8px; margin-block-start: 24px; }
.numeros th, .numeros td { text-align: start; vertical-align: top; padding: 12px 14px; font-weight: 400; }
.numeros thead th { font-size: var(--t-small); color: var(--gris); padding-block: 0; }
.numeros tbody th, .numeros tbody td { background: var(--blanco); }
.numeros tbody th { font-family: var(--display); white-space: nowrap; }
.doc-wm { display: none; }
@media screen and (max-width: 760px) {
  .hoja { padding: 0 20px 36px; }
  .hoja-top { margin-inline: -20px; padding-inline: 20px; flex-direction: column; gap: 4px; }
  .areas { grid-template-columns: 1fr; }
  .numeros, .numeros tbody, .numeros tr, .numeros th, .numeros td { display: block; }
  .numeros thead { display: none; }
  .numeros tbody th { padding-block-end: 0; }
  .numeros tr { margin-block-start: 8px; }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .hoja { padding-inline: 24px; }
  .hoja-top { margin-inline: -24px; padding-inline: 24px; }
}

/* one sheet alone, photographed at 1000 x 1294 */
.print-sheet { background: var(--paso); --t-body: 25px; --t-lead: 44px; --t-small: 20px; font-size: var(--t-body); }
.print-sheet .hoja { padding-inline: 64px; min-block-size: 100vh; margin: 0; }
.print-sheet .hoja-top { margin-inline: -64px; padding: 22px 64px; }
.print-sheet .hoja-wm { font-size: 44px; }
.print-sheet .hoja h3 { font-size: 27px; }

@media print {
  @page { size: A4; margin: 14mm; }
  body { background: var(--blanco); font-size: 10pt; line-height: 1.45; }
  .hoja h2 { font-size: 15pt; }
  .hoja h3 { font-size: 10.5pt; margin-block: 14px 4px; }
  .hoja-firm { margin-block-start: 14px; }
  .areas { margin-block-start: 12px; }
  .area { padding: 12px 14px; }
  .etapas, .decs, .numeros { margin-block-start: 12px; }
  .etapas li, .decs li { padding: 10px 14px; }
  .numeros th, .numeros td { padding: 7px 10px; }
  .rot, .rec { font-size: 8.5pt; }
  .saltar, .arriba, .pie, .doc-pdf, .muro, .pagina__recorte { display: none; }
  .doc { padding: 0; max-inline-size: none; }
  .doc .pagina__cabeza { display: block; break-after: page; padding: 30mm 0 0; background: none; }
  .doc .pagina__texto { display: flex; flex-direction: column; }
  .doc .pagina__texto h1 { color: var(--negro); font-size: 32pt; }
  .doc-wm { display: block; order: -1; font: 400 72pt/1 var(--display); letter-spacing: -0.02em; margin-block-end: 18mm; }
  .hojas { padding: 0; background: none; }
  .hoja { break-after: page; background: var(--blanco); padding: 0; margin: 0; }
  .hoja:last-child { break-after: auto; }
  .hoja-top { margin-inline: 0; padding-inline: 12px; }
  .area, .etapas li, .decs li, .numeros tbody th, .numeros tbody td { background: var(--paso); }
  .areas .area, .decs li, .etapas li { break-inside: avoid; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }  /* an armed entrance prints whole */
}

/* share image (1200 x 630) and the mark (512 x 512), photographed by tools/shoot.py share, in Cartel:
   the home's seam, white above and orange below, the words cut at it like .costura (orange on white above, black
   on orange below; never white on orange). */
.og {
  --og-h1: 112px;
  --og-lh: 0.86;
  --og-costura: 352px;   /* the seam runs through the middle of the second line, as on the home */
  position: relative; inline-size: 1200px; block-size: 630px; overflow: hidden;
}
.og__abajo { position: absolute; inset: var(--og-costura) 0 0 0; background: var(--naranja); }
.og__marca { position: absolute; top: 40px; inset-inline-start: 56px; font: 400 44px/1 var(--display); letter-spacing: -0.01em; }
.og__mano { position: absolute; top: 26px; inset-inline-end: 68px; inline-size: 160px; transform: rotate(4deg); }
.og__copia {
  position: absolute; inset: 0;
  font: 400 var(--og-h1)/var(--og-lh) var(--display); letter-spacing: -0.005em; text-transform: uppercase;
}
html[lang="en"] .og__copia { text-transform: none; }  /* "From the 1700s", as on the home */
.og__copia--arriba { color: var(--naranja); clip-path: inset(0 0 calc(100% - var(--og-costura)) 0); }
.og__copia--abajo { color: var(--negro); clip-path: inset(var(--og-costura) 0 0 0); }
.og__lineas { position: absolute; inset-inline: 56px; top: calc(var(--og-costura) - var(--og-lh) * 1.5em + 0.03em); }
.og__lineas span { display: block; white-space: nowrap; }
.og__url { position: absolute; bottom: 44px; inset-inline-start: 56px; font-size: 30px; line-height: 1; }
/* one size: headless Chrome never lays out under 500 px wide, so the small icons are scaled down from this one */
.icono { position: relative; inline-size: 512px; block-size: 512px; overflow: hidden; }
.icono__abajo { position: absolute; inset: 50% 0 0 0; background: var(--naranja); }
.icono__copia {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font: 400 472px/1 var(--display);
}
.icono__copia span { margin-block-end: 0.02em; }  /* the N's middle on the seam */
.icono__copia--arriba { color: var(--naranja); clip-path: inset(0 0 50% 0); }
.icono__copia--abajo { color: var(--negro); clip-path: inset(50% 0 0 0); }

/* ---------- motion (Task 6): everything that moves lives here ----------
   Nothing here hides anything from a visitor without JS (every rule needs .js, set by js.js) or from one who asked
   to reduce motion: the entrances are armed by movimiento.js only just below the fold and only with motion, and
   animacion.js only plays the Gantt's earlier steps with motion. Transform and opacity only. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo), background-color 240ms ease;
  }
  .js [data-reveal].is-armed:not(.is-in) { opacity: 0; transform: translateY(26px); transition: none; }
  /* the stagger delays the entrance only, never the colour a FAQ tile takes on hover */
  .js [data-entra="1"] { transition-delay: 80ms, 80ms, 0s; }
  .js [data-entra="2"] { transition-delay: 160ms, 160ms, 0s; }
  .js [data-entra="3"] { transition-delay: 240ms, 240ms, 0s; }
  .js [data-entra="4"] { transition-delay: 320ms, 320ms, 0s; }
  .js .bloque[data-reveal].is-armed:not(.is-in) { transform: translateY(32%); }  /* NEXYN rises out of the footer */
  /* a block that holds the focus shows at once, armed or still fading in (no delay, no fade): a keyboard visitor who
     tabs into the screen below never has the ring on an invisible field; only a FAQ tile's hover colour still fades.
     After the armed rule, same weight (test_focus_never_in_a_hidden_entrance) */
  .js [data-reveal].is-armed:focus-within { opacity: 1; transform: none; transition: background-color 240ms ease; }

  /* the schedule falls into place, a little more tilted, as its run starts (animacion.js adds .is-in); keyed on the
     hook the script finds it by, so a panel the script cannot settle is never tilted */
  .js .gantt[data-ui] { transition: transform 900ms var(--ease-expo); }
  .js .gantt[data-ui]:not(.is-in) { transform: rotate(6.5deg) translateY(-18px); }
}
/* the inner pages' first screen: the header's plate (the sample's wall of four pages, the strip of tools on the
   pages without plates) arrives as the page loads, one run, transform and opacity only; without JS it is simply
   there, and "reduce motion" switches every animation off below. Keyframes only: no static opacity 0 (test_nothing_hidden_in_html). */
@media (prefers-reduced-motion: no-preference) {
  .js .pagina__recorte, .js .muro { animation: entra-lamina 700ms var(--ease-out) backwards; }
  .js .tira--pagina picture { animation: entra-lamina 600ms var(--ease-out) backwards; }
  .js .tira--pagina picture:nth-child(2) { animation-delay: 40ms; }
  .js .tira--pagina picture:nth-child(3) { animation-delay: 80ms; }
  .js .tira--pagina picture:nth-child(4) { animation-delay: 120ms; }
  .js .tira--pagina picture:nth-child(5) { animation-delay: 160ms; }
  .js .tira--pagina picture:nth-child(6) { animation-delay: 200ms; }
  .js .tira--pagina picture:nth-child(7) { animation-delay: 240ms; }
  .js .tira--pagina picture:nth-child(8) { animation-delay: 280ms; }
  .js .tira--pagina picture:nth-child(9) { animation-delay: 320ms; }
  .js .tira--pagina picture:nth-child(10) { animation-delay: 360ms; }
  /* `to` first, so the only opacity 0 in the sheet sits under a keyframe selector (test_nothing_hidden_in_html) */
  @keyframes entra-lamina { to { opacity: 1; transform: none; } from { opacity: 0; transform: translateY(18px); } }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 899px) {
  .js .gantt[data-ui]:not(.is-in) { transform: rotate(5deg); }
}
/* reduce motion: no transition and no animation anywhere; the Gantt stays at its last step (animacion.js) and every
   entrance stays visible (nothing above is armed); the zoom on the sample pages goes too */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .muestra .loseta--foto:hover img { transform: none; }
}

/* Hebrew (Task 11): what the logical properties do not mirror. The Gantt bars already grow from the right
   (html[dir="rtl"] .solo .g-avance, above). Here every pivot and tilt swings the other way, so a cut-out pasted on
   the right-aligned composition leans as it does on the left-aligned one: the site visit record pivots on its
   inner corner and drops in from the other side, the plates and the sample pages tilt mirrored. */
html[dir="rtl"] .solo .g-acta { transform-origin: 30% 0; }
html[dir="rtl"] .solo .gantt[data-estado="1"] .g-acta { transform: translateY(-150%) rotate(12deg); }
html[dir="rtl"] .solo .gantt { transform: rotate(-3deg); }
html[dir="rtl"] .recorte--mano img, html[dir="rtl"] .pagina__recorte img { transform: rotate(-4deg); }
html[dir="rtl"] .pagina--negro .pagina__recorte img { transform: rotate(4deg); }
html[dir="rtl"] .recorte--reloj img { transform: rotate(5deg); }
html[dir="rtl"] .fila__lamina--recorte img, html[dir="rtl"] .hecho__recorte img { transform: rotate(4deg); }
html[dir="rtl"] .hecho:nth-child(4n + 3) .hecho__recorte img { transform: rotate(-3deg); }
html[dir="rtl"] .muro__hoja:nth-child(odd) { transform: rotate(1.2deg); }
html[dir="rtl"] .muro__hoja:nth-child(even) { transform: rotate(-1deg); }
html[dir="rtl"] .og__mano { transform: rotate(-4deg); }
@media (max-width: 899px) {
  html[dir="rtl"] .solo .gantt { transform: rotate(-2deg); }
}
@media (prefers-reduced-motion: no-preference) {
  html[dir="rtl"] .js .gantt[data-ui]:not(.is-in) { transform: rotate(-6.5deg) translateY(-18px); }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 899px) {
  html[dir="rtl"] .js .gantt[data-ui]:not(.is-in) { transform: rotate(-5deg); }
}
