/* jeanseijas.com, maqueta D: «El gancho primero»
   Es la B con cuatro cambios: Jean aparece en la segunda parte y a un lado (sección 10), la tipografía
   es una sola familia (sección 14), se suma la fábrica de software (sección 15) y los textos son los de
   contenido-v4.md.
   ---
   maqueta B: «El oficio a la vista»
   La prueba es el trabajo: arriba, la planilla enredada, el hilo que sale derecho
   y la pantalla ordenada del «después». La foto de Jean aparece recién en «Quién soy».
   Misma marca que sitio-v2: colores de la foto y el hilo. La tipografía es una sola (sección 14).

   Índice
   1. Fuentes            6. ¿Le suena?
   2. Variables          7. Lo que hago (7b. la prueba de medida)
   3. Base y piezas      8. Cómo es trabajar conmigo
   4. Barra              9. Qué incluye el abono
   5. Primera pantalla  10. Quién soy
      5a. la planilla   11. Preguntas frecuentes
      5b. la pantalla   12. Escríbame y pie
      5c. el hilo       13. Movimiento
   14. Tipografía       15. Cómo lo construyo
   16. La marca: el logotipo y sus colores
   17. La sala de control (primera pantalla)
   18. Lo que aparece al desplazar
*/

/* 1. Fuentes, alojadas junto a la página (fuentes/LEEME.txt dice de dónde salieron) */
@font-face {
  font-family: "Geist";
  src: url("fuentes/geist.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* 2. Variables. Los colores de marca salen de la foto (ver docs/LEEME-v2.md). */
:root {
  --revoque: #e3e2dd;          /* la pared a plena luz: fondo */
  --revoque-sombra: #d3d1ca;   /* la pared en sombra: ¿Le suena? y Escríbame */
  --tinta: #1b2333;            /* la camisa: texto. 12,1:1 sobre --revoque */
  --tinta-2: #474c57;          /* texto secundario. 6,6:1 (5,6:1 sobre --revoque-sombra) */
  --hilo: #26467e;             /* la camisa a la luz: el hilo y los enlaces. 7,2:1 */
  --grafito: #8a867e;          /* lápiz: líneas, nunca texto */
  --chat: #d4e7c9;             /* solo dentro del desorden */
  --nota: #eed88c;             /* solo dentro del desorden */

  /* la pantalla del «después»: un sistema sobrio, más claro que la pared */
  --papel: #f6f6f3;            /* superficie. --tinta 14,9:1; --tinta-2 8,3:1 */
  --papel-2: #ecebe6;          /* encabezado de la tabla */
  --raya: #d9d7d0;             /* separadores dentro de la pantalla */
  --marco-pantalla: #b4b1a9;   /* borde de la pantalla y de la ficha */
  --elegido: #e1e6ef;          /* la fila que el hilo marca. --tinta 12,6:1 */
  --raya-pared: #bdbab2;       /* líneas sobre la pared */

  --grotesca: "Geist", "Helvetica Neue", Arial, sans-serif;   /* una sola familia para toda la página */
  --ajuste-grotesca: 0.53;     /* altura de la x de Geist: la letra de reemplazo ocupa lo mismo mientras carga */

  /* escala: seis tamaños. Fuera de la pantalla de ejemplo no hay letra por debajo de 1rem. */
  --t-chico: 1rem;
  --t-cuerpo: clamp(1.125rem, 1.06rem + 0.3vw, 1.25rem);
  --t-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --t-voz: clamp(1.4375rem, 1.1rem + 1.4vw, 2rem);
  --t-h2: clamp(1.875rem, 1.25rem + 2.4vw, 3rem);

  --borde: 1.125rem;                              /* margen de la pantalla del teléfono */
  --grueso: 2px;                                  /* grosor del hilo */
  --aire: clamp(4rem, 2.4rem + 6vw, 8.5rem);      /* respiro entre secciones */
  --alto-barra: 3.5rem;
}
@media (min-width: 60em) {
  :root { --borde: 2.5rem; --alto-barra: 4rem; }
}

/* 3. Base y piezas comunes */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--alto-barra) + 1rem);   /* el foco y los anclajes no quedan bajo la barra */
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--revoque);
  color: var(--tinta);
  font-family: var(--grotesca);
  font-size: var(--t-cuerpo);
  line-height: 1.5;
  font-optical-sizing: auto;
  font-size-adjust: var(--ajuste-grotesca);
  font-kerning: normal;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
::selection { background: var(--tinta); color: var(--revoque); }
a { color: var(--hilo); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--hilo); outline-offset: 3px; border-radius: 3px; }

.marco {
  max-width: calc(82rem + 2 * var(--borde));
  margin-inline: auto;
  padding-inline: var(--borde);
}
.sin-corte { white-space: nowrap; }

h2 {
  font-weight: 640;
  font-size: var(--t-h2);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Botones: uno lleno (la acción principal) y uno con borde. Mínimo 48 px de alto. */
.acciones { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--tinta);
  border-radius: 0.375rem;
  font-weight: 620;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.boton-lleno { background: var(--tinta); color: var(--revoque); }
.boton-lleno:hover { background: var(--hilo); border-color: var(--hilo); }
.boton-borde { background: transparent; color: var(--tinta); }
.boton-borde:hover { background: var(--tinta); color: var(--revoque); }

/* 4. Barra: fija arriba, discreta */
.barra {
  position: sticky;
  top: env(safe-area-inset-top, 0px);    /* en un teléfono con muesca, la barra queda debajo de la barra del sistema */
  z-index: 10;
  background: var(--revoque);
  border-bottom: 1px solid var(--raya-pared);
}
.barra-reja {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--alto-barra);
}
.barra-nombre {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  color: var(--tinta);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.005em;
  text-decoration: none;
}
.barra-accion {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.25rem;
  font-weight: 600;
  font-size: 1.0625rem;
}

/* 5. Primera pantalla */
.portada {
  --arriba: 2rem;                /* respiro bajo la barra; el hilo lo cruza colgando */
  --r: 1.5rem;                   /* radio de las curvas del hilo */
  --cuneta: 1.25rem;             /* el pasillo por donde baja el hilo, a la izquierda de la pantalla */
  padding-block: var(--arriba) var(--aire);
}
.sala h1 {
  font-weight: 660;
  font-size: clamp(2.5rem, 1.2rem + 4.6vw, 4.5rem);
  line-height: 1.0;
  letter-spacing: -0.032em;
  max-width: 12em;
  text-wrap: balance;
}
.bajada {
  margin-top: 1.25rem;
  font-size: clamp(1.1875rem, 1.05rem + 0.45vw, 1.4375rem);
  line-height: 1.45;
  max-width: 31em;
  text-wrap: pretty;
}
.sala .acciones { margin-top: 1.75rem; }
.sala .boton { flex: 1 1 9rem; }

.demo { margin-top: 2.75rem; }
.notas { margin-top: 2.75rem; }
.notas h2 { font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.75rem); max-width: 16em; }
.notas ul { margin-top: 1rem; }
.notas li {
  padding-block: 0.8rem;
  border-top: 1px solid var(--raya-pared);
  font-size: 1.125rem;
  line-height: 1.4;
  max-width: 26em;
}

@media (min-width: 60em) {
  .portada { --arriba: 2.25rem; --cuneta: 2.25rem; --planilla: 23rem; }
  .sala .boton { flex: 0 0 auto; }
  /* doce columnas; la figura usa las mismas con subgrid, así el hilo cruza de un lado al otro */
  .portada-reja {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto;
    column-gap: 1.5rem;
    row-gap: 0;                  /* sin hueco: el hilo pasa de una fila a la otra sin cortarse */
  }
  .portada-texto {
    grid-column: 1 / 8;
    grid-row: 1;
    position: relative;
    z-index: 1;
    padding: 1.5rem 0 calc(var(--r) + 2.25rem);
  }
  .demo {
    grid-column: 1 / -1;
    grid-row: 1 / 3;
    display: grid;
    grid-template-columns: subgrid;
    grid-template-rows: subgrid;
    margin-top: 0;
  }
  .notas {
    grid-column: 9 / -1;
    grid-row: 2;
    align-self: start;
    margin-top: 0;
    padding: 3.75rem 0 0 1rem;
  }
}
@media (min-width: 75em) {
  .portada { --planilla: 26rem; }
}

/* 5a. La planilla rayada a mano (copiada de sitio-v2) */
.antes svg { width: 100%; overflow: visible; }
.planilla-movil { max-width: 20rem; }
.planilla-ancha, .hilo-salida, .hilo-tapa { display: none; }

.pl-lineas path { fill: none; stroke: var(--grafito); stroke-linecap: round; }
.pl-chat { fill: var(--chat); }
.pl-nota { fill: var(--nota); }
.pl-palabra {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;  /* así se ven las planillas */
  fill: #23272e;
  text-anchor: middle;
  dominant-baseline: middle;
}
.pl-tachon { fill: none; stroke: #23272e; stroke-width: 1.4; stroke-linecap: round; }
.hilo-enredo {
  fill: none;
  stroke: var(--hilo);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 60em) {
  /* la planilla va arriba a la derecha y apoyada en el fondo de la fila */
  .antes {
    grid-column: 8 / -1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    padding-bottom: var(--r);
  }
  .planilla-movil { display: none; }
  .antes .planilla-ancha { display: block; width: var(--planilla); flex: none; }
  /* sale por abajo a la izquierda, cruza derecho bajo el texto y dobla hacia la pantalla */
  .hilo-salida {
    display: block;
    grid-column: 1 / -1;
    grid-row: 1;
    align-self: end;
    height: calc(var(--r) + 1px);
    margin-left: calc(var(--grueso) / -2);
    margin-right: calc(var(--planilla) - 1px);
    border-top: var(--grueso) solid var(--hilo);
    border-left: var(--grueso) solid var(--hilo);
    border-top-left-radius: var(--r);
  }
  .despues { grid-column: 1 / 9; grid-row: 2; }
}

/* 5b. La pantalla del «después». Un sistema sobrio, no un adorno.
   Es una tabla de verdad; si la pantalla es angosta, cada pedido se apila en su renglón. */
.despues {
  position: relative;
  padding-left: var(--cuneta);
  overflow-x: visible;
  overflow-y: clip;              /* corta el hilo justo donde empieza esta parte */
}
.pantalla {
  container: pantalla / inline-size;
  background: var(--papel);
  border: 1px solid var(--marco-pantalla);
  border-radius: 0.5rem;
  color: var(--tinta);
  font-size: 0.9375rem;
  line-height: 1.35;
}
.app-barra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.7rem 0.9rem;
  background: var(--tinta);
  color: var(--papel);
  border-radius: calc(0.5rem - 1px) calc(0.5rem - 1px) 0 0;
}
.app-menu {
  width: 1rem;
  height: 0.75rem;
  flex: none;
  background:
    linear-gradient(currentColor 0 0) top / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) center / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat;
}
.app-titulo { font-weight: 640; font-size: 1.0625rem; letter-spacing: -0.005em; }
.rotulo {
  margin-left: auto;
  padding: 0.2rem 0.6rem;
  border: 1px dashed #aeb6c6;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #e9ecf2;               /* 12,4:1 sobre --tinta */
}
.app-resumen {
  padding: 0.85rem 0.9rem 0.8rem;
  border-bottom: 1px solid var(--raya);
  color: var(--tinta-2);
}
.app-resumen strong {
  font-weight: 680;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  color: var(--tinta);
}

.pedidos {
  width: 100%;
  border-collapse: collapse;
}
.pedidos th, .pedidos td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--raya);
}
.pedidos thead th {
  padding-block: 0.55rem;
  background: var(--papel-2);
  color: var(--tinta-2);
  font-weight: 600;
  font-size: 0.875rem;
}
.pedidos tbody th { font-weight: 500; color: var(--tinta-2); }
.c-cliente { font-weight: 600; }
.pedidos .c-total { text-align: right; white-space: nowrap; }
.pedidos .c-estado { width: 1%; white-space: nowrap; }
.etq { display: none; }

.estado {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}
.estado-entregar { border-color: #8f8b84; color: var(--tinta); }
.estado-debe { background: var(--hilo); border-color: var(--hilo); color: #fff; }   /* 9,9:1 */
.estado-cobrado { color: var(--tinta-2); }
.estado-cobrado::before {               /* una tilde dibujada: no depende del color */
  content: "";
  width: 0.35em;
  height: 0.7em;
  margin: -0.15em 0.5em 0 0.05em;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* la fila que el hilo marca: el pedido 1047, el mismo del registro de abajo */
.elegido > * { background: var(--elegido); }
.elegido > th { box-shadow: inset 3px 0 0 var(--hilo); color: var(--tinta); font-weight: 650; }

.app-registro {
  padding: 0.75rem 0.9rem;
  box-shadow: inset 3px 0 0 var(--hilo);
  color: var(--tinta-2);
  font-size: 0.875rem;
  line-height: 1.45;
}
.app-registro strong { color: var(--tinta); font-weight: 650; }

/* pantalla angosta: un renglón por pedido, como en un teléfono */
@container pantalla (width < 32rem) {
  .app-resumen strong { display: block; }
  .app-sep { display: none; }
  .pedidos, .pedidos tbody { display: block; }
  .pedidos thead { display: none; }
  .pedidos tr {
    --fila: 0.9rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "pedido  estado"
      "cliente total"
      "entrega entrega";
    gap: 0.15rem 0.75rem;
    align-items: center;
    padding: 0.8rem var(--fila);
    border-bottom: 1px solid var(--raya);
  }
  .pedidos tr > * { display: block; padding: 0; border: 0; background: none; }
  .pedidos .c-pedido { grid-area: pedido; font-size: 0.875rem; }
  .pedidos .c-cliente { grid-area: cliente; font-size: 1rem; }
  .pedidos .c-total { grid-area: total; font-weight: 650; font-size: 1rem; }
  .pedidos .c-entrega { grid-area: entrega; font-size: 0.875rem; color: var(--tinta-2); }
  .pedidos .c-estado { grid-area: estado; width: auto; justify-self: end; }
  .etq { display: inline; }
  .etq-oculta {                       /* solo para lectores de pantalla */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .elegido { background: var(--elegido); box-shadow: inset 3px 0 0 var(--hilo); }
  .elegido > *, .elegido > th { background: none; box-shadow: none; }
}

/* 5c. El hilo entra en la pantalla: baja por la cuneta y dobla hacia el pedido 1047.
   Sale desde muy arriba y .despues lo corta justo debajo de la planilla, así no depende
   de ninguna medida fija. */
.elegido > th { position: relative; }
.elegido > th::before {
  content: "";
  position: absolute;
  top: -200vh;
  bottom: 50%;
  right: calc(100% + var(--fila, 0px));
  width: calc(var(--cuneta) + 1px + var(--grueso) / 2);
  border-left: var(--grueso) solid var(--hilo);
  border-bottom: var(--grueso) solid var(--hilo);
  border-bottom-left-radius: var(--r);
  pointer-events: none;
}

/* 6. ¿Le suena? */
.suena { background: var(--revoque-sombra); padding-block: var(--aire); }
.suena-lista { margin-top: 2rem; display: grid; gap: 1.75rem; }
.suena-lista li {
  padding-top: 1rem;
  border-top: 2px solid var(--tinta);
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem);
  line-height: 1.24;
  letter-spacing: -0.006em;
  max-width: 19em;
  text-wrap: pretty;
}
@media (min-width: 60em) {
  .suena-lista { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 3rem; margin-top: 3rem; }
  .suena-lista li:nth-child(2) { margin-top: 3.5rem; }
  .suena-lista li:nth-child(3) { margin-top: 7rem; }
}

/* 6b. Las escenas de «¿Te suena?». Cada dolor se actúa con las cosas del desorden: el chat, la nota, la hoja.
   Son letra de 1rem para arriba, como el resto. El estado de reposo es el final de la escena. */
.suena-rotulo { margin-top: 1rem; font-size: var(--t-chico); color: var(--tinta-2); }
.escena { margin: 1.5rem 0 0; max-width: 21rem; font-size: 1rem; font-weight: 500; line-height: 1.3; letter-spacing: 0; }
.escena p { margin: 0; }
.e-fila { display: flex; align-items: center; gap: 0.75rem; }
.e-chat { padding: 0.45rem 0.8rem; border-radius: 1rem 1rem 1rem 0.25rem; background: var(--chat); }
.e-nota { padding: 0.4rem 0.75rem; border-radius: 2px; background: var(--nota); rotate: -2deg; box-shadow: 0 2px 0 rgb(27 35 51 / 0.1); }
.e-celda, .e-factura { padding: 0.4rem 0.75rem; border: 1px solid var(--marco-pantalla); background: var(--papel); font-variant-numeric: tabular-nums; }
.e-factura { border-top: 3px solid var(--tinta); }
.e-copia { font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--tinta-2); white-space: nowrap; }
.e-hilo { display: block; width: var(--grueso); height: 1.1rem; margin-left: 1.5rem; background: var(--hilo); transform-origin: top; }
.e-cambia { display: inline-grid; }
.e-cambia > * { grid-area: 1 / 1; }
.e-antes { opacity: 0; }                      /* en reposo se ve lo de después: el error ya está hecho */
.e-marca { position: relative; display: inline-block; margin-left: 0.7em; white-space: nowrap; }
.e-marca svg { position: absolute; inset: -0.3em -0.55em; width: calc(100% + 1.1em); height: calc(100% + 0.6em); max-width: none; overflow: visible; }
.e-marca ellipse { fill: none; stroke: var(--hilo); stroke-width: 2; vector-effect: non-scaling-stroke; }
.e-hoja { padding: 0.25rem 0.85rem; border: 1px solid var(--marco-pantalla); background: var(--papel); rotate: 1.2deg; }
.e-renglon { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.45rem; border-bottom: 1px solid var(--raya); font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; }
.e-renglon:last-child { border-bottom: 0; }
.e-duda { font-family: var(--grotesca); font-weight: 700; color: var(--hilo); }
.e-quien { margin-top: 0.9rem; }
.e-persona { display: inline-block; padding: 0.3rem 0.8rem; border: 2px solid var(--tinta); border-radius: 999px; background: var(--tinta); color: var(--revoque); font-weight: 600; white-space: nowrap; }
.e-falta { border-style: dashed; border-color: var(--tinta-2); background: transparent; color: var(--tinta); }
.escena-charla { display: grid; gap: 0.5rem; }
.e-globo { max-width: 88%; padding: 0.45rem 0.8rem; }
.e-mio { justify-self: end; border: 1px solid var(--marco-pantalla); border-radius: 1rem 1rem 0.25rem 1rem; background: var(--papel); }
.e-otro { justify-self: start; border-radius: 1rem 1rem 1rem 0.25rem; background: var(--chat); }
@media (prefers-reduced-motion: no-preference) {
  .hilo-vivo .escena:not(.dibujado) :is(.e-paso, .e-hilo) { opacity: 0; }
  .hilo-vivo .escena.dibujado .e-paso { animation: e-entra 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--d, 0) * 1s); }
  .hilo-vivo .escena.dibujado .e-hilo { animation: e-baja 0.2s linear both; animation-delay: calc(var(--d, 0) * 1s); }
  /* lo que cambia de una copia a la otra: primero se ve lo de antes, después aparece lo de después */
  .hilo-vivo .escena:not(.dibujado) .e-antes { opacity: 1; }
  .hilo-vivo .escena:not(.dibujado) .e-despues { opacity: 0; }
  .hilo-vivo .escena.dibujado .e-antes { animation: e-se-va 0.25s both; animation-delay: calc(var(--cambio, 1.7) * 1s); }
  .hilo-vivo .escena.dibujado .e-despues { animation: e-llega 0.35s both; animation-delay: calc(var(--cambio, 1.7) * 1s + 0.15s); }
  .hilo-vivo .escena .e-marca ellipse { stroke-dasharray: 1 2; }
  .hilo-vivo .escena:not(.dibujado) .e-marca ellipse { stroke-dashoffset: 1.01; }
  .hilo-vivo .escena.dibujado .e-marca ellipse { animation: hilo-enreda 0.55s 3.3s ease-in-out both; }
}
@keyframes e-entra { from { opacity: 0; translate: 0 0.7rem; scale: 0.96; } }
@keyframes e-baja { from { transform: scaleY(0); } }
@keyframes e-se-va { from { opacity: 1; } to { opacity: 0; } }
@keyframes e-llega { from { opacity: 0; scale: 1.7; } to { opacity: 1; scale: 1; } }

/* 7. Lo que hago */
.hago { padding-block: var(--aire) 0; }
.hago-entrada {
  margin-top: 1.5rem;
  font-size: clamp(1.625rem, 1rem + 2.5vw, 3rem);
  line-height: 1.16;
  letter-spacing: -0.016em;
  max-width: 21em;
  text-wrap: pretty;
}
.hago-pie {
  margin-top: 2.25rem;
  display: grid;
  gap: 1.25rem;
  font-family: var(--grotesca);
  font-size-adjust: var(--ajuste-grotesca);
  font-size: 1.1875rem;
  line-height: 1.4;
  font-weight: 500;
  color: var(--tinta-2);
}
.hago-pie li { padding-left: 1rem; border-left: 2px solid var(--raya-pared); max-width: 24em; }
@media (min-width: 60em) {
  /* la frase ocupa todo el ancho; debajo, la prueba de medida a la izquierda y las cuatro razones a la derecha */
  .hago-reja { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 4rem; align-items: start; }
  .hago-reja > :is(.etiqueta, .hago-entrada) { grid-column: 1 / -1; }
  .hago-pie { grid-column: 2; gap: 1.75rem; margin: 3.5rem 0 0; }
}

/* 7b. La prueba de medida. La misma pantalla, primero como la trae un programa genérico (gris, en clave) y
   después a la medida de tu empresa; debajo, la cota: la línea con dos topes con la que se anota una medida en
   un plano. Es una segunda pantalla de ejemplo, hermana de la de pedidos. El estado de reposo es el final. */
.medida { margin: 2rem 0 0; max-width: 27rem; }
.m-ficha {
  background: var(--papel);
  border: 1px solid var(--marco-pantalla);
  border-radius: 0.5rem;
  color: var(--tinta);
  line-height: 1.35;
  overflow: clip;                    /* lo que entra y sale de un renglón no se asoma fuera de la pantalla */
}
.m-barra, .m-fila, .m-accion { position: relative; isolation: isolate; }
.m-barra {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  background: var(--tinta);
  color: var(--papel);
  font-weight: 640;
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
}
.m-fila { padding: 0.6rem 0.9rem 0.65rem; border-bottom: 1px solid var(--raya); background: var(--papel); }
.m-accion { padding: 0.7rem 0.9rem; background: var(--papel); }
/* dos capas debajo del texto de cada parte: el gris del programa genérico, que se va, y el barrido que pasa
   por el renglón cuando cambia. En reposo no se ve ninguna. */
:is(.m-barra, .m-fila, .m-accion)::before, .m-fila::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
}
.m-barra::before { background: #6e6b65; }              /* --papel encima: 4,9:1 */
:is(.m-fila, .m-accion)::before { background: var(--papel-2); }
.m-fila::after { background: var(--elegido); transform-origin: left; }
/* lo que cambia: lo de antes y lo de después ocupan el mismo lugar */
.m-cambia { display: grid; justify-items: start; align-items: center; }
.m-cambia > * { grid-area: 1 / 1; }
.m-cambia.m-accion { justify-items: end; }
.m-antes { opacity: 0; }             /* en reposo se ve lo hecho a medida */
.m-etq { color: var(--tinta-2); font-weight: 600; font-size: 0.875rem; }
.m-dato { margin-top: 0.1rem; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.005em; }
.m-frio {                            /* la voz del programa genérico: en clave y en mayúsculas */
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.m-dato .m-frio, .m-dato.m-frio { font-size: 0.9375rem; letter-spacing: 0.02em; }
.m-hueco { position: relative; }
.m-sobra { position: absolute; inset: 0; opacity: 0; visibility: hidden; }   /* el campo que sobra: no queda */
.m-sobra::before { opacity: 1; }
.m-sobra p {                         /* la tachadura: una raya de birome sobre cada renglón de texto */
  width: fit-content;
  margin-inline: -0.2rem;
  padding-inline: 0.2rem;
  background: linear-gradient(var(--hilo) 0 0) left 54% / 100% var(--grueso) no-repeat;
}
.m-accion .m-frio { display: flex; gap: 1.25rem; color: var(--tinta-2); }
.m-boton {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.35rem 0.95rem;
  border-radius: 0.375rem;
  background: var(--tinta);
  color: var(--papel);
  font-weight: 620;
  font-size: 0.9375rem;
}
.m-cota {                            /* |—— a tu medida ——| */
  position: relative;
  display: grid;
  place-items: center;
  height: 1.375rem;
  margin-top: 0.85rem;
  color: var(--hilo);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
}
.m-cota::before {
  content: "";
  position: absolute;
  inset: 0;
  border-inline: var(--grueso) solid currentColor;
  background: linear-gradient(currentColor 0 0) center / 100% var(--grueso) no-repeat;
}
.m-cota span { position: relative; padding-inline: 0.6rem; background: var(--revoque); }
.m-clave { margin-top: 0.9rem; font-size: var(--t-chico); line-height: 1.45; color: var(--tinta-2); text-wrap: pretty; }
@media (min-width: 60em) {
  .medida { grid-column: 1; margin-top: 3.5rem; max-width: none; }
}
@media (prefers-reduced-motion: no-preference) {
  /* antes de llegar: la pantalla como la trae el programa genérico */
  .hilo-vivo .m-escena:not(.dibujado) .m-antes,
  .hilo-vivo .m-escena:not(.dibujado) :is(.m-barra, .m-fila:not(.m-nueva), .m-accion)::before { opacity: 1; }
  .hilo-vivo .m-escena:not(.dibujado) :is(.m-despues, .m-nueva, .m-cota) { opacity: 0; }
  .hilo-vivo .m-escena:not(.dibujado) .m-sobra { opacity: 1; visibility: visible; }
  .hilo-vivo .m-escena:not(.dibujado) .m-sobra p { background-size: 0 var(--grueso); }
  .hilo-vivo .m-escena:not(.dibujado) .m-sube { translate: 0 100%; }
  /* al llegar, de arriba abajo: cada parte deja el gris y pasa a llamarse como la nombra el dueño; el campo
     que sobra se tacha y se va, el de abajo sube a su lugar, aparece el que faltaba y la cota mide el resultado.
     --d es el segundo en que le toca a cada parte; --f, el del cambio de texto cuando es otro. */
  .hilo-vivo .m-escena.dibujado .m-antes { animation: m-sale 0.24s ease-in both; animation-delay: calc(var(--f, var(--d, 0)) * 1s); }
  .hilo-vivo .m-escena.dibujado :is(.m-barra, .m-fila:not(.m-sobra, .m-nueva), .m-accion)::before { animation: m-se-va 0.3s ease-in both; animation-delay: calc(var(--f, var(--d, 0)) * 1s); }
  .hilo-vivo .m-escena.dibujado .m-despues { animation: m-llega 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--f, var(--d, 0)) * 1s + 0.12s); }
  .hilo-vivo .m-escena.dibujado .m-fila:not(.m-sobra)::after { animation: m-barrido 0.75s ease-out both; animation-delay: calc(var(--f, var(--d, 0)) * 1s - 0.05s); }
  .hilo-vivo .m-escena.dibujado .m-sobra { animation: m-sobra 0.85s ease-in both; animation-delay: calc(var(--d, 0) * 1s); }
  .hilo-vivo .m-escena.dibujado .m-sobra p { animation: m-tacha 0.26s ease-out both; animation-delay: calc(var(--d, 0) * 1s); }
  .hilo-vivo .m-escena.dibujado .m-sobra p + p { animation-delay: calc(var(--d, 0) * 1s + 0.14s); }
  .hilo-vivo .m-escena.dibujado .m-sube { animation: m-sube 0.42s cubic-bezier(0.3, 0, 0.2, 1) both; animation-delay: calc(var(--d, 0) * 1s); }
  .hilo-vivo .m-escena.dibujado .m-nueva { animation: m-nace 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--d, 0) * 1s); }
  .hilo-vivo .m-escena.dibujado .m-cota { animation: m-mide 0.65s ease-out both; animation-delay: calc(var(--d, 0) * 1s); }
  .hilo-vivo .m-escena.dibujado .m-cota span { animation: m-llega 0.35s ease-out both; animation-delay: calc(var(--d, 0) * 1s + 0.45s); }
}
@keyframes m-se-va { from { opacity: 1; } to { opacity: 0; } }
@keyframes m-sale { from { opacity: 1; translate: 0 0; } to { opacity: 0; translate: 0 -0.4rem; } }
@keyframes m-llega { from { opacity: 0; translate: 0 0.4rem; } to { opacity: 1; translate: 0 0; } }
@keyframes m-barrido { 0% { opacity: 0; scale: 0 1; } 35% { opacity: 1; scale: 1 1; } 100% { opacity: 0; scale: 1 1; } }
@keyframes m-tacha { from { background-size: 0 var(--grueso); } }
@keyframes m-sobra {
  0%, 48% { opacity: 1; visibility: visible; translate: 0 0; }
  62%, 76% { opacity: 0.45; visibility: visible; translate: 0 0; }
  100% { opacity: 0; visibility: hidden; translate: -0.6rem 0; }
}
@keyframes m-sube { from { translate: 0 100%; } to { translate: 0 0; } }
@keyframes m-nace { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes m-mide { from { clip-path: inset(-0.25rem 100% -0.25rem -0.25rem); } to { clip-path: inset(-0.25rem); } }

/* 8. Cómo es trabajar conmigo: cinco nudos sobre el hilo.
   En el teléfono y la tableta el hilo baja; en pantalla ancha corre de izquierda a derecha. */
.pasos { padding-block: var(--aire); }
.pasos-lista { counter-reset: paso; margin-top: 2.5rem; }
.pasos-lista li {
  --oculto: 1 0;                     /* cómo se esconde el tramo antes de dibujarse */
  position: relative;
  counter-increment: paso;
  padding: 0 0 2.25rem 2.75rem;
  max-width: 34em;
}
.pasos-lista li::before {            /* el nudo */
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.25rem;
  height: 1.25rem;
  border: var(--grueso) solid var(--hilo);
  border-radius: 50%;
  background: var(--revoque);
}
.pasos-lista li:not(:last-child)::after {   /* el tramo hasta el próximo nudo */
  content: "";
  position: absolute;
  left: calc(0.625rem - var(--grueso) / 2);
  top: 1.45rem;
  bottom: -0.2rem;
  width: var(--grueso);
  background: var(--hilo);
  transform-origin: top;
}
.pasos-lista h3 {
  font-weight: 640;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.pasos-lista h3::before {
  content: counter(paso);
  display: block;
  margin-bottom: 0.35rem;
  color: var(--hilo);
  font-size: 0.9375rem;
  font-weight: 650;
}
.pasos-lista p { margin-top: 0.6rem; color: var(--tinta); text-wrap: pretty; }
.acciones-medio { margin-top: 0.75rem; padding-left: 2.75rem; }

/* en rem por la misma razón: con la letra grande los pasos vuelven a bajar en columna */
.pasos { container: pasos / inline-size; }
@container pasos (width >= 70rem) {
  .pasos-lista {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 2rem;
    margin-top: 3.5rem;
  }
  .pasos-lista li { --oculto: 0 1; padding: 2.5rem 0 0; }
  .pasos-lista li::before { top: 0; }
  .pasos-lista li:not(:last-child)::after {
    left: 1.25rem;
    right: -2rem;
    top: calc(0.625rem - var(--grueso) / 2);
    bottom: auto;
    width: auto;
    height: var(--grueso);
    transform-origin: left;
  }
  .acciones-medio { margin-top: 3rem; padding-left: 0; }
}

/* 9. Qué incluye el abono: la ficha */
.abono { padding-block: 0 var(--aire); }
.abono-lema {
  margin-top: 1.25rem;
  font-size: clamp(1.5rem, 1.05rem + 1.6vw, 2.375rem);
  line-height: 1.18;
  letter-spacing: -0.014em;
  max-width: 15em;
  text-wrap: balance;
}
.ficha {
  margin-top: 2.25rem;
  background: var(--papel);
  border: 1px solid var(--marco-pantalla);
  border-radius: 0.5rem;
}
.ficha-fila { padding: 1.25rem 1.25rem 1.4rem; }
.ficha-fila + .ficha-fila { border-top: 1px solid var(--raya); }
.ficha h3 { font-weight: 640; font-size: 1.125rem; letter-spacing: -0.005em; }
.ficha ul { margin-top: 0.6rem; }
.ficha li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 1.125rem;
  line-height: 1.45;
  text-wrap: pretty;
}
.ficha li + li { margin-top: 0.55rem; }
.ficha li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.8rem;
  height: var(--grueso);
  background: var(--hilo);
}
.ficha-no li::before { background: var(--grafito); }
@media (min-width: 40em) {
  .ficha-fila { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 1.5rem; padding: 1.5rem 1.75rem; }
  .ficha ul { margin-top: 0; }
  .ficha h3 { padding-top: 0.1rem; }
}
@media (min-width: 60em) {
  .abono-reja { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 4rem; align-items: start; }
  .ficha { margin-top: 0.4rem; }
}

/* 10. Con quién vas a trabajar. Jean aparece acá, en la segunda parte y a un lado: una foto vertical,
   en un lugar real de Montevideo, sin ocupar todo el ancho. Al otro lado, quién es y qué hace. */
.soy { padding-block: 0 var(--aire); }
.soy-foto { display: block; max-width: 30rem; }
.soy-foto img { width: 100%; border-radius: 0.375rem; }
.soy-texto { margin-top: 2rem; }
.soy-texto p { margin-top: 1.1rem; max-width: 30em; text-wrap: pretty; }
.soy-texto .soy-frase { margin-top: 0.9rem; max-width: 14em; text-wrap: balance; }
.soy-texto .soy-firma { font-weight: 600; }
@media (min-width: 60em) {
  .soy-reja {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.5rem;
    align-items: center;
  }
  .soy-foto { grid-column: 1 / 6; max-width: none; }
  .soy-texto { grid-column: 7 / -1; margin-top: 0; }
}

/* 11. Preguntas frecuentes */
.preguntas { padding-block: var(--aire); }
.preguntas-lista { margin-top: 1.75rem; border-bottom: 1px solid var(--raya-pared); }
.preguntas details { border-top: 1px solid var(--raya-pared); }
.preguntas summary {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  min-height: 3rem;
  padding: 1.05rem 0;
  list-style: none;
  cursor: pointer;
  font-weight: 620;
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  line-height: 1.3;
  letter-spacing: -0.006em;
}
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::before {          /* la flecha, al lado de la pregunta */
  content: "";
  flex: none;
  width: 0.55em;
  height: 0.55em;
  margin-top: 0.3em;
  border-right: var(--grueso) solid var(--hilo);
  border-bottom: var(--grueso) solid var(--hilo);
  transform: rotate(-45deg);
}
.preguntas details[open] > summary::before { transform: rotate(45deg); margin-top: 0.15em; }
.preguntas summary:hover { color: var(--hilo); }
.preguntas details p { padding: 0 0 1.4rem calc(0.55em + 0.9rem); max-width: 36em; text-wrap: pretty; }
@media (prefers-reduced-motion: no-preference) {
  .preguntas summary::before { transition: transform 0.2s; }
}
@media (min-width: 60em) {
  .preguntas-reja { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 3rem; align-items: start; }
  .preguntas h2 { position: sticky; top: calc(var(--alto-barra) + 1.5rem); padding-top: 1.1rem; }
  .preguntas-lista { margin-top: 0; }
}

/* 12. Escríbame: el hilo termina subrayando el correo */
.escribame { background: var(--revoque-sombra); padding-block: var(--aire) calc(var(--aire) * 0.8); }
.escribame h2 {
  font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5.25rem);
  font-weight: 660;
  line-height: 1;
  letter-spacing: -0.034em;
}
.escribame-texto { margin-top: 1.75rem; }
.escribame-texto p { max-width: 30em; text-wrap: pretty; }
.escribame-texto p + p { margin-top: 1rem; color: var(--tinta-2); }
.escribame-texto .rubros {
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem);
  line-height: 1.25;
  letter-spacing: -0.008em;
  max-width: 22em;
}
.contacto { margin-top: 2.5rem; }
.contacto-correo { position: relative; display: inline-block; padding-bottom: 0.35rem; }
.contacto-correo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--grueso);
  background: var(--hilo);
  transform-origin: left;
}
.correo {
  display: inline-block;
  min-height: 2.75rem;
  padding-top: 0.3rem;
  color: var(--tinta);
  font-weight: 640;
  font-size: clamp(1.625rem, 0.75rem + 4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.024em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.correo:hover { color: var(--hilo); }
.contacto-otros {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.75rem;
  font-size: 1.125rem;
  line-height: 1.3;
}
.contacto-otros li { min-height: 2.75rem; display: flex; align-items: center; }
.contacto-otros li:last-child { color: var(--tinta-2); }
.enlace { display: inline-flex; align-items: center; min-height: 2.75rem; }
/* el número se lee al lado de la palabra: sirve para agendarlo o para llamar */
.contacto-numero { margin-left: 0.45em; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 60em) {
  .escribame-reja {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 4rem;
    align-items: end;
  }
  .escribame h2 { grid-column: 1 / -1; }
  .escribame-texto { margin-top: 2.5rem; }
  .contacto { margin-top: 0; justify-self: start; }
}

.pie {
  padding-block: 2rem 2.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--tinta-2);
}

/* 13. Movimiento. Con «reducir movimiento», o sin JavaScript, no se mueve nada y todo se ve completo.
   movimiento.js pone .hilo-vivo en la página y .dibujado en cada parte la primera vez que llega a la vista.
   El ejemplo: el hilo se enreda en la planilla, sale derecho, baja y marca el pedido 1047.
   Los pasos y el correo se dibujan igual. La primera pantalla tiene su propio guion (sala.js, sección 18). */
@media (prefers-reduced-motion: no-preference) {
  .hilo-vivo .demo .hilo-enredo { stroke-dasharray: 1 2; }
  .hilo-vivo .demo:not(.dibujado) .hilo-enredo { stroke-dashoffset: 1.01; }
  .hilo-vivo .demo.dibujado .hilo-enredo { animation: hilo-enreda 1.15s 0.1s ease-in-out both; }
  .hilo-vivo .demo:not(.dibujado) .hilo-salida { clip-path: inset(-3px -3px -3px 100%); }
  .hilo-vivo .demo.dibujado .hilo-salida { animation: hilo-sale 0.4s 1.2s linear both; }
  /* una tapa del color de la pared cubre la cuneta y se retira hacia abajo */
  .hilo-vivo .hilo-tapa {
    display: block;
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: -3px;
    width: calc(var(--cuneta) + 3px);
    background: var(--revoque);
    transform-origin: bottom;
  }
  .hilo-vivo .demo.dibujado .hilo-tapa { animation: hilo-destapa 0.5s 1.25s ease-out both; }
  .hilo-vivo .demo:not(.dibujado) :is(.elegido, .elegido > *) { background-color: transparent; box-shadow: none; }
  .hilo-vivo .demo.dibujado :is(.elegido, .elegido > *) { animation: fila-marca 0.4s 1.75s ease-out both; }

  .hilo-vivo .pasos-lista li::after { transition: scale 0.45s linear; transition-delay: calc(var(--i, 0) * 0.4s); }
  .hilo-vivo .pasos-lista li:nth-child(2)::after { --i: 1; }
  .hilo-vivo .pasos-lista li:nth-child(3)::after { --i: 2; }
  .hilo-vivo .pasos-lista li:nth-child(4)::after { --i: 3; }
  .hilo-vivo .pasos-lista:not(.dibujado) li::after { scale: var(--oculto); }
  .hilo-vivo .contacto-correo::after { transition: scale 0.7s ease-out; }
  .hilo-vivo .contacto-correo:not(.dibujado)::after { scale: 0 1; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 60em) {
  .hilo-vivo .demo.dibujado .hilo-tapa { animation-delay: 1.6s; }
  .hilo-vivo .demo.dibujado :is(.elegido, .elegido > *) { animation-delay: 2.1s; }
}
@keyframes hilo-enreda { from { stroke-dashoffset: 1.01; } to { stroke-dashoffset: 0; } }
@keyframes hilo-sale {
  from { clip-path: inset(-3px -3px -3px 100%); }
  to { clip-path: inset(-3px -3px -3px -3px); }
}
@keyframes hilo-destapa { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes fila-marca { from { background-color: transparent; box-shadow: none; } }

/* 14. Tipografía, versión 3: una sola familia (Geist) con tres pesos de trabajo.
   Titulares en 640 y apretados; la voz del dueño en 500 y más grande; lo que se lee, en 400. */

/* etiqueta: nombra la sección cuando el titular de verdad es la frase que sigue */
h2.etiqueta {
  font-weight: 600;
  font-size: var(--t-chico);
  line-height: 1.3;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tinta-2);
}

/* titulares */
.sala h1 { font-weight: 640; font-size: clamp(2.5rem, 1rem + 5vw, 4.5rem); line-height: 1; letter-spacing: -0.04em; max-width: 11.5em; }
/* qué es y dónde, arriba del gancho y dentro del mismo titular: es lo que leen primero un buscador y quien llega
   sin saber de qué trata la página. Se ve como las etiquetas de las secciones. */
.portada-que {
  display: block;
  margin-bottom: 1.1rem;
  max-width: none;
  font-weight: 600;
  font-size: var(--t-chico);
  line-height: 1.3;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--hilo-claro);
}
.notas h2 { font-size: var(--t-voz); line-height: 1.12; letter-spacing: -0.03em; }      /* el título de la pantalla va un escalón más abajo */
.escribame h2 { font-weight: 640; font-size: clamp(2.75rem, 1.4rem + 5vw, 5.5rem); line-height: 0.98; letter-spacing: -0.05em; }
.hago-entrada { margin-top: 1rem; font-weight: 620; font-size: var(--t-h2); line-height: 1.08; letter-spacing: -0.035em; max-width: 19em; text-wrap: balance; }
.soy-texto .soy-frase { font-weight: 620; font-size: var(--t-h2); line-height: 1.06; letter-spacing: -0.035em; }

/* la voz del dueño */
.suena-frase { font-weight: 500; font-size: var(--t-voz); line-height: 1.2; letter-spacing: -0.025em; text-wrap: pretty; }
.suena-cierre { margin-top: 2.75rem; max-width: 30em; font-size: var(--t-lead); line-height: 1.35; text-wrap: pretty; }
.correo { font-weight: 600; letter-spacing: -0.035em; }

/* lo que se lee */
.portada .bajada { font-size: var(--t-lead); line-height: 1.4; max-width: 30em; }
@media (max-width: 59.99em) { .sala .boton-lleno { flex-basis: 100%; } }   /* en el celular, la acción principal ocupa su propio renglón */
.notas li, .pasos-lista p, .ficha li, .preguntas details p, .soy-texto p, .escribame-texto p, .contacto-otros { font-size: var(--t-cuerpo); line-height: 1.5; }
.abono-lema, .escribame-texto .rubros { font-size: var(--t-lead); line-height: 1.35; letter-spacing: -0.005em; }
.hago-pie { font-size: var(--t-cuerpo); font-weight: 400; line-height: 1.45; }
.hago-pie strong { display: block; margin-bottom: 0.25rem; font-weight: 640; font-size: var(--t-lead); line-height: 1.2; letter-spacing: -0.012em; color: var(--tinta); }
.pasos-lista h3 { font-size: var(--t-lead); line-height: 1.2; letter-spacing: -0.012em; }
.pasos-lista h3::before { font-size: var(--t-chico); }
.ficha h3 { font-size: var(--t-cuerpo); }
.preguntas summary { font-weight: 600; font-size: var(--t-lead); letter-spacing: -0.008em; }
.pie { font-size: var(--t-chico); }

/* el logotipo en la barra va en la sección 16 */

/* 15. Cómo lo construyo: la fábrica de software. Es la única franja oscura de la página: la tinta de fondo
   y el revoque de texto (12,1:1). Los cuatro dolores van más grandes porque son la voz del dueño. */
.fabrica {
  margin-top: var(--aire);
  padding-block: var(--aire);
  background: var(--tinta);
  color: var(--revoque);
}
.fabrica h2.etiqueta { color: var(--hilo-claro); }
.fabrica-frase {
  margin-top: 1rem;
  font-weight: 620;
  font-size: var(--t-h2);
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 16em;
  text-wrap: balance;
}
.fabrica-lema { margin-top: 1.25rem; max-width: 34em; font-size: var(--t-lead); line-height: 1.4; text-wrap: pretty; }
.fabrica-dolores { margin-top: 3rem; display: grid; gap: 1.75rem; }
.fabrica-dolores li { padding-top: 1.1rem; border-top: 1px solid rgb(227 226 221 / 0.28); line-height: 1.45; }
.fabrica-dolores strong {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  font-size: var(--t-lead);
  line-height: 1.22;
  letter-spacing: -0.02em;
}
/* el dibujo: el logotipo en grande, con dos filas. A su lado, la clave para leerlo. */
.orquesta { margin-top: 3rem; display: grid; gap: 2.25rem; align-items: center; }
.orquesta-dibujo { width: min(100%, 27rem); margin-inline: auto; }
.o-agente { fill: var(--pantalla-noche); }
.o-control { fill: var(--pantalla-noche); opacity: 0.5; --lleno: 0.5; }
.o-yo { fill: var(--punto-noche); }
.orquesta-clave { display: grid; gap: 1.25rem; max-width: 34em; }
.orquesta-clave li { position: relative; padding-left: 2.1rem; line-height: 1.45; }
.orquesta-clave strong { display: block; font-weight: 600; font-size: var(--t-lead); line-height: 1.22; letter-spacing: -0.02em; }
.orquesta-clave li::before {             /* la muestra: el mismo color que la pieza del dibujo */
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 1.25rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--pantalla-noche);
}
.orquesta-clave .clave-controles::before { opacity: 0.5; }
.orquesta-clave .clave-yo::before { top: 0.32em; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--punto-noche); }
/* Las pantallas se encienden de a una. El estado de reposo es todo encendido: el movimiento se suma solo si
   la persona no pidió reducirlo y el guion pudo arrancar (clase hilo-vivo). */
@media (prefers-reduced-motion: no-preference) {
  .hilo-vivo .orquesta:not(.dibujado) :is(.o-p, .o-yo) { opacity: 0.16; }
  .hilo-vivo .orquesta.dibujado .o-p { animation: encender 0.45s ease-out both; animation-delay: calc(var(--i) * 0.13s); }
  .hilo-vivo .orquesta.dibujado .o-yo { animation: encender 0.5s ease-out both; animation-delay: 1.1s; }
}
@keyframes encender { from { opacity: 0.16; } to { opacity: var(--lleno, 1); } }
@media (min-width: 60em) {
  .fabrica-dolores { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; row-gap: 2.25rem; }
  .orquesta { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 4rem; }
}
@media (min-width: 80em) {
  .fabrica-dolores { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 16. La marca: el logotipo y sus colores.
   «El punto central»: las pantallas son los agentes de IA y el punto es Jean, el que dirige. Cada paleta dice
   de qué color van las pantallas y el punto sobre claro y sobre oscuro, y el color de los enlaces y del hilo.
   Los valores salen de marca/logotipo/guiones/punto_central.py; a_la_web.py los escribe entre las marcas. */
/* paletas:inicio */
:root {   /* por omisión: Tinta y azul */
  --pantalla: #1b2333; --punto: #2447d8; --letra-ia: #1b2333;
  --pantalla-noche: #e3e2dd; --punto-noche: #8fb0ff;
  --hilo: #2447d8; --hilo-claro: #9db7ea;
}
/* paletas:fin */
.barra-logo { width: min(13.25rem, 56vw); }
.lg-pantalla { fill: var(--pantalla); }
.lg-punto { fill: var(--punto); }
.lg-texto { fill: var(--tinta); }
.lg-letra-ia { fill: var(--letra-ia); }

/* 17. La sala de control: la primera pantalla. Franja oscura, como la de «Cómo lo construyo»: a la izquierda el
   gancho, a la derecha el símbolo. Quieto, el símbolo es un dibujo; sala.js lo cambia por un lienzo donde se ve
   trabajar a la fábrica. El botón de pausa está siempre a la vista mientras haya movimiento. */
.sala {
  position: relative;
  overflow: clip;
  padding-block: clamp(2.25rem, 1.2rem + 4vw, 4.5rem) clamp(2.75rem, 1.5rem + 5vw, 5.5rem);
  background: radial-gradient(110% 95% at 76% 46%, #263352 0%, var(--tinta) 52%, #141a27 100%);
  color: var(--revoque);
}
.sala::before {                           /* una retícula de puntos que se pierde hacia los bordes */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(227 226 221 / 0.13) 1px, transparent 1.6px);
  background-size: 1.75rem 1.75rem;
  mask-image: radial-gradient(75% 80% at 72% 46%, #000 20%, transparent 78%);
  pointer-events: none;
}
.sala-reja { position: relative; display: grid; gap: 2.25rem; align-items: center; }
.sala .bajada { color: #d6d8d6; }
.sala .boton { border-color: var(--revoque); }
.sala .boton-lleno { background: var(--revoque); color: var(--tinta); }
.sala .boton-lleno:hover { background: var(--punto-noche); border-color: var(--punto-noche); color: var(--tinta); }
.sala .boton-borde { color: var(--revoque); }
.sala .boton-borde:hover { background: var(--revoque); color: var(--tinta); }
.sala :focus-visible { outline-color: var(--hilo-claro); }
.sala-escena { position: relative; margin: 0; }
.sala-fija { width: min(100%, 24rem); margin: 1.5rem auto 0.5rem; }
.s-agente { fill: var(--pantalla-noche); }
.s-control { fill: var(--pantalla-noche); opacity: 0.5; }
.s-yo { fill: var(--punto-noche); }
.sala-lienzo { display: block; width: 100%; aspect-ratio: 10 / 11; max-height: 34rem; }
.sala-lienzo[hidden] { display: none; }
.sala-viva .sala-fija { display: none; }
.sala-pausa {
  position: absolute;
  top: 0;
  right: 0;
  min-height: 2.75rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgb(227 226 221 / 0.45);
  border-radius: 999px;
  background: rgb(20 26 39 / 0.6);
  color: var(--revoque);
  font: inherit;
  font-size: var(--t-chico);
  cursor: pointer;
}
.sala-pausa:hover { background: var(--revoque); color: var(--tinta); }
@media (max-width: 59.99em) { .sala-pausa { position: static; display: block; margin: 0.5rem 0 0 auto; } .sala-pausa[hidden] { display: none; } }
.sala-clave { margin-top: 0.9rem; max-width: 34em; font-size: var(--t-chico); line-height: 1.45; color: #b9c0cc; }
@media (min-width: 60em) {
  .sala-reja { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 3.5rem; }
  .sala-lienzo { aspect-ratio: 1 / 1; }
}
.portada-frase { margin-top: 1rem; font-weight: 620; font-size: var(--t-h2); line-height: 1.06; letter-spacing: -0.035em; max-width: 11em; text-wrap: balance; }

/* 18. Lo que aparece al desplazar. Cada bloque sube y toma color al entrar en la pantalla. Lo maneja el navegador
   con la línea de tiempo de la vista: no hay guion. Donde no existe, o con «reducir movimiento», todo está a la vista. */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    :is(.portada-texto, .notas, .soy-foto, .soy-texto, .suena-lista li, .suena-cierre, .hago-entrada, .medida, .hago-reja li, .fabrica-frase, .fabrica-lema,
        .fabrica-dolores li, .pasos-lista li, .abono-entrada, .ficha, .preguntas-lista > *, .escribame-texto, .contacto) {
      animation: aparecer linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 95%;
    }
    .medida { animation-range: entry 0% entry 50%; }   /* ya está nítida cuando empieza a actuarse */
    :is(.sala-lienzo, .sala-fija) { animation: alejarse linear both; animation-timeline: view(); animation-range: exit 10% exit 100%; }
  }
}
/* el gancho entra al cargar: el titular, la bajada y los botones, uno detrás del otro */
@media (prefers-reduced-motion: no-preference) {
  .sala-texto > * { animation: entrar 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .sala-texto > :nth-child(2) { animation-delay: 0.12s; }
  .sala-texto > :nth-child(3) { animation-delay: 0.24s; }
  .sala-escena { animation: entrar 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes entrar { from { opacity: 0; translate: 0 1.5rem; } }
@keyframes aparecer { from { opacity: 0.08; translate: 0 2.25rem; } }
@keyframes alejarse { to { opacity: 0.25; scale: 0.94; translate: 0 1.5rem; } }
