/* Cheese Studio — one family (Archivo), condensed for display, regular for reading */

:root {
  --void: #000;
  --ink: #0a0707;
  /* The brand's only orange (designer's guide): buttons, active menu item, highlighted text and effects */
  --signal: #ff2200;
  --flare: #ffe6c2;
  --ash: #f2ece6;
  --smoke: #9a918c;
  --line: rgba(242, 236, 230, 0.12);

  --font: 'Archivo', system-ui, sans-serif;
  --serif: 'Bodoni Moda', Didot, Georgia, serif;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

html {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='26' viewBox='0 0 22 26'%3E%3Cpath d='M2 2l0 19 5-4.6 3.3 7.4 3.4-1.5-3.3-7.3 6.8-.4z' fill='%23f2ece6' stroke='%23000' stroke-width='1.4' stroke-linejoin='round'/%3E%3Ccircle cx='18.5' cy='3.5' r='2.5' fill='%23ff2200'/%3E%3C/svg%3E") 2 2, auto;
}
a, button { cursor: pointer; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ash);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* In English the page waits, hidden, for js/i18n.js to swap the texts (set by boot.js) */
.i18n-pending body { visibility: hidden; }

h1, h2, h3, h4, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
::selection { background: var(--signal); color: var(--void); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Display type: wide black grotesk */
.block__head h2,
.service__name,
.sign__row--grotesk {
  font-family: var(--font);
  font-stretch: 125%;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

main { position: relative; z-index: 1; }

/* Hard cut used across the page */
@keyframes tear {
  0% { clip-path: inset(0 0 62% 0); translate: -4% 0; filter: brightness(2.2); }
  20% { clip-path: inset(38% 0 18% 0); translate: 5% 0; }
  40% { clip-path: inset(70% 0 0 0); translate: -2% 0; }
  60% { clip-path: inset(0 0 30% 0); translate: 1.5% 0; filter: brightness(1.4); }
  100% { clip-path: inset(0); translate: 0; filter: none; }
}

/* ───── Nav ───── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem var(--gutter);
  transition: opacity 0.5s, background-color 0.4s;
}
.js .nav:not(.is-shown) { opacity: 0; pointer-events: none; }
/* A centred capsule, at most 980px wide */
.nav.is-solid {
  top: 0.75rem;
  left: max(var(--gutter), calc(50% - 490px));
  right: max(var(--gutter), calc(50% - 490px));
  padding: 1rem 1rem 1rem 1.8rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
          backdrop-filter: blur(16px) saturate(1.4);
}
.nav.is-solid .nav__logo img { height: 28px; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 2rem; margin-left: auto; font-size: 0.92rem; }
/* Each shortcut is wide capitals with a red line under it: the line marks the section on screen
   (js/main.js sets aria-current) and draws in under the one you point at */
.nav__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  font-stretch: 125%;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: -0.55em;
  right: -0.55em;
  bottom: -0.2rem;
  height: 2px;
  background: var(--signal);
  scale: 0 1;
  transform-origin: left;
  transition: scale 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav__links a:focus-visible::after,
.nav__links a[aria-current]::after { scale: 1 1; }
/* Only a real pointer hovers: on a touch screen the line would stay under the last link tapped */
@media (hover: hover) {
  .nav__links a:hover::after { scale: 1 1; }
}

/* ───── Buttons ───── */

/* A pill with a small circle on the right (js/buttons.js adds it). Pointing at it, the circle grows
   and floods the pill with its colour while the arrow nods; with a mouse the pill also leans toward the pointer */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0 0.3rem 0 1.5rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, box-shadow 0.2s;
}
.btn--signal { --dot: var(--flare); background: var(--signal); color: var(--void); }
.btn--line { --dot: var(--ash); background: none; color: var(--ash); box-shadow: inset 0 0 0 1px rgba(242, 236, 230, 0.35); }
.btn--line:focus-visible { color: var(--void); box-shadow: inset 0 0 0 1px var(--ash); transition: color 0.15s 0.1s, box-shadow 0.2s; }
.btn--sm { gap: 0.6rem; min-height: 2.5rem; padding: 0 0.25rem 0 1.15rem; font-size: 0.9rem; }

.btn__label { position: relative; z-index: 1; }
.btn__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: none;
  width: 2.4rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--dot);
  color: var(--void);
}
.btn--sm .btn__dot { width: 1.95rem; }
.btn__dot svg { width: 0.8rem; height: 0.8rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn__fill {
  position: absolute;
  top: 50%;
  right: 0.3rem;
  z-index: 0;
  width: 2.4rem;
  aspect-ratio: 1;
  translate: 0 -50%;
  border-radius: 50%;
  background: var(--dot);
  transition: scale 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}
.btn--sm .btn__fill { right: 0.25rem; width: 1.95rem; }
.btn:focus-visible .btn__fill { scale: 16; transition-duration: 0.55s; }
.btn:focus-visible .btn__dot svg { animation: btn-nod 0.82s infinite; }
/* Only a real pointer hovers: on a touch screen a tapped button would stay flooded and nodding */
@media (hover: hover) {
  .btn--line:hover { color: var(--void); box-shadow: inset 0 0 0 1px var(--ash); transition: color 0.15s 0.1s, box-shadow 0.2s; }
  .btn:hover .btn__fill { scale: 16; transition-duration: 0.55s; }
  .btn:hover .btn__dot svg { animation: btn-nod 0.82s infinite; }
}
@keyframes btn-nod {
  0% { rotate: 0deg; animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1); }
  27% { rotate: -25deg; animation-timing-function: cubic-bezier(0.34, 1.9, 0.64, 1); }
  76%, 100% { rotate: 0deg; }
}

/* ───── Intro: footage as dark grain, only the mouse ───── */

.intro { position: relative; height: 150vh; background: var(--void); }
/* El fundido cubre el fondo al salir del inicio y pasa por debajo de las marcas y los textos. */
.intro__stage::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 35vh;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.55) 45%, var(--void));
  transform: translateY(var(--intro-fade-offset, 140vh));
  pointer-events: none;
}
.intro__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.intro__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__source { position: absolute; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.intro__mark { position: relative; margin: 0; }
.intro__mark img { width: clamp(110px, 12vw, 190px); height: auto; }
.intro__cue {
  position: absolute;
  bottom: clamp(1.5rem, 5vh, 3rem);
  left: 50%;
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.intro__cue i { position: relative; width: 1px; height: 52px; overflow: hidden; background: rgba(242, 236, 230, 0.25); }
.intro__cue i::after {
  content: '';
  position: absolute;
  left: 0;
  width: 1px;
  height: 40%;
  background: var(--ash);
  animation: cue 1.8s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}
@keyframes cue { from { top: -40%; } to { top: 100%; } }

/* ───── Clients: the logos and what we do land over the torn opening ───── */

.clients {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  padding: clamp(4.25rem, 10vh, 5.5rem) var(--gutter) clamp(0.5rem, 5vh, 3rem);
  background: radial-gradient(78% 58% at 50% 50%, rgba(0, 0, 0, 0.72), transparent 88%);
  pointer-events: none;
}
.clients__title {
  margin-bottom: clamp(1.25rem, 3.4vh, 2.25rem);
  text-align: center;
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(1.3rem, 2.2vw, 2.1rem);
  letter-spacing: -0.03em;
}
.clients__row {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(100%, 1180px);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}
.clients__row a {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  pointer-events: auto;
}
.clients__row img {
  width: calc(var(--w) * 0.95px);
  max-width: 100%;
  height: auto;
  max-height: 76px;
  object-fit: contain;
}

/* What we do, as a channel's lower thirds: no box, a signal bar and a crawl of what each includes */
.pillars {
  list-style: none;
  margin: clamp(2.25rem, 8vh, 4.25rem) auto 0;
  padding: 0;
  width: min(100%, 1180px);
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  column-gap: clamp(1.5rem, 3vw, 3rem);
  pointer-events: auto;
}
.pillars a {
  position: relative;
  display: grid;
  justify-items: start;
  padding-top: 1.05rem;
  text-decoration: none;
}
.pillars a::before,
.pillars a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
}
.pillars a::before {
  right: 0;
  height: 1px;
  background: rgba(242, 236, 230, 0.32);
}
.pillars a::after {
  top: -2px;
  width: 2.6rem;
  height: 5px;
  background: var(--signal);
  box-shadow: 0 0 14px rgba(255, 34, 0,0.85), 0 0 2px rgba(255, 230, 194, 0.9);
  transition: width 0.42s steps(7, end);
}
.pillars strong {
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(1.3rem, 2.3vw, 1.95rem);
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55), 0 0 26px rgba(0, 0, 0, 0.8);
}
.pillars em {
  margin-top: 0.3rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.4vw, 1.4rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6), 0 0 18px rgba(0, 0, 0, 0.85);
}
.pillars__feed {
  contain: inline-size;
  width: 100%;
  margin-top: 0.7rem;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
          mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.pillars__run,
.pillars__reel { display: flex; width: max-content; }
.pillars__run { animation: crawl 22s linear infinite; }
.pillars__reel {
  align-items: center;
  gap: 0.7em;
  padding-right: 0.7em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(0.92rem, 1.15vw, 1.12rem);
  line-height: 1.5;
  color: var(--flare);
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.9);
}
.pillars__reel i {
  flex: none;
  width: 0.32em;
  height: 0.32em;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.55), 0 0 7px var(--signal);
}
.pillars .is-rev .pillars__run { animation-direction: reverse; }
.pillars li:nth-child(2) .pillars__run { animation-delay: -13s; }
.pillars li:nth-child(3) .pillars__run { animation-delay: -24s; }
@keyframes crawl { to { transform: translateX(-33.3333%); } }

.pillars a:hover::after,
.pillars a:focus-visible::after { width: 100%; }
.pillars a:hover strong { animation: tear 0.3s steps(5); }
.pillars a:focus-visible { outline-offset: 10px; }

/* Each lower third cuts in after the logos, then its signal sweeps across and settles */
.pillars li:nth-child(1) { --land: 0.85s; }
.pillars li:nth-child(2) { --land: 1s; }
.pillars li:nth-child(3) { --land: 1.15s; }
.clients.is-on .pillars li { animation: cut-in 0.42s steps(6) var(--land) backwards; }
.clients.is-on .pillars a::after { animation: sweep 0.8s steps(5) calc(var(--land) + 0.3s) backwards; }
@keyframes sweep {
  0% { width: 0; }
  45% { width: 100%; }
  100% { width: 2.6rem; }
}
@keyframes cut-in {
  0% { clip-path: inset(0 0 100% 0); }
  12% { clip-path: inset(0 0 62% 0); translate: -4% 0; filter: brightness(2.2); }
  34% { clip-path: inset(38% 0 18% 0); translate: 5% 0; }
  56% { clip-path: inset(70% 0 0 0); translate: -2% 0; }
  78% { clip-path: inset(0 0 30% 0); translate: 1.5% 0; filter: brightness(1.4); }
  100% { clip-path: inset(0); translate: 0; filter: none; }
}

/* ───── Sliding type over a playing video ───── */

.sign {
  position: relative;
  min-height: min(82vh, 62vw);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 10vh 0;
}
.sign__rows {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1vw;
  pointer-events: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.sign__row { display: flex; white-space: nowrap; text-transform: uppercase; line-height: 0.86; }
.sign__track {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.35em;
  padding-right: 0.35em;
  animation: marquee 30s linear infinite;
}
.sign__row--serif {
  font-family: var(--serif);
  font-size: clamp(3rem, 8.5vw, 9.5rem);
  letter-spacing: -0.01em;
  color: var(--signal);
}
.sign__row--serif .sign__track { animation-direction: reverse; animation-duration: 34s; }
.sign__row--grotesk {
  font-size: clamp(2.4rem, 6.4vw, 7rem);
  letter-spacing: -0.045em;
  line-height: 0.86;
  color: var(--ash);
}
.sign__hole {
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: var(--void);
  box-shadow: inset 0 0.07em 0 var(--signal), 0 0 0 0.04em #4a0805;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.sign__card {
  position: relative;
  z-index: 1;
  width: clamp(260px, 38vw, 600px);
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  margin: 0;
  overflow: hidden;
  background: #111;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7);
}
.sign__card video { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25) brightness(0.9); }

/* ───── Blocks: shared header ───── */

.block { padding: clamp(3rem, 6vw, 5rem) var(--gutter) 0; }
.block:last-child { padding-bottom: clamp(5rem, 9vw, 8rem); }
.block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.block__head h2 { font-size: clamp(2.4rem, 5.4vw, 5.6rem); }

/* ───── Videos: a wall of CRT sets ───── */

.wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 2.5vw, 2.5rem) clamp(0.9rem, 1.6vw, 1.6rem);
}
/* Four sets show; «Ver más videos» (js/main.js) brings in the rest. Without JS every set shows */
.js .wall:not(.is-open) .tv:nth-child(n + 5) { display: none; }
.wall__more { display: none; justify-content: center; margin-top: clamp(1.75rem, 3vw, 2.75rem); }
.js .wall__more { display: flex; }
.wall__more .btn__dot svg { transition: rotate 0.3s; }
.wall.is-open + .wall__more .btn__dot svg { rotate: 45deg; }
.tv__set {
  position: relative;
  display: block;
  width: 100%;
  padding: 5.5% 5.5% 11%;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(160deg, #201716, #0c0808 60%, #050404);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px #221817,
    0 30px 60px rgba(0, 0, 0, 0.65),
    0 -12px 50px rgba(255, 34, 0,0.1);
  transition: box-shadow 0.4s;
}
.tv__set:hover,
.tv__set:focus-visible { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 0 1px #3a2220, 0 30px 60px rgba(0, 0, 0, 0.65), 0 0 70px rgba(255, 34, 0,0.35); }
.tv__screen {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px / 22px;
  background: #0a0000;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.9);
}
.tv__screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.35) brightness(0.95);
  transition: filter 0.25s steps(3);
}
/* Red phosphor until you point at it */
.tv__screen::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--signal);
  mix-blend-mode: multiply;
  transition: opacity 0.25s steps(3);
}
.tv__screen::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(120% 90% at 25% 15%, rgba(255, 230, 194, 0.1), transparent 45%),
    radial-gradient(100% 100% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.6)),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.tv__set:hover .tv__screen video,
.tv__set:focus-visible .tv__screen video { filter: none; }
.tv__set:hover .tv__screen::before,
.tv__set:focus-visible .tv__screen::before { opacity: 0; }
/* A set with its own effect (js/liquid.js, js/phosphor.js) draws it over the footage; pointing at it still shows the colour */
.tv__fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  transition: opacity 0.25s steps(3);
}
.tv__set:hover .tv__fx,
.tv__set:focus-visible .tv__fx { opacity: 0; }
.tv__screen.is-static::after {
  background: var(--grain) 0 0 / 120px, repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0 1px, transparent 1px 3px);
  animation: static 0.08s steps(2) infinite;
}
@keyframes static { 50% { background-position: 60px -40px, 0 0; } }
.tv__led {
  position: absolute;
  right: 8%;
  bottom: 4%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 6px var(--signal);
}
.wall { counter-reset: ch; }
.tv { counter-increment: ch; }
.tv h3 {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 1rem 0 0.15rem;
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}
.tv h3::before {
  content: 'CH ' counter(ch, decimal-leading-zero);
  flex: none;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  background: var(--signal);
  color: var(--void);
  font-stretch: 100%;
  font-weight: 700;
  font-size: max(0.68em, 0.75rem);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.tv > p { padding-left: 0.1rem; font-size: 0.88rem; color: var(--smoke); }

/* ───── Flyers: a horizontal reel ───── */

.carousel__nav { display: flex; gap: 0.5rem; }
.carousel__btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #170c0b;
  box-shadow: inset 0 0 0 1px #3a2220;
  color: var(--ash);
  transition: background-color 0.2s, color 0.2s;
}
.carousel__btn:hover { background: var(--signal); color: var(--void); }
.carousel__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carousel {
  display: flex;
  gap: clamp(0.8rem, 1.4vw, 1.2rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 0.5rem;
  scroll-padding: 0 var(--gutter);
}
.carousel::-webkit-scrollbar { display: none; }
.poster { flex: none; scroll-snap-align: start; }
.poster button {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #120707;
}
.poster img {
  display: block;
  width: auto;
  height: clamp(360px, 60vh, 580px);
  /* The panoramic campaign never runs wider than the screen */
  max-width: calc(100vw - 2 * var(--gutter));
  object-fit: contain;
  transition: scale 0.8s var(--ease-out);
}
.poster button:hover img,
.poster button:focus-visible img { scale: 1.03; }
/* The title wraps to the flyer's width instead of widening the card past it */
.poster h3 { inline-size: 0; min-inline-size: 100%; margin-top: 0.7rem; font-weight: 600; font-size: 0.92rem; }

/* Player */
.viewer {
  width: min(92vw, 1280px);
  max-height: 92vh;
  max-height: 92svh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ash);
  overflow: visible;
}
.viewer::backdrop { background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(8px); }
.viewer__stage { display: grid; place-items: center; }
.viewer__stage video,
.viewer__stage img { display: block; max-width: 100%; max-height: min(86vh, calc(92vh - 3.5rem)); max-height: min(86svh, calc(92svh - 3.5rem)); border-radius: 2px; background: #000; }
.viewer__close {
  display: block;
  margin: 0 0 0.75rem auto;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 3px;
  background: #1a0e0d;
  color: var(--ash);
  font: inherit;
}


/* ───── Services: open what interests you ───── */

.services { padding: clamp(5rem, 9vw, 8rem) var(--gutter); }
.service { border-bottom: 1px solid var(--line); }
.service__toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 2.5rem;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.1rem, 2.2vw, 1.6rem) 0;
  border: 0;
  background: none;
  color: var(--ash);
  font: inherit;
  text-align: left;
}
.service__name { font-size: clamp(1.6rem, 3vw, 2.8rem); letter-spacing: -0.035em; text-wrap: balance; transition: color 0.2s; }
.service__hint { color: var(--smoke); font-size: 0.95rem; }
.service__toggle:hover .service__name,
.service.is-open .service__name { color: var(--signal); }
.service__toggle i { position: relative; width: 22px; height: 22px; justify-self: end; }
.service__toggle i::before,
.service__toggle i::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: rotate 0.3s var(--ease-out);
}
.service__toggle i::after { rotate: 90deg; }
.service.is-open .service__toggle i::after { rotate: 0deg; }
.service__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}
.service.is-open .service__panel { grid-template-rows: 1fr; }
.services__list.is-instant .service__panel { transition: none; }
.service__inner {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}
.service.is-open .service__inner { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.service__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border-radius: 14px; }
.service__media video,
.service__media img { width: 100%; height: 100%; object-fit: cover; }
.service__media--image img { object-position: center 30%; }
.service__media--phone {
  aspect-ratio: auto;
  height: clamp(380px, 32vw, 460px);
  display: grid;
  /* The row keeps the card's height, so the phone never grows with the chat; old messages leave at the top */
  grid-template-rows: minmax(0, 1fr);
  place-items: end center;
  padding-top: 1.5rem;
  background: radial-gradient(60% 80% at 50% 100%, rgba(255, 34, 0,0.22), transparent 70%), #080303;
}
.service__copy { display: grid; gap: 1.4rem; justify-items: start; }
.service__copy p { max-width: 46ch; font-size: 1.1rem; color: var(--ash); }
.service__links { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.service__statement { display: grid; gap: 1.5rem; }
.service__big {
  max-width: 18ch;
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(1.8rem, 3.4vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(242, 236, 230, 0.25);
  font-size: 0.9rem;
}
.tags li:last-child { background: var(--signal); color: var(--void); box-shadow: none; font-weight: 600; }
.flowline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: f;
  border-top: 2px solid var(--signal);
}
.flowline li { counter-increment: f; display: grid; gap: 0.25rem; padding: 1rem 1rem 0 0; }
.flowline li::before { content: '0' counter(f); font-size: 0.8rem; color: var(--signal); font-weight: 600; }
.flowline strong { font-weight: 700; }
.flowline span { font-size: 0.88rem; color: var(--smoke); }

.phone {
  position: relative;
  width: min(80%, 300px);
  height: 100%;
  border-radius: 36px 36px 0 0;
  padding: 14px;
  background: linear-gradient(160deg, #241918, #0b0807);
  box-shadow: 0 0 0 1px #2c1d1c, 0 50px 100px rgba(0, 0, 0, 0.6), 0 0 80px rgba(255, 34, 0,0.12);
  display: flex;
  flex-direction: column;
}
.phone__bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.6rem 1rem 0.9rem;
  border-radius: 28px 28px 0 0;
  background: #140a09;
  border-bottom: 1px solid #2a1715;
}
.phone__bar img {
  width: 38px;
  height: 38px;
  padding: 7px;
  border-radius: 50%;
  background: var(--signal);
  object-fit: contain;
}
.phone__bar strong { display: block; font-size: 0.95rem; }
.phone__bar span { font-size: 0.78rem; color: #6fd27a; }
.phone__chat {
  list-style: none;
  flex: 1;
  margin: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  overflow: hidden;
  background: #0d0606;
  font-size: 0.92rem;
  line-height: 1.35;
}
.phone__chat li {
  max-width: 82%;
  padding: 0.55rem 0.8rem;
  border-radius: 16px 16px 16px 4px;
  background: #1f1110;
  animation: pop 0.3s var(--ease-out);
}
.phone__chat .is-client {
  align-self: flex-end;
  border-radius: 16px 16px 4px 16px;
  background: var(--signal);
  color: var(--void);
}
.phone__chat .is-note {
  align-self: center;
  max-width: none;
  background: transparent;
  box-shadow: inset 0 0 0 1px #3a2220;
  font-size: 0.8rem;
  color: var(--flare);
}
.phone__chat .is-typing { color: var(--smoke); letter-spacing: 0.2em; }
@keyframes pop { from { opacity: 0; translate: 0 8px; } }

/* ───── Contact ───── */

.contact {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: var(--void);
}
/* «Hablemos de negocios» itself lives in css/hablemos.css */

/* The brand closes the page centred under the channels; everything else on one line below */
.footer {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1rem, 3vw, 2rem) var(--gutter) 1.75rem;
  color: var(--smoke);
  font-size: 0.95rem;
}
.footer__brand {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  text-align: center;
}
.footer__brand img { height: 30px; width: auto; }
.footer__brand p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.3;
  color: var(--ash);
}
.footer__base {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.footer__nav { display: flex; gap: 2.5rem; }
.footer__more { display: flex; justify-content: flex-end; gap: 2rem; }
.footer a { color: var(--ash); text-decoration: none; }
.footer a:hover { color: var(--signal); }
.footer__more a { color: var(--smoke); }

/* ───── Automatizaciones: an example flow, the counterpart of the agent's phone ───── */

/* How lit a step is (0 or 1) and how much of its line to the next step is filled */
@property --lit { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --fill { syntax: '<number>'; inherits: true; initial-value: 0; }

/* The card: same frame and glow as the agent's phone, so both panels read as siblings */
.service__media--flow {
  aspect-ratio: auto;
  height: clamp(380px, 32vw, 460px);
  margin: 0;
  display: grid;
  place-content: center;
  padding: 3.5rem 2rem 2.5rem;
  background: radial-gradient(60% 80% at 50% 100%, rgba(255, 34, 0,0.22), transparent 70%), #080303;
}

/* Red channel label, like the CH 01 under each TV */
.flow__label {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  padding: 0.2em 0.5em;
  border-radius: 3px;
  background: var(--signal);
  color: var(--void);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

/* One trigger and its chain, joined by a thin line */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
}
.flow li {
  position: relative;
  padding: 0 0 clamp(1.5rem, 2.6vw, 2.4rem) 2.4rem;
  font-stretch: 112%;
  font-weight: 700;
  font-size: clamp(1.05rem, 1.5vw, 1.5rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: color-mix(in srgb, var(--ash) calc(var(--lit) * 100%), var(--smoke));
}
.flow li:last-child { padding-bottom: 0; }

/* The node of each step: an empty ring that turns into a signal light */
.flow li::after {
  content: '';
  position: absolute;
  left: 0;
  top: calc(0.625em - 6px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--signal) calc(var(--lit) * 100%), var(--void));
  box-shadow:
    0 0 0 1.5px color-mix(in srgb, var(--signal) calc(var(--lit) * 100%), rgba(242, 236, 230, 0.35)),
    0 0 calc(var(--lit) * 14px) rgba(255, 34, 0,0.9);
}

/* The line to the next step; the signal runs down it in four hard steps */
.flow li:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 5px;
  top: calc(0.625em + 10px);
  bottom: calc(10px - 0.625em);
  width: 2px;
  background: linear-gradient(var(--signal), var(--signal)) top / 100% calc(var(--fill) * 100%) no-repeat, rgba(242, 236, 230, 0.16);
}

/* Each step lights when the line reaches it; the chain holds, then cuts to dark and starts again */
.service--auto.is-open .flow li { animation: 9s infinite both; }
.service--auto.is-open .flow li:nth-child(1) { animation-name: flow-1; }
.service--auto.is-open .flow li:nth-child(2) { animation-name: flow-2; }
.service--auto.is-open .flow li:nth-child(3) { animation-name: flow-3; }
.service--auto.is-open .flow li:nth-child(4) { animation-name: flow-4; }
@keyframes flow-1 {
  0% { --lit: 0; --fill: 0; animation-timing-function: steps(1, end); }
  6% { --lit: 1; --fill: 0; animation-timing-function: steps(4, end); }
  19% { --lit: 1; --fill: 1; animation-timing-function: steps(1, end); }
  84%, 100% { --lit: 0; --fill: 0; }
}
@keyframes flow-2 {
  0% { --lit: 0; --fill: 0; animation-timing-function: steps(1, end); }
  19% { --lit: 1; --fill: 0; animation-timing-function: steps(4, end); }
  32% { --lit: 1; --fill: 1; animation-timing-function: steps(1, end); }
  84%, 100% { --lit: 0; --fill: 0; }
}
@keyframes flow-3 {
  0% { --lit: 0; --fill: 0; animation-timing-function: steps(1, end); }
  32% { --lit: 1; --fill: 0; animation-timing-function: steps(4, end); }
  45% { --lit: 1; --fill: 1; animation-timing-function: steps(1, end); }
  84%, 100% { --lit: 0; --fill: 0; }
}
@keyframes flow-4 {
  0% { --lit: 0; animation-timing-function: steps(1, end); }
  45% { --lit: 1; animation-timing-function: steps(1, end); }
  84%, 100% { --lit: 0; }
}

/* Beside the example: the approved phrase, what we do, what else, and the way to ask */
.service--auto .service__copy .service__big {
  max-width: 16ch;
  font-size: clamp(1.75rem, 2.7vw, 2.6rem);
}
.service--auto .service__copy .flow__more {
  max-width: 44ch;
  text-wrap: pretty;
  font-size: 0.95rem;
  color: var(--smoke);
}
.flow__more strong { font-weight: 600; color: var(--ash); }
.service--auto .service__copy p { text-wrap: pretty; }

@media (max-width: 1100px) {
  .service__media--flow { height: auto; padding: 4.25rem 1.5rem 3rem; }
}

/* On a phone the example sits above the text, compact but with air */
@media (max-width: 760px) {
  .service--auto .service__inner { gap: 2rem; }
  .service__media--flow { display: block; padding: 1.25rem 1.25rem 1.75rem; }
  .flow__label { position: static; display: inline-block; margin-bottom: 1.5rem; }
  .flow li { padding-bottom: 1.25rem; font-size: 1.05rem; }
}

/* ───── Header: logo · shortcuts centred in the capsule · language and contact ───── */

/* Hard cut in steps, never a fade: the menus wipe open in a few frames */
@keyframes hdr-cut {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}

/* ───── Bar: logo · shortcuts centred in the capsule · language and contact ───── */

.nav {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  gap: 2rem;
}
.nav__logo { justify-self: start; }
.nav__links { margin-left: 0; gap: 2.6rem; }
.nav__end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ───── Language: thin globe + current code, same weight as the shortcuts ───── */

.lang { position: relative; }
.lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  color: rgba(242, 236, 230, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  list-style: none;
  transition: color 0.2s, background-color 0.2s;
}
.lang__toggle::-webkit-details-marker { display: none; }
.lang__toggle:hover,
.lang[open] .lang__toggle { color: var(--ash); }
.lang[open] .lang__toggle { background: rgba(242, 236, 230, 0.08); }
.lang__globe {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}
.lang__chev {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lang[open] .lang__chev { rotate: 180deg; }

/* The small dark menu hangs just under the capsule, aligned to its right edge */
.lang__list {
  position: absolute;
  top: calc(100% + 1.1rem);
  right: 0;
  min-width: 11.5rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  border-radius: 1.4rem;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 48px rgba(0, 0, 0, 0.6);
  animation: hdr-cut 0.18s steps(3, end);
}
.lang__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  color: var(--smoke);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.lang__list a:hover { color: var(--ash); background: rgba(242, 236, 230, 0.06); }
.lang__list a[aria-current] { color: var(--ash); font-weight: 600; }
.lang__check {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: var(--signal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ───── Phone menu: hidden on wide screens (and shown when the shortcuts don't fit around the logo, css/inicio.css) ───── */

.menu__toggle,
.menu__panel { display: none; }

@media (max-width: 900px), (max-width: 60em) {
  .nav { grid-template-columns: auto 1fr; gap: 1rem; }
  .nav__links { display: none; }
  .nav__end { gap: 0.5rem; }
  /* Contáctanos moves into the menu, as its last section */
  .nav__end > .btn { display: none; }

  /* «Menú» reads like the site's thin-line pill; it says «Cerrar» while open */
  .menu__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    min-width: 4.9rem;
    padding: 0 1rem;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(242, 236, 230, 0.35);
    font-size: 0.9rem;
    font-weight: 600;
    list-style: none;
    transition: box-shadow 0.2s;
  }
  .menu__toggle::-webkit-details-marker { display: none; }
  .menu__toggle:hover,
  .menu[open] .menu__toggle { box-shadow: inset 0 0 0 1px var(--ash); }
  .menu[open] .menu__open,
  .menu:not([open]) .menu__close { display: none; }

  /* The page dims and blurs behind; the sections stack as pills under «Cerrar», Contáctanos last
     (js/main.js pops them in one by one) */
  .menu[open] .menu__panel {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Starts under the capsule; the right edge lines up with «Cerrar» inside it */
    padding: 6.5rem calc(var(--gutter) + 1rem) max(2rem, env(safe-area-inset-bottom)) var(--gutter);
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.82);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
  }
  /* A blurred bar would trap the fixed panel inside the capsule; drop the blur while open */
  .nav:has(.menu[open]) { -webkit-backdrop-filter: none; backdrop-filter: none; }
  html:has(.menu[open]) { overflow: hidden; }

  .menu__links { display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; }
  .menu__links a:not(.btn) {
    display: inline-flex;
    align-items: center;
    min-height: 3.1rem;
    padding: 0 1.4rem;
    border-radius: 999px;
    background: rgba(242, 236, 230, 0.12);
    font-weight: 600;
    font-size: 1.2rem;
    text-decoration: none;
  }
  .menu__links .btn { min-height: 3.1rem; font-size: 1.2rem; }
}

/* On a phone: a slightly smaller logo and leaner pills, so the language button fits beside «Menú» */
@media (max-width: 760px) {
  .nav.is-solid { padding: 0.5rem 0.5rem 0.5rem 1.1rem; }
  .menu[open] .menu__panel { padding-top: 5.5rem; padding-right: calc(var(--gutter) + 0.5rem); }
  .nav__logo img,
  .nav.is-solid .nav__logo img { height: 20px; }
  .nav__end { gap: 0.375rem; }
  .lang__toggle { padding: 0 0.7rem; }
  .menu__toggle { min-width: 4.6rem; padding: 0 0.9rem; }
}

/* ───── Responsive ───── */

@media (max-width: 1100px) {
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients__row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 3rem; }
  .clients__row li:last-child:nth-child(3n + 1) { grid-column: 2; }
  .service__inner { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .pillars { grid-template-columns: minmax(0, 1fr); row-gap: 1.35rem; width: min(100%, 560px); }
}

@media (max-width: 760px) {
  .nav { gap: 1rem; }
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .nav__logo img { height: 22px; }

  .clients { padding-top: 4.25rem; padding-bottom: 0; }
  .clients__title { margin-bottom: 1.4rem; }
  .clients__row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.5rem; }
  .clients__row img { width: calc(var(--w) * 0.55px); max-height: 44px; }
  .pillars { margin-top: 2.1rem; }
  .pillars a { padding-top: 0.8rem; }
  .pillars strong { font-size: min(1.32rem, 6.3vw); }
  .pillars em { margin-top: 0.15rem; font-size: 1.05rem; }
  .pillars__feed { margin-top: 0.35rem; }
  .pillars__reel { font-size: 0.92rem; }

  /* The card is 72vw × 10/16 = 45vw tall: the first and last rows slide just above and below it */
  .sign { min-height: calc(45vw + 12rem); padding: 0; }
  .sign__rows { gap: 22.5vw; }
  .sign__card { width: 72vw; }

  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 0.75rem; }
  .tv h3 { font-size: 0.9rem; }
  .poster img { height: 60vh; }
  .carousel__nav { display: none; }

  .service__toggle { grid-template-columns: 1fr 2rem; }
  /* Long names («Automatizaciones») shrink with the screen so the «+» stays inside on small phones */
  .service__name { font-size: min(1.6rem, 6.5vw); }
  .service__hint { display: none; }
  .service__statement { display: grid; gap: 1.5rem; }
.service__big {
  max-width: 18ch;
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(1.8rem, 3.4vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(242, 236, 230, 0.25);
  font-size: 0.9rem;
}
.tags li:last-child { background: var(--signal); color: var(--void); box-shadow: none; font-weight: 600; }
.flowline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; }

  .footer { gap: 2.25rem; }
  .footer__brand p { max-width: 24ch; }
  .footer__base { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 1.25rem; text-align: center; }
  .footer__base p { order: 3; }
  .footer__nav, .footer__more { gap: 2rem; }
}

/* ───── Fit on every screen ───── */

/* Short phones (an iPhone SE with Safari's bars): the title, the logos and the three lower thirds fit between the capsule and the bottom edge */
@media (max-width: 760px) and (max-height: 640px) {
  .clients { align-content: safe center; }
  .clients__title { margin-bottom: 0.9rem; }
  .clients__row { row-gap: 0.9rem; }
  .clients__row img { max-height: 38px; }
  .pillars { margin-top: 1.25rem; row-gap: 0.9rem; }
}

/* 901–1100 px: the four sets in one row, as on the computer, instead of two giant ones */
@media (min-width: 901px) and (max-width: 1100px) {
  .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* A tablet on its side keeps the open service's video beside its text, as on the computer, so the buttons stay in view */
@media (min-width: 901px) and (max-width: 1100px) and (orientation: landscape) {
  .service__inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}

/* Touch screens: tap areas of at least 40 px. The shortcut pills take the height of «Contáctanos»;
   the logo and the footer links grow without moving anything (the negative margin gives the space back) */
@media (pointer: coarse) {
  .nav__logo { display: flex; align-items: center; min-height: 2.5rem; }
  .nav__links a { min-height: 2.5rem; }
  .footer__nav a,
  .footer__more a { padding-block: 0.6rem; margin-block: -0.6rem; }
}

/* Short laptops (1280×600, 1280×720): after «Flyers», the flyers and their titles fit under the capsule */
@media (min-width: 761px) and (max-height: 760px) {
  .poster img { height: max(300px, calc(100vh - 19rem)); }
}

/* Phone on its side: very little height */
@media (max-height: 500px) and (orientation: landscape) {
  /* The capsule keeps the phone's slim height, and the open «Menú» lines up under it */
  .nav.is-solid { padding: 0.5rem 0.5rem 0.5rem 1.1rem; }
  .menu[open] .menu__panel { padding-top: 5.5rem; padding-right: calc(var(--gutter) + 0.5rem); }

  /* The opening uses the computer's layout at a smaller scale: logos in one row, the three lower thirds side by side */
  .clients { padding: 4.75rem var(--gutter) 0.75rem; }
  .clients__title { margin-bottom: clamp(0.6rem, 3vh, 1.1rem); font-size: clamp(1.05rem, 2.4vw, 1.4rem); }
  .clients__row { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 clamp(0.75rem, 2.5vw, 1.5rem); }
  .clients__row li:last-child:nth-child(3n + 1) { grid-column: auto; }
  .clients__row img { width: calc(var(--w) * 0.5px); max-height: 11vh; }
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(0.75rem, 2.5vw, 1.75rem); width: min(100%, 1180px); margin-top: clamp(0.9rem, 5vh, 1.75rem); }
  .pillars a { padding-top: 0.8rem; }
  .pillars strong { font-size: clamp(0.9rem, 2vw, 1.25rem); white-space: normal; text-wrap: balance; }
  .pillars em { margin-top: 0.15rem; font-size: clamp(0.85rem, 1.6vw, 1.05rem); white-space: normal; text-wrap: balance; }
  .pillars__feed { margin-top: 0.35rem; }
  .pillars__reel { font-size: 0.85rem; }

  /* The card keeps the computer's width, so the sliding rows read at its sides */
  .sign { min-height: 62vh; padding: 10vh 0; }
  .sign__rows { gap: 1vw; }
  .sign__card { width: clamp(260px, 38vw, 600px); }

  /* The flyers and the agent's phone fit in the screen under the capsule */
  .poster img { height: 60vh; }
  .service__media--phone { height: max(15rem, calc(100vh - 6rem)); }
  .phone__bar { padding-top: 1rem; }
}

/* Beyond 1920 px the opening, the sign and the two demos keep the proportions they have at 1920 (each vw value equals today's cap at 1920) */
@media (min-width: 1921px) {
  .intro__mark img { width: 9.9vw; }
  .clients__title { margin-bottom: 1.875vw; font-size: 1.75vw; }
  .clients__row,
  .pillars { width: 61.5vw; }
  .clients__row { gap: 2.5vw; }
  .clients__row img { width: calc(var(--w) * 0.0495vw); max-height: 3.96vw; }
  .pillars { margin-top: 3.54vw; column-gap: 2.5vw; }
  .pillars strong { font-size: 1.625vw; }
  .pillars em { font-size: 1.167vw; }
  .pillars__reel { font-size: 0.933vw; }

  .sign__card { width: 31.25vw; }
  .sign__row--serif { font-size: 7.92vw; }
  .sign__row--grotesk { font-size: 5.83vw; }

  .service__media--phone,
  .service__media--flow { height: 24vw; }
  .phone { width: min(80%, 15.6vw); }
  .flow li { padding-bottom: 2vw; font-size: 1.25vw; }
}
