@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("../fonts/martian-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75%;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --ink: #0b0b0b;
  --gray: #e6e6e3;
  --gray-2: #cfcfcb;
  --nylon: #161616;
  --nylon-2: #262626;
  --orange: #ff5a00;
  --muted: #4b4b48;
  --muted-dark: #b9b9b4;

  --f-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "Cascadia Mono", monospace;
  --f-body: "Archivo", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1360px;
  --rule: 2px solid var(--ink);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --stripes: repeating-linear-gradient(-45deg, var(--ink) 0 12px, var(--white) 12px 24px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--ink) var(--gray);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  caret-color: var(--orange);
}

::selection {
  background: var(--orange);
  color: var(--ink);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.i {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono {
  font-family: var(--f-mono);
  font-stretch: 75%;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* ---------- Display: mayúsculas industriales entre comillas ---------- */

.q {
  font-family: var(--f-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

.q::before {
  content: '"';
}

.q::after {
  content: '"';
}

.q--hang {
  text-indent: -0.3em;
}

@media (max-width: 599px) {
  .q--hang,
  .hero__title span:first-child {
    text-indent: 0 !important;
  }
}

h2.q {
  font-size: clamp(3rem, 8.4vw, 6rem);
}

h3.q {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 0.9;
}

/* ---------- Placa con remaches ---------- */

.plate {
  --rivet: var(--ink);
  border: var(--rule);
  background-image:
    radial-gradient(circle, var(--rivet) 0 1.8px, transparent 2.4px),
    radial-gradient(circle, var(--rivet) 0 1.8px, transparent 2.4px),
    radial-gradient(circle, var(--rivet) 0 1.8px, transparent 2.4px),
    radial-gradient(circle, var(--rivet) 0 1.8px, transparent 2.4px);
  background-size: 8px 8px;
  background-repeat: no-repeat;
  background-position:
    4px 4px,
    calc(100% - 4px) 4px,
    4px calc(100% - 4px),
    calc(100% - 4px) calc(100% - 4px);
}

/* ---------- Botón placa ---------- */

.btn {
  --bg: var(--orange);
  --fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  min-height: 60px;
  padding: 0 1.5em 0 1.6em;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--f-mono);
  font-stretch: 75%;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.12s;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 26px;
  background: repeating-linear-gradient(-45deg, var(--fg) 0 7px, transparent 7px 14px);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s var(--ease-out);
}

.btn:hover::after {
  transform: scaleX(1);
}

.btn:hover .i {
  transform: translateX(3px);
}

.btn .i {
  transition: transform 0.28s var(--ease-out);
  margin-right: 10px;
}

.btn:active {
  transform: translateY(1px);
}

.btn--ink {
  --bg: var(--ink);
  --fg: var(--white);
  --rivet: var(--white);
}

.btn--ink:focus-visible {
  outline-color: var(--ink);
}

/* ---------- Precinto ---------- */

.tag {
  position: absolute;
  display: block;
  transform-origin: 50% 0;
  rotate: -3deg;
  pointer-events: none;
  z-index: 2;
}

.tag__cord {
  display: block;
  width: 2px;
  height: 22px;
  margin: 0 auto -9px;
  background: var(--ink);
  position: relative;
  z-index: 1;
}

.tag__body {
  display: block;
  position: relative;
  padding: 17px 10px 9px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--f-mono);
  font-stretch: 75%;
  font-weight: 600;
  font-size: 0.6875rem;
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  clip-path: polygon(24% 0, 76% 0, 100% 12px, 100% 100%, 0 100%, 0 12px);
}

.tag__body::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.tag.is-swinging {
  animation: swing 1.15s var(--ease-out) both;
}

@keyframes swing {
  0% { rotate: -24deg; }
  32% { rotate: 13deg; }
  56% { rotate: -7deg; }
  76% { rotate: 3deg; }
  100% { rotate: -3deg; }
}

/* ---------- Barra ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: var(--rule);
}

.nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav__links a {
  font-family: var(--f-mono);
  font-stretch: 75%;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav__links a:hover {
  text-decoration: underline;
}

.nav .btn {
  min-height: 44px;
  font-size: 0.8rem;
  padding: 0 1.1em 0 1.2em;
}

@media (max-width: 859px) {
  .nav__links {
    display: none;
  }
  .nav .btn .i {
    display: none;
  }
}

@media (max-width: 380px) {
  .logo {
    font-size: 1.3rem;
    padding: 0 10px;
  }
  .nav .btn {
    padding: 0 0.9em;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 7vw, 88px);
  border-bottom: var(--rule);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.hero__title {
  font-size: clamp(3.6rem, 16.5vw, 7rem);
  padding-top: 0.06em;
}

.hero__title::before,
.hero__title::after {
  content: none;
}

.m-only {
  display: none;
}

@media (max-width: 599px) {
  .hero__title {
    font-size: clamp(3.6rem, 22vw, 7rem);
  }
  .m-only {
    display: inline;
  }
}

.hero__title span {
  display: block;
  text-indent: 0;
}

.hero__title span:first-child {
  text-indent: -0.3em;
}

.hero__title span:first-child::before,
.hero__title span:last-child::after {
  content: '"';
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: clamp(5rem, 8.4vw, 8.25rem);
  }
}

.hero__lead {
  max-width: 30ch;
  margin: 26px 0 34px;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.45;
  color: var(--muted);
}

.hero__lead strong {
  color: var(--ink);
  font-weight: 600;
}

.cta {
  position: relative;
  display: inline-block;
  padding-bottom: 64px;
}

.cta .tag {
  left: 38px;
  top: 52px;
}

.cta:hover .tag,
.cta:focus-within .tag {
  animation: swing 1.15s var(--ease-out) both;
}

/* ---------- La máquina ---------- */

.machine {
  position: relative;
  margin: 0;
  padding: 18px;
  background: var(--nylon);
  color: var(--white);
  border: var(--rule);
}

.machine__top {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.machine__label {
  --rivet: var(--muted-dark);
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-color: var(--muted-dark);
  color: var(--muted-dark);
  font-size: 0.6875rem;
}

.machine__tabs {
  display: flex;
  border: 2px solid var(--white);
}

.machine__tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-left: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  font-family: var(--f-mono);
  font-stretch: 75%;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.machine__tab:first-child {
  border-left: 0;
}

.machine__tab .i {
  order: -1;
  width: 15px;
  height: 15px;
  margin-right: 2px;
}

.machine__tab:hover {
  background: var(--nylon-2);
}

.machine__tab[aria-pressed="true"] {
  background: var(--orange);
  color: var(--ink);
}

.machine__tab:focus-visible {
  outline-offset: -5px;
  outline-color: var(--white);
}

@media (max-width: 459px) {
  .machine {
    padding: 14px;
  }
  .machine__top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .machine__label {
    align-self: flex-start;
    min-height: 32px;
  }
  .machine__tabs {
    width: 100%;
  }
  .machine__tab {
    flex: 1;
    justify-content: center;
    padding: 0 6px;
  }
}

.machine__in {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 4px 0 18px;
}

.voice {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: flex-end;
  width: min(100%, 360px);
  padding: 12px 14px;
  background: var(--nylon-2);
  border: 2px solid var(--nylon-2);
}

.voice > .i {
  width: 20px;
  height: 20px;
  color: var(--orange);
}

.voice__wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
  flex: 1;
}

.voice__wave span {
  flex: 1;
  min-width: 2px;
  height: var(--h);
  background: var(--white);
  transition: background-color 0.1s;
}

.machine[data-state="in"] .voice__wave span {
  background: var(--muted-dark);
  animation: played 0.01s linear forwards;
  animation-delay: calc(var(--n) * 38ms);
}

@keyframes played {
  to { background: var(--white); }
}

.voice__len {
  font-size: 0.7rem;
  color: var(--muted-dark);
}

.heard,
.bubble {
  margin: 0;
  align-self: flex-end;
  max-width: 380px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.heard {
  color: var(--muted-dark);
}

.heard b {
  font-family: var(--f-mono);
  font-stretch: 75%;
  font-weight: 600;
  font-size: 0.6875rem;
  color: var(--white);
  margin-right: 6px;
}

.bubble {
  padding: 12px 14px;
  background: var(--nylon-2);
  color: var(--white);
}

.photo {
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.photo img {
  width: min(100%, 300px);
  height: 118px;
  object-fit: cover;
  object-position: top left;
  border: 5px solid var(--white);
  rotate: -1.5deg;
}

.photo span {
  font-size: 0.6875rem;
  color: var(--muted-dark);
}

/* Placa "ENTENDÍ" */

.readplate {
  position: relative;
  padding: 16px 18px 14px;
  background-color: var(--white);
  color: var(--ink);
}

.readplate__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 12px;
  padding-right: 96px;
  font-size: 0.72rem;
}

.readplate__head b {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0;
}

.readplate__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
}

.readplate__fields div {
  min-width: 0;
  border-top: 2px solid var(--ink);
  padding-top: 5px;
  opacity: 1;
  transition: opacity 0.35s var(--ease-out), translate 0.35s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms);
}

.readplate__fields dt {
  font-family: var(--f-mono);
  font-stretch: 75%;
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--muted);
}

.readplate__fields dd {
  margin: 1px 0 0;
  font-family: var(--f-mono);
  font-stretch: 75%;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.machine[data-state="in"] .readplate__fields div {
  opacity: 0;
  translate: 0 6px;
  transition-delay: 0s;
}

.machine[data-state="in"] .readplate__head b {
  opacity: 0;
}

.readplate .tag {
  top: -8px;
  right: 18px;
}

.readplate .tag .tag__cord {
  height: 14px;
}

.machine[data-state="in"] .readplate .tag,
.machine[data-state="done"] .readplate .tag {
  opacity: 0;
}

.machine[data-state="done"] .readplate .tag {
  translate: 0 60px;
  rotate: 24deg;
  transition: translate 0.5s cubic-bezier(0.5, 0, 0.9, 0.4), rotate 0.5s, opacity 0.3s 0.2s;
}

.stamp {
  position: absolute;
  top: 12px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.6875rem;
  opacity: 0;
  scale: 1.25;
  transition: opacity 0.2s, scale 0.35s var(--ease-out);
}

.stamp .i {
  width: 13px;
  height: 13px;
  color: var(--orange);
}

.machine[data-state="done"] .stamp {
  opacity: 1;
  scale: 1;
}

.machine__actions {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 8px;
  margin: 10px 0 18px;
}

.mbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 8px;
  border: 2px solid var(--muted-dark);
  color: var(--muted-dark);
  font-size: 0.6875rem;
  font-weight: 600;
  transition: transform 0.12s, background-color 0.2s, color 0.2s;
}

.mbtn .i {
  width: 14px;
  height: 14px;
}

.mbtn--go {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--ink);
}

.machine[data-state="press"] .mbtn--go {
  transform: translateY(2px) scale(0.97);
  background: var(--white);
  border-color: var(--white);
}

.machine[data-state="done"] .mbtn--go {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

@media (max-width: 459px) {
  .mbtn {
    font-size: 0.6875rem;
    gap: 5px;
  }
  .machine__actions {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

/* Planilla */

.sheet-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 0.6875rem;
  color: var(--muted-dark);
}

.sheet-name b {
  color: var(--white);
}

.sheet {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-mono);
  font-stretch: 75%;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.sheet th,
.sheet td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--gray-2);
  white-space: nowrap;
}

.sheet th {
  background: var(--gray);
  font-weight: 600;
  font-size: 0.6875rem;
  border-bottom: 2px solid var(--ink);
}

.sheet td:last-child,
.sheet th:last-child {
  text-align: right;
}

.sheet td:nth-child(2) {
  white-space: normal;
}

.sheet tr.is-new td {
  font-weight: 600;
}

/* Pendiente: la fila todavía no existe, se ve rayada como zona de carga. */
.machine[data-state="read"] .sheet tr.is-new,
.machine[data-state="press"] .sheet tr.is-new {
  background: repeating-linear-gradient(-45deg, #f1f1ee 0 8px, var(--white) 8px 16px);
}

.machine[data-state="read"] .sheet tr.is-new td,
.machine[data-state="press"] .sheet tr.is-new td {
  color: var(--ink);
  font-weight: 400;
  background: transparent;
}

.machine[data-state="in"] .sheet tr.is-new {
  visibility: hidden;
}

.machine[data-state="done"] .sheet tr.is-new td {
  animation: landed 1.4s var(--ease-out);
}

@keyframes landed {
  from { background: #ffd9c2; }
  to { background: var(--white); }
}

.machine figcaption {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--muted-dark);
}

/* ---------- Secciones ---------- */

.section {
  padding: clamp(64px, 9vw, 128px) 0;
  border-bottom: var(--rule);
}

.section__head {
  max-width: 900px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section__head p {
  max-width: 58ch;
  margin: 22px 0 0;
  font-size: 1.15rem;
  color: var(--muted);
}

/* Recorrido */

.route {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 8px solid var(--ink);
}

@media (min-width: 900px) {
  .route {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.route__stop {
  position: relative;
  padding: 26px 26px 34px 0;
}

@media (min-width: 900px) {
  .route__stop + .route__stop {
    padding-left: 26px;
    border-left: 2px solid var(--ink);
  }
  .route__stop:not(:last-child)::after {
    content: "";
    position: absolute;
    top: -14px;
    right: -11px;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 2px solid var(--ink);
    rotate: 45deg;
    z-index: 1;
  }
}

@media (max-width: 899px) {
  .route {
    border-top: 0;
    border-left: 8px solid var(--ink);
  }
  .route__stop {
    padding: 0 0 38px 26px;
  }
  .route__stop::before {
    content: "";
    position: absolute;
    top: 8px;
    left: -13px;
    width: 18px;
    height: 18px;
    background: var(--white);
    border: 2px solid var(--ink);
    rotate: 45deg;
  }
  .route__stop:last-child {
    padding-bottom: 6px;
  }
}

.route__stop p {
  margin: 16px 0 18px;
  max-width: 34ch;
  color: var(--muted);
}

.route__stop .plate {
  display: inline-block;
  padding: 10px 14px;
  font-size: 0.6875rem;
  line-height: 1.6;
}

.route__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.route__buttons span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 2px solid var(--ink);
  font-size: 0.6875rem;
  font-weight: 600;
}

.route__buttons span:first-child {
  background: var(--orange);
  border-color: var(--orange);
}

.route__buttons .i {
  width: 13px;
  height: 13px;
}

/* Estante de entradas */

.rack {
  width: 100%;
  border-collapse: collapse;
  border-top: 8px solid var(--ink);
}

.rack th {
  padding: 14px 16px 12px 0;
  text-align: left;
  font-family: var(--f-mono);
  font-stretch: 75%;
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  border-bottom: var(--rule);
}

.rack td {
  padding: 22px 16px 22px 0;
  vertical-align: middle;
  border-bottom: var(--rule);
}

.rack__name {
  width: 38%;
}

.rack__label {
  display: flex;
  align-items: center;
  gap: 18px;
}

.rack__name .i {
  width: 34px;
  height: 34px;
}

.rack__name .q {
  font-size: clamp(3rem, 7vw, 5.5rem);
}

.rack__what {
  max-width: 44ch;
  color: var(--muted);
}

.rack__what strong {
  color: var(--ink);
  font-weight: 600;
}

.rack__cost {
  width: 1%;
  white-space: nowrap;
  text-align: right;
  padding-right: 0 !important;
}

.cost {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 118px;
  max-width: 170px;
  padding: 10px 14px 10px;
  white-space: normal;
  text-align: center;
  background-color: var(--ink);
  color: var(--white);
  --rivet: var(--white);
  border-color: var(--ink);
}

.cost b {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 0.9;
  color: var(--orange);
}

.cost span {
  font-size: 0.6875rem;
  margin-top: 4px;
}

.cost small {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.25;
  color: var(--white);
  margin-top: 6px;
  text-transform: none;
  font-family: var(--f-body);
}

@media (max-width: 759px) {
  .rack thead {
    display: none;
  }
  .rack tr {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "name cost" "what what";
    gap: 10px 16px;
    padding: 20px 0 22px;
    border-bottom: var(--rule);
  }
  .rack td {
    padding: 0;
    border: 0;
  }
  .rack__name {
    grid-area: name;
    width: auto;
  }
  .rack__what {
    grid-area: what;
  }
  .rack__cost {
    grid-area: cost;
    width: auto;
    align-self: center;
  }
  .rack__name .i {
    width: 26px;
    height: 26px;
  }
}

/* Dos casos */

.cases {
  border-bottom: var(--rule);
}

.cases__grid {
  display: grid;
}

.cases__band {
  background: var(--stripes);
  min-height: 30px;
  margin: 0 calc(-1 * var(--gutter));
}

.case {
  padding: clamp(56px, 7vw, 104px) 0;
}

.case--dark {
  background: var(--nylon);
  color: var(--white);
  margin: 0 calc(-1 * var(--gutter));
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

@media (min-width: 960px) {
  /* El fondo parte la sección al medio; la franja tapa la costura. */
  .cases {
    background: linear-gradient(to right, var(--white) 50%, var(--nylon) 50%);
  }
  .cases__grid {
    grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  }
  .cases__band {
    margin: 0;
  }
  .case {
    padding-right: clamp(32px, 4vw, 64px);
  }
  .case--dark {
    margin: 0;
    padding-left: clamp(32px, 4vw, 64px);
    padding-right: 0;
  }
}

.case__in {
  max-width: 560px;
}

.case p {
  margin: 20px 0 30px;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 40ch;
}

.case--dark p {
  color: var(--muted-dark);
}

.lines {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.lines li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  font-size: 0.98rem;
  line-height: 1.4;
}

.case--dark .lines li {
  --rivet: var(--muted-dark);
  border-color: var(--muted-dark);
}

.lines .dest {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
}

.lines .dest .i {
  width: 14px;
  height: 14px;
  color: var(--orange);
}

.lines .said {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.lines .said .i {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

@media (max-width: 459px) {
  .lines li {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Tu planilla es tuya */

.own {
  display: grid;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

@media (min-width: 960px) {
  .own {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.facts {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 18px;
  padding: 22px 0;
  border-bottom: var(--rule);
}

.facts li:first-child {
  border-top: var(--rule);
}

.facts .i {
  width: 28px;
  height: 28px;
  grid-row: span 2;
  margin-top: 2px;
}

.facts b {
  font-size: 0.82rem;
}

.facts span {
  color: var(--muted);
}

.fix {
  position: relative;
  margin: 0;
  padding: 26px;
  background: var(--gray);
  border: var(--rule);
}

.fix__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.fix__who {
  font-size: 0.6875rem;
  color: var(--muted);
}

.fix__msg {
  align-self: flex-start;
  padding: 12px 14px;
  background: var(--white);
  border: 2px solid var(--ink);
  font-size: 1rem;
}

.fix__row--me .fix__msg {
  align-self: flex-end;
  background: var(--ink);
  color: var(--white);
}

.fix__row--me .fix__who {
  align-self: flex-end;
}

.fix__done {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 14px 16px;
  background-color: var(--white);
  font-size: 0.7rem;
}

.fix__done s {
  color: var(--muted);
}

.fix__done b {
  background: var(--orange);
  padding: 2px 6px;
}

.fix figcaption {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Precios: zona naranja */

.prices {
  background: var(--orange);
  color: var(--ink);
  padding: clamp(64px, 9vw, 128px) 0 clamp(56px, 8vw, 104px);
  border-bottom: var(--rule);
  overflow: hidden;
}

.prices ::selection {
  background: var(--ink);
  color: var(--orange);
}

.prices :focus-visible {
  outline-color: var(--ink);
}

.rail {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 10px solid var(--ink);
}

.pricetags {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: start;
}

@media (min-width: 900px) {
  .pricetags {
    grid-template-columns: 0.9fr 1.2fr 1fr;
    gap: clamp(24px, 3vw, 48px);
  }
}

.pricetag {
  position: relative;
  transform-origin: 50% -36px;
  padding-top: 36px;
}

.pricetag::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 36px;
  background: var(--ink);
}

.pricetag.is-swinging {
  animation: swing-soft 1.4s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 120ms);
}

@keyframes swing-soft {
  0% { rotate: -7deg; }
  35% { rotate: 4deg; }
  62% { rotate: -2deg; }
  100% { rotate: 0deg; }
}

.pricetag__body {
  position: relative;
  padding: 34px 26px 26px;
  background-color: var(--white);
  clip-path: polygon(18% 0, 82% 0, 100% 22px, 100% 100%, 0 100%, 0 22px);
}

.pricetag__body::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.pricetag--main .pricetag__body {
  background: var(--ink);
  color: var(--white);
}

.pricetag h3 {
  font-size: 2.2rem;
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 18px 0 4px;
}

.price b {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(4rem, 7vw, 5.5rem);
  line-height: 0.85;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.pricetag--main .price b {
  color: var(--orange);
}

.price span {
  font-size: 0.72rem;
}

.pricetag ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.pricetag li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-top: 2px solid currentColor;
  font-size: 0.98rem;
  line-height: 1.4;
}

.pricetag li .i {
  width: 17px;
  height: 17px;
  margin-top: 2px;
}

.pricetag--main li .i {
  color: var(--orange);
}

.prices__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: clamp(40px, 5vw, 64px);
}

.prices__note p {
  margin: 0;
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.5;
}

/* Preguntas */

.faq {
  display: grid;
  gap: clamp(32px, 5vw, 80px);
}

@media (min-width: 960px) {
  .faq {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

.faq__list {
  border-top: 8px solid var(--ink);
}

.faq details {
  border-bottom: var(--rule);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.12;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border: 2px solid var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat;
  transition: rotate 0.3s var(--ease-out), background-color 0.2s;
}

.faq details[open] summary::after {
  rotate: 45deg;
  background-color: var(--orange);
}

.faq summary:hover::after {
  background-color: var(--orange);
}

.faq details p {
  margin: 0 0 24px;
  max-width: 62ch;
  color: var(--muted);
}

/* Cierre */

.close {
  background: var(--nylon);
  color: var(--white);
  border-bottom: var(--rule);
}

.close__stripes {
  height: 26px;
  background: var(--stripes);
  border-bottom: var(--rule);
}

.close__in {
  display: grid;
  gap: 32px;
  align-items: end;
  padding: clamp(64px, 9vw, 120px) var(--gutter) clamp(56px, 7vw, 96px);
}

@media (min-width: 960px) {
  .close__in {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  }
}

.close h2.q {
  font-size: clamp(3.4rem, 10vw, 6rem);
}

.close p {
  margin: 0 0 26px;
  max-width: 36ch;
  font-size: 1.15rem;
  color: var(--muted-dark);
}

.close .cta .tag__body::before {
  background: var(--nylon);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.close .tag__cord {
  background: var(--white);
}

/* Pie */

.foot {
  padding: 48px 0 40px;
}

.foot__in {
  display: grid;
  gap: 28px;
  justify-items: start;
}

@media (min-width: 860px) {
  .foot__in {
    grid-template-columns: auto 1fr auto;
    align-items: start;
  }
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 0.72rem;
}

.foot nav a {
  text-decoration: none;
}

.foot nav a:hover {
  text-decoration: underline;
}

@media (min-width: 860px) {
  .foot nav {
    justify-content: center;
    padding-top: 12px;
  }
}

.foot small {
  display: block;
  max-width: 46ch;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- WhatsApp, próximamente (lista de espera) ---------- */

.wa {
  max-width: 460px;
}

.wa__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-color: var(--gray-2);
  cursor: pointer;
  transition: text-decoration-color 0.2s var(--ease-out);
}

.wa__toggle .i {
  width: 20px;
  height: 20px;
}

.wa__toggle:hover {
  text-decoration-color: var(--ink);
}

.wa__toggle[aria-expanded="true"] {
  text-decoration-color: var(--orange);
}

.wa__form {
  display: grid;
  gap: 14px;
  margin-top: 10px;
  padding: 24px 20px 20px;
  background-color: var(--white);
}

.wa__form[hidden],
.wa__done[hidden] {
  display: none;
}

.wa__title {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 0.9;
}

.wa__lead {
  margin: 0 0 4px;
  color: var(--muted);
  line-height: 1.45;
}

.wa__field {
  display: grid;
  gap: 7px;
}

.wa__field > span {
  font-size: 0.6875rem;
  font-weight: 600;
}

.wa__field input {
  height: 52px;
  padding: 0 14px;
  border: var(--rule);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  caret-color: var(--orange);
}

.wa__field input::placeholder {
  color: var(--muted);
}

.wa__field input:focus-visible {
  outline-offset: 0;
}

.wa__field input[aria-invalid="true"] {
  border-color: var(--orange);
}

.wa__form .btn {
  justify-self: start;
  margin-top: 4px;
}

.wa__form .btn:disabled {
  cursor: progress;
  opacity: 0.6;
}

.wa__msg {
  margin: 0;
  font-weight: 600;
}

.wa__msg:empty {
  display: none;
}

.wa__note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.wa__note a,
.wa__inline {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.wa__inline {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.wa__inline:hover,
.wa__note a:hover {
  text-decoration-color: var(--orange);
}

.wa__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wa__done {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 10px 0 0;
  padding: 18px 20px;
  font-weight: 600;
  line-height: 1.4;
}

.wa__done:focus {
  outline: none;
}

.wa__stamp {
  flex: none;
  padding: 7px 10px 6px;
  border: var(--rule);
  background: var(--orange);
  font-size: 0.6875rem;
  font-weight: 700;
  rotate: -3deg;
}

/* ---------- Videos: un reproductor, tres pestañas ---------- */

.reels__grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  grid-template-areas:
    "head"
    "player"
    "list";
}

.reels__head {
  grid-area: head;
  max-width: 900px;
}

.reels__lead {
  max-width: 58ch;
  text-wrap: pretty;
  margin: 22px 0 0;
  font-size: 1.15rem;
  color: var(--muted);
}

.reels__player {
  grid-area: player;
  justify-self: center;
  width: min(100%, 360px);
  margin: 0;
  padding: 12px;
  background: var(--nylon);
  border: var(--rule);
}

.reels__player video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--ink);
  object-fit: cover;
}

.reels__cap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px 0;
  color: var(--muted-dark);
  font-size: 0.6875rem;
  font-weight: 600;
}

.reels__list {
  grid-area: list;
  align-self: start;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 8px solid var(--ink);
}

.reels__list li {
  border-bottom: var(--rule);
}

.reels__pick {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "name hook dur";
  align-items: center;
  gap: 10px 18px;
  width: 100%;
  min-height: 76px;
  padding: 16px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.reels__name {
  grid-area: name;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 32px;
  padding: 0 10px;
  border: var(--rule);
  font-size: 0.75rem;
  font-weight: 600;
  transition: background-color 0.2s var(--ease-out);
}

.reels__hook {
  grid-area: hook;
  font-size: 1.0625rem;
  line-height: 1.35;
}

.reels__dur {
  grid-area: dur;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
}

.reels__dur .i {
  width: 14px;
  height: 14px;
}

.reels__pick:hover .reels__name {
  background: var(--gray);
}

.reels__pick[aria-pressed="true"] .reels__name {
  background: var(--orange);
}

.reels__pick[aria-pressed="true"] .reels__hook {
  font-weight: 600;
}

.reels__pick:focus-visible {
  outline-offset: -3px;
}

@media (max-width: 599px) {
  .reels__pick {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "name dur"
      "hook hook";
  }
  .reels__dur {
    justify-self: end;
  }
}

@media (min-width: 960px) {
  .reels__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "head player"
      "list player";
    column-gap: clamp(40px, 6vw, 96px);
  }
  .reels__player {
    justify-self: end;
    width: min(100%, 380px);
  }
}

/* ---------- Celulares angostos o con el texto agrandado ---------- */

/* Ninguna columna del hero se estira más que la pantalla por el contenido de la máquina. */
.hero__grid > * {
  min-width: 0;
}

@media (max-width: 379px) {
  .machine__tab {
    min-width: 0;
    gap: 4px;
    padding: 0 4px;
  }
  .machine__tab .i {
    display: none;
  }
  .sheet {
    font-size: min(0.7rem, 3.4vw);
  }
  .sheet th {
    font-size: min(0.6875rem, 3.3vw);
    white-space: normal;
  }
  .sheet th,
  .sheet td {
    padding: 7px 6px;
  }
  .machine__actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .mbtn {
    padding: 0 4px;
  }
  .mbtn .i {
    display: none;
  }
}

/* Un botón nunca es más ancho que la pantalla: en celulares angostos su texto pasa a dos renglones. */
.btn {
  max-width: 100%;
}

@media (max-width: 399px) {
  .btn {
    white-space: normal;
    line-height: 1.2;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* La barra: el logo y el botón se ajustan al ancho, así "Probar gratis" no se corta con el texto agrandado. */
@media (max-width: 479px) {
  .nav__in {
    gap: 12px;
  }
  .logo {
    padding: 0 10px;
    font-size: min(1.55rem, 7.2vw);
  }
  .nav .btn {
    padding: 0 0.9em;
    font-size: min(0.8rem, 3.6vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

@media (max-width: 399px) {
  .rack__name .q {
    font-size: 2.5rem;
  }
  .rack__label {
    gap: 10px;
  }
  .cost {
    min-width: 96px;
    padding: 8px 10px;
  }
}
