/* Ketch Lab — El Letrero · rediseño v3 (rama redesign/exploracion-v3).
   Sistema fijo: verde botella / hueso / un acento bermellón. Big Shoulders Display +
   Hanken Grotesk + IBM Plex Mono. Esquinas rectas, líneas finas, grano fino, sombras
   teñidas del fondo. El bermellón va solo en indicadores, sellos y titulares ≥ 24 px. */

:root {
  --verde: #10302A; --verde-900: #0A231E; --verde-700: #2C5047; --verde-500: #3E5750;
  --hueso: #ECE8DF; --hueso-300: #B8C1B9; --papel: #F6F3EC; --linea-hueso: #C9C5BA;
  --bermellon: #E0482B; --tinta: #07191A; --slot: #030B09;
  --sombra: 0 18px 40px -18px rgba(6, 24, 20, .55);
  --f-display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --f-body: "Hanken Grotesk", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --bar: 56px;
  --gutter: 20px;
  --sec-y: clamp(72px, 10vw, 112px);
  --spring: cubic-bezier(.3, 1.6, .5, 1);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--verde); color: var(--hueso);
  font-family: var(--f-body); font-size: 17px; line-height: 1.5;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, video, canvas { display: block; max-width: 100%; }
p, h1, h2, h3, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 3px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--bermellon); outline-offset: 3px; }
::selection { background: var(--bermellon); color: var(--hueso); }
section[id] { scroll-margin-top: var(--bar); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 36px; }
.block { display: block; }
.accent { color: var(--bermellon); }
.center { text-align: center; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { opacity: .75; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 200; padding: 12px 16px;
  background: var(--hueso); color: var(--verde); font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- tipografía ---------- */
.kicker, .label {
  font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
}
.kicker { color: var(--hueso-300); }
.sec--hueso .kicker { color: var(--verde-500); }
.h-xl, .h-xxl, .h-md, .h-card, .door__title {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase; text-wrap: balance;
}
.h-xl { font-size: clamp(52px, 11vw, 112px); line-height: .88; }
.h-xxl { font-size: clamp(60px, 14vw, 160px); line-height: .86; max-width: 12ch; }
.h-md { font-size: 34px; line-height: 1; }
.h-card { font-size: 40px; line-height: .92; }
.lede { max-width: 36ch; font-size: 19px; color: var(--hueso-300); text-wrap: pretty; }
.lede--ink { color: var(--verde-500); max-width: 34ch; }

/* ---------- controles ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px; padding: 0 20px; border: 1px solid transparent; border-radius: 0;
  font-weight: 600; font-size: 16px; text-decoration: none; background: transparent;
  transition: transform .15s ease, background-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--bone { background: var(--hueso); color: var(--verde); }
.btn--ink { background: var(--verde); color: var(--hueso); }
.btn--ghost { border-color: var(--hueso); color: var(--hueso); }
.btn--ghost-ink { border-color: var(--verde); color: var(--verde); }
.btn--line { border-bottom-color: var(--verde); color: var(--verde); min-height: 48px; font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.btn--wide { width: 100%; }
.btn--bone:hover, .btn--ink:hover { background: var(--bermellon); color: var(--hueso); }
.btn--ghost:hover, .btn--ghost-ink:hover { background: rgba(224, 72, 43, .1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  min-height: 52px; padding: 10px 12px; text-align: left; font-size: 16px; font-weight: 600;
  border: 1px solid var(--chip-line, var(--verde-700)); background: transparent; color: var(--chip-fg, var(--hueso));
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.chip:active { transform: translateY(1px); }
.chip[aria-pressed="true"] { background: var(--chip-fg, var(--hueso)); color: var(--chip-bg, var(--verde)); border-color: var(--chip-fg, var(--hueso)); }
.chip--center { text-align: center; min-height: 48px; font-size: 15px; }
.chip--ink { --chip-fg: var(--verde); --chip-bg: var(--hueso); --chip-line: var(--verde); }
.chip--sm { min-height: 44px; padding: 0 10px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; }
.chip--tab { flex: none; min-height: 44px; padding: 0 14px; font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }

.seg { display: flex; border: 1px solid var(--verde-700); }
.seg__btn {
  min-width: 44px; height: 44px; border: 0; background: transparent; color: var(--hueso);
  font-family: var(--f-mono); font-size: 13px; font-weight: 600;
}
.seg__btn[aria-pressed="true"] { background: var(--hueso); color: var(--verde); }

.tag {
  display: inline-block; padding: 5px 10px; border: 1px solid var(--verde); background: var(--hueso); color: var(--verde);
  font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.tag--dark { border: 0; padding: 6px 8px; background: var(--verde); color: var(--hueso); font-weight: 500; letter-spacing: .08em; }

.led { display: inline-block; width: 7px; height: 7px; background: var(--bermellon); }
.dot { display: inline-block; width: 8px; height: 8px; background: var(--bermellon); animation: kl-blink 2.4s steps(1) infinite; }

/* ---------- barra ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px;
  background: var(--verde); border-bottom: 1px solid var(--verde-700);
}
.bar__brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: .04em; }
.bar__brand svg { fill: var(--hueso); }
.bar__tools { display: flex; align-items: center; gap: 8px; }
.sound {
  height: 44px; padding: 0 12px; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--verde-700); background: transparent; font-family: var(--f-mono); font-size: 13px;
}
.sound__led { width: 8px; height: 8px; background: var(--verde-700); }
.sound__icon { display: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.sound[aria-pressed="true"] .sound__led { background: var(--bermellon); }

/* ---------- secciones ---------- */
.sec { padding-block: var(--sec-y); }
.sec--verde { background: var(--verde); color: var(--hueso); }
.sec--night { background: var(--verde-900); color: var(--hueso); }
.sec--hueso { background: var(--hueso); color: var(--verde); color-scheme: light; }
.sec--rule { border-top: 1px solid var(--linea-hueso); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px 80px; align-items: start; }
.split__head { display: flex; flex-direction: column; gap: 18px; }
.sticky { position: sticky; top: calc(var(--bar) + 32px); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; }
.head-row > div:first-child { display: flex; flex-direction: column; gap: 14px; }

/* ---------- 01 · la puerta (modo noche / día) ---------- */
html[data-mode="noche"] .door { --d-bg: var(--verde); --d-fg: var(--hueso); --d-muted: var(--hueso-300); --d-line: var(--verde-700); --plate-bg: var(--hueso); --plate-fg: var(--verde); }
html[data-mode="dia"] .door { --d-bg: var(--hueso); --d-fg: var(--verde); --d-muted: var(--verde-500); --d-line: var(--linea-hueso); --plate-bg: var(--bermellon); --plate-fg: var(--hueso); color-scheme: light; }
.door {
  min-height: 100svh; padding: calc(var(--bar) + 28px) 0 48px;
  background: var(--d-bg); color: var(--d-fg); transition: background-color .4s ease, color .4s ease;
  --chip-fg: var(--d-fg); --chip-bg: var(--d-bg); --chip-line: var(--d-line);
}
.door__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 40px 64px; align-items: center; }
.door__copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.clock { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.mini-sign { position: relative; width: 240px; padding-left: 8px; transform-origin: 128px 0; animation: kl-sway 5s ease-in-out infinite; }
.mini-sign__chain { margin-left: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 3 3; }
.mini-sign__hook { position: absolute; left: 124px; top: 0; width: 8px; height: 8px; background: currentColor; }
.mini-sign__plate { width: 240px; height: 104px; padding: 8px; background: var(--plate-bg); color: var(--plate-fg); box-shadow: var(--sombra); border-radius: 4px; }
.mini-sign__plate span {
  height: 100%; display: flex; align-items: center; justify-content: center; border: 1px solid currentColor;
  font-family: var(--f-display); font-weight: 900; font-size: 60px; letter-spacing: .06em; line-height: 1;
}
.door__title { font-size: clamp(60px, 15.5vw, 112px); line-height: .86; letter-spacing: -.005em; }
@media (min-width: 960px) {
  .door__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .door__title { font-size: clamp(88px, 8.2vw, 124px); }
}
.door__title span { display: block; }
.door__body { max-width: 34ch; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.45; color: var(--d-muted); text-wrap: pretty; }
.door__cta { background: var(--d-fg); color: var(--d-bg); min-width: 260px; }
.door__cta:hover { background: var(--bermellon); color: var(--hueso); }
.picker { display: flex; flex-direction: column; gap: 22px; padding: 22px; border: 1px solid var(--d-line); }
.picker__set { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.picker__legend { padding: 0; margin-bottom: 12px; font-family: var(--f-display); font-weight: 800; font-size: 30px; line-height: 1; text-transform: uppercase; }
.picker__set .label { padding: 0; margin-bottom: 10px; }
.picker__rubros { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.picker__cities { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__input {
  height: 52px; padding: 0 14px; border: 1px solid var(--d-line); border-bottom: 2px solid var(--d-fg);
  background: transparent; color: var(--d-fg); font-size: 18px; border-radius: 0;
}
.field__input::placeholder { color: var(--d-muted); opacity: 1; }

/* ---------- 02 · la película ---------- */
.film-sec { background: var(--verde-900); }
.film { position: relative; height: 520svh; }
.film__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--verde-900); }
.film__frame, .film__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.film__frame { opacity: 0; transition: opacity .6s ease; }
.film__frame.is-active { opacity: 1; }
.film__frame img { width: 100%; height: 100%; object-fit: cover; }
.film__video { object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.has-video .film__video { opacity: 1; }
.has-video .film__frame { opacity: 0; }
.film__hud {
  position: absolute; top: calc(var(--bar) + 14px); left: 16px; right: 16px; display: flex; justify-content: space-between; gap: 12px;
  pointer-events: none; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; font-variant-numeric: tabular-nums;
}
.film__hud .tag { white-space: nowrap; }
@media (max-width: 480px) { .film__kick { display: none; } }
.film__caption {
  position: absolute; left: 0; bottom: 0; width: min(100%, 660px); padding: 20px 20px 28px;
  background: var(--verde); border-top: 1px solid var(--verde-700); border-right: 1px solid var(--verde-700);
}
.film__ticks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 18px; }
.film__ticks span { height: 2px; background: var(--verde-700); transition: background-color .3s ease; }
.film__ticks .is-on { background: var(--bermellon); }
.film__chapters { display: grid; }
.film__chapter { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.film__chapter.is-past { transform: translateY(-14px); }
.film__chapter.is-active { opacity: 1; transform: none; }
.film__title { margin-bottom: 10px; font-family: var(--f-display); font-weight: 800; font-size: clamp(42px, 10vw, 88px); line-height: .9; text-transform: uppercase; text-wrap: balance; }
.film__sub { max-width: 40ch; font-size: 18px; line-height: 1.45; color: var(--hueso-300); text-wrap: pretty; }
.film-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px; padding-block: 64px; }
.film-list__item { display: flex; flex-direction: column; gap: 14px; }
.film-list__item img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.film-list__item p { color: var(--hueso-300); }
html.js .film-list { display: none; }
html:not(.js) .film { display: none; }

/* ---------- 03 · el recibo ---------- */
.printer { display: flex; flex-direction: column; align-items: center; }
.printer__slot { width: min(100%, 468px); height: 22px; padding: 0 12px 5px; display: flex; align-items: flex-end; background: var(--verde-900); border: 1px solid var(--verde-700); }
.printer__slot span { display: block; width: 100%; height: 3px; background: #050F0D; }
.receipt { position: relative; width: min(100% - 16px, 440px); margin-top: -3px; background: var(--papel); color: var(--verde); box-shadow: var(--sombra); }
.receipt__body { padding: 28px 20px 24px; font-family: var(--f-mono); font-size: 14px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.receipt__head { display: flex; flex-direction: column; gap: 4px; padding-bottom: 16px; text-align: center; border-bottom: 1px dashed var(--verde-500); }
.receipt__brand { font-family: var(--f-display); font-weight: 800; font-size: 28px; letter-spacing: .06em; line-height: 1; }
.receipt__biz { font-weight: 600; }
.receipt__title { margin: 14px 0; text-align: center; font-weight: 600; letter-spacing: .08em; }
.rline {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; padding: 10px 0;
  border-bottom: 1px dotted var(--linea-hueso); transition: opacity .35s ease, transform .35s ease;
}
html.js .rline { opacity: 0; transform: translateY(-8px); }
html.js .rline.is-printed { opacity: 1; transform: none; }
.rline__time { font-weight: 600; }
.rline__text { font-family: var(--f-body); font-size: 15px; line-height: 1.4; text-wrap: pretty; }
.rline__st { display: flex; align-items: flex-start; gap: 6px; padding-top: 2px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; white-space: nowrap; }
.rline__st::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 4px; border: 1px solid var(--verde-500); }
.rline.is-alert .rline__st::before { background: var(--bermellon); border-color: var(--bermellon); }
.receipt__foot { overflow: hidden; padding-inline: 4px 8px; margin-top: 18px; padding-top: 16px; min-height: 120px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px dashed var(--verde-500); }
.receipt__slept { font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: 1; text-transform: uppercase; }
.stamp {
  padding: 6px 12px; border: 3px solid var(--bermellon); color: var(--bermellon);
  font-family: var(--f-display); font-weight: 900; font-size: 40px; letter-spacing: .06em; line-height: 1;
  transform: rotate(-8deg); transition: transform .4s var(--spring), opacity .2s ease;
}
html.js .stamp { opacity: 0; transform: rotate(-8deg) scale(1.25); }
html.js .receipt.is-done .stamp { opacity: 1; transform: rotate(-8deg) scale(1); }
.receipt__tear {
  position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background: linear-gradient(-45deg, transparent 7px, var(--papel) 0) 0 0 / 14px 10px, linear-gradient(45deg, transparent 7px, var(--papel) 0) 0 0 / 14px 10px;
}

/* ---------- 04 · el letrero y el chat ---------- */
.sign-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px 80px; align-items: center; }
.sign-col { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.sign-col .kicker { align-self: flex-start; }
.sign { position: relative; width: min(100%, 460px); aspect-ratio: 460 / 330; }
.sign__gl { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; }
.sign__gl canvas { width: 100% !important; height: 100% !important; }
.sign.gl-ready .sign__gl { opacity: 1; }
.sign.gl-ready .sign__css { visibility: hidden; }
.sign__css { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; perspective: 1100px; }
.sign__chain { position: relative; width: 240px; height: 70px; }
.sign__chain svg { fill: none; stroke: var(--verde); stroke-width: 2; stroke-dasharray: 4 3; }
.sign__hook { position: absolute; left: 115px; top: 0; width: 10px; height: 10px; background: var(--verde); }
.sign__plate { position: relative; width: min(78vw, 340px); aspect-ratio: 34 / 15; transform-style: preserve-3d; }
.sign__face {
  position: absolute; inset: 0; padding: 10px; border-radius: 6px; box-shadow: var(--sombra);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.sign__face span {
  height: 100%; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--hueso); border-radius: 2px;
  font-family: var(--f-display); font-weight: 900; font-size: clamp(56px, 17vw, 92px); letter-spacing: .06em; line-height: 1; color: var(--hueso);
}
.sign__face--closed { background: var(--verde); }
.sign__face--open { background: var(--bermellon); transform: rotateY(180deg); }
.sign-col .btn { min-height: 44px; font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }

.chat { display: flex; flex-direction: column; gap: 14px; transition: opacity .5s ease, transform .6s var(--spring); }
/* Antes de que gire el letrero el chat solo está un poco más abajo: siempre legible (AA). */
html.js .chat:not(.is-open) { transform: translateY(24px); }
.chat__box { display: flex; flex-direction: column; width: 100%; max-width: 480px; height: min(560px, 72svh); border: 1px solid var(--verde); background: var(--papel); box-shadow: var(--sombra); }
.chat__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--verde); color: var(--hueso); }
.chat__who { display: flex; flex-direction: column; min-width: 0; }
.chat__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__status, .chat__brand { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 12px; color: var(--hueso-300); }
.chat.is-offline .chat__status .led { background: var(--hueso-300); }
.chat__offline { padding: 10px 16px; background: var(--verde-900); color: var(--hueso); font-size: 14px; border-bottom: 2px solid var(--bermellon); }
.chat__list { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; animation: kl-in .3s ease both; }
.msg--me { align-items: flex-end; }
.msg__text { max-width: 82%; padding: 10px 13px; font-size: 16px; line-height: 1.4; background: #fff; color: var(--verde); border: 1px solid var(--linea-hueso); text-wrap: pretty; overflow-wrap: anywhere; }
.msg--me .msg__text { background: var(--verde); color: var(--hueso); border-color: var(--verde); }
.msg__meta { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; color: var(--verde-500); }
.msg__retry { min-height: 32px; padding: 0 10px; border: 1px solid var(--verde); background: transparent; color: var(--verde); font-family: var(--f-mono); font-size: 12px; }
.msg-note { margin: 6px 0; padding: 10px 12px; border-block: 1px solid var(--verde); font-family: var(--f-mono); font-size: 13px; line-height: 1.45; text-align: center; }
.msg-typing { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 13px; color: var(--verde-500); }
.msg-typing::before { content: ""; width: 26px; height: 6px; background: radial-gradient(circle, var(--verde) 3px, transparent 3.5px) 0 0 / 10px 6px repeat-x; animation: kl-dots 1.2s ease-in-out infinite; }
.chat__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; }
.chat__quick .chip { flex: none; min-height: 44px; padding: 0 12px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.chat__form { display: flex; gap: 8px; padding: 10px 12px 12px; }
.chat__input { flex: 1; min-width: 0; height: 48px; padding: 0 12px; border: 1px solid var(--verde); background: var(--hueso); color: var(--verde); font-size: 16px; border-radius: 0; }
.chat__input::placeholder { color: var(--verde-500); opacity: 1; }
.chat__send { height: 48px; padding: 0 16px; border: 0; background: var(--verde); color: var(--hueso); font-weight: 600; }
.chat__states { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 480px; }
.chat__sample { max-width: 480px; font-size: 14px; color: var(--verde-500); }
.row-link {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 480px; min-height: 52px;
  border-block: 1px solid var(--verde); text-decoration: none; font-weight: 600;
}
.row-link:hover { color: var(--bermellon); }
.row-link .mono { font-size: 13px; }

/* ---------- 05 · el teléfono ---------- */
.numbered { max-width: 520px; margin-top: 8px; border-top: 1px solid var(--verde-700); }
.numbered li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--verde-700); }
.numbered .mono { font-size: 13px; color: var(--hueso-300); padding-top: 2px; }
.phone-col { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.phone { width: min(100%, 420px); }
.phone__body { background: var(--verde-900); border: 1px solid var(--verde-700); box-shadow: var(--sombra); transform-origin: 50% 60%; }
.phone__grill { height: 56px; margin: 14px 14px 0; border: 1px solid var(--verde-700); background-image: radial-gradient(circle, var(--slot) 2.2px, transparent 2.6px); background-size: 12px 12px; }
.phone__screen { margin: 14px; padding: 14px; border: 1px solid var(--verde-700); background: var(--tinta); font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.phone__status { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.phone__st { display: flex; align-items: center; gap: 8px; }
.phone__st .led { width: 8px; height: 8px; background: var(--verde-700); }
.phone[data-call="ringing"] .phone__st .led, .phone[data-call="live"] .phone__st .led { background: var(--bermellon); }
.phone[data-call="ringing"] .phone__st .led { animation: kl-blink 1s steps(1) infinite; }
.phone__who { margin-top: 10px; font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: 1; text-transform: uppercase; }
.phone__to { margin-top: 4px; font-size: 12px; color: var(--hueso-300); letter-spacing: .06em; text-transform: uppercase; }
.phone__lang { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 14px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--hueso-300); }
.seg--dark .seg__btn { min-width: 48px; }
.phone__log { margin: 14px; padding: 14px; height: 260px; overflow-y: auto; background: var(--papel); color: var(--verde); display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.call-line { display: flex; flex-direction: column; gap: 3px; animation: kl-in .3s ease both; }
.call-line__who { font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.call-line--c .call-line__who, .call-line--p .call-line__who { color: var(--verde-500); }
.call-line__text { font-size: 16px; line-height: 1.4; text-wrap: pretty; }
.call-empty { margin: auto 0; text-align: center; font-family: var(--f-mono); font-size: 13px; color: var(--verde-500); }
.phone__actions { display: flex; gap: 8px; margin: 0 14px 14px; }
.phone__actions .btn { flex: 1; min-height: 56px; justify-content: center; font-size: 17px; }
.stub {
  width: min(100% - 24px, 396px); margin-top: -8px; padding: 18px 18px 20px; background: var(--papel); color: var(--verde); box-shadow: var(--sombra);
  font-family: var(--f-mono); font-size: 13px; font-variant-numeric: tabular-nums;
  opacity: 0; transform: translateY(-16px); transition: opacity .4s ease, transform .5s var(--spring);
}
.stub.is-shown { opacity: 1; transform: none; }
.stub__head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--verde-500); font-weight: 600; letter-spacing: .08em; }
.stub-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 7px 0; border-bottom: 1px dotted var(--linea-hueso); }
.stub-row > span:first-child { font-family: var(--f-body); font-size: 15px; line-height: 1.35; }
.stub-row__status { display: flex; align-items: flex-start; gap: 6px; padding-top: 2px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; white-space: nowrap; }
.stub-row.is-alert .stub-row__status::before { content: ""; width: 7px; height: 7px; margin-top: 4px; background: var(--bermellon); }

/* ---------- 06 · la vitrina ---------- */
.vitrine { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px; background: var(--verde); box-shadow: var(--sombra); }
.vitrine figure, .vitrine__c { display: flex; flex-direction: column; background: var(--papel); min-width: 0; }
.vitrine__img { position: relative; flex: 1; aspect-ratio: 4 / 3; overflow: hidden; }
.vitrine__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.vitrine__img--tall { aspect-ratio: 9 / 16; max-height: 640px; }
.vitrine figcaption {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 14px; min-height: 52px;
  border-top: 1px solid var(--verde); font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
}
.vitrine figcaption a { min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.vitrine figcaption a:hover { color: var(--bermellon); }
.vitrine__c { justify-content: space-between; gap: 20px; padding: 24px 20px; background: var(--hueso); }
.vitrine__letter { font-family: var(--f-display); font-weight: 900; font-size: clamp(40px, 6vw, 64px); line-height: .9; text-transform: uppercase; }
@media (min-width: 960px) {
  .vitrine { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .vitrine__a { grid-area: 1 / 1 / 3 / 5; }
  .vitrine__a .vitrine__img { aspect-ratio: 16 / 10; }
  .vitrine__b { grid-area: 1 / 5 / 4 / 7; }
  .vitrine__b .vitrine__img--tall { aspect-ratio: auto; max-height: none; }
  .vitrine__c { grid-area: 3 / 1 / 4 / 3; }
  .vitrine__d { grid-area: 3 / 3 / 4 / 5; }
  .vitrine__d .vitrine__img { aspect-ratio: auto; min-height: 220px; }
}

/* ---------- 07 · el taller ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
/* Con doce rubros, en pantallas anchas las pestañas bajan de línea en vez de esconderse. */
@media (min-width: 720px) { .tabs { flex-wrap: wrap; overflow-x: visible; } }
.workshop { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; align-items: stretch; }
.order {
  background-color: var(--papel); border: 1px solid var(--verde); box-shadow: var(--sombra);
  background-image: linear-gradient(var(--linea-hueso) 1px, transparent 1px), linear-gradient(90deg, var(--linea-hueso) 1px, transparent 1px);
  background-size: 24px 24px;
}
.order__top { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--verde); color: var(--hueso); font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.order__fields { padding: 6px 18px 22px; display: flex; flex-direction: column; }
.order__fields > div { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--verde); }
.order__fields dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--verde-500); }
.order__fields dd { font-size: 17px; text-wrap: pretty; display: flex; flex-direction: column; gap: 6px; }
.order__fields > div:first-child dd { display: block; font-weight: 600; }
.order__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(36px, 7vw, 52px); line-height: .92; text-transform: uppercase; }
.order__tags { flex-direction: row !important; flex-wrap: wrap; }
.order__own { display: flex !important; justify-content: space-between; align-items: center; border-bottom: 0 !important; }
.own-stamp { display: inline-block; padding: 4px 10px; border: 2px solid var(--bermellon); font-family: var(--f-display); font-weight: 800; font-size: 24px; text-transform: uppercase; transform: rotate(-3deg); }
.blueprint {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 360px; padding: 18px;
  background: var(--verde); color: var(--hueso); border: 1px solid var(--verde); box-shadow: var(--sombra);
  background-image: linear-gradient(rgba(236, 232, 223, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(236, 232, 223, .07) 1px, transparent 1px);
  background-size: 24px 24px;
}
.blueprint__label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--hueso-300); }
.blueprint__plan { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.plan-node { position: relative; padding: 10px 16px; border: 1px dashed var(--hueso-300); font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; text-align: center; }
.plan-node--core { border: 2px solid var(--bermellon); font-family: var(--f-display); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: 0; padding: 14px 20px; }
.plan-node--in::after, .plan-node--core::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 28px; background: var(--hueso-300); }
.plan-outs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.plan-node--out { border-style: solid; }
.blueprint figcaption { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--hueso-300); }

/* ---------- 08 · la caja de breakers ---------- */
.panel { border: 1px solid var(--verde-700); background: var(--verde); box-shadow: var(--sombra); }
.panel__top { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--verde-700); font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
/* 10 breakers: 2 columnas en teléfono, 5 desde tableta. Nunca una fila a medias. */
.panel__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--verde-700); }
@media (min-width: 720px) { .panel__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.brk { --pos: 44px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 12px 20px; background: var(--verde); }
.brk.is-on { --pos: 0px; }
.brk__led { width: 10px; height: 10px; border-radius: 50%; background: #051411; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); transition: background-color .15s ease, box-shadow .15s ease; }
.brk.is-on .brk__led { background: var(--bermellon); box-shadow: 0 0 0 3px rgba(224, 72, 43, .22); }
.brk__sw { position: relative; width: 64px; height: 112px; padding: 0; border: 1px solid #05110F; background: #081C18; cursor: grab; touch-action: none; box-shadow: inset 0 2px 8px rgba(0, 0, 0, .5); }
.brk__sw:active { cursor: grabbing; }
.brk__slot { position: absolute; left: 24px; right: 24px; top: 10px; bottom: 10px; background: var(--slot); }
.brk__handle {
  position: absolute; left: 8px; right: 8px; top: 10px; height: 48px;
  background: var(--hueso) linear-gradient(transparent 12px, var(--hueso-300) 12px, var(--hueso-300) 14px, transparent 14px, transparent 20px, var(--hueso-300) 20px, var(--hueso-300) 22px, transparent 22px) no-repeat 10px 0 / calc(100% - 20px) 100%;
  border-bottom: 4px solid var(--hueso-300); box-shadow: 0 6px 10px -4px rgba(0, 0, 0, .6);
  transform: translateY(calc(var(--pos) + var(--drag, 0px))); transition: transform .42s cubic-bezier(.3, 1.7, .5, 1);
}
.brk__label { padding: 3px 8px; background: var(--hueso); color: var(--verde); font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.brk__line { min-height: 64px; text-align: center; font-size: 14px; line-height: 1.35; opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; text-wrap: balance; }
.brk.is-on .brk__line { opacity: 1; transform: none; }
html:not(.js) .brk__line { opacity: 1; transform: none; }
.panel__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 16px; border-top: 1px solid var(--verde-700); }
/* Mientras falten breakers se ve una pista legible; el mensaje grande aparece al completar. */
.panel__status { display: grid; }
.panel__hint, .panel__all { grid-area: 1 / 1; align-self: center; transition: opacity .4s ease, transform .5s var(--spring); }
.panel__hint { font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--hueso-300); }
.panel__all { font-family: var(--f-display); font-weight: 800; font-size: clamp(36px, 7vw, 64px); line-height: .9; text-transform: uppercase; opacity: 0; visibility: hidden; transform: translateY(8px); }
.panel__all.is-on { opacity: 1; visibility: visible; transform: none; }
.panel__status:has(.is-on) .panel__hint { opacity: 0; }
.panel__note { max-width: 40ch; font-size: 15px; color: var(--hueso-300); }

/* ---------- 09 · la salida ---------- */
.out { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px 80px; align-items: center; }
.out__card-col { display: flex; justify-content: center; order: 1; }
.out__copy { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 960px) { .out__card-col { order: 0; } }
.card {
  position: relative; width: min(100%, 320px); aspect-ratio: 9 / 16; container-type: inline-size;
  background: var(--verde); color: var(--hueso); box-shadow: var(--sombra);
}
/* El padding va dentro: las unidades cqw de la propia tarjeta no se resuelven contra ella. */
.card__in { height: 100%; display: flex; flex-direction: column; padding: 8.9cqw; }
.card__top { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 3.2cqw; font-weight: 500; letter-spacing: .06em; }
.card__sign { display: flex; flex-direction: column; align-items: center; margin-top: 9cqw; }
.card__sign svg { width: 37cqw; height: 9.3cqw; fill: none; stroke: var(--hueso); stroke-width: 1.5; stroke-dasharray: 3 3; }
.card__plate { width: 55.5cqw; padding: 2cqw; background: var(--bermellon); border-radius: 1cqw; }
.card__plate span { display: block; padding: 3cqw 0; border: 1px solid var(--hueso); text-align: center; font-family: var(--f-display); font-weight: 900; font-size: 15cqw; line-height: 1; letter-spacing: .06em; }
.card__bottom { margin-top: auto; display: flex; flex-direction: column; gap: 3cqw; }
.card__name { font-family: var(--f-display); font-weight: 900; font-size: 13cqw; line-height: .9; text-transform: uppercase; overflow-wrap: anywhere; }
.card__meta { font-family: var(--f-mono); font-size: 3.3cqw; letter-spacing: .06em; text-transform: uppercase; color: var(--hueso-300); }
.card__aspire { font-size: 5.4cqw; line-height: 1.25; }
.card__line { margin-top: 2cqw; padding-top: 3cqw; border-top: 2px solid var(--bermellon); font-size: 4cqw; line-height: 1.3; color: var(--hueso-300); }
.share { display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.share__msg { min-height: 24px; margin-top: 4px; font-family: var(--f-mono); font-size: 13px; }

/* ---------- 10 · el método / 11 · contacto ---------- */
.steps { border-top: 2px solid var(--verde); }
.steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--linea-hueso); }
.steps .mono { font-size: 15px; font-weight: 600; padding-top: 6px; }
.steps li > div { display: flex; flex-direction: column; gap: 6px; }
.steps p { font-size: 17px; color: var(--verde-500); text-wrap: pretty; }
.contact { padding-bottom: 48px; }
.contact .btn { min-height: 56px; padding: 0 22px; }
.foot { margin-top: 72px; padding-top: 18px; border-top: 1px solid var(--verde-700); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--hueso-300); }

/* ---------- movimiento ---------- */
@keyframes kl-sway { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
@keyframes kl-blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .25; } }
@keyframes kl-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes kl-dots { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .film { display: none; }
  html.js .film-list { display: grid; }
  html.js .chat:not(.is-open) { transform: none; }
}

@media (max-width: 480px) {
  .bar__brand span { font-size: 22px; }
  .sound { padding: 0 10px; min-width: 44px; }
  .sound__icon { display: block; }
  .sound__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .picker { padding: 16px; }
  /* Doce rubros y seis ciudades: chips más bajos para que el selector quepa en el teléfono. */
  .picker__rubros .chip { min-height: 44px; padding: 8px 10px; font-size: 14px; line-height: 1.2; }
  .picker__cities .chip { min-height: 44px; padding: 6px 8px; font-size: 13px; line-height: 1.2; }
  .receipt__body { padding-inline: 14px; }
  .rline { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 8px; }
  .rline__st { font-size: 10.5px; }
}
