/* Tinto · la tacita que salió a caminar
   Un fondo por sección; la tacita tiene carril propio:
   - celular y tableta (< 1200px): una franja horizontal en cada sección, sin texto;
     la taza entra por la derecha, se detiene y sale (o se queda hasta que la franja sale).
   - escritorio (>= 1200px): la columna derecha del contenedor, que ninguna sección
     usa para texto; la taza baja por ella de parada en parada. */

/* ------------------------------------------------------------ fuentes */
@font-face { font-family: "PP Mori"; src: url("../assets/fonts/PPMori-Extralight.woff2") format("woff2"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "PP Mori"; src: url("../assets/fonts/PPMori-ExtralightItalic.woff2") format("woff2"); font-weight: 200; font-style: italic; font-display: swap; }
@font-face { font-family: "PP Mori"; src: url("../assets/fonts/PPMori-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PP Mori"; src: url("../assets/fonts/PPMori-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Breezy Pro"; src: url("../assets/fonts/breezy-pro.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bulmer MT"; src: url("../assets/fonts/BulmerMTStd-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Bulmer MT"; src: url("../assets/fonts/BulmerMTStd-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Bulmer MT"; src: url("../assets/fonts/BulmerMTStd-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
/* measured against Arial with fallback.mjs, so the swap does not reflow */
@font-face {
  font-family: "PP Mori Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Arimo"), local("Helvetica");
  size-adjust: 102.9%; ascent-override: 72.89%; descent-override: 19.44%; line-gap-override: 0%;
}

/* ------------------------------------------------------------ tokens */
:root {
  color-scheme: light;   /* the site is colour fields: no dark mode, on purpose */
  /* tono impreso (piezas y menú) por defecto */
  --rojo: #B33131;  --rojo-sombra: #9F1915;
  --azul: #3A4CA8;  --azul-sombra: #253A6E;
  --verde: #225649; --verde-sombra: #0F352A;
  --crema: #F4EEE0; --crema-menu: #EADEC9;
  --crema-taza: #EEE8DB; --crema-taza-sombra: #CAC5B8;   /* the cream cup of the .ai */
  --negro: #221F20;

  --sans: "PP Mori", "PP Mori Fallback", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  --mano: "Breezy Pro", "Brush Script MT", "Segoe Script", cursive;
  --serif: "Bulmer MT", Georgia, "Times New Roman", "Liberation Serif", serif;

  /* escala: 14 · 16 · 20 · 28 · 40 · 64 · 112 (px en escritorio) */
  --t-14: 0.875rem;
  --t-16: 1rem;
  --t-20: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);
  --t-28: clamp(1.3125rem, 1.05rem + 0.75vw, 1.75rem);
  --t-40: clamp(1.625rem, 1.15rem + 1.35vw, 2.5rem);
  --t-64: clamp(2.375rem, 1.45rem + 2.7vw, 4rem);
  --t-112: clamp(3.25rem, 1.5rem + 5.6vw, 7rem);

  /* espacio: base 8 */
  --g: clamp(24px, 4.72vw, 68px);              /* 24 en celular, 68 en escritorio */
  --ancho: min(100% - 2 * var(--g), 1320px);
  --sec-pad: clamp(72px, 4rem + 4vw, 144px);

  /* la tacita: px por unidad del dibujo */
  --s: 0.5;
  --modo: franjas;

  /* el andén: una celda mide W x h, como el pie del menú y la bolsa (≈3,5:1) */
  --piso-h: 8px;
  --piso-W: 28px;
  --anden-filas: 6;

  --out: cubic-bezier(.2, .8, .2, 1);
  --spring: linear(0, 0.42 9%, 0.84 21%, 1.02 33%, 1.05 41%, 1.01 55%, 0.99 70%, 1);
}
html[data-tono="pantalla"] {
  --rojo: #A43B36;  --rojo-sombra: #91281F;
  --azul: #2E529B;  --azul-sombra: #253A6E;
}
@media (min-width: 600px) { :root { --s: 0.6; --piso-h: 9px; --piso-W: 32px; } }
@media (min-width: 1200px) {
  :root {
    --s: 0.72; --modo: carril;
    --piso-h: 10px; --piso-W: 35px; --anden-filas: 7;
    --carril: calc(402px * var(--s) + 16px);   /* wide enough for the sitting cup */
    /* one size for the three big display lines (the two ovals and "Tinto primero."), whole pixels */
    --t-cartel: min(104px, round(down, 7.2vw, 1px));
  }
}
@media (min-width: 1440px) { :root { --s: 0.8; } }

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--azul); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--azul);
  color: var(--crema);
  font-family: var(--sans);
  font-size: var(--t-20);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure, dl, dd, ul, address { margin: 0; }
ul { padding: 0; list-style: none; }
address, em { font-style: normal; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, li, dd, figcaption { overflow-wrap: break-word; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* designed focus: a thick ring in the ink of each ground, set off from the element */
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; border-radius: 6px; }
.ir:focus-visible { outline-color: var(--crema); outline-offset: 5px; border-radius: 26px; }
.ovalo:focus-visible { border-radius: 50%; outline-offset: 6px; }

.escena { position: relative; overflow-x: clip; }
.sec { position: relative; }
.marco { width: var(--ancho); margin-inline: auto; position: relative; }

/* every ground has a meaning; each section sets its ink */
[data-suelo="azul"]  { background: var(--azul);  color: var(--crema); --suelo-c: var(--azul); }
[data-suelo="crema"] { background: var(--crema); color: var(--negro); --suelo-c: var(--crema); }
[data-suelo="rojo"]  { background: var(--rojo);  color: var(--crema); --suelo-c: var(--rojo); }
[data-suelo="verde"] { background: var(--verde); color: var(--crema); --suelo-c: var(--verde); }
.parada[data-suelo], .actor[data-suelo] { background: none; color: inherit; }

/* the cup's colours on each ground, and only the ground (never the pose): red on blue and cream,
   cream on red, blue on green.
   The line is cream on dark grounds and black on cream; its edge is the ground's colour,
   so it only shows where the cup stands over something else. */
[data-suelo="azul"]  { --taza: var(--rojo);  --taza-sombra: var(--rojo-sombra);  --tinta: var(--crema); --borde: var(--azul); }
[data-suelo="crema"] { --taza: var(--rojo);  --taza-sombra: var(--rojo-sombra);  --tinta: var(--negro); --borde: var(--crema); }
[data-suelo="rojo"]  { --taza: var(--crema-taza); --taza-sombra: var(--crema-taza-sombra); --tinta: var(--negro); --borde: var(--rojo); }
[data-suelo="verde"] { --taza: var(--azul);  --taza-sombra: var(--azul-sombra);  --tinta: var(--crema); --borde: var(--verde); }

/* shared by the walking cup and the static cups (unscoped, so <use> clones get it in every engine) */
.t-patas, .t-cara { stroke: var(--borde); stroke-width: 7px; stroke-linejoin: round; paint-order: stroke fill; }
/* the hat (the bow and its dot, one piece), with the same halo the flying copy used to have */
.t-gorro { stroke: var(--borde); stroke-width: 4px; stroke-linejoin: round; paint-order: stroke fill; transform-box: view-box; }
.pose-sentada .t-patas { stroke: var(--suelo-c, var(--borde)); stroke-width: 4px; }
.t-cara { stroke-width: 3px; }
.pata, .ojo, .t-cara { transform-box: view-box; }
/* the walking rig (thigh / shin / foot cut from the brand's leg) shows only while the cup walks;
   at rest, without JS and with reduced motion the drawn legs stay */
.canilla, .pie, .t-cuerpo, .pata-dibujo { transform-box: view-box; }
.pata-rig { display: none; }
.pose-caminando.con-rig .pata-rig { display: inline; }
.pose-caminando.con-rig .pata-dibujo { display: none; }

/* ------------------------------------------------------------ type pieces */
.mano { font-family: var(--mano); font-weight: 400; letter-spacing: -0.01em; }
.rotulo { font-weight: 600; font-size: var(--t-16); line-height: 1.3; letter-spacing: 0.12em; text-transform: uppercase; }
.rotulo-portada { font: 400 var(--t-40)/1 var(--mano); letter-spacing: -0.01em; text-transform: none; }
.ovalo {
  display: inline-grid;
  place-items: center;
  width: 2.7em;
  height: 1.42em;
  min-width: 44px; min-height: 44px;
  padding-bottom: 0.08em;
  font: 400 var(--t-64)/1 var(--mano);
  letter-spacing: -0.01em;
  color: var(--crema);
  border: 2px solid currentColor;
  border-radius: 50%;
  text-decoration: none;
}
.ir {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 26px 0 28px;
  border: 2px solid var(--crema);
  border-radius: 22px;
  background: var(--crema);
  color: var(--azul);
  font: 600 var(--t-16)/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .18s var(--out), color .18s var(--out);
}
.ir .flecha { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--spring); }
@media (hover: hover) {
  .ir:hover { background: transparent; color: var(--crema); }
  .ir:hover .flecha { transform: translate(3px, -3px); }
  a.ovalo:hover { background: var(--crema); color: var(--azul); }
}
.ir:focus-visible .flecha { transform: translate(3px, -3px); }
/* every text link, the same: underlined like "@tintohouse" on the first screen (and nothing else is underlined);
   thicker on hover and on keyboard focus. The button ("Cómo llegar"), the "menú" oval and the footer logo are
   not text links: they keep their own shapes. */
a:not(.ir):not(.ovalo):not(.pie-logo) {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.pie-logo { text-decoration: none; }
a:not(.ir):not(.ovalo):not(.pie-logo):hover,
a:not(.ir):not(.ovalo):not(.pie-logo):focus-visible { text-decoration-thickness: 2px; }

/* ------------------------------------------------------------ el andén (dos capas: filas pares e impares) */
.piso {
  --W: var(--piso-W);
  --h: var(--piso-h);
  --n: 4;
  position: relative;
  height: calc(var(--n) * var(--h));
  overflow: hidden;
  color: var(--crema);
  pointer-events: none;
}
[data-suelo="crema"] .piso { color: var(--rojo); }
.capa {
  position: absolute;
  top: 0; bottom: 0;
  left: calc(-4 * var(--W));
  right: calc(-4 * var(--W));
  background: repeating-linear-gradient(90deg, currentColor 0 var(--W), transparent 0 calc(2 * var(--W)));
}
.capa.a {
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 var(--h), transparent 0 calc(2 * var(--h)));
          mask: repeating-linear-gradient(180deg, #000 0 var(--h), transparent 0 calc(2 * var(--h)));
}
.capa.b {
  background-position: var(--W) 0;
  -webkit-mask: repeating-linear-gradient(180deg, transparent 0 var(--h), #000 0 calc(2 * var(--h)));
          mask: repeating-linear-gradient(180deg, transparent 0 var(--h), #000 0 calc(2 * var(--h)));
}
.piso-ancho { --n: var(--anden-filas); }
/* the broken stripe of the waxed paper and the menu: thin bricks, 6:1, two rows */
.raya { --h: 5px; --W: 30px; --n: 2; }

/* ------------------------------------------------------------ paradas: where the cup stops */
.parada {
  --ax: 50%;            /* where the cup stands, across the lane */
  --k: 1;               /* size of the cup at this stop */
  --suelo-h: 0px;       /* height of the lane's own floor */
  --alto: 366px;        /* drawing units of headroom above the floor */
  position: relative;
  height: calc(var(--alto) * var(--s) * var(--k) + var(--suelo-h));
  pointer-events: none;
}
.parada:has(> .piso) { --suelo-h: calc(4 * var(--piso-h)); }
.parada:has(> .raya) { --suelo-h: 10px; }
/* a short curb is a whole number of squares long: no sliver at its end */
.parada > .piso { position: absolute; left: 0; bottom: 0; width: round(down, 100%, calc(2 * var(--W, 32px))); }   /* whole squares */
.ancla { position: absolute; left: var(--ax); bottom: var(--suelo-h); width: 0; height: 0; }
.ancla-2 { left: 34%; }   /* phone: where the cup sits down to hear the story, on the same band */
.quieta {
  position: absolute;
  z-index: 1;
  left: calc(var(--ax) - var(--qx) * var(--s) * var(--k));
  bottom: calc(var(--suelo-h) - var(--qb) * var(--s) * var(--k));
  width: calc(var(--qw) * var(--s) * var(--k));
  height: auto;
  overflow: visible;
}
.quieta.pose-parada    { --qw: 277px; --qx: 129px;   --qb: 0px; }
.quieta.pose-caminando { --qw: 290px; --qx: 155.5px; --qb: 0px; }
.quieta.pose-sentada   { --qw: 402px; --qx: 244.5px; --qb: 76px; }
.quieta.pose-cruzada   { --qw: 303px; --qx: 129px;   --qb: 0px; }

/* phone and tablet: each lane is a full-width band of its own */
.parada { margin-inline: calc(-1 * var(--g)); }
.asomo { display: none; }
.asomo .quieta { visibility: hidden !important; }   /* a peek is only for the walking cup */

/* ------------------------------------------------------------ la tacita que camina */
.actor {
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 0;
  z-index: 4;
  pointer-events: none;
  visibility: hidden;     /* shown only once the script has measured the page */
  transform-origin: 0 0;
  will-change: transform;
}
.anda .actor { visibility: visible; }
.anda .quieta { visibility: hidden; }
.salto { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; }
.actor .pose {
  position: absolute;
  bottom: 0;
  overflow: visible;
  opacity: 0;
  transform-box: view-box;
  transform-origin: 50% 100%;
}
.actor[data-pose="parada"] .pose-parada,
.actor[data-pose="caminando"] .pose-caminando,
.actor[data-pose="sentada"] .pose-sentada,
.actor[data-pose="cruzada"] .pose-cruzada { opacity: 1; }
.actor .pose-parada    { width: calc(277px * var(--s)); left: calc(-129px * var(--s)); }
.actor .pose-caminando { width: calc(290px * var(--s)); left: calc(-155.5px * var(--s)); }
.actor .pose-sentada   { width: calc(402px * var(--s)); left: calc(-244.5px * var(--s)); bottom: calc(-76px * var(--s)); }
.actor .pose-cruzada   { width: calc(303px * var(--s)); left: calc(-129px * var(--s)); }
/* desktop: between stops the cup walks on a piece of its sidewalk, which slides under its feet */
.piso-viaje { display: none; position: absolute; left: 0; top: 0; width: round(down, var(--carril, 300px), calc(2 * var(--W, 32px))); opacity: 0; }   /* whole squares */
.piso-viaje[data-bajo="crema"] { color: var(--rojo); }
/* the three little squares that jump off the floor when the cup brakes */
.chispa { position: absolute; z-index: 3; width: calc(var(--piso-W) / 2); height: var(--piso-h); background: currentColor; pointer-events: none; }

.sec[tabindex="-1"]:focus { outline: none; }

/* ============================================================ 1 · portada */
.portada .marco { display: flex; flex-direction: column; container-type: inline-size; }
.portada {
  /* phone: the poster logo spans the margins, cut evenly by the top edge (13%) */
  --logo-w: 100cqi;
  --logo-crop: calc(var(--logo-w) * 0.0537);   /* how much of the letters the top edge cuts (13% of their height) */
  --taza-h: min(220px, 56vw);   /* the cup at the door: big, as on the printed menu */
}
.cartel { display: grid; grid-template-columns: minmax(0, 1fr); }
.cartel > * { grid-area: 1 / 1; }
.titulo { font-weight: 400; }
.logo { display: block; color: var(--crema); line-height: 0; }
.logo svg, .pie-logo svg, .fg svg { fill: currentColor; }
.logo svg {
  display: block;
  width: var(--logo-w);
  height: auto;
  aspect-ratio: 351.05 / 145;
  margin-top: calc(-1 * var(--logo-crop));   /* cut evenly by the top edge, the same for every letter */
}
/* the oval rides on the foot of the first T, as on the printed menu */
.ovalo-portada {
  justify-self: start;
  align-self: start;
  font-size: min(104px, round(nearest, max(calc(var(--logo-w) * 0.0815), 2.55rem), 1px));
  margin-top: calc(var(--logo-w) * 0.3594 - var(--logo-crop) + var(--logo-w) * 0.0537 - 0.78em);
  margin-left: calc(var(--logo-w) * 0.03);
  background: var(--azul);
  position: relative;
  z-index: 2;
}
.que {
  display: block;
  margin-top: calc(max(calc(var(--logo-w) * 0.0815), 2.55rem) * 0.7 + 18px);
  max-width: 26ch;
  font-size: var(--t-28);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.datos { display: grid; gap: 16px; margin-top: 26px; margin-bottom: 20px; }
.dato {
  font-weight: 600;
  font-size: clamp(1.375rem, 1.05rem + 1.05vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.dato span { display: block; }
.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.ig { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--t-20); }
.parada-1 { --ax: 66%; }
.parada-1 { height: calc(var(--taza-h) * 1.07); }
.parada-1 .quieta { width: calc(var(--taza-h) * 0.8076); left: calc(var(--ax) - var(--taza-h) * 0.3761); bottom: 0; }

/* ============================================================ 2 · historia */
.historia { padding-block: 24px var(--sec-pad); scroll-margin-top: calc(var(--taza-h, 220px) * 1.07 + 6 * var(--piso-h)); }
@media (min-width: 1200px) { .historia { scroll-margin-top: 0; } }
.parada-2 { --ax: 60%; }
.historia h2 {
  margin-top: 16px;
  font-weight: 400;
  font-size: var(--t-64);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 14ch;
}
.historia h2 .mano { font-size: 1.3em; line-height: 0.8; }
.relato { margin-top: 40px; }
/* a poster moment: the first question, big */
.relato .entrada { max-width: 24ch; font-size: var(--t-40); line-height: 1.18; letter-spacing: -0.02em; text-wrap: balance; }
.resto { margin-top: 40px; }
.resto p { max-width: 60ch; font-size: var(--t-20); line-height: 1.55; text-wrap: pretty; }
.resto p + p { margin-top: 1.1em; }
.firma { font-weight: 600; font-size: var(--t-16); letter-spacing: 0.08em; text-transform: uppercase; }
.resto p.firma { margin-top: 1.6em; }

/* ============================================================ 3 · filtrados (el papel) */
.filtrados { padding-block: var(--sec-pad); }
.filtrados .rotulo { color: var(--rojo); }
.filtrados h2 {
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--t-64);
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--rojo);
  text-wrap: balance;
  max-width: 16ch;
}
.tres { margin-top: 32px; }
.tres li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 16px; padding: 6px 0 10px; }
.tres li + li { border-top: 1px solid currentColor; }
.tres .item { font-size: var(--t-20); }
.tres .precio { font-weight: 200; font-size: clamp(3.25rem, 1.6rem + 4.4vw, 7rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--rojo); }
.sub { font-size: var(--t-16); white-space: nowrap; }
.parada-3 { --ax: 76%; margin-top: 40px; }
.video-tazas {
  --vid-w: min(40%, calc(366px * var(--s) * 0.75));
  position: relative;
  z-index: 0;
  width: var(--vid-w);
  margin-top: calc(-1 * (4 * var(--piso-h) + var(--vid-w) * 4 / 3));
  margin-bottom: calc(4 * var(--piso-h) + 32px);   /* 32px of air under the floor */
}
.video-tazas video { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #2a2a2a; }
/* the video's own pause/play (only with the script; without it the native controls stay) */
.video-boton {
  position: absolute; left: 10px; bottom: 10px; z-index: 1;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: color-mix(in srgb, var(--crema) 90%, transparent); color: var(--negro);
}
.video-boton::before { content: ""; width: 14px; height: 16px; background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%); }
.video-boton[data-estado="play"]::before { width: 0; height: 0; margin-left: 4px; background: none; border-left: 14px solid currentColor; border-block: 9px solid transparent; }
.video-boton:focus-visible { outline: 3px solid var(--crema); outline-offset: 3px; }
@media (max-width: 599px) {
  /* phone: the video at 62% of the column, the cup (a little smaller) beside it on the same floor */
  .video-tazas { --vid-w: 62%; }
  .parada-3 {
    --k: .85;
    --ax: calc(100% - 16px - 148px * var(--s) * var(--k));
    height: max(calc(var(--alto) * var(--s) * var(--k) + var(--suelo-h)), calc((100vw - 2 * var(--g)) * 0.62 * 4 / 3 + var(--suelo-h)));
  }
}
.linea { margin-top: 40px; max-width: 34ch; font-size: var(--t-28); line-height: 1.3; letter-spacing: -0.01em; text-wrap: pretty; }
.foto img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.foto-orea { margin-top: 40px; }
.metodos { margin-top: 40px; display: grid; gap: 28px; }
.metodo dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.metodo-nombre { font-family: var(--serif); font-size: var(--t-40); line-height: 1; text-transform: uppercase; color: var(--rojo); }
.metodo-tipo { font-weight: 600; font-size: var(--t-14); letter-spacing: 0.08em; text-transform: uppercase; }
.metodo dd { margin-top: 8px; max-width: 34ch; font-size: var(--t-20); line-height: 1.5; text-wrap: pretty; }
.metodo dd.nota { font-family: var(--serif); font-style: italic; color: var(--rojo); text-wrap: balance; }
@media (min-width: 1200px) { .metodo dd.nota { white-space: nowrap; } .metodo dd { max-width: 40ch; } }

/* ============================================================ 4 · la casa */
.casa { padding-block: var(--sec-pad); }
.casa h2 { font-weight: 400; font-size: var(--t-64); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; max-width: 12ch; }
.poster { margin-top: 28px; max-width: 30ch; font-size: var(--t-28); line-height: 1.3; letter-spacing: -0.01em; text-wrap: pretty; }
.rotulo-casa { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 0.2em 1.6em; }
/* phone: the photo on the left, the cup on the sidewalk beside it, pulling the awning's cord */
.fachada { position: relative; margin-top: 48px; }
/* never taller than the screen leaves room for (4:5, so the awning can be pulled in full view on a phone on its side) */
.fachada { --foto-max: calc((100svh - 140px) * 0.8); }
.fachada-foto { position: relative; overflow: hidden; background: var(--negro); container-type: inline-size; width: min(calc(100% - 150px), var(--foto-max)); }
.fachada-foto img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; transform-origin: 50% 100%; }
.piso-acera { --n: 4; color: var(--crema); margin-inline: calc(-1 * var(--g)); }
.dato-casa { margin-top: 28px; font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.25rem); line-height: 1.2; max-width: 24ch; }
.dato-casa a { display: inline; }
.parada-4 {
  --k: .85;
  /* at the right edge, or, when the photo is held short by a low screen, just beside it */
  --ax: min(calc(100% - 16px - 174px * var(--s) * var(--k)), calc(var(--g) + var(--foto-max) + 100px));
  position: absolute;
  left: calc(-1 * var(--g));
  right: calc(-1 * var(--g));
  bottom: calc(4 * var(--piso-h));   /* on the sidewalk, the last thing in the figure */
  margin: 0;
}
/* the awning: the floor's checks, woven into stripes; by default rolled up over the shop's own awning */
.toldo {
  --W: var(--piso-W);
  --h: var(--piso-h);
  --onda: calc(var(--W) / 2);
  position: absolute;
  inset: 0;
  color: var(--crema);
  background: repeating-linear-gradient(90deg, var(--crema) 0 var(--W), var(--rojo) 0 calc(2 * var(--W))) calc(var(--W) / 2) 0;
  /* rolled up, it covers just the shop's awning (6% of the photo's width, whatever the crop), so the sign shows whole */
  transform: translateY(calc(-100% + 6cqi + var(--onda)));
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--onda)) no-repeat,
                radial-gradient(circle at 50% 0, #000 calc(var(--onda) - .5px), transparent var(--onda)) left bottom / var(--W) var(--onda) repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--onda)) no-repeat,
                radial-gradient(circle at 50% 0, #000 calc(var(--onda) - .5px), transparent var(--onda)) left bottom / var(--W) var(--onda) repeat-x;
}
.toldo .capa { display: none; }
/* while it weaves: two row-layers of cream checks; the photo shows through from the first moment */
/* covered: the floor's board, opaque (red with cream checks), a scallop longer than the photo so its
   wavy edge hangs out of sight; it clears during the first tug */
.toldo.tejiendo { background: var(--rojo); bottom: calc(-1 * var(--onda)); }
.toldo.tejiendo .capa { display: block; }
.cuerda { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; opacity: 0; }
.cuerda line { stroke: var(--crema); stroke-width: 2.5; stroke-linecap: round; }
.galeria { margin-top: 64px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
.galeria .g-mesas { grid-column: 1 / -1; }

/* ============================================================ franja del papel encerado (quieta) */
.franja {
  --fh: 52px;
  height: var(--fh);
  background: var(--crema);
  color: var(--rojo);
  overflow: hidden;
}
/* whole groups across the full width; the ones that do not fit wrap out of sight */
.franja-texto { display: flex; flex-wrap: wrap; justify-content: space-evenly; padding-inline: 12px; }
.fg { display: flex; align-items: center; flex: none; gap: 22px; height: var(--fh); padding-inline: 12px; }
.fg i { font-family: var(--serif); font-style: italic; font-size: var(--t-20); line-height: 1; }
.fg svg { height: 24px; width: auto; aspect-ratio: 351.05 / 145; }

/* ============================================================ 5 · menú (como el impreso) */
.menu { padding-block: 24px 0; }
/* phone: the oval stands on the menu's band; the cream cup reclines beside it, whole on screen */
.parada-5 { --ax: calc(100% - 16px - 158px * var(--s)); }
.menu-cab {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  margin-top: calc(-1 * (4 * var(--piso-h) + var(--ovalo-menu) * 1.42 + 12px));
  --ovalo-menu: clamp(41px, 18px + 6vw, 104px);   /* drawn to the band, not to the reader's text size */
}
.ovalo-menu { font-size: var(--ovalo-menu); border-width: 2px; }
.nota-precios { margin-top: calc(4 * var(--piso-h) + 24px); font-size: var(--t-16); }
.carta { margin-top: 40px; display: flex; flex-direction: column; }
.col { display: contents; }
.lista { padding-block: 8px 28px; }
.lista h3 { font-family: var(--serif); font-weight: 400; font-size: var(--t-40); line-height: 1; letter-spacing: -0.01em; text-transform: lowercase; padding-bottom: 12px; width: fit-content; text-wrap: balance; }
.carta li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 16px;
  padding: 3px 0;
}
.carta .item { font-size: var(--t-20); line-height: 1.3; }
.carta .precio { font-weight: 200; font-style: italic; font-size: var(--t-20); letter-spacing: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.carta .desc { display: block; margin: 2px 0 4px 0.8em; font-weight: 200; font-style: italic; font-size: var(--t-16); line-height: 1.4; }
.carta .sub { font-size: var(--t-16); white-space: nowrap; }
/* the extras, between tall curved brackets, as on the printed menu */
.carta li.adicional { grid-template-columns: auto auto auto; justify-content: start; align-items: center; column-gap: 10px; margin: 10px 0; }
.parentesis { font-family: var(--serif); font-weight: 400; font-size: 4rem; line-height: 0.8; transform: scaleX(0.55); }
.adicional .item { display: grid; justify-items: center; font-family: var(--serif); font-size: var(--t-14); letter-spacing: 0.1em; text-transform: uppercase; text-align: center; max-width: 18ch; line-height: 1.25; }
.adicional .precio { font-family: var(--sans); text-transform: none; letter-spacing: 0; margin-top: 6px; font-size: var(--t-20); }
.credito a { display: inline-block; padding: 14px 0; margin: -14px 0; }   /* a 44px target inside the line */
.credito { margin: 4px 0 14px; font-family: var(--serif); font-style: italic; font-size: var(--t-20); text-align: center; }
.carta .raya { margin: 6px 0 30px; width: round(down, 100%, calc(2 * var(--W))); }
/* the cream box of the filter methods */
.l-metodos {
  margin-top: 8px;
  padding: 30px 28px 34px;
  border-radius: 24px;
  background: var(--crema-menu);
  color: var(--azul);
  text-align: center;
}
.l-metodos h3 { margin-inline: auto; font-weight: 700; text-transform: uppercase; font-size: var(--t-28); line-height: 1.1; letter-spacing: 0.02em; max-width: 12ch; text-wrap: balance; }
.l-metodos dt { margin-top: 22px; font-weight: 600; font-size: var(--t-20); text-transform: uppercase; letter-spacing: 0.06em; }
.l-metodos dt .sub { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; margin-top: 2px; }
.l-metodos dd { margin: 6px auto 0; max-width: 34ch; font-size: var(--t-16); line-height: 1.45; text-wrap: balance; }
.l-metodos dd.premio { margin-top: 12px; font-weight: 200; font-style: italic; }
/* phone order follows the printed lists */
.l-hot { order: 1; } .asomo-0, .r-hot { order: 2; } .l-ice { order: 3; } .asomo-1, .r-ice { order: 4; }
.l-panaderia { order: 5; } .asomo-3, .r-pan { order: 6; } .l-desayunos { order: 7; } .asomo-2 { order: 8; } .l-metodos { order: 9; }
.l-copas { order: 11; } .r-copas { order: 12; } .l-cocteles { order: 13; }
.l-copas { margin-top: 36px; }
/* phone, with the walking cup: between the lists it peeks in from the edge (the lane between the lists) */
@media (max-width: 599px) {
  /* the whole peeking cup, hat and handle included, stays 16px inside the edge (148 drawing units right of its anchor) */
  .anda .asomo { display: block; --k: .65; --ax: calc(100% - 16px - 148px * .65 * var(--s)); }
  .asomo > .raya { left: var(--g); width: round(down, calc(100% - 2 * var(--g)), calc(2 * var(--W))); margin: 0; }   /* (not the menu's line spacing: it is the floor at the peek's feet) */
  .anda .raya-sola { display: none; }
}
.menu-pie { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; padding: 40px 0 22px; }
.menu-lema { display: flex; flex-wrap: wrap; gap: 0.2em 1.6em; font-family: var(--serif); font-style: italic; font-size: var(--t-40); line-height: 1; }
/* the menu's foot: the account is a link, as big as an address and on a line of its own, apart from the
   decorative "coffee food music" */
.menu-ig { flex-basis: 100%; font: 600 var(--t-28)/1.2 var(--sans); letter-spacing: 0; text-transform: none; }
.menu-ig a { display: inline-flex; align-items: center; min-height: 44px; }
.piso-menu { --n: 8; }

/* ============================================================ 6 · visítanos */
.visitanos { padding-block: var(--sec-pad) 72px; }
.visitanos h2 { font-weight: 400; font-size: min(var(--t-112), 104px); line-height: 0.98; letter-spacing: -0.035em; text-wrap: balance; }
.visitanos h2 em { font-family: var(--serif); font-style: italic; letter-spacing: -0.02em; }
.contacto { margin-top: 40px; display: grid; gap: 0; font-size: var(--t-28); line-height: 1.3; }
.contacto p:nth-child(-n+2) { font-weight: 600; margin-bottom: 6px; }
.contacto a { display: inline-flex; align-items: center; min-height: 44px; }
.visitanos .ir { background: var(--crema); color: var(--verde); }
@media (hover: hover) { .visitanos .ir:hover { background: transparent; color: var(--crema); } }
/* phone: the cup walks in on its band and stops facing the button, which waits just below */
.visitanos .marco { display: flex; flex-direction: column; align-items: flex-start; }
.visitanos .marco > * { max-width: 100%; }
.visitanos .parada-6 { max-width: none; }
.parada-6 { --ax: 68%; order: 2; align-self: stretch; margin-top: 32px; }
.visitanos .ir-final { order: 3; margin-top: 20px; }

/* ------------------------------------------------------------ pie */
.pie { background: var(--verde-sombra); color: var(--crema); padding-block: 48px max(48px, env(safe-area-inset-bottom)); }
.pie .marco { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.pie-logo { display: inline-flex; align-items: center; min-height: 44px; color: var(--crema); }
.pie-logo svg { width: 120px; height: auto; aspect-ratio: 351.05 / 145; }
.bogcol { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: var(--t-16); letter-spacing: 0.08em; }
.filete { display: inline-block; width: 56px; height: 2px; background: currentColor; }
.lema { font-family: var(--serif); font-size: var(--t-20); text-transform: uppercase; letter-spacing: 0.02em; }
.lema em { font-style: italic; }
.vuelta { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 0 28px; }
.vuelta a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font-size: var(--t-16); }
@media (min-width: 600px) { .vuelta { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-left: auto; } }

/* ============================================================ tableta (bandas, más aire) */
@media (min-width: 600px) and (max-width: 1199px) {
  .resto { columns: 2; column-gap: 40px; }
  .resto p { max-width: none; break-inside: avoid-column; }
  .resto p:first-child { margin-top: 0; }
  .filtrados .marco { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .filtrados .marco > * { grid-column: 1 / -1; }
  .filtrados .foto-orea { grid-column: 1; }
  .filtrados .metodos { grid-column: 2; align-self: end; }
  .galeria { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .galeria .g-mesas { grid-column: auto; }
  .carta { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; align-items: start; }
  .col { display: block; }
  .asomo { display: none !important; }
  .fachada-foto { width: min(calc(100% - 200px), var(--foto-max)); }
  /* tablet: the photo leads the section, so a jump to "La casa" lands with the cup on its sidewalk */
  .casa .marco { display: flex; flex-direction: column; }
  .casa .fachada { order: -1; margin: 0 0 56px; }
  .parada-6 { --ax: calc(100% - 20px - 135px * var(--s)); }
  .visitanos .ir-final { margin-top: calc(-1 * (4 * var(--piso-h) + 56px + 14px)); }
}
/* tablets: the right column (with the methods box) a little wider, so both end level */
@media (min-width: 600px) and (max-width: 1199px) {
  .carta { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 32px; }
}
/* the quincunx: five photos like the five on a die, a checker of pictures */
@media (min-width: 600px) {
  .g-mesas { grid-column: 1; grid-row: 1; }
  .g-estanteria { grid-column: 3; grid-row: 1; }
  .g-terraza { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .g-vitrina { grid-column: 1; grid-row: 2; }
  .g-matcha { grid-column: 3; grid-row: 2; }
  .galeria .g-mesas { grid-column: 1; }
}
/* the story's own band only exists without the walking cup: with it, the cup sits on the first band */
@media (max-width: 1199px) {
  .mov .parada-2, .anda .parada-2 { display: none; }
}
/* phone or tablet on its side: the logo smaller on the left, the address and the button beside it */
@media (orientation: landscape) and (max-width: 1199px) {
  .portada { --logo-w: min(calc(50cqi - 16px), calc(40svh / 0.3594)); --taza-h: 200px; }
  .portada .marco { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; }
  .cartel { grid-column: 1; grid-row: 1; }
  .datos { grid-column: 2; grid-row: 1; align-self: center; margin: 0; }
  .parada-1 { grid-column: 1 / -1; grid-row: 2; }
  .que { font-size: var(--t-20); }
  /* room between the headline and address and the cup's band: walking off, its hat bobs above where it stands */
  .portada .cartel, .portada .datos { margin-bottom: 28px; }
}
@media (orientation: landscape) and (min-height: 521px) and (min-width: 900px) and (max-width: 1199px) {
  /* a tablet: the logo takes what the address leaves (≈420px), as tall as the screen allows */
  .portada { --taza-h: clamp(180px, 30svh, 260px); --logo-w: min(calc(100cqi - 452px), calc((100svh - var(--taza-h) * 1.07 - 6 * var(--piso-h) - 222px) / 0.3594)); }
  .portada .marco { grid-template-columns: auto minmax(0, 1fr); }
  /* room between the headline and the cup: walking off, its hat bobs higher than when it stands */
  .portada .cartel { margin-bottom: 32px; }
}

/* ============================================================ escritorio: el carril es una columna */
@media (min-width: 1200px) {
  /* 12 columns of content, then the lane. Text never goes past c-end. */
  .marco {
    display: grid;
    grid-template-columns: [c-start] repeat(12, minmax(0, 1fr)) [c-end] 8px [r-start] var(--carril) [r-end];
    column-gap: 24px;
    align-content: start;
  }
  .marco > * { grid-column: c-start / c-end; }
  .parada { margin-inline: 0; grid-column: r-start / r-end; --ax: 50%; }
  .parada-2, .parada-5 { --ax: calc(244.5px * var(--s) + 8px); }
  .piso-viaje { display: block; }
  /* a short curb is a whole number of squares long: no sliver at its end */
  .parada > .piso { width: round(down, 100%, calc(2 * var(--W))); left: 0; }

  /* portada: the poster. The logo, the oval on the T, the cup big in the middle-right */
  .portada {
    --anden-alto: calc(var(--anden-filas) * var(--piso-h));
    --taza-h: clamp(220px, 39svh, 400px);
    /* as wide as the margins allow, but short enough for the cup, and for the address and the button under it */
    /* (the line under the logo ≈ 110px, the address block ≈ 200-210px, its margin 32px) */
    /* the logo spans the page between equal margins, as on the printed menu (the cup stands under it, not beside
       it); on a short screen the top edge cuts more of the letters, evenly, so the cup, the address and the floor
       still fit in the first screen */
    --logo-w: 100cqi;
    --logo-crop: max(calc(var(--logo-w) * 0.0537), calc(var(--logo-w) * 0.3594 - (min(100svh, 1100px) - var(--anden-alto) - max(calc(var(--taza-h) * 1.07 + 22px), 336px) - 60px)));   /* (60px: the section's top padding) */
  }
  .portada .marco { display: grid; grid-template-rows: auto 1fr; min-height: min(calc(100svh - var(--anden-alto)), 1100px); }
  .cartel { grid-column: c-start / r-end; grid-row: 1; align-self: start; }
  /* the headline's box ends where the left column ends; the logo spills past it */
  .titulo { width: 100%; }
  /* the line hangs under the logo, out of the headline's box (which ends with the logo: the cup stands under it) */
  .titulo { position: relative; align-self: start; }   /* only as tall as the logo (not stretched to the oval) */
  .que { position: absolute; left: 0; top: 100%; margin-top: 14px; margin-left: calc(var(--logo-w) * 0.27 + 24px); font-size: var(--t-28); line-height: 1.12; width: 22ch; max-width: none; }
  .datos { grid-column: c-start / 9; grid-row: 2; align-self: end; margin: 0 0 32px; }
  .dato { font-size: clamp(1.75rem, 0.9rem + 1.3vw, 2.25rem); }
  .parada-1 { grid-column: 9 / r-end; grid-row: 1 / span 2; align-self: end; --ax: 46%; }

  /* historia: the cup sits on its curb, level with the headline, and listens */
  .historia { padding-top: var(--sec-pad); }
  .historia .marco { grid-template-rows: auto auto; }
  .parada-2 { grid-row: 1 / span 2; align-self: start; height: calc(200px * var(--s) + var(--suelo-h)); margin-top: 96px; }   /* low enough that the cup walking in clears the first screen's floor */
  .historia h2 { grid-row: 1; margin-top: 0; max-width: 15ch; }
  .relato { grid-row: 2; margin-top: 56px; }
  .resto { columns: 2; column-gap: 48px; }
  .resto p { max-width: none; break-inside: avoid-column; }
  .resto p:first-child { margin-top: 0; }

  /* filtrados: the prices next to the headline, the video big beside the lane, the cup watching it */
  .filtrados .marco { grid-template-rows: auto auto auto auto auto; }
  .rotulo-filtrados { grid-column: c-start / 7; grid-row: 1; }
  .filtrados h2 { grid-column: c-start / 7; grid-row: 2; max-width: none; font-size: clamp(2rem, 0.55rem + 2.55vw, 3.1rem); }
  .tres { grid-column: c-start / 7; grid-row: 3; margin-top: 40px; }
  .video-tazas { grid-column: 7 / c-end; grid-row: 1 / span 3; width: auto; margin: 0; align-self: start; }
  .parada-3 { grid-row: 1 / span 3; align-self: center; margin: 0; --ax: 40%; }
  .linea { grid-column: 7 / c-end; grid-row: 4; margin-top: 56px; }
  .foto-orea { grid-column: c-start / 6; grid-row: 4 / span 2; margin-top: 56px; }
  .metodos { grid-column: 7 / c-end; grid-row: 5; grid-template-columns: 1fr; align-self: start; }

  /* la casa: the photo in the content, the cup on the sidewalk beside it, in the lane */
  .casa .marco { grid-template-rows: auto auto auto 1fr auto; }
  .casa h2 { grid-column: c-start / 6; grid-row: 1; align-self: end; margin-top: 48px; }
  .poster { grid-column: c-start / 6; grid-row: 2; }
  .rotulo-casa { grid-column: c-start / 6; grid-row: 3; }
  .dato-casa { grid-column: c-start / 6; grid-row: 4; align-self: start; }
  .fachada { grid-column: 6 / c-end; grid-row: 1 / span 4; margin-top: 0; align-self: start; }   /* never stretched: its stop sits on the sidewalk */
  .fachada-foto { width: 100%; }
  .fachada-foto img { aspect-ratio: auto; height: min(calc(100svh - 300px), calc(100cqi * 1.25)); }
  .piso-acera { margin-inline: 0; margin-right: calc(-32px - var(--carril) - var(--g)); }   /* to the window's edge: the cup walks in on it */
  .parada-4 { left: auto; right: calc(-32px - var(--carril)); width: var(--carril); --ax: 34%; --k: 1; }
  /* the gallery is big and may use the lane: the cup does not walk here */
  .galeria { grid-column: c-start / r-end; grid-row: 5; margin-top: 96px; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }

  .franja { --fh: 64px; }
  .fg i { font-size: var(--t-28); }
  .fg svg { height: 30px; }

  /* menú */
  .menu { padding-top: var(--sec-pad); }
  .menu .marco { grid-template-rows: auto auto auto; }
  .parada-5 { grid-row: 1; align-self: end; height: calc(200px * var(--s) + var(--suelo-h)); margin-bottom: -110px; }   /* clear of the strip above, hat and all, also walking in */
  .menu-cab { grid-row: 1; margin-top: 0; align-self: end; flex-direction: row; align-items: center; gap: 12px 32px; }
  .nota-precios { margin-top: 0; }
  .carta { grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; align-items: start; margin-top: 56px; }
  .col { display: block; }
  .menu-pie { grid-row: 3; }

  /* visítanos */
  .visitanos .marco { display: grid; grid-template-rows: auto auto; }
  .visitanos h2 { grid-row: 1; }
  .contacto { grid-column: c-start / 8; grid-row: 2; align-self: end; }
  .visitanos .ir-final { grid-column: 8 / c-end; grid-row: 2; justify-self: end; align-self: end; margin: 0 0 calc(4 * var(--piso-h) + 8px); }
  .parada-6 { grid-row: 1 / span 2; align-self: end; height: calc(366px * var(--s) + var(--suelo-h)); margin-top: 0; --ax: 50%; }
}

/* ------------------------------------------------------------ narrow phones */
@media (max-width: 379px) {
  :root { --s: 0.44; }
  .ir { padding: 0 20px; }
  .menu-cab { --ovalo-menu: 37px; }
  .fachada-foto { width: min(calc(100% - 130px), var(--foto-max)); }
  /* "FILTRADOS" stays one word on the narrowest phones */
  .filtrados h2 { font-size: min(var(--t-64), 10.6vw); }
}
@media (min-width: 1200px) and (max-width: 1439px) {
  .fg i { font-size: var(--t-20); }
  /* narrow desktops: one more column for the video (≥420px), the headline and prices in five */
  .rotulo-filtrados, .filtrados h2, .tres { grid-column: c-start / 6; }
  .tres .precio { font-size: clamp(3rem, 0.6rem + 3.6vw, 4.5rem); }
  .video-tazas, .linea, .metodos { grid-column: 6 / c-end; }
  .video-tazas { width: max(100%, 420px); justify-self: end; }
}

/* ------------------------------------------------------------ the gesture that loops (blink) */
@media (prefers-reduced-motion: no-preference) {
  .anda .actor[data-estado="quieta"][data-pose="parada"] .pose-parada .ojo,
  .anda .actor[data-estado="quieta"][data-pose="caminando"] .pose-caminando .ojo,
  .anda .actor[data-estado="quieta"][data-pose="sentada"] .pose-sentada .ojo,
  .anda .actor[data-estado="quieta"][data-pose="cruzada"] .pose-cruzada .ojo { animation: parpadeo 5.3s 0.7s infinite; }
  .anda .actor.fuera, .anda .actor.fuera * { animation-play-state: paused !important; }
}
@keyframes parpadeo { 0%, 93%, 100% { scale: 1 1; } 95% { scale: 1 .1; } 97% { scale: 1 1; } }

/* ------------------------------------------------------------ forced colours (Windows High Contrast) */
@media (forced-colors: active) {
  .video-boton { border: 1px solid ButtonText; }
  .logo svg, .pie-logo svg, .fg svg { fill: CanvasText; color: CanvasText; }
  .ir, .ovalo { border-color: ButtonText; }
  .piso, .toldo, .cuerda { display: none; }
  .l-metodos { border: 1px solid CanvasText; }
}

/* desktop: one size for the three big display lines (the two ovals and "Tinto primero.") */
@media (min-width: 1200px) {
  .ovalo-portada { font-size: min(var(--t-cartel), round(nearest, max(calc(var(--logo-w) * 0.0815), 2.55rem), 1px)); }
  .menu-cab { --ovalo-menu: var(--t-cartel); }
  .visitanos h2 { font-size: var(--t-cartel); }
}

/* the rests in the gallery, in the empty places above and under "La terraza": desktop lane only, walking cup only
   (they fill the long stretch of photos) */
.parada-galeria { display: none; }
@media (min-width: 1200px) {
  .anda .galeria .parada-galeria { display: block; grid-column: 2; margin: 0; height: calc(200px * var(--s) + var(--suelo-h)); --ax: 50%; z-index: 1; }
  .anda .galeria .parada-galeria-a { grid-row: 1; align-self: start; }
  /* under the last row, in the free space before the strip: its curb runs from the middle column out to the
     window's edge, the way it walks in and out */
  .anda .galeria .parada-galeria-b { grid-column: 2 / -1; grid-row: 3; margin: 8px calc(-1 * var(--g)) 0 0; --ax: calc((100% - var(--g)) / 4); }
}

/* short desktop screens: the first rest in the gallery a little lower, and the last stop a little higher, so the
   stretches with no cup stay short */
@media (min-width: 1200px) and (max-height: 700px) {
  .anda .galeria .parada-galeria-a { margin-top: 90px; }
  .anda .parada-6 { margin-bottom: 48px; }
}
/* beside the house's photo, in the lane: desktop only, walking cup only */
.parada-casa-medio { display: none; }
@media (min-width: 1200px) {
  .anda .parada-casa-medio { display: block; position: absolute; left: auto; right: calc(-32px - var(--carril)); width: var(--carril); bottom: 52%; height: calc(343px * var(--s) + 12px); margin: 0; --ax: 50%; }
}
/* halfway down the menu, in the lane: desktop only, walking cup only */
.parada-menu-medio { display: none; }
@media (min-width: 1200px) {
  .anda .parada-menu-medio { display: block; grid-row: 2; align-self: end; height: calc(343px * var(--s) + 12px); margin-bottom: 160px; --ax: 50%; }
}
/* the stop on the menu's foot: desktop lane only, and only for the walking cup (no static twin) */
.parada-pie { display: none; }
@media (min-width: 1200px) {
  .anda .parada-pie { display: block; grid-row: 3; align-self: end; margin-top: -600px; --ax: 46%; }
}
