/* =============================================================
   Sober Motel — estilos
   Concepto: "canal VHS". Negro, blanco y grises. Inter.
   Mobile-first: los estilos base son para celular; @media amplía.
   ============================================================= */

@font-face { font-family: Inter; src: url(/fonts/inter-light.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/inter-regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/inter-medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/inter-bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #000;
  --fg: #fff;
  --fg-2: #cfcfcf;
  --muted: #8a8a8a;
  --dim: #555;
  --line: #2e2e2e;
  --line-2: #444;
  --panel: #0b0b0b;
  --pad: 18px;
  --head: 64px;
  --foot: 56px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); overscroll-behavior: none; }
body {
  font-family: Inter, system-ui, sans-serif; color: var(--fg); background: var(--bg);
  -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1;
  min-height: 100svh; -webkit-tap-highlight-color: transparent; overscroll-behavior: none;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
[hidden] { display: none !important; }
/* Tienda: la página no se mueve ni rebota (solo se desliza el carrusel) */
body.store { position: fixed; inset: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Textura VHS (ruido + líneas) ---------- */
.vhs-noise, .vhs-lines { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
/* El ruido se mueve unos píxeles: lo agrandamos para que sus bordes nunca se vean */
.vhs-noise { inset: -16px; }
.vhs-noise {
  opacity: .13;
  background-image: url("/img/marca/ruido-vhs-1.png"); background-size: 192px 192px;
  animation: grain .4s steps(1) infinite;
}
.vhs-lines { background: repeating-linear-gradient(0deg, rgba(0,0,0,.2) 0 1px, transparent 1px 3px); }
@keyframes grain { 0% { background-image: url("/img/marca/ruido-vhs-1.png") } 33% { background-image: url("/img/marca/ruido-vhs-2.png") } 66% { background-image: url("/img/marca/ruido-vhs-3.png") } }

/* Flash de estática al cambiar de canal */
.static-flash {
  position: fixed; inset: 0; z-index: 49; pointer-events: none; opacity: 0;
  background-image: inherit; background: #111 url("/img/marca/ruido-flash.png") 0 0 / 192px 192px;
}
.static-flash.on { animation: flash .26s ease-out; }
@keyframes flash { 0% { opacity: .55 } 100% { opacity: 0 } }

/* ---------- Encabezado / OSD ---------- */
.osd { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-shadow: 0 0 6px rgba(255,255,255,.45); }
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: var(--head);
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad);
  background: linear-gradient(#000 30%, rgba(0,0,0,0));
}
.logo { display: block; width: 46px; height: 46px; margin-left: -8px; }
.logo img { width: 100%; height: 100%; }
.head-right { display: flex; align-items: center; gap: 18px; }
.cart-link { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding: 10px 0; }
.cart-link b { font-weight: 700; }
.ch-label { font-size: 15px; }
.rec { font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.rec::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #e5251b; box-shadow: 0 0 6px rgba(229,37,27,.7); animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0 } }

.site-foot {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; height: var(--foot);
  display: grid; grid-template-columns: auto 1fr; align-items: center; padding: 0 var(--pad);
  font-size: 11px; background: linear-gradient(rgba(0,0,0,0), #000 60%);
}
.clock { font-weight: 500; letter-spacing: .1em; color: var(--fg-2); font-size: 10px; }
.ship-note a { text-decoration: underline; text-underline-offset: 3px; }
.foot-links { justify-self: end; display: none; gap: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.foot-links a:hover { color: var(--fg); }

/* ---------- Carrusel de productos ---------- */
.track {
  display: flex; height: 100svh; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: none;
}
.track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always;
  overflow-y: auto; scrollbar-width: none; overscroll-behavior: none;
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: start;
  padding: calc(var(--head) + 4px) var(--pad) calc(var(--foot) + 24px);
}
.slide::-webkit-scrollbar { display: none; }

.spot { position: relative; display: flex; flex-direction: column; align-items: center; height: 38svh; min-height: 240px; }
.gallery { position: relative; width: 84%; flex: 1; min-height: 0; cursor: pointer; }
.gallery img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transform: scale(.985); transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.gallery img.on { opacity: 1; transform: none; }
/* Estática sobre la prenda: capa de ruido recortada con la silueta de la foto (--g) */
.gs {
  position: absolute; inset: 0; opacity: 0; pointer-events: none; will-change: opacity;
  background: url("/img/marca/ruido-gris-1.png") 0 0 / 192px 192px;
  -webkit-mask: var(--g) center / contain no-repeat; mask: var(--g) center / contain no-repeat;
}
.gs { transition: opacity .3s ease-out; }
/* Mientras el carrusel se mueve, las prendas se ven como estática; al quedar centrada se revela el polo */
.track.moving .gs { opacity: 1; transition: none; animation: gs-loop .24s steps(1) infinite; }
@keyframes gs-loop {
  0% { background-image: url("/img/marca/ruido-gris-1.png"); }
  34% { background-image: url("/img/marca/ruido-gris-2.png"); }
  67% { background-image: url("/img/marca/ruido-gris-3.png"); }
}
.views { flex: none; display: flex; gap: 6px; padding-top: 8px; z-index: 2; }
.views button {
  font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  padding: 7px 10px; border: 1px solid var(--line-2); background: rgba(0,0,0,.55); color: var(--muted);
}
.views button[aria-pressed="true"] { border-color: var(--fg); color: var(--fg); }

.info { padding-top: 18px; max-width: 460px; }
.info .ch { font-size: 11px; font-weight: 500; letter-spacing: .2em; color: var(--muted); margin-bottom: 10px; }
.info h1, .info h2 { font-weight: 700; font-size: 34px; line-height: .98; letter-spacing: -.02em; text-transform: uppercase; }
.price { font-size: 17px; color: var(--fg-2); margin: 10px 0 4px; }
.desc { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 10px 0 20px; max-width: 42ch; }

.lbl-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.lbl { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.link-u { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.size {
  height: 50px; border: 1px solid var(--line-2); display: grid; place-items: center; align-content: center;
  font-size: 14px; font-weight: 500; transition: background .15s, color .15s, border-color .15s;
}
.size:hover:not(:disabled) { border-color: var(--fg); }
.size[aria-checked="true"] { background: var(--fg); color: #000; border-color: var(--fg); }
.size:disabled { border-style: dashed; border-color: #333; color: var(--dim); cursor: not-allowed; }
.size small { display: block; font-size: 8px; letter-spacing: .14em; font-weight: 500; text-transform: uppercase; margin-top: 2px; }
.stock-hint:empty { display: none; }
.stock-hint { margin-top: 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 12px; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px;
  background: var(--fg); color: #000; font-weight: 700; font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  transition: opacity .2s, transform .1s;
}
.btn:active:not(:disabled) { transform: scale(.985); }
.btn:disabled { background: #1c1c1c; color: var(--dim); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-2); }
.ship-note { margin-top: 14px; font-size: 11px; line-height: 1.6; color: var(--muted); letter-spacing: .04em; }

.dots { display: flex; justify-content: center; gap: 6px; margin-top: 22px; }
.dots i { width: 26px; height: 2px; background: var(--dim); transition: background .2s, height .2s; }
.dots i.on { background: var(--fg); height: 3px; }
@media (min-width: 768px) { .dots { display: none; } }

/* Flechas (escritorio) */
.arrow {
  position: fixed; top: 50%; z-index: 31; transform: translateY(-50%);
  width: 52px; height: 52px; border: 1px solid var(--line-2); background: rgba(0,0,0,.4);
  display: none; place-items: center; font-size: 20px; transition: border-color .2s, opacity .2s;
}
.arrow:hover { border-color: var(--fg); }
.arrow:disabled { opacity: .25; cursor: default; }
.arrow.prev { left: 22px; } .arrow.next { right: 22px; }
@media (max-width: 767px) {
  /* Flechas a los lados de la foto en celular */
  .arrow { display: grid; top: calc(var(--head) + 19svh); width: 40px; height: 40px; font-size: 17px; background: rgba(0,0,0,.55); }
  .arrow.prev { left: 8px; } .arrow.next { right: 8px; }
  .site-foot .channels { display: none; }
}

/* Indicador de canales (barras) */
.channels { display: flex; gap: 6px; align-items: center; justify-self: end; }
.channels button { width: 26px; height: 18px; display: grid; place-items: center; }
.channels button::before { content: ""; width: 100%; height: 2px; background: var(--dim); transition: background .2s, height .2s; }
.channels button[aria-current="true"]::before { background: var(--fg); height: 3px; }
.swipe-hint { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* Esqueleto de carga */
.loading { height: 100svh; display: grid; place-items: center; }
.loading .osd { font-size: 14px; }

/* ---------- Modal (guía de tallas) ---------- */
dialog {
  margin: auto; border: 1px solid var(--line-2); background: var(--panel); color: var(--fg);
  width: min(520px, calc(100% - 24px)); padding: 0;
}
dialog::backdrop { background: rgba(0,0,0,.75); backdrop-filter: blur(3px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.modal-close { width: 36px; height: 36px; display: grid; place-items: center; font-size: 18px; margin-right: -8px; }
.modal-body { padding: 18px; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: center; }
.guide-table th { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 10px 6px; border-bottom: 1px solid var(--line-2); }
.guide-table td { padding: 12px 6px; border-bottom: 1px solid var(--line); }
.guide-table td:first-child { font-weight: 700; }
.guide-note { font-size: 12px; color: var(--muted); margin-top: 14px; line-height: 1.6; }

/* ---------- Visor de imagen (sin efectos) ---------- */
dialog.visor {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border: 0;
  background: rgba(0,0,0,.96); display: none; flex-direction: column;
}
dialog.visor[open] { display: flex; }
dialog.visor::backdrop { background: #000; backdrop-filter: none; }
.visor-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 0 18px; }
.visor-head h3 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--fg-2); }
.visor-stage { flex: 1; min-height: 0; position: relative; margin: 8px 12px; cursor: zoom-out; overflow: hidden; }
/* La imagen se ajusta al cuadro completo (sin recortarse ni ampliarse) */
.visor-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.visor-views { display: flex; justify-content: center; gap: 8px; padding: 6px 12px calc(14px + env(safe-area-inset-bottom)); }
.visor-views button {
  font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  padding: 9px 14px; border: 1px solid var(--line-2); color: var(--muted);
}
.visor-views button[aria-pressed="true"] { border-color: var(--fg); color: var(--fg); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--foot) + 12px); z-index: 60; transform: translate(-50%, 20px);
  background: var(--fg); color: #000; padding: 14px 18px; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  display: flex; gap: 16px; align-items: center; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
  white-space: nowrap;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }

/* ---------- Páginas de texto (términos, pago, 404) y carrito ---------- */
.page { min-height: 100svh; padding: calc(var(--head) + 24px) var(--pad) calc(var(--foot) + 40px); max-width: 1120px; margin: 0 auto; }
.page-title { font-size: 34px; font-weight: 700; letter-spacing: -.02em; text-transform: uppercase; line-height: 1; margin-bottom: 8px; }
.page-sub { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 32px; }
.prose { max-width: 66ch; }
.prose h2 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; margin: 34px 0 12px; }
.prose p, .prose li { font-size: 15px; line-height: 1.7; color: var(--fg-2); }
.prose ul { padding-left: 18px; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--fg); font-weight: 500; }
.center-msg { min-height: 70svh; display: grid; place-items: center; text-align: center; }
.center-msg .big { font-size: clamp(42px, 12vw, 96px); font-weight: 700; letter-spacing: -.03em; line-height: .95; text-transform: uppercase; }
.center-msg p { color: var(--fg-2); font-size: 15px; line-height: 1.6; margin: 18px auto 28px; max-width: 40ch; }
.center-msg .btn { max-width: 320px; margin: 0 auto; }

/* Carrito + checkout */
.checkout { display: grid; gap: 34px; }
.section-title { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line .th { width: 76px; aspect-ratio: 1; background: #0e0e0e; border: 1px solid var(--line); display: grid; place-items: center; }
.line .th img { width: 88%; height: 88%; object-fit: contain; }
.line .nm { font-size: 14px; font-weight: 500; }
.line .meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.line .warn { font-size: 11px; color: var(--fg); margin-top: 6px; letter-spacing: .06em; }
.line .warn::before { content: "▲ "; font-size: 9px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); margin-top: 10px; }
.qty button { width: 32px; height: 30px; font-size: 15px; }
.qty button:disabled { color: var(--dim); }
.qty span { min-width: 26px; text-align: center; font-size: 13px; }
.line .right { text-align: right; align-self: start; padding-top: 2px; }
.line .right b { font-size: 14px; font-weight: 500; display: block; }
.remove { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 10px; text-decoration: underline; text-underline-offset: 3px; }
.empty { padding: 40px 0; color: var(--muted); font-size: 14px; }
.empty a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label, .legend { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.field label span { color: var(--dim); text-transform: none; letter-spacing: .02em; }
.field input, .field select {
  height: 50px; padding: 0 14px; background: transparent; border: 1px solid var(--line-2); border-radius: 0;
  font-size: 16px; /* 16px evita el zoom en iOS */ appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, #888 50%), linear-gradient(135deg, #888 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: #111; }
.field input:focus, .field select:focus { outline: none; border-color: var(--fg); }
.field select:disabled { color: var(--dim); border-color: var(--line); }
.field.err input, .field.err select { border-color: #fff; border-style: dashed; }
.field .msg { font-size: 12px; color: var(--fg); min-height: 0; }
.field .msg:empty { display: none; }
.row-2 { display: grid; gap: 14px; }
.doc-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; }
.doc-row select { padding-right: 6px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); }
.seg label { cursor: pointer; padding: 14px; display: grid; gap: 4px; border-right: 1px solid var(--line-2); }
.seg label:last-child { border-right: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg b { font-size: 14px; font-weight: 500; }
.seg small { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.seg label:has(input:checked) { background: var(--fg); color: #000; }
.seg label:has(input:checked) small { color: #444; }
.seg label:has(input:focus-visible) { outline: 1px solid var(--fg); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.55; color: var(--fg-2); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; border: 1px solid var(--line-2); margin-top: 1px; display: grid; place-items: center; }
.check input:checked { background: var(--fg); }
.check input:checked::after { content: "✓"; color: #000; font-size: 13px; font-weight: 700; }
.check a { text-decoration: underline; text-underline-offset: 3px; color: var(--fg); }

.summary { border: 1px solid var(--line-2); padding: 20px; background: rgba(10,10,10,.85); align-self: start; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; color: var(--fg-2); }
.sum-row.total { border-top: 1px solid var(--line-2); margin-top: 10px; padding-top: 14px; font-size: 18px; font-weight: 700; color: var(--fg); }
.summary .btn { margin-top: 18px; }
.form-error { font-size: 13px; line-height: 1.5; margin-top: 14px; padding: 12px; border: 1px dashed var(--fg); }
.form-error:empty { display: none; }
.secure { font-size: 11px; color: var(--muted); margin-top: 12px; text-align: center; letter-spacing: .06em; line-height: 1.6; }

/* ---------- Escritorio ---------- */
@media (min-width: 768px) {
  :root { --pad: 40px; --head: 84px; --foot: 64px; }
  .logo { width: 58px; height: 58px; }
  .ch-label, .rec { font-size: 20px; }
  .site-foot { font-size: 13px; grid-template-columns: 1fr auto 1fr; }
  .clock { font-size: 13px; }
  .channels { justify-self: center; }
  .foot-links { display: flex; }
  .gallery { width: 80%; }
  .slide {
    grid-template-rows: none; grid-template-columns: 1.2fr 1fr; align-items: center; align-content: center; gap: 40px;
    padding: var(--head) 110px var(--foot);
  }
  .spot { height: calc(100svh - var(--head) - var(--foot) - 40px); max-height: 720px; }
  .info { padding-top: 0; }
  .info h1, .info h2 { font-size: clamp(44px, 4.6vw, 64px); }
  .price { font-size: 20px; }
  .arrow { display: grid; }
  .swipe-hint { display: none; }
  .page-title { font-size: 52px; }
  .row-2 { grid-template-columns: 1fr 1fr; }
  .checkout { grid-template-columns: 1.35fr 1fr; gap: 56px; }
  .summary { position: sticky; top: calc(var(--head) + 16px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =============================================================
   Intro: televisor que se enciende con START
   ============================================================= */
.intro {
  position: fixed; inset: 0; z-index: 100; background: #d2d1ca; /* mismo plástico del marco, por si la barra del navegador deja un hueco */
  display: grid; place-items: center; align-content: center; gap: 22px;
  padding: 20px; overflow: hidden; touch-action: manipulation;
  transition: opacity .5s ease;
}
.intro[hidden] { display: none; }
.intro.fade { opacity: 0; pointer-events: none; }
html.intro-open, html.intro-open body { overflow: hidden; }

.tv {
  /* Marco del televisor a pantalla completa */
  --b: clamp(14px, 3.6vmin, 44px);   /* borde plano exterior */
  --s: clamp(22px, 6.4vmin, 78px);   /* bisel inclinado */
  --ov: clamp(6px, 1.4vmin, 14px);   /* la pantalla se monta sobre el bisel para tapar las esquinas */
  --sb: max(calc(var(--s) * 1.7), 64px);        /* bisel inferior, más alto para el logo */
  position: fixed; inset: 0;
  background: linear-gradient(180deg, #ecebe6 0%, #e0dfd8 50%, #d2d1ca 100%);
  transition: transform .9s cubic-bezier(.7, 0, .25, 1);
  will-change: transform;
}
.tv-frame { /* bisel: cada lado con su propia luz */
  position: absolute; inset: var(--b); border-radius: 6px;
  border: var(--s) solid; border-bottom-width: var(--sb); border-color: #b9b8b0 #cfcec6 #f6f5f1 #c4c3bb; background: transparent;
  box-shadow: 0 0 0 1px rgba(0,0,0,.18);
}
.tv-screen {
  position: absolute; inset: calc(var(--b) + var(--s) - var(--ov)) calc(var(--b) + var(--s) - var(--ov)) calc(var(--b) + var(--sb) - var(--ov)); overflow: hidden; cursor: pointer;
  border-radius: clamp(16px, 5vmin, 64px) / clamp(14px, 4vmin, 52px);
  background: radial-gradient(ellipse at 50% 45%, #121212 0%, #070707 60%, #000 100%);
  box-shadow: inset 0 0 calc(var(--s) * 1.1) rgba(0,0,0,.9), 0 0 0 2px #8e8d86;
  display: grid; place-items: center; align-content: center; gap: clamp(36px, 9vmin, 110px);
}
.tv-screen::before { /* líneas de barrido */
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.045) 0 1px, transparent 1px 3px);
}
.tv-screen::after { /* reflejo del vidrio */
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit;
  background: radial-gradient(ellipse 70% 40% at 28% 14%, rgba(255,255,255,.07), transparent 70%);
}
.tv-on { position: absolute; inset: 0; z-index: 3; background: #fff; opacity: 0; transform: scale(0, .004); }
.tv-static {
  position: absolute; inset: -20%; z-index: 2; opacity: 0;
  background: url("/img/marca/ruido-tv-1.png") 0 0 / 192px 192px;
}
/* La estrella en blanco sobre la pantalla negra */
.tv-star { position: relative; z-index: 1; width: clamp(120px, 34vmin, 340px); image-rendering: pixelated; pointer-events: none; }
.tv-start {
  position: relative; z-index: 6; display: flex; align-items: center; gap: clamp(14px, 2.6vmin, 30px);
  padding: 14px 18px; color: #fff;
}
.tv-start::before { content: ""; position: absolute; inset: -40vh -50vw; } /* toda la pantalla es el botón */
.px { display: block; height: clamp(15px, 3.2vmin, 30px); width: auto; aspect-ratio: 65 / 7; fill: currentColor; stroke: currentColor; stroke-width: .3; overflow: visible; shape-rendering: crispEdges; }
.px-arrow { aspect-ratio: 4 / 7; color: #6f6f6f; height: clamp(11px, 2.4vmin, 22px); }
.tv-blink { animation: blink 1s steps(1) infinite; }
.tv-start:focus-visible { outline: none; }
.tv-start:focus-visible .px-arrow { color: #fff; }
.tv-badge { /* logo Sober Motel grabado en el plástico, abajo (relieve en la imagen) */
  position: absolute; left: 50%; bottom: calc(var(--b) + (var(--sb) - var(--ov)) * .5); z-index: 1;
  height: calc((var(--sb) - var(--ov)) * .64); width: auto; transform: translate(-50%, 50%);
  pointer-events: none;
}

/* Secuencia de encendido */
.tv.powering .tv-start { opacity: 0; pointer-events: none; transition: opacity .1s; }
.tv.powering .tv-on { animation: crt-on .6s cubic-bezier(.6, 0, .3, 1) forwards; }
.tv.powering .tv-static { animation: crt-static 1.1s .45s steps(10) forwards; }
.tv.powering .tv-star { animation: crt-logo .6s .85s ease-out forwards; }
@keyframes crt-on {
  0% { opacity: 1; transform: scale(0, .004); }
  35% { opacity: 1; transform: scale(1, .004); }
  70% { opacity: 1; transform: scale(1, 1); filter: brightness(1.8); }
  100% { opacity: 0; transform: scale(1, 1); }
}
@keyframes crt-static {
  0% { opacity: .85; background-image: url("/img/marca/ruido-tv-1.png"); }
  20% { background-image: url("/img/marca/ruido-tv-2.png"); }
  40% { opacity: .5; background-image: url("/img/marca/ruido-tv-3.png"); }
  60% { background-image: url("/img/marca/ruido-tv-1.png"); }
  80% { background-image: url("/img/marca/ruido-tv-2.png"); }
  100% { opacity: .12; background-image: url("/img/marca/ruido-tv-3.png"); }
}
@keyframes crt-logo {
  0% { opacity: 0; transform: scale(.85); }
  30% { opacity: 1; }
  45% { opacity: .35; }
  60% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}

/* ---------- Pedido confirmado ---------- */
.order-card { max-width: 420px; margin: 0 auto 28px; border: 1px solid var(--line-2); padding: 18px; text-align: left; }
.order-card[hidden] { display: none; }
.center-msg .order-card p { margin: 0; max-width: none; }
.order-code { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.order-items { list-style: none; padding: 0; margin: 0; }
.order-items li, .order-row { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.order-row.total { font-weight: 700; color: var(--fg); border-bottom: 0; font-size: 16px; }
.center-msg .order-card .order-eta { font-size: 12px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); line-height: 1.5; }
