/* Jumpdot CMP · página de producto (/cmp). Marca Jumpdot: navy, teal, DM Sans.
   Las páginas hijas siguen usando cmp.css. */

:root {
  --navy: #0b1828;
  --navy-2: #132439;
  --navy-3: #1b3150;
  --paper: #ffffff;
  --stone: #eef1f4;
  --stone-2: #e2e7ec;
  --ink: #0b1828;
  --soft: #46566b;
  --on-dark: #ffffff;
  --soft-dark: #a9b7c9;
  --accent: #2dd4bf;
  --accent-ink: #0b1828;
  --teal-ink: #0f766e;
  --mint: #ccfbf1;
  --err: #b91c1c;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(1.75rem, 0.6rem + 4.6vw, 4.75rem);

  --m: clamp(20px, 3.2vw, 48px);
  --max: 1360px;
  --gap: 24px;
  --sec: clamp(96px, 12vw, 200px);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --font: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace; /* taste-skill-ignore: código o fragmento data-ui */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
pre, code { font-family: var(--mono); font-variant-ligatures: none; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr { 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: calc(var(--max) + 2 * var(--m)); margin: 0 auto; padding: 0 var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance; }
h2 { font-size: var(--step-head); }
.lead { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.01em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 0;
  font-weight: 700; font-size: var(--step-body); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.btn:hover { background: #5eead4; }
.btn:active { transform: translateY(1px) scale(.985); }
.link {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 5px; text-decoration-color: var(--accent);
  transition: text-decoration-color .18s var(--ease);
}
.link:hover { text-decoration-color: currentColor; }

/* ---------- Barra superior ---------- */
.top { background: var(--navy); color: var(--on-dark); position: relative; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.top .mark img { height: 26px; width: auto; }
.top nav { display: flex; gap: 28px; margin-left: auto; font-weight: 600; font-size: var(--step-small); }
.top nav a { text-decoration: none; color: var(--soft-dark); transition: color .18s var(--ease); }
.top nav a:hover, .top nav a[aria-current] { color: var(--on-dark); }
.top .btn { min-height: 44px; padding: 0 20px; font-size: var(--step-small); }
.menu-btn { display: none; background: none; border: 0; color: var(--on-dark); font-weight: 600; min-height: 44px; padding: 0 4px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--on-dark); padding: clamp(40px, 6vw, 88px) 0 0; overflow: hidden; }
.hero h1 { grid-column: 1 / span 11; font-size: var(--step-display); letter-spacing: -0.045em; line-height: 0.95; }
.hero-copy { grid-column: 1 / span 5; padding-top: 40px; }
.hero-copy p { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.4; max-width: 46ch; }
.hero-copy p b { font-weight: 600; }
.hero-copy .acts { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 36px; }
.hero-copy .acts .link { color: var(--on-dark); }
.hero-copy ul { margin-top: 48px; display: grid; gap: 10px; font-size: var(--step-small); color: var(--soft-dark); }
.hero-copy ul b { color: var(--on-dark); font-weight: 600; }

.stage {
  grid-column: 6 / -1; margin-top: 40px;
  background: var(--navy-2);
  padding: clamp(24px, 3vw, 44px) clamp(20px, 3vw, 44px) 0;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start;
  min-height: 520px;
}
.stage-note { grid-column: 1 / -1; font-size: var(--step-small); color: var(--soft-dark); padding-bottom: 24px; }

/* Banner de ejemplo: fragmento real de la interfaz */
.ui-banner {
  background: #fff; color: #0b1828; border-radius: 12px; padding: 20px;
  font-size: 15px; line-height: 1.45;
}
.ui-banner .t { font-weight: 700; font-size: 16px; }
.ui-banner p { margin-top: 6px; color: #33435a; font-size: 14px; }
.ui-banner .row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 16px; }
.ui-banner .row button, .ui-banner .save {
  min-height: 44px; padding: 0 10px; border-radius: 8px; border: 1px solid #b9c4d1; background: #fff; /* taste-skill-ignore: código o fragmento data-ui */
  font-size: 13.5px; font-weight: 600; cursor: pointer; line-height: 1.15;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease);
}
.ui-banner .row button:hover { border-color: #0b1828; }
.ui-banner .row button:active, .ui-banner .save:active { transform: scale(.97); }
.ui-banner .row button[aria-pressed="true"] { background: #0b1828; color: #fff; border-color: #0b1828; }
.ui-banner .cats { margin-top: 14px; display: grid; gap: 2px; }
.ui-banner .cats[hidden] { display: none; }
.ui-banner .cats label { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; font-size: 14px; font-weight: 600; border-top: 1px solid #e3e8ee; } /* taste-skill-ignore: código o fragmento data-ui */
.ui-banner .cats label small { display: block; font-weight: 400; color: #46566b; font-size: 13px; }
.ui-banner .cats input { width: 20px; height: 20px; accent-color: #0f766e; flex: none; }
.ui-banner .save { width: 100%; margin-top: 10px; background: #0b1828; color: #fff; border-color: #0b1828; }
.ui-banner .bfoot { margin-top: 12px; font-size: 13px; color: #46566b; display: flex; justify-content: space-between; gap: 8px; }

/* Comprobante: tira de papel impresa */
.slip {
  background: #fff; color: #0b1828; padding: 20px 20px 34px; font-size: 13.5px; line-height: 1.4;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), 95% 100%, 90% calc(100% - 10px), 85% 100%, 80% calc(100% - 10px), 75% 100%, 70% calc(100% - 10px), 65% 100%, 60% calc(100% - 10px), 55% 100%, 50% calc(100% - 10px), 45% 100%, 40% calc(100% - 10px), 35% 100%, 30% calc(100% - 10px), 25% 100%, 20% calc(100% - 10px), 15% 100%, 10% calc(100% - 10px), 5% 100%, 0 calc(100% - 10px));
}
.slip .h { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }
.slip .h span { display: block; font-weight: 400; color: #46566b; font-size: 13px; letter-spacing: 0; }
.slip dl { margin: 14px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; }
.slip dt { color: #46566b; }
.slip dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.slip dd.no { color: #b91c1c; }
.slip dd.si { color: #0f766e; }
.slip .bar { height: 4px; background: #0b1828; margin: 14px 0 12px; }
.slip .sig { display: block; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; color: #0b1828; } /* taste-skill-ignore: código o fragmento data-ui */
.slip .ok { margin-top: 10px; font-weight: 700; color: #0f766e; }
.slip.print { animation: print .7s var(--ease) both; }
@keyframes print { from { transform: translateY(-14px); opacity: .25; } to { transform: none; opacity: 1; } }

/* ---------- Lo que pide la ley ---------- */
.law { padding: var(--sec) 0 calc(var(--sec) * .6); }
.law h2 { grid-column: 1 / span 8; }
.law .lead { grid-column: 1 / -1; margin-top: 40px; max-width: 48ch; font-size: clamp(1.375rem, 1rem + 1.6vw, 2.25rem); line-height: 1.2; }
.law .cols { grid-column: 1 / -1; margin-top: 72px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--gap); }
.law .cols p { color: var(--soft); }
.law .cols b { color: var(--ink); font-weight: 700; }
.law .cols a { color: var(--ink); }

/* ---------- Tú eliges (bandas con interruptores) ---------- */
.choose { background: var(--paper); }
.choose .intro { padding-bottom: 56px; }
.choose .intro p { margin-top: 24px; max-width: 46ch; color: var(--soft); }
.bands { border: 0; margin: 0; padding: 0; }
.band {
  --f: var(--paper); --fi: var(--ink);
  display: block; background: var(--paper); color: var(--soft);
  transition: background-color .45s var(--ease), color .45s var(--ease);
  cursor: pointer;
}
.band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; min-height: max(20vh, 150px); padding-top: 24px; padding-bottom: 24px; }
.band h3 { font-size: clamp(1.625rem, 0.9rem + 3vw, 3.75rem); }
.band .why { display: block; margin-top: 12px; font-size: var(--step-body); line-height: 1.4; max-width: 60ch; font-weight: 500; }
.band .why .off { display: inline; }
.band .why .on { display: none; }
.band.is-on { background: var(--f); color: var(--fi); }
.band.is-on .why .on { display: inline; }
.band.is-on .why .off { display: none; }
.band.locked { cursor: default; }
.band:nth-child(1) { --f: var(--stone); }
.band:nth-child(2) { --f: var(--accent); }
.band:nth-child(3) { --f: var(--navy-2); --fi: #fff; }
.band:nth-child(4) { --f: var(--mint); }
.band:nth-child(5) { --f: var(--stone-2); }
.band + .band .wrap { box-shadow: none; } /* taste-skill-ignore: código o fragmento data-ui */

/* Interruptor: fragmento real de la interfaz */
.sw { position: relative; display: inline-block; width: 2.2em; height: 1.2em; font-size: clamp(1.625rem, 0.9rem + 3vw, 3.75rem); flex: none; }
.sw input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.sw input:disabled { cursor: not-allowed; }
.sw .track { position: absolute; inset: 0; border-radius: 1em; background: #c3ccd7; transition: background-color .25s var(--ease); }
.sw .knob { position: absolute; top: .12em; left: .12em; width: .96em; height: .96em; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.sw input:checked ~ .track { background: var(--ink); }
.band:nth-child(3) .sw input:checked ~ .track { background: var(--accent); }
.sw input:checked ~ .knob { transform: translateX(1em); }
.sw input:focus-visible ~ .track { outline: 3px solid var(--ink); outline-offset: 4px; }
.band:nth-child(3) .sw input:focus-visible ~ .track { outline-color: var(--accent); }
.sw input:disabled ~ .track { opacity: .55; }

.gcs-out { background: var(--navy); color: var(--on-dark); }
.gcs-out .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; padding-top: 36px; padding-bottom: 36px; }
.gcs-out p { font-size: var(--step-lead); line-height: 1.3; }
.gcs-out code { font-family: var(--mono); color: var(--accent); font-size: .95em; }
.gcs-out .link { color: var(--on-dark); font-size: var(--step-body); }

/* ---------- Lo que queda guardado (índice + hoja) ---------- */
.kept { padding: var(--sec) 0; }
.kept .grid { align-items: start; }
.kept .left { grid-column: 1 / span 5; position: sticky; top: 40px; }
.kept h2 { margin-bottom: 20px; }
.kept .left > p { color: var(--soft); max-width: 40ch; margin-bottom: 40px; }
.outs { display: grid; gap: 6px; }
.outs button {
  text-align: left; background: none; border: 0; padding: 6px 0; cursor: pointer;
  font-size: clamp(1.625rem, 1rem + 2.2vw, 3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05;
  color: #8a97a8; transition: color .2s var(--ease), transform .2s var(--ease);
}
.outs button:hover { color: var(--ink); transform: translateX(4px); }
.outs button[aria-selected="true"] { color: var(--ink); }
.kept .more { margin-top: 36px; }
.sheet-stage { grid-column: 7 / -1; background: var(--stone); height: min(88svh, 780px); min-height: 600px; overflow: hidden; padding: 72px 0 0 clamp(20px, 4vw, 64px); position: relative; }
.sheet { width: 560px; max-width: none; background: #fff; color: #0b1828; padding: 36px 36px 48px; font-size: 14px; line-height: 1.45; }
.sheet[hidden] { display: none; }
.sheet.show { animation: fade .25s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sheet .sh { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding-bottom: 16px; border-bottom: 4px solid #0b1828; }
.sheet .sh b { font-size: 18px; letter-spacing: -0.01em; }
.sheet .sh span { color: #46566b; font-size: 13px; }
.sheet table { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.sheet th, .sheet td { text-align: left; padding: 10px 0; border-bottom: 1px solid #e3e8ee; vertical-align: top; }
.sheet th { color: #46566b; font-weight: 400; width: 44%; }
.sheet td { font-weight: 600; }
.sheet td.si { color: #0f766e; }
.sheet td.no { color: #b91c1c; }
.sheet .mono { font-family: var(--mono); font-size: 12.5px; font-weight: 500; overflow-wrap: anywhere; } /* taste-skill-ignore: código o fragmento data-ui */
.sheet .small { margin-top: 18px; color: #46566b; font-size: 13px; }
.sheet pre { margin: 18px 0 0; background: #0b1828; color: #e6edf5; padding: 18px; font-family: var(--mono); font-size: 13px; line-height: 1.6; white-space: pre-wrap; border-radius: 6px; }
.sheet pre .s { color: #5eead4; }
.sheet pre .c { color: #a9b7c9; }
.sheet .csv th { width: auto; font-size: 12.5px; }
.sheet .csv td { font-size: 13px; font-weight: 500; }
.sheet.mail { width: 440px; }
.sheet.mail .meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin-top: 14px; font-size: 13.5px; }
.sheet.mail .meta span:nth-child(odd) { color: #46566b; }
.sheet.mail .body { margin-top: 18px; display: grid; gap: 12px; }

/* ---------- En producción ---------- */
.prod { background: var(--navy); color: var(--on-dark); padding: clamp(80px, 9vw, 140px) 0; }
.prod h2 { grid-column: 1 / span 4; }
.prod blockquote { grid-column: 5 / -1; font-size: clamp(1.375rem, 1rem + 1.6vw, 2.25rem); line-height: 1.22; letter-spacing: -0.015em; font-weight: 500; }
.prod ul { grid-column: 5 / -1; margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; color: var(--soft-dark); font-size: var(--step-small); }
.prod ul b { display: block; color: var(--on-dark); font-size: var(--step-body); margin-bottom: 4px; }

/* ---------- Cómo se instala (llamada y respuesta) ---------- */
.install { padding: var(--sec) 0 calc(var(--sec) * .55); }
.install .col { max-width: 640px; margin-left: calc((100% - 11 * var(--gap)) / 12 * 3 + 3 * var(--gap)); }
.install h2 { margin-bottom: 24px; }
.install .col > p { color: var(--soft); margin-bottom: 72px; }
.ex + .ex { margin-top: 88px; }
.ex h3 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.2; font-weight: 700; }
.ex > p { margin-top: 10px; color: var(--soft); }
.call { position: relative; margin-top: 18px; background: var(--navy); color: #e6edf5; padding: 20px 20px 22px; }
.call pre { margin: 0; overflow-x: auto; font-family: var(--mono); font-size: 14px; line-height: 1.6; }
.call .c { color: #a9b7c9; }
.call .s { color: #5eead4; }
.call .n { color: #fcd34d; }
.copy {
  position: absolute; top: 10px; right: 10px; min-height: 36px; padding: 0 14px; border: 0; cursor: pointer;
  background: var(--navy-3); color: #fff; font-size: 14px; font-weight: 600;
  transition: background-color .15s var(--ease), transform .15s var(--ease);
}
.copy:hover { background: #2a4468; }
.copy:active { transform: scale(.96); }
.resp { margin: 16px 0 0 56px; }
.resp .cap { font-size: var(--step-small); color: var(--soft); margin-bottom: 10px; }
.ui-state { background: #fff; border: 1px solid #d5dce4; border-radius: 8px; font-size: 14px; max-width: 420px; } /* taste-skill-ignore: código o fragmento data-ui */
.ui-state div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid #e9edf2; } /* taste-skill-ignore: código o fragmento data-ui */
.ui-state div:first-child { border-top: 0; font-weight: 700; }
.ui-state code { font-family: var(--mono); font-size: 13px; }
.ui-state .d { color: #b91c1c; font-weight: 600; }
.ui-state .g { color: #0f766e; font-weight: 600; }
.ui-mini { max-width: 380px; box-shadow: 0 10px 30px rgba(11, 24, 40, .14); border: 1px solid #d5dce4; } /* taste-skill-ignore: código o fragmento data-ui */
.ui-mini .row button { cursor: default; }
.ex.final .resp { margin-left: 0; width: min(760px, calc(100vw - 2 * var(--m))); }
.ui-net { background: #fff; border: 1px solid #d5dce4; border-radius: 8px; font-size: 14px; overflow: hidden; } /* taste-skill-ignore: código o fragmento data-ui */
.ui-net table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ui-net th { text-align: left; font-weight: 600; color: #46566b; background: #f4f6f8; padding: 10px 14px; font-size: 13px; }
.ui-net td { padding: 11px 14px; border-top: 1px solid #e9edf2; vertical-align: top; }
.ui-net td:first-child { color: #46566b; white-space: nowrap; }
.ui-net code { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.ui-net tr.hl td { background: #f0fdfa; }
.ui-net .g { color: #0f766e; font-weight: 600; }
.install .after { margin-top: 40px; }

/* ---------- Precio (boleta) ---------- */
.price { background: var(--stone); padding: 0 0 calc(var(--sec) * .6); overflow: hidden; }
.price .grid { align-items: start; }
.price .left { grid-column: 1 / span 6; padding-top: calc(var(--sec) * .8); }
.price .left > p { margin-top: 24px; max-width: 44ch; }
.opts { margin: 40px 0 0; padding: 0; border: 0; display: grid; gap: 4px; }
.opts legend { font-weight: 700; margin-bottom: 12px; padding: 0; }
.opts label { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: var(--paper); cursor: pointer; transition: background-color .2s var(--ease); }
.opts label:hover { background: #f8fafb; }
.opts input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--teal-ink); flex: none; }
.opts small { display: block; color: var(--soft); font-size: var(--step-small); }
.price .left .btn { margin-top: 36px; }
.receipt-col { grid-column: 8 / span 4; }
.receipt {
  background: #fff; color: #0b1828; padding: calc(var(--sec) * .8 + 28px) 28px 56px; font-size: 16px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 95% 100%, 90% calc(100% - 14px), 85% 100%, 80% calc(100% - 14px), 75% 100%, 70% calc(100% - 14px), 65% 100%, 60% calc(100% - 14px), 55% 100%, 50% calc(100% - 14px), 45% 100%, 40% calc(100% - 14px), 35% 100%, 30% calc(100% - 14px), 25% 100%, 20% calc(100% - 14px), 15% 100%, 10% calc(100% - 14px), 5% 100%, 0 calc(100% - 14px));
}
.receipt .name { text-align: center; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.receipt .name span { display: block; font-weight: 400; font-size: 14px; color: #46566b; letter-spacing: 0; }
.rt { width: 100%; margin-top: 24px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rt td { padding: 7px 0; vertical-align: top; }
.rt td:last-child { text-align: right; color: #46566b; white-space: nowrap; padding-left: 16px; }
.rt tr.add { animation: fade .3s var(--ease) both; }
.rt tr.add td:first-child { font-weight: 600; }
.rt tbody tr:last-child td { padding-bottom: 28px; }
.rt tfoot td { border-top: 4px solid #0b1828; padding-top: 24px; font-weight: 700; vertical-align: baseline; }
.rt tfoot td:last-child { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: #0b1828; }
.receipt .tnote { text-align: right; font-size: 15px; color: #46566b; margin-top: 10px; line-height: 1.4; }

/* ---------- Preguntas (índice + respuesta) ---------- */
.faq { padding: calc(var(--sec) * .6) 0 var(--sec); }
.faq .grid { align-items: start; }
.faq .list { grid-column: 1 / span 5; }
.faq h2 { margin-bottom: 40px; }
.faq ul { display: grid; gap: 4px; }
.faq .q {
  display: flex; gap: 14px; align-items: baseline; width: 100%; text-align: left; background: none; border: 0;
  padding: 10px 0; cursor: pointer; font-size: var(--step-body); font-weight: 600; color: var(--soft); line-height: 1.35;
  transition: color .18s var(--ease);
}
.faq .q::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #b6c1ce; flex: none; transform: translateY(-2px); transition: background-color .18s var(--ease), transform .18s var(--ease); }
.faq .q:hover { color: var(--ink); }
.faq .q[aria-expanded="true"] { color: var(--ink); }
.faq .q[aria-expanded="true"]::before { background: var(--teal-ink); transform: translateY(-2px) scale(1.4); }
.faq .pane { grid-column: 7 / -1; position: sticky; top: 120px; }
.faq .a { font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem); line-height: 1.32; letter-spacing: -0.01em; max-width: 32ch; }
.faq .a h3 { font-size: var(--step-small); font-weight: 600; letter-spacing: 0; color: var(--soft); line-height: 1.4; margin-bottom: 16px; }
.faq .a a { color: var(--ink); }
.faq .a + .a { margin-top: 48px; }
.faq.js .a + .a { margin-top: 0; }
.faq.js .a[hidden] { display: none; }
.faq.js .a.show { animation: fade .2s var(--ease) both; }

/* ---------- Demo (formulario) ---------- */
.demo { background: var(--navy); color: var(--on-dark); padding: var(--sec) 0; }
.demo .grid { align-items: start; }
.demo .left { grid-column: 1 / span 5; }
.demo .left p.lead { margin-top: 28px; color: var(--soft-dark); }
.demo .left p.lead b { color: var(--on-dark); font-weight: 600; }
.demo .left .mail { margin-top: 36px; }
.demo .left .mail a { color: var(--on-dark); }
.form { grid-column: 7 / -1; display: grid; gap: 14px; }
.form label { display: grid; gap: 8px; font-weight: 600; font-size: var(--step-small); }
.form input:not([type=checkbox]), .form textarea {
  width: 100%; min-height: 60px; padding: 16px 18px; background: #fff; color: var(--ink); border: 0; border-radius: 0;
  font-size: var(--step-body); box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .18s var(--ease); /* taste-skill-ignore: anillo de foco del campo */
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; box-shadow: inset 0 0 0 3px var(--accent); } /* taste-skill-ignore: anillo de foco del campo */
.form .chk { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: var(--step-small); color: var(--soft-dark); margin-top: 4px; }
.form .chk input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); flex: none; }
.form .chk a { color: var(--on-dark); }
.form .btn { justify-self: start; margin-top: 8px; }
.form .msg { min-height: 1.5em; font-size: var(--step-small); }
.form .msg.ok { color: var(--accent); }
.form .msg.err { color: #fca5a5; }
.form .next { font-size: var(--step-small); color: var(--soft-dark); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Pie de tiles ---------- */
.foot { background: var(--navy); padding: 8px 10px 10px; }
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.tile { background: var(--navy-2); color: var(--on-dark); padding: 24px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; text-decoration: none; }
.tile p { font-size: var(--step-small); color: var(--soft-dark); }
.tile.t-say { grid-column: span 4; }
.tile.t-say p:first-child { font-size: var(--step-lead); color: var(--on-dark); line-height: 1.25; letter-spacing: -0.01em; max-width: 24ch; }
.tile.t-nav { grid-column: span 3; justify-content: flex-start; }
.tile.t-nav ul { display: grid; gap: 8px; }
.tile.t-nav a { text-decoration: none; color: var(--on-dark); transition: color .15s var(--ease); }
.tile.t-nav a:hover { color: var(--accent); }
.tile.t-time { grid-column: span 2; }
.tile.t-time b { font-size: var(--step-lead); font-weight: 700; font-variant-numeric: tabular-nums; }
.tile.t-mail { grid-column: span 3; justify-content: flex-end; }
.tile.t-mail a { font-size: var(--step-lead); color: var(--on-dark); font-weight: 600; overflow-wrap: anywhere; }
.tile.t-word { grid-column: span 8; min-height: 320px; background: #050d1a; align-items: center; justify-content: center; }
.tile.t-word img { width: min(72%, 760px); height: auto; }
.tile.t-go { grid-column: span 4; min-height: 320px; background: var(--accent); color: var(--accent-ink); transition: background-color .2s var(--ease); }
.tile.t-go:hover { background: #5eead4; }
.tile.t-go b { font-size: clamp(1.5rem, 1rem + 1.2vw, 2rem); letter-spacing: -0.02em; line-height: 1.1; }
.tile.t-go svg { align-self: flex-end; width: 64px; height: 64px; transition: transform .25s var(--ease); }
.tile.t-go:hover svg { transform: translate(6px, -6px); }

/* ---------- Entradas al hacer scroll ---------- */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rise.in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .hero-copy { grid-column: 1 / -1; }
  .stage { grid-column: 1 / -1; margin-top: 48px; }
  .law .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kept .left { grid-column: 1 / -1; position: static; }
  .sheet-stage { grid-column: 1 / -1; margin-top: 40px; }
  .prod h2, .prod blockquote, .prod ul { grid-column: 1 / -1; }
  .prod blockquote { margin-top: 28px; }
  .install .col { margin-left: 0; }
  .price .left { grid-column: 1 / span 7; }
  .receipt-col { grid-column: 8 / -1; }
  .faq .list { grid-column: 1 / span 6; }
  .faq .pane { grid-column: 7 / -1; }
  .demo .left, .form { grid-column: 1 / -1; }
  .form { margin-top: 48px; }
  .tile.t-say { grid-column: span 6; }
  .tile.t-nav { grid-column: span 6; }
  .tile.t-time { grid-column: span 6; }
  .tile.t-mail { grid-column: span 6; }
  .tile.t-word { grid-column: span 12; }
  .tile.t-go { grid-column: span 12; min-height: 220px; }
}

/* ---------- Menú plegado ---------- */
@media (max-width: 960px) {
  .top nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 8px var(--m) 24px; flex-direction: column; gap: 0; }
  .top nav.open { display: flex; }
  .top nav a { padding: 14px 0; font-size: var(--step-body); }
  .menu-btn { display: inline-flex; align-items: center; margin-left: auto; }
  .top .btn { margin-left: 0; }
}

/* ---------- Teléfono ---------- */
@media (max-width: 760px) {
  :root { --sec: 72px; }
  .top .btn { display: none; }
  .hero h1 { grid-column: 1 / -1; letter-spacing: -0.04em; }
  .hero-copy { padding-top: 28px; }
  .stage { grid-template-columns: 1fr; margin-left: calc(-1 * var(--m)); margin-right: calc(-1 * var(--m)); padding-left: var(--m); padding-right: var(--m); min-height: 0; }
  .law .cols { grid-template-columns: 1fr; gap: 28px; }
  .band .wrap { min-height: 132px; }
  .band h3, .sw { font-size: clamp(1.5rem, 6.4vw, 2rem); }
  .outs { gap: 2px; }
  .outs button { font-size: 1.375rem; }
  .sheet-stage { margin-left: calc(-1 * var(--m)); margin-right: calc(-1 * var(--m)); padding: 20px 0 0 16px; height: 70svh; min-height: 520px; }
  .sheet { width: 480px; padding: 26px 24px 36px; }
  .sheet.mail { width: 360px; }
  .prod ul { grid-template-columns: 1fr; }
  .resp { margin-left: 0; }
  .ex.final .resp { width: 100%; }
  .ui-net { overflow-x: auto; }
  .ui-net table { min-width: 0; }
  .ui-net td:first-child, .ui-net th:first-child { display: none; }
  .price .left, .receipt-col { grid-column: 1 / -1; }
  .receipt-col { margin-top: 48px; }
  .receipt { width: 100%; padding: 28px 22px 48px; }
  .rt tfoot td:last-child { font-size: 26px; }
  .price .left .btn { width: 100%; }
  .faq .list, .faq .pane { grid-column: 1 / -1; }
  .faq .pane { position: static; }
  .faq.js .pane { display: none; }
  .faq.js .list .a { margin: 4px 0 18px 22px; font-size: 1.1875rem; }
  .faq.js .list .a h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .call pre { white-space: pre-wrap; overflow-wrap: anywhere; padding-right: 0; }
  .call { padding-top: 52px; }
  .form .btn { width: 100%; }
  .tiles { gap: 6px; }
  .foot { padding: 6px; }
  .tile { min-height: 0; padding: 20px; }
  .tile.t-word { order: -2; min-height: 160px; }
  .tile.t-go { order: -1; min-height: 180px; }
  .tile.t-nav, .tile.t-mail { grid-column: span 6; }
  .tile.t-time, .tile.t-say { grid-column: span 12; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { opacity: 1; transform: none; transition: none; }
  .slip.print, .sheet.show, .faq.js .a.show, .rt tr.add { animation: none; }
  .band, .sw .knob, .sw .track { transition: none; }
}
