:root {
  --ink: #121212;
  --ink-2: #1d1d1d;
  --red: #e1251b;
  --red-d: #b81c14;
  --bg: #f4f4f2;
  --card: #ffffff;
  --line: #e2e2de;
  --muted: #6b6b66;
  --ok: #1f8a4c;
  --r: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.06);
  --head: 'Montserrat', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.55 var(--body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.red { color: var(--red); }
.eyebrow { font: 700 0.74rem/1 var(--head); letter-spacing: 0.32em; text-transform: uppercase; color: var(--red); margin-bottom: 0.9em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 46px; padding: 0 1.3em; border-radius: 999px; border: 2px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-d); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: rgb(127 127 127 / 0.08); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-sm { min-height: 36px; padding: 0 0.95em; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 0.9rem; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff; }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-bars { display: flex; gap: 4px; }
.logo-bars i { width: 8px; height: 30px; background: var(--red); transform: skewX(-18deg); }
.logo-bars i + i { background: #8e1a14; }
.logo-txt b { display: block; font: italic 900 1.6rem/1 var(--head); letter-spacing: -0.02em; }
.logo-txt small { display: block; font-size: 0.56rem; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.8; margin-top: 2px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; opacity: 0.8; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.is-on { opacity: 1; border-color: var(--red); }
.btn-lote { background: #fff; color: var(--ink); min-height: 42px; }
.btn-lote.is-on { background: var(--red); color: #fff; }
.badge { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff; font-size: 0.8rem; display: inline-grid; place-items: center; }
.btn-lote.is-on .badge { background: #fff; color: var(--red); }
.badge.bump { animation: bump 0.4s; }
@keyframes bump { 40% { transform: scale(1.35); } }

/* Hero */
.hero { position: relative; isolation: isolate; background: var(--ink); color: #fff; overflow: hidden; }
.hero-in { display: grid; align-items: center; min-height: clamp(560px, 49vw, 740px); }
.hero-copy { max-width: 660px; padding: 64px 0; }
.hero-copy p { font-size: 1.15rem; color: #c9c9c4; max-width: 34em; }
.hero-art { position: absolute; z-index: -1; inset: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #121212 0%, rgb(18 18 18 / 0.95) 23%, rgb(18 18 18 / 0.76) 46%, transparent 80%); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-copy .eyebrow { font-size: 0.74rem; color: #ff786f; }
.hero-copy h1 .red { color: #ff6257; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 1.5px solid var(--red); border-radius: 99px; padding: 5px 14px; font-size: 0.9rem; font-weight: 500; }
.strip { background: var(--red); color: #fff; }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 22px 0; }
.strip b { display: block; font: 800 1.6rem/1.1 var(--head); }
.strip span { font-size: 0.88rem; opacity: 0.9; }

/* Secciones */
.sec { padding: 80px 0; }
.sec-dark { background: var(--ink); color: #fff; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.sec-head p { max-width: 36em; margin: 0; }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.cat { position: relative; background: var(--card); border-radius: var(--r); padding: 16px; text-decoration: none; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; transition: transform 0.15s; overflow: hidden; }
.cat:is(:hover, :focus-visible) { transform: translateY(-3px); }
.cat img { height: 130px; object-fit: contain; margin: 0 auto; }
.cat b { font-family: var(--head); font-weight: 800; }
.cat span { font-size: 0.85rem; color: var(--muted); }

.colors-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.sw-row { display: flex; flex-wrap: wrap; gap: 6px; }
.sw { border-radius: 8px; object-fit: cover; background: #ddd; }
.sw-sm { width: 44px; height: 30px; }
.sw-md { width: 64px; height: 42px; }
.sw-lg { width: 96px; height: 62px; }

/* Cómo trabajamos: recorrido con scroll */
.jr-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.jr-stage { position: sticky; top: 92px; background: var(--ink-2); border: 1px solid #2a2a2a; border-radius: 20px; padding: 22px 22px 18px; color: #fff; }
.jr-top { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.jr-dia-label { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8f8f8a; }
.jr-dia { display: block; font: 900 clamp(2.2rem, 4.5vw, 3.4rem)/1 var(--head); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.jr-paso { font: 700 0.9rem var(--head); color: var(--red); text-align: right; }
.jr-map { width: 100%; height: auto; margin: 10px 0 6px; color: #fff; overflow: visible; }
.jr-ocean { color: #6fa8ff; }
.jr-ocean-txt { fill: #6f86a8; font: 600 11px var(--body); letter-spacing: 0.04em; }
.jr-ruta-base { fill: none; stroke: #3a3a3a; stroke-width: 3; stroke-dasharray: 2 7; stroke-linecap: round; }
.jr-ruta-prog { fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; }
.jr-parada circle { fill: var(--ink-2); stroke: #4a4a4a; stroke-width: 3; transition: fill 0.3s, stroke 0.3s; }
.jr-parada.on circle { fill: var(--red); stroke: #fff; }
.jr-parada text { fill: #8f8f8a; font: 700 12px var(--head); transition: fill 0.3s; }
.jr-parada .jr-sub { font: 500 10.5px var(--body); }
.jr-parada.on text { fill: #fff; }
.jr-container rect { fill: var(--red); stroke: #fff; stroke-width: 1.5; }
.jr-container path { stroke: rgb(255 255 255 / 0.55); stroke-width: 1.2; }
.jr-ship { opacity: 0; transition: opacity 0.3s; }
.jr-ship path { fill: #fff; }
.jr-ship rect { fill: var(--red); stroke: #fff; stroke-width: 1; }
.jr-container { transition: opacity 0.3s; }
.en-mar .jr-ship { opacity: 1; }
.en-mar .jr-container { opacity: 0; }
.jr-pagos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.jr-pago { display: flex; gap: 10px; align-items: center; background: #161616; border: 1px solid #2a2a2a; border-radius: 12px; padding: 10px 12px; font-size: 0.84rem; color: #8f8f8a; transition: border-color 0.3s, color 0.3s; }
.jr-pago i { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #4a4a4a; transition: background 0.3s, border-color 0.3s; }
.jr-pago b { color: inherit; font-family: var(--head); }
.jr-pago.on { border-color: var(--red); color: #fff; }
.jr-pago.on i { background: var(--red); border-color: var(--red); }

.jr-steps { list-style: none; margin: 0; padding: 0; }
.jr-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 28px 0 28px 24px; border-left: 3px solid #2a2a2a; opacity: 0.38; transition: opacity 0.35s, border-color 0.35s; }
.jr-step:first-child { min-height: 50vh; justify-content: start; padding-top: 0; }
.jr-step:last-child { min-height: 50vh; }
.jr-step.is-on { opacity: 1; border-color: var(--red); }
.jr-step-head { display: flex; gap: 14px; align-items: start; margin-bottom: 12px; }
.jr-n { font: 900 2.4rem/0.9 var(--head); color: var(--red); }
.jr-step h3 { font-size: 1.45rem; margin: 0 0 6px; }
.jr-step em { display: inline-block; font-style: normal; font-size: 0.78rem; font-weight: 600; background: rgb(225 37 27 / 0.22); padding: 3px 10px; border-radius: 99px; }
.jr-step > p { color: #d5d5d0; font-size: 1.05rem; }
.jr-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.jr-roles div { background: var(--ink-2); border-radius: 12px; padding: 12px 14px; }
.jr-roles dt { font: 700 0.72rem var(--head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.jr-roles dd { margin: 0; color: #d5d5d0; font-size: 0.92rem; line-height: 1.45; }
.jr-recibis span { font: 700 0.72rem var(--head); letter-spacing: 0.16em; text-transform: uppercase; color: #8f8f8a; }
.jr-recibis ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.jr-recibis li { border: 1px solid #3a3a3a; border-radius: 99px; padding: 4px 12px; font-size: 0.86rem; }
.jr-recibis li::before { content: "✓ "; color: var(--red); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .jr-step, .jr-parada circle, .jr-parada text, .jr-pago, .jr-pago i, .jr-ship, .jr-container { transition: none; }
}

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.faq details { background: var(--card); border-radius: var(--r); padding: 16px 20px; box-shadow: var(--shadow); }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.cta-final { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #fff; border-radius: 24px; padding: 48px; display: grid; align-content: center; justify-items: start; gap: 24px; min-height: 330px; }
.cta-final-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right 53%; }
.cta-final::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgb(18 18 18 / 0.94), rgb(18 18 18 / 0.84) 52%, transparent 100%); }
.cta-final p { max-width: 36em; }
.cta-final h2 { margin: 0; }
.cta-final .btn-ghost { color: #fff; }
.cta-final .btn-ghost:hover { background: rgb(255 255 255 / 0.14); }

@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: hero-camera 1.4s cubic-bezier(0.2, 0.6, 0.3, 1) both; }
  .hero-copy > * { animation: home-enter 550ms ease-out both; }
  .hero-copy h1 { animation-delay: 65ms; }
  .hero-copy p:not(.eyebrow) { animation-delay: 130ms; }
  .hero-copy .hero-cta { animation-delay: 195ms; }
  .hero-copy .pills { animation-delay: 260ms; }
  .cat img { transition: transform 240ms ease-out; }
  .cat:is(:hover, :focus-visible) img { transform: scale(1.04); }

  @supports (animation-timeline: view()) {
    .colors-demo, .cta-final {
      animation: home-enter linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 65%;
    }
    .colors-demo:focus-within, .cta-final:focus-within { animation: none; }
  }
}

@keyframes hero-camera {
  from { transform: scale(1.045); }
  to { transform: scale(1); }
}

@keyframes home-enter {
  from { opacity: 0.55; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cat { transition: none; }
  .cat:is(:hover, :focus-visible) { transform: none; }
}

/* Catálogo */
.page-head { background: var(--ink); color: #fff; padding: 40px 0 32px; }
.page-head p { color: #c9c9c4; margin: 0; max-width: 40em; }
.cat-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding: 28px 0 80px; align-items: start; }
.filters { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }
.filters h4 { margin: 0 0 8px; font: 700 0.72rem/1 var(--head); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.search { width: 100%; height: 46px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 12px; font-size: 0.87rem; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip small { opacity: 0.6; margin-left: 2px; }
.select { width: 100%; height: 44px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; background: #fff; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--muted); font-size: 0.92rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; transition: transform 0.15s, box-shadow 0.15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgb(0 0 0 / 0.1); }
.card-img { display: block; aspect-ratio: 4 / 3; padding: 14px; background: #fff; }
.card-img img, .card-img .foto-vacia { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; border-top: 1px solid var(--line); }
.code { font: 700 0.78rem/1 var(--head); color: var(--red); letter-spacing: 0.04em; }
.card-body a { text-decoration: none; font-weight: 600; line-height: 1.3; }
.card-body small { color: var(--muted); font-size: 0.82rem; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; gap: 8px; }
.in-lote { font-size: 0.8rem; color: var(--ok); font-weight: 600; }
.foto-vacia { display: grid; place-items: center; background: #f0f0ee; color: var(--muted); font-size: 0.85rem; border-radius: 10px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

/* Producto */
.prod { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 32px 0 80px; }
.prod-img { background: #fff; border-radius: 20px; padding: 32px; box-shadow: var(--shadow); aspect-ratio: 1; display: grid; place-items: center; position: sticky; top: 88px; }
.prod-img img { max-height: 100%; object-fit: contain; }
.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.specs { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.95rem; }
.specs th, .specs td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 44%; color: var(--muted); font-weight: 500; }
.box { background: var(--card); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.box h3 { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.box h3 small { font: 500 0.85rem var(--body); color: var(--muted); letter-spacing: 0; }
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; }
.pick { border: 2px solid transparent; border-radius: 10px; background: none; padding: 3px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.7rem; color: var(--muted); }
.pick .sw { width: 100%; height: 34px; }
.pick:hover { border-color: var(--line); }
.pick.is-sel { border-color: var(--red); color: var(--ink); font-weight: 600; }
.add-row { display: flex; gap: 12px; align-items: center; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; }
.qty button { width: 38px; height: 40px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; }
.qty input { width: 40px; text-align: center; border: 0; background: none; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { display: none; }
.note { font-size: 0.85rem; color: var(--muted); }

/* Mi gimnasio */
.lote-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; padding: 28px 0 80px; align-items: start; }
.zona { margin-bottom: 22px; }
.zona h3 { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; background: var(--card); border-radius: var(--r); padding: 12px; box-shadow: var(--shadow); margin-bottom: 8px; }
.line-img { width: 84px; height: 70px; object-fit: contain; }
.line-name { font-weight: 600; text-decoration: none; line-height: 1.3; }
.line-colors { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.color-btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; padding: 3px 10px 3px 4px; font-size: 0.8rem; cursor: pointer; }
.color-btn .sw { width: 28px; height: 20px; border-radius: 99px; }
.color-btn.unset { border-style: dashed; color: var(--muted); }
.line-actions { display: flex; flex-direction: column; align-items: end; gap: 6px; }
.summary { position: sticky; top: 88px; }
.summary .box { padding: 24px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 18px; }
.kpi b { display: block; font: 800 1.35rem/1.1 var(--head); }
.kpi span { font-size: 0.78rem; color: var(--muted); }
.container-viz { margin: 8px 0 6px; }
.container-shape { position: relative; height: 74px; border: 3px solid var(--ink); border-radius: 6px; background: repeating-linear-gradient(90deg, #fff 0 18px, #f1f1ef 18px 20px); overflow: hidden; }
.container-fill { position: absolute; inset: 0 auto 0 0; background: repeating-linear-gradient(90deg, var(--red) 0 18px, var(--red-d) 18px 20px); transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.container-pct { position: absolute; inset: 0; display: grid; place-items: center; font: 900 1.5rem var(--head); mix-blend-mode: difference; color: #fff; }
.container-label { display: flex; justify-content: space-between; font-size: 0.86rem; margin-top: 8px; }
.hint { background: #fff6e8; border-left: 3px solid #e8a33c; padding: 10px 12px; border-radius: 8px; font-size: 0.88rem; margin: 14px 0; }
.brand-colors { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Popover de color */
.dialog { border: 0; border-radius: 18px; padding: 0; width: min(560px, 100% - 24px); box-shadow: 0 30px 80px rgb(0 0 0 / 0.3); }
.dialog::backdrop { background: rgb(0 0 0 / 0.5); }
.dialog-in { padding: 24px; }
.dialog-foot { display: flex; justify-content: end; gap: 8px; margin-top: 18px; }

/* Formularios */
.form-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; padding: 28px 0 80px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.option input { position: absolute; opacity: 0; }
.option span { display: inline-block; border: 1.5px solid var(--line); background: #fff; padding: 9px 14px; border-radius: 12px; cursor: pointer; font-size: 0.92rem; }
.option input:checked + span { border-color: var(--red); background: #fff1f0; font-weight: 600; }
.option input:focus-visible + span { outline: 3px solid var(--red); }
.hp { position: absolute; left: -9999px; }
.error { background: #fdecea; color: #8a1810; padding: 12px 14px; border-radius: 10px; grid-column: 1 / -1; }
.mini-list { list-style: none; padding: 0; margin: 0 0 12px; max-height: 340px; overflow: auto; }
.mini-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; }

/* Gracias */
.done { max-width: 640px; margin: 0 auto; text-align: center; padding: 80px 0; }
.done-code { display: inline-block; font: 900 1.6rem var(--head); background: var(--ink); color: #fff; padding: 10px 22px; border-radius: 12px; margin: 10px 0 22px; letter-spacing: 0.04em; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }

/* Asistente */
.wiz { max-width: 860px; margin: 0 auto; padding: 40px 0 80px; }
.wiz-progress { display: flex; gap: 6px; margin-bottom: 28px; }
.wiz-progress i { flex: 1; height: 5px; border-radius: 99px; background: var(--line); }
.wiz-progress i.on { background: var(--red); }
.wiz-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 22px 0; }
.wiz-opt { text-align: left; background: var(--card); border: 2px solid transparent; border-radius: var(--r); padding: 20px; cursor: pointer; box-shadow: var(--shadow); transition: border-color 0.15s, transform 0.15s; }
.wiz-opt:hover { transform: translateY(-2px); }
.wiz-opt.is-sel { border-color: var(--red); }
.wiz-opt b { display: block; font-family: var(--head); font-weight: 800; font-size: 1.1rem; margin-bottom: 4px; }
.wiz-opt span { color: var(--muted); font-size: 0.9rem; }
.wiz-nav { display: flex; justify-content: space-between; gap: 10px; }
.kit-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin: 20px 0; }
.kit-item { display: flex; gap: 10px; align-items: center; background: var(--card); border-radius: 12px; padding: 10px; box-shadow: var(--shadow); }
.kit-item img, .kit-item .foto-vacia { width: 64px; height: 54px; object-fit: contain; flex: none; }
.kit-item small { display: block; color: var(--muted); }

/* Admin */
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); font-size: 0.92rem; }
.admin-table th, .admin-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { background: #fafaf8; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.admin-table tr.open td { background: #fffaf9; }
.estado { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 0.78rem; font-weight: 600; background: #eee; }
.estado-nueva { background: #fdecea; color: var(--red-d); }
.estado-cotizada { background: #e8f0fe; color: #1a4fb3; }
.estado-confirmada { background: #e6f4ec; color: var(--ok); }
.detail { display: grid; grid-template-columns: 1fr 300px; gap: 20px; padding: 6px 0; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; z-index: 60; transition: transform 0.25s; box-shadow: 0 10px 30px rgb(0 0 0 / 0.25); max-width: calc(100% - 32px); }
#toast.show { transform: translate(-50%, 0); }

/* Barra flotante del lote en móvil */
.lote-bar { display: none; }

.foot { background: var(--ink); color: #fff; padding: 48px 0; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-name { font: 800 1.4rem var(--head); margin: 0 0 4px; }
.foot .muted { color: #a9a9a4; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links a { text-decoration: none; opacity: 0.85; }
.foot-links a:hover { opacity: 1; color: var(--red); }

@media (max-width: 1080px) {
  .jr-grid { gap: 28px; }
  .lote-layout, .form-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 860px) {
  .top-in { justify-content: space-between; flex-wrap: wrap; gap: 0 12px; min-height: 60px; padding-top: 8px; }
  .nav { order: 3; width: 100%; margin: 0; gap: 18px; overflow-x: auto; padding: 4px 0 6px; font-size: 0.92rem; scrollbar-width: none; }
  .nav a { white-space: nowrap; }
  .logo-txt small { letter-spacing: 0.18em; white-space: nowrap; }
  .line { grid-template-columns: 64px 1fr; }
  .line-img { width: 64px; height: 56px; }
  .line-actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .filters, .prod-img { top: auto; }
  .summary { top: auto; }
  .hero-in { min-height: 0; }
  .hero-copy { padding: 40px 0 32px; }
  .hero-art { position: relative; height: clamp(200px, 55vw, 360px); }
  .hero-art::after { background: linear-gradient(0deg, var(--ink), transparent 33%); }
  .strip-in { grid-template-columns: 1fr 1fr; }
  .colors-demo, .faq, .prod, .detail { grid-template-columns: 1fr; }
  .prod-img { position: static; }
  .cat-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .jr-grid { grid-template-columns: 1fr; gap: 0; }
  .jr-stage { top: 96px; z-index: 2; padding: 12px 14px 12px; border-radius: 16px; box-shadow: 0 16px 30px rgb(0 0 0 / 0.5); }
  .jr-map { margin: 2px 0; }
  .jr-dia { font-size: 1.9rem; }
  .jr-paso { font-size: 0.8rem; }
  .jr-pago { padding: 6px 8px; font-size: 0.74rem; gap: 6px; }
  .jr-step { min-height: 75vh; padding-left: 16px; }
  .jr-step:first-child { padding-top: 28px; }
  .jr-roles { grid-template-columns: 1fr; }
  .sec { padding: 56px 0; }
  .cta-final { padding: 32px 24px; }
  .cta-final::before { background: linear-gradient(90deg, rgb(18 18 18 / 0.96), rgb(18 18 18 / 0.8) 70%, rgb(18 18 18 / 0.42)); }
  .form { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .lote-bar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; background: var(--ink); color: #fff; border-radius: 16px; padding: 10px 10px 10px 16px; align-items: center; justify-content: space-between; gap: 10px; box-shadow: 0 10px 30px rgb(0 0 0 / 0.3); }
  .lote-bar[hidden] { display: none; }
  body.has-bar { padding-bottom: 84px; }
  .admin-table { display: block; overflow-x: auto; }
}

@media print {
  .top, .foot, .lote-bar, .no-print, #toast { display: none !important; }
  body { background: #fff; }
  .box, .line { box-shadow: none; border: 1px solid #ddd; }
}
