:root {
  color-scheme: dark;
  --bg: #151711;
  --surface: #1d2017;
  --raised: #292c20;
  --band: #24291a;
  --ink: #fbf9ed;
  --muted: #cecebe;
  --accent: #d9ec8c;
  --accent-ink: #222818;
  --line: #414537;
  --soft: #6b7254;
  --paper: #eeeee0;
  --paper-ink: #212417;
  --paper-muted: #43493a;
  --paper-line: #c5c8b8;
  --needle: #ffab3d;
  --gutter: clamp(20px, 5vw, 72px);
  --space: clamp(80px, 9vw, 140px);
  --header: 72px;
  --display: Manrope, 'Instrument Sans', system-ui, sans-serif;
  font-family: 'Instrument Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
body { margin: 0; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-decoration: none; }
button, summary { cursor: pointer; }
button, input { color: inherit; font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
h1, h2, h3, .wordmark { font-family: var(--display); }
h1, h2 { text-wrap: balance; line-height: 1.03; font-weight: 800; letter-spacing: -.045em; }
h2 { font-size: clamp(2.4rem, 5.2vw, 4.75rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); letter-spacing: -.03em; line-height: 1.2; }
p { color: var(--muted); line-height: 1.6; text-wrap: pretty; }
small { display: block; font-size: .8em; font-weight: 400; color: var(--muted); }
.shell { width: min(100% - 2 * var(--gutter), 1296px); margin-inline: auto; }
.section { padding-block: var(--space); }
.icon { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.skip { position: fixed; z-index: 10; left: 1rem; top: 1rem; transform: translateY(-200%); background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 6px; }
.skip:focus { transform: none; }

/* Cabecera */
.header { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header); }
.wordmark { color: var(--ink); font-weight: 800; line-height: .85; font-size: 2.25rem; letter-spacing: -.085em; padding-right: .085em; }
.header nav { display: flex; gap: clamp(18px, 2.6vw, 38px); font-size: .93rem; color: var(--muted); }
.header a:hover, .footer a:hover { color: var(--accent); }
.entry { font-weight: 700; font-size: .9rem; white-space: nowrap; border: 1px solid var(--soft); border-radius: 100px; padding: 11px 18px; }
.menu-toggle { display: none; background: none; border: 0; min-height: 44px; min-width: 56px; font-weight: 700; font-size: .9rem; }

/* Botones */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.button { display: inline-flex; width: fit-content; justify-content: center; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 100px; padding: 12px 22px; min-height: 50px; background: transparent; font-weight: 700; transition: background-color .2s, border-color .2s, transform .2s cubic-bezier(.16,1,.3,1); }
.button:active { transform: scale(.97); }
.primary { background: var(--accent); color: var(--accent-ink); }
.primary:hover { background: #eaf8b4; }
.ghost { border-color: var(--soft); }
.ghost:hover { background: var(--raised); border-color: var(--accent); }
.solid { background: var(--accent-ink); color: var(--ink); }
.solid:hover { background: #000; }

/* Portada */
.hero { overflow: clip; border-bottom: 1px solid var(--line); }
.hero-inner { --mark: min(calc((100vw - 2 * var(--gutter)) / 2.92), 442px, 42svh); display: grid; grid-template-columns: minmax(0, 47fr) minmax(0, 53fr); grid-template-rows: auto auto; align-items: center; padding-top: clamp(14px, 2.4svh, 34px); }
.hero-mark { grid-area: 1 / 1 / 2 / -1; justify-self: center; font-size: var(--mark); line-height: .76; color: var(--accent); padding-block: .04em .02em; user-select: none; }
.hero-copy { grid-area: 2 / 1; display: grid; gap: 18px; padding-block: 30px 32px; position: relative; z-index: 2; }
.hero-copy h1 { font-size: clamp(2.5rem, 4.4vw, 4.1rem); }
.hero-copy h1 em { display: block; font-style: normal; color: var(--accent); }
.hero-copy > p { max-width: 48ch; font-size: clamp(1.02rem, 1.25vw, 1.15rem); }
.hero-radio { grid-area: 2 / 2; width: 108%; max-width: none; height: auto; justify-self: end; align-self: end; margin: calc(var(--mark) * -.42) -2% 8px -8%; position: relative; z-index: 1; translate: var(--shift-x, 0) var(--shift-y, 0); transition: translate .5s cubic-bezier(.16,1,.3,1); filter: drop-shadow(0 24px 30px #0009); pointer-events: none; }

/* Escala de dial */
.tuner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; align-items: center; border-top: 1px solid var(--line); padding-block: 16px 20px; }
.tuner p { font-size: .92rem; text-align: right; }
.scale { position: relative; padding-top: 22px; background: repeating-linear-gradient(90deg, var(--soft) 0 1px, transparent 1px 10%) left top / 100% 14px no-repeat, repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 2%) left top / 100% 8px no-repeat; }
.scale div { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.needle { position: absolute; top: -3px; left: 72%; width: 2px; height: 22px; background: var(--needle); animation: tune 1.8s .3s cubic-bezier(.16,1,.3,1) backwards; }
@keyframes tune { from { left: 8%; } }

/* Ejemplo del panel */
.split-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 24px 80px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.split-head p { font-size: 1.1rem; max-width: 48ch; }
.dashboard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -20px #0008; }
.dash-top { display: flex; align-items: center; gap: 18px; padding: 22px clamp(18px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.track { margin-right: auto; }
.track h3 { font-size: 1.7rem; }
.track p { font-size: .9rem; }
.sample-label { color: var(--accent); font-size: .74rem; font-weight: 700; border: 1px dashed var(--soft); border-radius: 100px; padding: 5px 11px; white-space: nowrap; }
.dash-controls { display: flex; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 100px; }
.dash-controls button { min-height: 40px; border-radius: 100px; padding: 6px 18px; border: 0; background: transparent; font-size: .88rem; font-weight: 600; transition: background-color .2s, color .2s; }
.dash-controls button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.dash-view { padding: clamp(20px, 3vw, 36px); min-height: 360px; }
.plays { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.total { font-size: .95rem; }
.total b { font: 800 3.6rem/1 var(--display); letter-spacing: -.045em; color: var(--ink); margin-right: 8px; }
.bars { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.bars li { display: grid; grid-template-rows: auto 150px auto; justify-items: center; gap: 8px; }
.bars b { font: 700 1.05rem var(--display); }
.bars i { align-self: end; width: 100%; height: var(--size); background: var(--accent); border-radius: 6px 6px 0 0; }
.bars span { font-size: .75rem; color: var(--muted); white-space: nowrap; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; text-align: left; }
caption { text-align: left; font-weight: 700; padding-bottom: 12px; }
th, td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; font-weight: 400; }
thead th { font-size: .75rem; color: var(--muted); padding-block: 6px; }
tbody th { font-weight: 700; }
td:last-child, thead th:last-child { text-align: right; }
.data-title { font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.coverage-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) 4ch 12ch; align-items: center; gap: 18px; padding-block: 15px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.coverage-row label { font-weight: 700; }
.coverage-row b { text-align: right; }
.coverage-row span { text-align: right; color: var(--muted); font-size: .88rem; }
meter { width: 100%; height: 10px; appearance: none; background: var(--raised); border: 0; border-radius: 10px; overflow: hidden; }
meter::-webkit-meter-inner-element { height: 10px; }
meter::-webkit-meter-bar { height: 10px; background: var(--raised); border: 0; border-radius: 10px; }
meter::-webkit-meter-optimum-value { background: var(--accent); border-radius: 10px; }
meter::-moz-meter-bar { background: var(--accent); }
.fineprint { font-size: .86rem; max-width: 74ch; margin-top: 18px; }

/* Usos: hoja de papel */
.use-band { background: var(--paper); color: var(--paper-ink); }
.use-band p { color: var(--paper-muted); }
.uses h2 { max-width: 15ch; margin-bottom: clamp(36px, 5vw, 64px); }
.use-list article { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 10px 80px; align-items: baseline; border-top: 1px solid var(--paper-line); padding-block: 28px; }
.use-list article:last-child { padding-bottom: 0; }
.use-list h3 { font-size: clamp(1.55rem, 3.2vw, 2.7rem); font-weight: 800; }
.use-list p { max-width: 46ch; }

/* Cómo funciona */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; gap: clamp(24px, 4vw, 64px); margin-top: 56px; }
.steps li { counter-increment: step; border-top: 1px solid var(--soft); padding-top: 22px; }
.steps li::before { content: counter(step); display: block; font: 800 4rem/1 var(--display); color: var(--accent); margin-bottom: 28px; }
.steps p { margin-top: 12px; max-width: 42ch; }

/* Reporte mensual */
.report { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px clamp(40px, 7vw, 110px); align-items: center; border-top: 1px solid var(--line); }
.section-copy { display: grid; gap: 20px; align-content: start; }
.section-copy > p:not(.price) { font-size: 1.08rem; max-width: 52ch; }
.sheet { --muted: var(--paper-muted); background: var(--paper); color: var(--paper-ink); border-radius: 6px; padding: clamp(22px, 3.5vw, 44px); box-shadow: 0 30px 50px -24px #000c; }
.sheet header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 12px; padding-bottom: 22px; border-bottom: 2px solid var(--paper-ink); }
.sheet h3 { font-size: 1.7rem; }
.sheet .sample-label { color: var(--paper-ink); border-color: #7b816b; }
.sheet dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; padding-block: 15px; border-bottom: 1px solid var(--paper-line); font-size: .93rem; line-height: 1.45; }
.sheet dl > div:last-child { border: 0; padding-bottom: 0; }
.sheet dt { color: var(--paper-muted); }
.sheet dd { font-weight: 600; }

/* Planes */
#planes { border-top: 1px solid var(--line); }
.plan-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; border-radius: 18px; border: 1px solid var(--line); padding: clamp(24px, 3.5vw, 48px); }
.plan h3 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.price { color: var(--ink); font-family: var(--display); font-size: clamp(2.7rem, 4.6vw, 4.2rem); font-weight: 800; line-height: 1.05; letter-spacing: -.045em; margin-block: 10px; }
.price small { display: inline; margin-left: 4px; font-family: 'Instrument Sans', sans-serif; font-size: .95rem; font-weight: 600; letter-spacing: 0; color: inherit; }
.plan ul { list-style: none; padding: 0; width: 100%; margin-bottom: 14px; }
.plan li { padding-block: 10px; border-top: 1px solid var(--line); font-size: .93rem; }
.plan .button { margin-top: auto; }
.featured { --muted: #353c24; --line: #a9bb64; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.featured .price { color: var(--accent-ink); font-size: clamp(3rem, 6.8vw, 6rem); }
.featured :focus-visible { outline-color: var(--accent-ink); }
.plan-note { margin-top: 18px; font-size: .9rem; max-width: 80ch; }
.team { display: flex; justify-content: space-between; align-items: center; border-block: 1px solid var(--soft); gap: 40px; margin-top: 56px; padding-block: 36px; }
.team h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.team p { max-width: 70ch; margin-top: 12px; }
.team button { flex-shrink: 0; }

/* Envío a radios */
.dispatch-band { background: var(--band); }
.dispatch { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px clamp(40px, 7vw, 100px); align-items: center; }
.dispatch .section-copy .button { margin-top: 6px; }
.receipt { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 36px); }
.receipt-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.receipt table { margin-top: 22px; }

/* Historia, preguntas y cierre */
.story, .faq { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px clamp(32px, 6vw, 90px); align-items: start; }
.story { border-bottom: 1px solid var(--line); }
.story h2, .faq h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.story p { font-size: clamp(1.15rem, 1.8vw, 1.45rem); color: var(--ink); max-width: 56ch; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; list-style: none; font-weight: 700; font-size: 1.08rem; padding-block: 21px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--accent) 0 0) center / 100% 2px no-repeat, linear-gradient(var(--accent) 0 0) center / 2px 100% no-repeat; transition: rotate .3s cubic-bezier(.16,1,.3,1); }
details[open] summary::after { rotate: 45deg; }
summary:hover { color: var(--accent); }
details p { padding-bottom: 22px; max-width: 62ch; }
.closing { display: grid; justify-items: center; gap: 36px; text-align: center; }
.closing h2 { font-size: clamp(2.8rem, 7vw, 6rem); max-width: 12ch; }
.closing .actions { justify-content: center; }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-block: 30px 40px; border-top: 1px solid var(--line); font-size: .88rem; }

/* Solicitud de demostración */
dialog { color: var(--ink); background: var(--surface); border: 1px solid var(--soft); border-radius: 18px; width: min(calc(100% - 28px), 480px); max-height: calc(100dvh - 28px); padding: 26px; }
dialog::backdrop { background: #000b; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dialog-top h2 { font-size: 1.8rem; }
.close { display: grid; place-items: center; flex: none; border: 0; background: transparent; width: 44px; height: 44px; margin: -8px -10px 0 0; }
.offer { margin-top: 12px; color: var(--accent); font-weight: 700; }
.preview-note { margin-block: 10px 20px; font-size: .88rem; border: 1px dashed var(--soft); border-radius: 8px; padding: 10px 12px; }
form { display: grid; gap: 14px; }
form label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; }
input { width: 100%; min-height: 46px; background: var(--bg); border: 1px solid var(--soft); border-radius: 8px; padding: 8px 12px; font-size: 1rem; caret-color: var(--accent); }
form .button { width: 100%; margin-top: 4px; }
#request-done { display: grid; gap: 14px; }

@media (max-width: 960px) {
  .header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--soft); padding: 8px var(--gutter) 16px; font-size: 1.1rem; max-height: calc(100dvh - var(--header)); overflow: auto; }
  .header nav.open { display: flex; }
  .header nav a { padding-block: 13px; }
  .entry { margin-left: auto; }
  .menu-toggle { display: block; }
  .split-head, .report, .dispatch, .story, .faq, .plays { grid-template-columns: minmax(0, 1fr); }
  .use-list article { grid-template-columns: minmax(0, 1fr); }
  .team { flex-direction: column; align-items: flex-start; gap: 22px; }
}
@media (max-width: 700px) {
  :root { --header: 64px; }
  .header-inner { gap: 10px; }
  .header .wordmark { font-size: 2rem; }
  .entry { padding: 9px 14px; }
  .hero-inner { --mark: calc((100vw - 2 * var(--gutter)) / 2.88); grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; padding-top: 20px; }
  .hero-radio { grid-area: 2 / 1; width: min(100%, 440px); justify-self: center; margin: calc(var(--mark) * -.2) 0 0; }
  .hero-copy { grid-area: 3 / 1; padding-block: 18px 28px; gap: 14px; }
  .hero-copy h1 { font-size: clamp(2.05rem, 9.4vw, 3.4rem); }
  .hero-copy .actions { flex-direction: column; align-items: stretch; }
  .hero-copy .button { width: 100%; }
  .tuner { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tuner p { text-align: left; }
  .steps, .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .steps li::before { font-size: 3rem; margin-bottom: 14px; }
  .plan-grid .featured { order: -1; }
  .dash-top { flex-wrap: wrap; gap: 12px; }
  .dash-controls { width: 100%; }
  .dash-controls button { flex: 1; min-height: 44px; }
  .dash-view { min-height: 0; }
  .bars { gap: 8px; }
  .bars span { font-size: .7rem; }
  .coverage-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
  .coverage-row meter { grid-area: 2 / 1 / 3 / -1; }
  .coverage-row b { grid-area: 1 / 2; }
  .coverage-row span { grid-area: 3 / 1; text-align: left; }
  .sheet dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero-radio { translate: none; }
}
/* Escritorio de poca altura: la portada completa debe caber */
@media (min-width: 961px) and (max-height: 760px) {
  .hero-inner { --mark: min(calc((100vw - 2 * var(--gutter)) / 2.92), 31svh); padding-top: 12px; }
  .hero-copy { gap: 12px; padding-block: 18px 20px; }
  .hero-copy h1 { font-size: min(4.4vw, 6.4svh); }
  .hero-copy > p { font-size: 1rem; max-width: 54ch; }
  .hero-radio { width: 90%; }
}
