/* «Así funciona Web Suya» (/como-funciona, /en/how-it-works; 7 Nov 2026, website-business 00 #158): the page an owner
 * reads alone on a phone, sent by the agent after the «sí» to the preview. DESIGN.md §4, «The owners' page».
 *
 * Top to bottom: a white opening (the line, then the film E0, then six ticks and the four stops; from 960 px the film
 * beside the words); the road on the Limón tint, one row per stop with the stop's own film, the film on alternate
 * sides from 960 px; «Si ya tiene página» on ink, its film above its five steps; the promises (Home's .ws-trust and
 * .ws-proof, home.css) with their film; the Limón closing band.
 *
 * A film (.wsh-clip; 11 Nov 2026, Philipp: «recreate the videos on the How It Works page … in a horizontal video
 * form») is a wide 16:9 frame with its caption below: narrated, with music, and with captions as a <track>. Without
 * videos.js it is a plain <video> with the browser's own controls; with it, a round ink play button sits on the
 * poster until the owner taps it (.is-wired, .is-on). The button only covers the frame: nothing the script does
 * moves the page (README, «The prerender»). */

.wsh-words { min-width: 0; max-width: 36rem; }
.wsh-words p { max-width: 62ch; margin: 0 0 14px; }
.wsh-words h2 { margin-bottom: 18px; }
.wsh-words .ws-more { margin-top: 4px; }

/* ---- The opening ---- */
.wsh-hero { background: var(--surface); padding: 32px 0 clamp(56px, 4rem + 4vw, 112px); }
.wsh-hero__grid { display: grid; gap: 28px; }
.wsh-hero h1 { font-size: clamp(2.1rem, 1.45rem + 2.7vw, 3.4rem); letter-spacing: -0.025em; line-height: 1.06; margin-bottom: 0; }
.wsh-valor { gap: 0; margin: 0 0 24px; }
.wsh-valor li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 1.06rem; line-height: 1.45; }
.wsh-valor li:last-child { border-bottom: 1px solid var(--line); }
.wsh-valor .ws-ico { flex: none; }
.wsh-como { font: 700 clamp(1.18rem, 1.05rem + .5vw, 1.4rem)/1.35 var(--f-display); letter-spacing: -0.01em; }
.wsh-toc { margin-top: 26px; }
.wsh-toc .ws-kicker { margin-bottom: 4px; }
.wsh-toc ol { list-style: none; margin: 0; padding: 0; }
.wsh-toc a { display: flex; gap: 14px; align-items: baseline; min-height: 44px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.wsh-toc li:last-child a { border-bottom: 1px solid var(--line); }
.wsh-toc a span { flex: none; min-width: 7.5em; color: var(--muted); font-size: .95rem; }
.wsh-toc a b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.wsh-toc a:hover b { text-decoration-thickness: 2px; }

/* ---- The road: one tint band, a row per stop ---- */
.wsh-road { padding-top: clamp(16px, 1rem + 2vw, 40px); padding-bottom: clamp(16px, 1rem + 2vw, 40px); }
.wsh-step { display: grid; gap: 32px; padding: clamp(40px, 2.5rem + 2vw, 72px) 0; }
.wsh-aviso { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.wsh-aviso b { display: block; }
.wsh-pair { display: grid; gap: 36px; }

/* ---- A film: the 16:9 frame. Its poster is the film's own Limón, so the frame's ground is Limón too: no ink flash
 * before the poster arrives. ---- */
.wsh-clip { width: 100%; min-width: 0; margin: 0; display: grid; gap: 10px; }
.wsh-clip__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--hi);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, .14); }  /* a hairline: a film's pale floor would melt into the tint band */
.wsh-clip video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--hi); }
.wsh-clip__play { display: none; position: absolute; inset: 0; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; place-items: center; }
.wsh-clip.is-wired .wsh-clip__play { display: grid; }
.wsh-clip.is-on .wsh-clip__play { display: none; }
.wsh-clip__play i { width: 76px; height: 76px; border-radius: 50%; background: var(--fg); display: grid; place-items: center;
  box-shadow: 0 0 0 3px #fff; transition: transform .15s ease; }
.wsh-clip__play i::before { content: ""; margin-left: 6px; border-style: solid; border-width: 15px 0 15px 25px; border-color: transparent transparent transparent #fff; }
.wsh-clip__play:hover i { transform: scale(1.06); }
.wsh-clip__play:focus-visible { outline: 3px solid #fff; outline-offset: -8px; border-radius: 18px; }
.wsh-clip figcaption { display: grid; gap: 2px; font-size: .95rem; line-height: 1.35; }
.wsh-clip figcaption span { color: var(--muted); font-size: .88rem; }
/* On the ink panel («Si ya tiene página») the caption is white and soft white. */
.ws-section--dark .wsh-clip figcaption { color: #fff; }
.ws-section--dark .wsh-clip figcaption span { color: var(--ink-soft); }
.wsh-move-road { display: grid; gap: 28px; min-width: 0; }
.ws-trust .wsh-clip { margin-top: 28px; }
@media (prefers-reduced-motion: reduce) { .wsh-clip__play i { transition: none; } }
/* On a phone the frame is small: a smaller button hides less of the poster (the whole frame is the button). */
@media (max-width: 559px) {
  .wsh-clip__play i { width: 60px; height: 60px; }
  .wsh-clip__play i::before { margin-left: 5px; border-width: 12px 0 12px 20px; }
}

/* ---- The promises' foot: the videos' businesses and the soda's photo credits ---- */
.wsh-fuentes { margin: 36px 0 0; max-width: 80ch; }

/* ---- The closing band: «suya.» / «yours.» with the flourish drawn in ink (never yellow on yellow), in the heading's
 * own face: the script stays the hero's (DESIGN.md §9). ---- */
.wsh-suya { position: relative; display: inline-block; padding-bottom: .14em; }
.wsh-suya::after { content: ""; position: absolute; left: -2%; right: -4%; bottom: 0; height: .22em; background: var(--fg);
  -webkit-mask: url('/assets/brand/web-suya-flourish.svg') no-repeat 0 100% / 100% 100%; mask: url('/assets/brand/web-suya-flourish.svg') no-repeat 0 100% / 100% 100%; }
.wsh .ws-closing .ws-actions { justify-content: center; }
.wsh-move-price { margin-top: 14px; color: #fff; }  /* on the ink panel */

@media (min-width: 720px) {
  .wsh-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
@media (min-width: 960px) {
  .wsh-hero { padding-top: 48px; }
  /* The line, then the film, then the rest on a phone; here the film stands beside both blocks of words. */
  .wsh-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-rows: auto 1fr; column-gap: 56px; row-gap: 26px;
    grid-template-areas: "head film" "rest film"; }
  .wsh-hero__head { grid-area: head; }
  .wsh-hero__rest { grid-area: rest; }
  .wsh-hero .wsh-clip { grid-area: film; align-self: center; }
  .wsh-step { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
  .wsh-step--flip { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .wsh-step--flip .wsh-clip { order: -1; }
  /* The last stop: the words, then plan A's and plan B's films side by side. */
  .wsh-step--pair { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

/* The promises live on Quiénes somos #promesas with their film (19 Nov 2026, «one home per block»): here, after the
   questions, the two links to them and to what the site runs on, then the videos' note and credits. No second gap. */
.wsh .wsh-promesas { padding-top: 0; }
.wsh-promesas__links { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0 0 20px; }
