/* Hallmark · shape: Workbench · genre: atmospheric · theme: Midnight (deal 1/3, seed rastro-perdido-anuncios-video-92c2·fe27084d·2026-11-19·r0), retuned to a VHS tape look by request · job: hire · draw: 9a5836
 * hero: Ledge · nav: floating bar · footer: slim tape end · imagery: the product (five real ads) · signature: the five real ads side by side under a live REC counter, ours playing
 * axes: dark/condensed-sans/neutral · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R5 V4 · weakest: P, the page argues with the work itself; cut the scene-by-scene case and every quality adjective to keep it minimal */
/* Layout: one strip of real ads as the hero field, the head under it; then how, reach, prices and contact, each one screen */
:root {
  color-scheme: dark;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem;
  --text-display: clamp(2.75rem, 5vw + 1rem, 5.5rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-success: oklch(80% 0.13 150);
  --container: 1280px; --gutter: 64px; --gap-columns: 32px; --section-gap: 144px;
  --z-toast: 500;
  /* VHS tape: near-black ground, white ink, the REC red as the one signal, the tape counter face for the HUD */
  --color-paper: oklch(9% 0.004 270); --color-paper-2: oklch(14% 0.006 270); --color-paper-3: oklch(19% 0.008 270);
  --color-ink: oklch(96% 0.005 270); --color-ink-2: oklch(86% 0.004 270); --color-muted: oklch(68% 0.008 270);
  --color-rule: oklch(24% 0.008 270); --color-rule-2: oklch(34% 0.01 270);
  --color-accent: oklch(57% 0.22 27); --color-accent-ink: oklch(98% 0.005 27); --color-focus: oklch(78% 0.16 27);
  --color-alt: oklch(80% 0.12 200); --color-scan: oklch(100% 0 0 / 0.035); --color-ghost-a: oklch(64% 0.23 27 / 0.75); --color-ghost-b: oklch(80% 0.12 200 / 0.6);
  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif; --font-body: "Mona Sans", ui-sans-serif, system-ui, sans-serif; --font-hud: "VT323", "Courier New", monospace;
  --radius: 0;
  --shadow-card: 0 24px 48px -24px oklch(8% 0.05 266 / 0.8);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.6; -webkit-font-smoothing: antialiased; }
::selection { background: var(--color-accent); color: var(--color-accent-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
a:hover { text-decoration-color: var(--color-accent); }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; line-height: 1; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { font-size: var(--text-display); max-width: 16ch; }
h2 { font-size: var(--text-section); max-width: 20ch; }
h3 { font-size: var(--text-2xl); font-weight: 500; }
p { margin: 0; text-wrap: pretty; max-width: 60ch; }
ol, ul { margin: 0; padding: 0; list-style: none; }
img, video { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.lead { font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); max-width: 38ch; }
.section { padding-block: var(--section-gap) 0; }
.section-head { display: grid; gap: var(--space-md); margin-bottom: var(--space-xl); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: 1px solid transparent; border-radius: var(--radius); background: none; color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-ink); }
.btn--secondary { border-color: var(--color-rule-2); }
.btn--secondary:hover { background: var(--color-paper-2); }
.btn--small { min-height: 40px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* nav */
.nav-wrap { padding-top: max(var(--space-md), env(safe-area-inset-top, 0px)); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 64px; }
.brand { display: flex; align-items: center; gap: var(--space-sm); text-decoration: none; }
.brand img { width: 46px; height: auto; }
.brand { transition: opacity var(--dur-short) var(--ease-out); }
.brand:hover { opacity: 0.85; }
.brand-text { display: grid; gap: var(--space-3xs); padding-left: var(--space-sm); border-left: 2px solid var(--color-accent); line-height: 1; }
.brand-text b { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); text-transform: uppercase; }
.brand-text small { font-family: var(--font-hud); font-size: 1.15rem; color: var(--color-ink-2); }
.nav-links { display: flex; align-items: center; gap: var(--space-lg); font-size: var(--text-sm); font-weight: 500; }
.nav-links > a:not(.btn) { color: var(--color-ink-2); text-decoration: none; }
.nav-links > a:not(.btn):hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }
/* phones keep the lockup and the networks; the hero's own button is the action there */
@media (max-width: 40rem) {
  .nav-links > a { display: none; }
  .nav { gap: var(--space-sm); }
  .brand { gap: var(--space-xs); min-width: 0; }
  .brand img { width: 36px; flex: none; }
  .brand-text { padding-left: var(--space-xs); }
  .brand-text b { font-size: 1rem; white-space: nowrap; }
  .brand-text small { font-size: 0.95rem; white-space: nowrap; }
}

.social { display: flex; gap: var(--space-3xs); }
.social a { display: grid; place-items: center; width: 40px; height: 40px; color: var(--color-ink-2); transition: color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.social svg { fill: currentColor; }
.social a:hover { color: var(--color-accent); transform: translateY(-2px); }
.social a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 0; }
@media (max-width: 40rem) { .social a { width: 34px; height: 36px; } .social svg { width: 18px; height: 18px; } }
@media (max-width: 22rem) { .brand-text small { display: none; } }

/* hero: the strip of ads, the head at its base */
.hero { padding-block: var(--space-lg) 0; }
.strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-md); }
.ad { display: grid; gap: var(--space-sm); align-content: start; }
.ad video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--color-paper-2); border-radius: var(--radius); }
.ad figcaption { display: grid; gap: var(--space-3xs); font-size: var(--text-sm); line-height: 1.35; }
.ad figcaption b { font-weight: 500; }
.ad figcaption span { color: var(--color-muted); }
.ad--ours video { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.hero-base { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl) var(--space-3xl); align-items: end; margin-top: var(--space-xl); }
.hero-side { display: grid; gap: var(--space-lg); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }
.settle { animation: settle var(--dur-long) var(--ease-out) both; }
@keyframes settle { from { opacity: 0.6; } }
@media (max-width: 60rem) {
  :root { --gutter: 24px; --section-gap: 96px; }
  .strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 40%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-xs); }
  .ad { scroll-snap-align: start; }
  .hero-base { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap: 72px; --gap-columns: 16px; } .strip { grid-auto-columns: 58%; } }

/* steps on a band */
.band { background: var(--color-paper-2); padding-block: var(--space-3xl); margin-top: var(--section-gap); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); counter-reset: paso; }
.steps li { display: grid; gap: var(--space-sm); align-content: start; padding-top: var(--space-lg); border-top: 2px solid var(--color-accent); counter-increment: paso; }
.steps li::before { content: "Paso " counter(paso); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.steps p { color: var(--color-ink-2); }
@media (max-width: 60rem) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* the figure as the statement */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); margin-bottom: var(--space-2xl); }
.ways li { display: grid; gap: var(--space-sm); align-content: start; }
.ways p { color: var(--color-ink-2); }
@media (max-width: 60rem) { .ways { grid-template-columns: minmax(0, 1fr); } }
.figs { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: var(--space-lg); }
.figs > p { max-width: none; display: grid; align-content: space-between; gap: var(--space-lg); padding: var(--space-lg); background: var(--color-paper-2); min-width: 0; }
.figs > .figs-main { box-shadow: inset 0 2px 0 var(--color-accent); }
.fig-label { font-family: var(--font-hud); font-size: 1.2rem; line-height: 1.2; color: var(--color-muted); }
.fig { display: block; font-family: var(--font-hud); font-weight: 400; font-size: clamp(4rem, 9vw, 8.5rem); line-height: 0.85; font-variant-numeric: tabular-nums; overflow-wrap: break-word; min-width: 0; }
.fig--s { font-size: clamp(2.75rem, 4.5vw, 4.5rem); }
.source { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
@media (max-width: 60rem) { .figs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .figs-main { grid-column: 1 / -1; } }
@media (max-width: 30rem) { .figs { grid-template-columns: minmax(0, 1fr); } }

/* packages: hairline rows */
.rows { border-top: 1px solid var(--color-rule-2); }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 3fr); gap: var(--space-sm) var(--gap-columns); padding-block: var(--space-lg); border-bottom: 1px solid var(--color-rule-2); align-items: baseline; }
.row p { color: var(--color-ink-2); }
.price { justify-self: end; text-align: right; display: grid; gap: var(--space-3xs); font-variant-numeric: tabular-nums; }
.price b { font-family: var(--font-display); font-weight: 500; font-size: var(--text-2xl); line-height: 1.1; font-variant-numeric: tabular-nums; }
.price s, .price small { font-size: var(--text-sm); color: var(--color-muted); }
.rows-alt { margin-top: var(--space-2xl); padding: var(--space-xl) var(--space-lg) var(--space-md); background: var(--color-paper-2); box-shadow: inset 0 2px 0 var(--color-alt); }
.rows-title { margin-bottom: var(--space-md); font-size: var(--text-xl); color: var(--color-alt); }
.rows-alt .rows { border-top-color: var(--color-rule-2); }
.rows-alt .row:last-child { border-bottom: 0; }
.rows-alt .price b { color: var(--color-alt); }
.terms { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
@media (max-width: 48rem) { .row { grid-template-columns: minmax(0, 1fr); } .price { justify-self: start; text-align: left; } }

/* contact */
.close { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl) var(--space-3xl); align-items: start; }
.channels { display: grid; border-top: 1px solid var(--color-rule-2); }
.channel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-xs) var(--space-lg); padding-block: var(--space-lg); border-bottom: 1px solid var(--color-rule-2); }
.channel-name { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); text-transform: uppercase; line-height: 1.1; }
.channel-detail { grid-column: 1; font-size: var(--text-md); color: var(--color-ink-2); overflow-wrap: anywhere; min-width: 0; }
.channel > .btn, .channel-actions { grid-row: 1 / span 2; grid-column: 2; }
.channel-actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
/* the address never breaks; its buttons sit under it instead of beside it */
.channel--mail { grid-template-columns: minmax(0, 1fr); }
.channel--mail .channel-actions { grid-row: auto; grid-column: 1; margin-top: var(--space-xs); }
#mail { white-space: nowrap; overflow-wrap: normal; }
.copied { font-size: var(--text-sm); color: var(--color-success); grid-column: 1 / -1; }
.copied:empty { display: none; }
.place { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
@media (max-width: 60rem) { .close { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 30rem) { .channel { grid-template-columns: minmax(0, 1fr); } .channel > .btn, .channel-actions { grid-row: auto; grid-column: 1; justify-self: start; } }

/* footer: a slim tape end, brand line and icons, then the STOP bar */
.footer { margin-top: var(--space-3xl); background: var(--color-paper-2); box-shadow: inset 0 2px 0 var(--color-accent); padding-block: var(--space-xl) max(var(--space-md), env(safe-area-inset-bottom, 0px)); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg) var(--space-2xl); }
.foot-brand { display: flex; align-items: center; gap: var(--space-lg); min-width: 0; }
.foot-brand img { width: 72px; height: auto; flex: none; }
.foot-brand p { color: var(--color-ink-2); max-width: 40ch; }
.foot-meta { display: block; margin-top: var(--space-2xs); font-family: var(--font-hud); font-size: 1.15rem; color: var(--color-muted); }
.foot-icons { display: flex; gap: var(--space-xs); }
.foot-icons a { display: grid; place-items: center; width: 48px; height: 48px; color: var(--color-ink); background: var(--color-paper-3); transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.foot-icons svg { fill: currentColor; }
.foot-icons a:hover { background: var(--color-accent); transform: translateY(-2px); }
.tape-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm) var(--space-lg); margin-top: var(--space-xl); padding-top: var(--space-md); border-top: 1px solid var(--color-rule-2); font-family: var(--font-hud); font-size: 1.2rem; color: var(--color-muted); }
.stop { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--color-ink); }
.stop::before { content: ""; width: 11px; height: 11px; background: var(--color-accent); }
.eject { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--color-ink); text-decoration: none; }
.eject::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 0 6px 9px 6px; border-color: transparent transparent currentColor transparent; transition: transform var(--dur-short) var(--ease-out); }
.eject:hover { color: var(--color-accent); }
.eject:hover::before { transform: translateY(-3px); }
@media (max-width: 40rem) { .foot-brand { align-items: flex-start; } .foot-brand img { width: 56px; } .foot-icons a { width: 44px; height: 44px; } }
@media (min-width: 60.01rem) { #contacto .section-head { position: sticky; top: var(--space-xl); align-self: start; } }
/* contact perks: what a business gets when it writes */
.perks { display: grid; gap: var(--space-sm); margin-top: var(--space-lg); }
.perks li { display: flex; align-items: baseline; gap: var(--space-sm); font-family: var(--font-hud); font-size: 1.3rem; line-height: 1.2; color: var(--color-ink); }
.perks li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--color-accent); transform: translateY(-1px); }

/* VHS layer: scanlines, the tape HUD, button and tile motion */
body::after { content: ""; position: fixed; inset: 0; z-index: var(--z-toast); pointer-events: none; background: repeating-linear-gradient(0deg, var(--color-scan) 0 1px, transparent 1px 3px); }
.hud { display: flex; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-md); font-family: var(--font-hud); font-size: 1.5rem; line-height: 1; color: var(--color-ink); }
.rec { display: inline-flex; align-items: center; gap: var(--space-xs); }
.rec::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--color-accent); animation: blink 1s steps(2, jump-none) 8; }
@keyframes blink { 50% { opacity: 0; } }
.tc { font-variant-numeric: tabular-nums; color: var(--color-ink-2); }
.steps li::before, .channel-detail, .source, .terms, .ad figcaption span { font-family: var(--font-hud); font-size: 1.15rem; line-height: 1.2; }
h1.settle { animation: tracking 700ms steps(1, end) both; }
@keyframes tracking { 0% { opacity: 0.2; transform: translateX(-6px); } 15% { opacity: 1; transform: translateX(4px); } 30% { opacity: 0.5; transform: translateX(-2px); } 45% { opacity: 1; transform: none; } }

/* buttons: a play mark that rolls forward, a red ghost that slips on hover */
.btn { position: relative; isolation: isolate; overflow: hidden; gap: var(--space-xs); font-family: var(--font-hud); font-size: 1.35rem; text-transform: uppercase; }
.btn--small { font-size: 1.15rem; }
.btn--primary::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent currentColor; transition: transform var(--dur-short) var(--ease-out); }
.btn--primary:hover::before { transform: translateX(4px); }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, transparent, var(--color-scan), transparent); transform: translateX(-100%); }
.btn:hover::after { animation: sweep 600ms var(--ease-out); }
@keyframes sweep { to { transform: translateX(100%); } }
.btn:hover { text-shadow: 2px 0 var(--color-ghost-a), -2px 0 var(--color-ghost-b); animation: jitter 240ms steps(2, end) 1; }
@keyframes jitter { 0% { transform: translateX(-1px); } 50% { transform: translateX(1px); } 100% { transform: none; } }
.btn--primary:hover { background: var(--color-ink); color: var(--color-paper); text-shadow: none; }
.btn--secondary { border-color: var(--color-rule-2); }
.btn--secondary:hover { border-color: var(--color-ink-2); background: var(--color-paper-2); }

/* tiles lift a step and show the tape counter on hover */
.ad video { transition: transform var(--dur-short) var(--ease-out), filter var(--dur-short) var(--ease-out); filter: saturate(0.85) contrast(1.05); }
.ad:hover video, .ad:focus-within video { transform: translateY(-4px); filter: none; }
.ad--ours video { outline-color: var(--color-accent); }
.channel { transition: background-color var(--dur-short) var(--ease-out); }
.channel:hover { background: var(--color-paper-2); }
.steps li { border-top-color: var(--color-accent); }

[data-loop-toggle] { display: none; }
html.js [data-loop-toggle] { display: inline-flex; justify-self: start; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
/* v2: one monitor in the hero, client ads in a tape-list player, package cards, sticky nav */
.nav-wrap { position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); background: color-mix(in oklch, var(--color-paper) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-rule); }
.nav { min-height: 72px; }
html { scroll-padding-top: calc(88px + env(safe-area-inset-top, 0px)); }
.nav-links > a { white-space: nowrap; }
@media (max-width: 60rem) { .nav-links { gap: var(--space-md); } .nav-links > a[href$="#como"] { display: none; } }
.hero { padding-block: var(--space-2xl) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-2xl) var(--space-3xl); align-items: center; }
.hero-copy { display: grid; gap: var(--space-lg); align-content: center; min-width: 0; }
.hero-copy .hud { justify-content: flex-start; gap: var(--space-lg); margin: 0; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); margin-top: var(--space-md); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule-2); }
.facts li { display: grid; gap: var(--space-3xs); min-width: 0; }
.facts b { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); text-transform: uppercase; line-height: 1.1; }
.facts span { font-family: var(--font-hud); font-size: 1.15rem; line-height: 1.2; color: var(--color-muted); }
.monitor { display: grid; gap: var(--space-sm); width: 100%; max-width: 380px; justify-self: center; }
.screen { position: relative; padding: 10px; background: var(--color-paper-3); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--color-rule-2); }
.screen video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--color-paper-2); }
.screen::after { content: ""; position: absolute; inset: 10px; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, transparent 60%, oklch(0% 0 0 / 0.45)); }
.monitor figcaption { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-2); }
.monitor figcaption b { font-weight: 500; color: var(--color-ink); }
.monitor [data-loop-toggle] { justify-self: auto; }

.deck { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-xl) var(--space-2xl); align-items: start; }
.player { max-width: 380px; width: 100%; padding: 10px; background: var(--color-paper-3); box-shadow: inset 0 0 0 1px var(--color-rule-2); }
.player video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--color-paper-2); }
.tapes { display: grid; gap: var(--space-xs); align-content: start; }
.tape { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: var(--space-md); width: 100%; padding: var(--space-sm); text-align: left; color: var(--color-ink); background: var(--color-paper-2); border: 1px solid transparent; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.tape img { width: 56px; aspect-ratio: 9 / 16; object-fit: cover; filter: saturate(0.8); }
.tape-text { display: grid; gap: var(--space-3xs); min-width: 0; }
.tape-text b { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); text-transform: uppercase; line-height: 1.1; }
.tape-text span, .tape-len { font-family: var(--font-hud); font-size: 1.15rem; line-height: 1.2; color: var(--color-muted); }
.tape:hover { background: var(--color-paper-3); }
.tape[aria-pressed="true"] { border-color: var(--color-accent); background: var(--color-paper-3); }
.tape[aria-pressed="true"] .tape-len { color: var(--color-accent); }
.tape[aria-pressed="true"] .tape-len::before { content: "\25B6  "; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
.plan { position: relative; display: grid; grid-template-rows: auto 1fr auto auto; gap: var(--space-md); padding: var(--space-lg); background: var(--color-paper-2); box-shadow: inset 0 0 0 1px var(--color-rule); min-width: 0; }
.plan p:not(.price) { color: var(--color-ink-2); }
.plan .price { justify-self: start; text-align: left; }
.plan .btn { justify-self: start; }
.plan--featured { grid-column: span 2; grid-template-rows: auto auto 1fr auto auto; box-shadow: inset 0 0 0 2px var(--color-accent); }
.badge { justify-self: start; padding: var(--space-3xs) var(--space-xs); font-family: var(--font-hud); font-size: 1.15rem; line-height: 1.1; text-transform: uppercase; color: var(--color-accent-ink); background: var(--color-accent); }
.ticks { display: grid; gap: var(--space-sm); }
.ticks li { position: relative; padding-left: var(--space-lg); color: var(--color-ink-2); max-width: 62ch; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 10px; height: 10px; background: var(--color-accent); }
.rows-alt .plan { background: var(--color-paper-3); }
.rows-alt .plan .price b { color: var(--color-alt); }
@media (max-width: 60rem) {
  .hero-grid, .deck { grid-template-columns: minmax(0, 1fr); }
  .monitor { max-width: 320px; }
  .player { max-width: 340px; justify-self: center; }
  .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
/* phones and tablets: the video right under the buttons, the three facts in one compact row after it */
@media (max-width: 60rem) {
  .hero-grid { gap: var(--space-lg); }
  .hero-copy { display: contents; }
  .hero-copy > .hud { order: 1; } .hero-copy > h1 { order: 2; } .hero-copy > .lead { order: 3; } .hero-copy > .actions { order: 4; }
  .monitor { order: 5; max-width: 300px; margin-top: var(--space-sm); justify-self: start; }
  .facts { order: 6; }
}
@media (max-width: 40rem) {
  .monitor { max-width: min(280px, 78vw); }
  .facts { gap: var(--space-sm); margin-top: 0; }
  .facts b { font-size: var(--text-lg); }
  .facts span { font-size: 1rem; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan--featured { grid-column: auto; }
  .hero { padding-block: var(--space-xl) 0; }
}

/* v2 effects: a light sheen across the logo, a slow light on the main buttons' border, gradient borders on hover */
@property --rp-a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.brand { position: relative; }
.brand img { transition: filter var(--dur-long) var(--ease-out); }
.brand:hover img { filter: drop-shadow(1.5px 0 var(--color-ghost-a)) drop-shadow(-1.5px 0 var(--color-ghost-b)); }
/* the logo is white, so the sheen is the VHS ghost colours (red/cyan); masked by the logo so only its shapes catch it */
.brand::before { content: ""; position: absolute; left: 0; top: 50%; width: 46px; aspect-ratio: 154 / 160; transform: translateY(-50%); pointer-events: none;
  background: linear-gradient(105deg, transparent 36%, var(--color-ghost-b) 45%, var(--color-accent) 53%, transparent 64%) no-repeat; background-size: 300% 100%; background-position: 120% 0;
  -webkit-mask: url(media/logo.png) center / contain no-repeat; mask: url(media/logo.png) center / contain no-repeat; }
.brand.sheen::before, .brand:hover::before { animation: rp-sheen 1.2s var(--ease-out) both; }
@keyframes rp-sheen { from { background-position: 120% 0; } to { background-position: -20% 0; } }
.btn--primary:hover { box-shadow: 0 10px 30px -10px var(--color-accent); }
.btn--shimmer { border: 1.5px solid transparent; background: linear-gradient(var(--color-accent), var(--color-accent)) padding-box, conic-gradient(from var(--rp-a), var(--color-accent) 0 62%, oklch(97% 0.03 27) 80%, var(--color-accent) 96%) border-box; animation: rp-spin 4.5s linear infinite; }
@keyframes rp-spin { to { --rp-a: 360deg; } }
.btn--shimmer:hover { background: var(--color-ink); }
.btn--secondary::before { content: ""; position: absolute; inset: 0; padding: 1px; pointer-events: none; background: linear-gradient(110deg, var(--color-accent), var(--color-alt)); opacity: 0; transition: opacity var(--dur-long) var(--ease-out);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.btn--secondary:hover { box-shadow: 0 0 22px -6px var(--color-ghost-a); }
.btn--secondary:hover::before, .btn--secondary:focus-visible::before { opacity: 1; }
@media (max-width: 40rem) { .brand::before { width: 36px; } }
@media (min-width: 40.01rem) { .brand { flex: none; } .brand-text b, .brand-text small { white-space: nowrap; } }
@media (max-width: 72rem) { .nav-links > a[href$="#como"] { display: none; } }
/* the logo already reads "Rastro Perdido"; on the narrowest phones the text beside it would run under the icons */
@media (max-width: 22rem) { .brand-text { display: none; } }
@media (prefers-reduced-motion: reduce) { .btn--shimmer { animation: none; } }

/* Logo loader: contours draw, fill with the original logo, hold, then the overlay fades to the page. Once per visit. */
.rp-loader { display: none; }
html.rp-loading { overflow-y: hidden; animation: rp-unlock 0s 9s forwards; }
html.rp-loading .rp-loader { display: grid; place-items: center; position: fixed; inset: 0; z-index: 1000; background: var(--color-paper); animation: rp-failsafe 0s 9s forwards; }
.rp-loader__logo { width: min(clamp(200px, 34vw, 360px), 58svh); height: auto; overflow: visible; }
@media (max-width: 500px) { .rp-loader__logo { width: min(62vw, 58svh); } }
.rp-loader__lines path { stroke: var(--color-ink); stroke-width: 3; }
.rp-loader__fill path { fill: var(--color-ink); fill-rule: evenodd; }
.rp-loader__skip { position: absolute; right: max(var(--space-lg), env(safe-area-inset-right, 0px)); bottom: max(var(--space-lg), env(safe-area-inset-bottom, 0px)); padding: var(--space-xs) var(--space-md); font: 400 var(--text-lg)/1 var(--font-hud); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); background: none; border: 1px solid var(--color-rule-2); cursor: pointer; }
.rp-loader__skip:hover { color: var(--color-ink); border-color: var(--color-muted); }
@keyframes rp-failsafe { to { visibility: hidden; } }
@keyframes rp-unlock { to { overflow-y: visible; } }

/* relatos: "Contanos tu historia" (backend: worker rastro-relatos en /api/relato) */
[hidden] { display: none !important; }
.story { display: grid; gap: var(--space-lg); }
.field { display: grid; gap: var(--space-xs); align-content: start; min-width: 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-lg) var(--space-md); }
.field > label, .field > .label { font-family: var(--font-hud); font-size: 1.3rem; line-height: 1.1; color: var(--color-ink); }
.field small, .hint { font-family: var(--font-hud); font-size: 1.1rem; line-height: 1.2; color: var(--color-muted); }
.story input[type="text"], .story textarea { width: 100%; min-height: 48px; padding: var(--space-sm) var(--space-md); font: var(--text-md)/1.5 var(--font-body); color: var(--color-ink); background: var(--color-paper-2); border: 1px solid var(--color-rule-2); border-radius: var(--radius); transition: border-color var(--dur-short) var(--ease-out); }
.story textarea { min-height: 200px; resize: vertical; }
.story input::placeholder, .story textarea::placeholder { color: var(--color-muted); opacity: 1; }
.story input[type="text"]:hover, .story textarea:hover { border-color: var(--color-muted); }
.story input[type="text"]:focus-visible, .story textarea:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 0; border-color: transparent; }
.box { display: grid; gap: var(--space-sm); padding: var(--space-md); background: var(--color-paper-2); box-shadow: inset 0 0 0 1px var(--color-rule-2); }
.rec-controls, .take { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); }
.take audio { flex: 1 1 260px; min-width: 0; height: 44px; }
.rec-live { display: inline-flex; align-items: center; gap: var(--space-xs); font-family: var(--font-hud); font-size: 1.5rem; line-height: 1; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.rec-live::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--color-accent); animation: blink 1s steps(2, jump-none) infinite; }
.file-pick { position: relative; }
.file-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-pick input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.files { display: grid; gap: var(--space-xs); }
.files li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-md); background: var(--color-paper-2); box-shadow: inset 0 0 0 1px var(--color-rule); }
.fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsize { font-family: var(--font-hud); font-size: 1.1rem; color: var(--color-muted); }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-sm); align-items: start; color: var(--color-ink-2); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--color-accent); cursor: pointer; }
.progress { height: 6px; background: var(--color-paper-3); }
.progress span { display: block; width: 0; height: 100%; background: var(--color-accent); transition: width var(--dur-short) linear; }
.form-msg { font-family: var(--font-hud); font-size: 1.25rem; line-height: 1.2; color: var(--color-ink-2); }
.form-msg:empty { display: none; }
.form-msg--error { color: var(--color-focus); }
.story > .btn { justify-self: start; }
.done { display: grid; gap: var(--space-md); justify-items: start; padding: var(--space-xl) var(--space-lg); background: var(--color-paper-2); box-shadow: inset 0 2px 0 var(--color-accent); }
.done:focus { outline: none; }
.done p { color: var(--color-ink-2); }

@media (max-width: 40rem) { .field-row { grid-template-columns: minmax(0, 1fr); } }
/* /historia: the form is the page, so it starts near the top */
.page-top { padding-top: var(--space-2xl); }
.tape-link { color: var(--color-ink); text-decoration-color: var(--color-accent); }
.tape-link:hover { color: var(--color-accent); }
/* /historia: video vertical "así se completa" bajo los perks */
.howto { display: grid; gap: var(--space-xs); width: min(100%, 280px); margin-top: var(--space-xl); }
.howto video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: #000; box-shadow: 0 0 0 1px var(--color-rule-2); }
.howto figcaption { font-family: var(--font-hud); font-size: 1.1rem; line-height: 1.2; color: var(--color-muted); }
