/* /cotizar (and /en/quote): the five-step request form with a live mock browser. Chrome (header, menu, footer, cookies) comes from site.css.
   Breakpoints as elsewhere: sm 40rem · lg 64rem. */
@layer sections {

  /* ───────────── Page frame ───────────── */
  .quote { background-color: var(--c-cream); color: var(--c-ink); min-height: 100svh; padding-top: 12vh; padding-bottom: clamp(80px, 10vw, 160px); outline: none; }
  .quote__grid { margin-inline: auto; display: flex; max-width: 1808px; flex-direction: column; }
  .qp-preview { order: 1; margin-top: 4rem; }
  @media (min-width: 64rem) {
    .quote__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 4vw; }
    .qp-preview { order: 0; margin-top: 0; grid-column: 6 / span 7; }
    .qp-left { grid-column: 1 / span 5; grid-row-start: 1; }
    .qp-sticky { position: sticky; top: 110px; }
  }

  /* ───────────── Left column: heading ───────────── */
  .qp-back { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
  .qp-title { margin-top: 1.5rem; font-size: clamp(2.2rem, 4.2vw, 4.8rem); }
  .qp-lede { margin-top: 1.5rem; max-width: 40ch; font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.375; color: var(--c-ink-2); }
  .qp-steps { margin-top: 2.5rem; }

  /* progress */
  .qp-prog { margin-bottom: 1.75rem; }
  .qp-prog__t { font-size: .875rem; line-height: 1.25rem; font-weight: 700; }
  .qp-prog__t span { color: var(--c-ink-2); }
  .qp-prog ol { margin-top: .25rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .375rem; }
  .qp-prog button { display: block; width: 100%; padding-block: .625rem; }
  .qp-prog button:disabled { cursor: default; }
  .qp-prog i { display: block; height: .5rem; border-radius: 99px; background-color: var(--c-paper); transition: background-color .5s var(--ease-std); }
  .qp-prog .is-done i { background-color: var(--c-orange); }
  .qp-prog .is-cur i { background-color: var(--c-ink); }
  @media (hover: hover) { .qp-prog .is-done:hover i { background-color: var(--c-ink); } }

  /* step body */
  .qp-q { display: block; font-size: clamp(1.5rem, 2.1vw, 2.2rem); line-height: 1.02; outline: none; }
  .qp-sub { margin-top: .5rem; display: block; color: var(--c-ink-2); }
  fieldset { min-width: 0; }
  legend { width: 100%; }
  .qp-opts { margin-top: 1.5rem; display: grid; gap: .625rem; }
  @media (min-width: 40rem) { .qp-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .qp-opts .q-wide { grid-column: span 2; } }

  /* option cards */
  .q-opt, .q-chip { --luz: #ff6a004d; --r: 240px; position: relative; isolation: isolate; overflow: hidden; cursor: pointer; border: 1.5px solid var(--c-ink); }
  .q-opt::before, .q-chip::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
    background: radial-gradient(circle var(--r) at var(--mx, 50%) var(--my, 50%), var(--luz), transparent 100%); transition: opacity .45s;
  }
  .q-opt { display: flex; align-items: center; gap: 1rem; border-radius: 12px; padding: 1rem 1.15rem; transition: background-color .4s, color .4s; --luz: #ff6a0047; }
  .q-opt.is-on { background-color: var(--c-ink); color: var(--c-cream); --luz: #ff6a0099; }
  .q-opt.is-on::before { opacity: 0; }
  @media (hover: hover) {
    .q-opt:hover { background-color: #fff; }
    .q-opt.is-on:hover { background-color: var(--c-ink); }
    .q-opt:hover::before, .q-chip:hover::before { opacity: 1; }
  }
  .q-opt:has(input:focus-visible), .q-chip:has(input:focus-visible) { outline: 3px solid var(--c-ink); outline-offset: 3px; }
  .q-opt--goal { min-height: 64px; }
  .q-ico { display: grid; width: 44px; height: 44px; flex: none; place-items: center; border-radius: 12px; background-color: var(--c-paper); font-size: 20px; line-height: 28px; transition: background-color .4s, color .4s; }
  .q-ico svg { width: 1em; height: 1em; }
  .q-opt.is-on .q-ico { background-color: var(--c-orange); color: var(--c-ink); }
  .q-txt { display: grid; gap: .125rem; }
  .q-name { font-weight: 700; line-height: 1.25; }
  .q-desc { font-size: .875rem; line-height: 1.25rem; opacity: .7; }
  .q-radio { display: grid; width: 28px; height: 28px; flex: none; place-items: center; border: 2px solid color-mix(in oklab, var(--c-ink) 25%, transparent); border-radius: 99px; font-size: .875rem; color: transparent; transition: background-color .4s, border-color .4s, color .4s; }
  .q-radio svg { width: 1em; height: 1em; }
  .q-opt.is-on .q-radio { background-color: var(--c-orange); border-color: var(--c-orange); color: var(--c-ink); }

  /* chips */
  .q-chip { --r: 110px; --luz: #ff6a004d; display: inline-flex; min-height: 46px; align-items: center; gap: .45em; border-radius: 10px; padding: 0 1.1em; font-weight: 600; transition: background-color .25s, color .25s, transform .45s var(--ease-kick); }
  .q-chip svg { width: 1em; height: 1em; flex: none; }
  .q-chip.is-on { background-color: var(--c-orange); --luz: #ff6a0099; }
  .q-chip:active { transform: scale(.96); }
  @media (hover: hover) { .q-chip:hover { background-color: #fff; } .q-chip.is-on:hover { background-color: var(--c-orange); } }
  .q-chips { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .625rem; }

  /* fields */
  .qp-fields { margin-top: 1.5rem; display: grid; gap: 1.5rem; }
  .qp-fields--loose { gap: 1.75rem; }
  .q-field { display: grid; gap: .5rem; }
  .q-label { font-weight: 700; }
  .q-label span, .q-opt-t { font-weight: 400; color: var(--c-ink-2); }
  .q-help { margin-top: -.25rem; font-size: .875rem; line-height: 1.25rem; color: var(--c-ink-2); }
  .q-input { width: 100%; border: 2px solid var(--c-ink); border-radius: 14px; background-color: #fff; padding: .75rem 1rem; font-size: 1rem; line-height: 1.5; outline: none; transition: color .15s var(--ease-std), background-color .15s var(--ease-std), border-color .15s var(--ease-std); }
  .q-input:focus { border-color: var(--c-orange); }
  .q-input:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; }
  .q-input::placeholder { color: color-mix(in oklab, var(--c-ink) 62%, transparent); opacity: 1; }
  textarea.q-input { resize: vertical; }
  .q-input.is-bad { border-color: #B3261E; }
  .q-input.is-bad:focus { border-color: var(--c-orange); }
  .q-err { margin-top: .5rem; font-size: .875rem; line-height: 1.25rem; font-weight: 600; color: #B3261E; }
  .q-url { margin-top: 1rem; display: grid; gap: .5rem; }
  .q-url .q-label { font-size: .875rem; line-height: 1.25rem; }
  .q-bait { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

  .qp-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
  .q-back { background-color: transparent; color: var(--c-ink); border-radius: 10px; box-shadow: 0 0 0 1.5px inset; --luz: #ff8a339e; --r: 110px; --ab: color-mix(in srgb, currentColor 13%, transparent); --ac: currentColor; transition: background-color .3s var(--ease-std), color .3s var(--ease-std), box-shadow .3s var(--ease-std); }

  /* review */
  .qp-rev { margin-top: 1.5rem; border: 1.5px solid var(--c-ink); border-radius: 14px; background-color: #fff; }
  .qp-rev > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 1rem; row-gap: .25rem; padding: .875rem 1rem; }
  .qp-rev > div + div { border-top: 2px solid color-mix(in oklab, var(--c-ink) 10%, transparent); }
  .qp-rev dt { font-size: .875rem; line-height: 1.25rem; font-weight: 700; color: var(--c-ink-2); }
  .qp-rev dd { grid-column-start: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
  .qp-rev dd.qp-rev__go { grid-column-start: 2; grid-row: 1 / span 2; }
  .qp-rev__none { color: color-mix(in oklab, var(--c-ink) 35%, transparent); }
  .qp-rev .link { font-size: .875rem; line-height: 1.25rem; font-weight: 700; }
  @media (min-width: 40rem) {
    .qp-rev > div { grid-template-columns: 10rem minmax(0, 1fr) auto; padding-inline: 1.25rem; }
    .qp-rev dt { font-size: 1rem; line-height: 1.5rem; }
    .qp-rev dd { grid-column-start: 2; grid-row-start: 1; }
    .qp-rev dd.qp-rev__go { grid-column-start: 3; grid-row: auto; grid-row-start: 1; }
  }
  .qp-priv { margin-top: 1.25rem; font-size: .875rem; line-height: 1.25rem; color: var(--c-ink-2); }
  .qp-priv a { font-weight: 600; color: var(--c-ink); text-decoration: underline; text-decoration-color: var(--c-orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
  .qp-h2 { display: block; font-size: clamp(1.5rem, 2.1vw, 2.2rem); line-height: 1.02; outline: none; }

  /* confirmation */
  .qp-done { display: grid; justify-items: start; gap: 1.5rem; border: 1.5px solid var(--c-ink); border-radius: 14px; background-color: #fff; padding: clamp(22px, 2.4vw, 36px); }
  .qp-done__t { font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1; outline: none; }
  .qp-done__p { max-width: 44ch; font-size: 1.125rem; line-height: 1.625; color: var(--c-ink-2); }
  .qp-done__p strong { color: var(--c-ink); }
  .qp-done__h { font-weight: 700; }
  .qp-done ul { margin-top: .75rem; display: grid; gap: .625rem; }
  .qp-done li { display: flex; align-items: flex-start; gap: .75rem; }
  .qp-done li > span { margin-top: .125rem; display: grid; width: 24px; height: 24px; flex: none; place-items: center; border-radius: 99px; background-color: var(--c-orange); font-size: .875rem; }
  .qp-done li svg { width: 1em; height: 1em; }
  .qp-done__btns { display: flex; flex-wrap: wrap; gap: .75rem; }
  .q-line { background-color: transparent; color: var(--c-ink); border-radius: 10px; box-shadow: 0 0 0 1.5px inset; --luz: #ff8a339e; --r: 110px; transition: background-color .3s var(--ease-std), color .3s var(--ease-std), box-shadow .3s var(--ease-std); }

  /* ───────────── Preview ───────────── */
  .qp-stage {
    overflow: hidden; border-radius: var(--radius-stage); padding: 9% 7% 15%;
    background: url("/assets/cotizar-sala.svg") center / cover rgb(201, 84, 14);
  }
  .qp-win { position: relative; }
  .qp-win__frame { overflow: hidden; border: 1.5px solid var(--c-ink); border-radius: 14px; background-color: #fff; box-shadow: 0 0 #0000, 0 0 #0000, 0 0 #0000, 0 0 #0000, 0 30px 60px -34px rgba(11, 11, 11, .55); }
  .qp-win__bar { display: flex; height: 2.5rem; align-items: center; gap: .5rem; border-bottom: 2px solid color-mix(in oklab, var(--c-ink) 10%, transparent); background-color: #F4F1EA; padding-inline: 1rem; }
  .qp-win__bar i { display: block; width: .625rem; height: .625rem; border-radius: 99px; background-color: color-mix(in oklab, var(--c-ink) 20%, transparent); }
  .qp-win__bar b { display: block; width: 46px; }
  .qp-win__url { margin-inline: auto; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 99px; background-color: #fff; padding: .25rem 1rem; font-size: .75rem; line-height: 1rem; font-weight: 600; color: color-mix(in oklab, var(--c-ink) 70%, transparent); }
  .qp-win__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background-color: #FBFAF6; container-type: size; }
  .pv-layout { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
  .pv-layout > div { box-sizing: border-box; }
  .pv-b { display: block; }
  .pv-acc { background-color: var(--acc); color: var(--c-ink); }
  .pv-bar { display: block; border-radius: 99px; }
  .pv-btn { display: grid; place-items: center; overflow: hidden; white-space: nowrap; border-radius: 99px; background-color: var(--acc); color: var(--c-ink); font-size: 1.35cqw; font-weight: 700; line-height: 1; }
  .pv-img { position: relative; display: block; overflow: hidden; border-radius: 1cqw; width: 100%; background:
      linear-gradient(to top right, transparent calc(50% - 1px), #CFC8B7 50%, transparent calc(50% + 1px)),
      linear-gradient(to bottom right, transparent calc(50% - 1px), #CFC8B7 50%, transparent calc(50% + 1px)), #E9E4D8; box-shadow: inset 0 0 0 1px #D2CBBA; }
  .pv-img i { position: absolute; inset: 0; background: url("/assets/cotizar-escena.svg") center top / cover; opacity: 0; transition: opacity .5s var(--ease-std); }
  .qp-stage[data-goal]:not([data-goal=""]) .pv-img i { opacity: 1; }
  .pv-logo { display: flex; align-items: center; gap: .8cqw; min-width: 0; }
  .pv-logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.7cqw; font-weight: 700; line-height: 1.55; color: color-mix(in oklab, var(--c-ink) 35%, transparent); transition: color .3s; }
  .pv-logo.is-set span { color: var(--c-ink); }
  .pv-title { display: none; font-size: 3.4cqw; line-height: 1.05; font-weight: 700; color: var(--c-ink); max-width: 40cqw; }
  .qp-stage[data-goal]:not([data-goal=""]) .pv-title { display: block; }
  .qp-stage[data-goal]:not([data-goal=""]) .pv-bars { display: none; }
  .pv-bars { display: grid; gap: 1cqw; }

  /* landing */
  .pv-land { display: flex; height: 100%; flex-direction: column; gap: 3cqw; padding: 3.5cqw; }
  .pv-row { display: flex; align-items: center; justify-content: space-between; }
  .pv-hero { display: grid; flex: 1 1 0%; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 4cqw; }
  .pv-hero > div { display: grid; gap: 1.6cqw; }
  .pv-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4cqw; }
  .pv-feat { display: flex; align-items: center; gap: 1cqw; }
  .pv-feat > i { display: block; width: 3cqw; height: 3cqw; flex: none; border-radius: 99px; background-color: var(--acc); }
  .pv-feat > span { display: grid; flex: 1 1 0%; gap: .7cqw; }

  /* institucional */
  .pv-inst { display: flex; height: 100%; flex-direction: column; gap: 3cqw; padding: 3.5cqw; }
  .pv-inst .pv-nav { margin-left: auto; display: flex; gap: 2cqw; }
  .pv-inst .pv-row { justify-content: flex-start; gap: 3cqw; }
  .pv-inst .pv-hero { grid-template-columns: 1fr 1.15fr; flex: none; }
  .pv-card { display: grid; gap: 1cqw; border-radius: 1.2cqw; background-color: #fff; padding: 1.4cqw; box-shadow: 0 .3cqw 1.2cqw rgba(60, 40, 10, .08); }

  /* tienda */
  .pv-shop { display: flex; height: 100%; flex-direction: column; gap: 2.4cqw; padding: 3.5cqw; }
  .pv-shop .pv-row { justify-content: flex-start; gap: 3cqw; }
  .pv-cart { position: relative; display: grid; width: 4cqw; height: 4cqw; place-items: center; border-radius: 99px; background-color: var(--c-ink); color: var(--c-cream); font-size: 2cqw; }
  .pv-cart svg { width: 1em; height: 1em; }
  .pv-cart em { position: absolute; right: -.6cqw; top: -.6cqw; display: grid; width: 2.2cqw; height: 2.2cqw; place-items: center; border-radius: 99px; background-color: var(--acc); color: var(--c-ink); font-size: 1.2cqw; font-style: normal; font-weight: 700; }
  .pv-pills { display: flex; gap: 1.4cqw; }
  .pv-pills i { display: block; width: 11cqw; height: 3cqw; border-radius: 99px; background-color: #ECE7DC; }
  .pv-pills i:first-child { background-color: var(--acc); }
  .pv-grid4 { display: grid; flex: 1 1 0%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2cqw; min-height: 0; }
  .pv-prod { display: grid; align-content: start; gap: .8cqw; border-radius: 1.2cqw; background-color: #fff; padding: 1cqw; box-shadow: 0 .3cqw 1.2cqw rgba(60, 40, 10, .08); }
  .pv-prod > div { display: flex; align-items: center; justify-content: space-between; }
  .pv-prod > div i { display: block; width: 2.4cqw; height: 2.4cqw; border-radius: 99px; background-color: var(--acc); }

  /* software */
  .pv-soft { display: flex; height: 100%; }
  .pv-side { display: flex; width: 18cqw; flex-direction: column; gap: 1.4cqw; background-color: #17191D; padding: 2cqw; }
  .pv-side > span:first-child { display: flex; align-items: center; gap: .8cqw; }
  .pv-side > span:first-child i { display: block; width: 2.8cqw; height: 2.8cqw; border-radius: .8cqw; background-color: var(--acc); }
  .pv-side > span:first-child b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.4cqw; font-weight: 700; color: #fff; }
  .pv-side > i { display: block; height: 3cqw; border-radius: .8cqw; background-color: rgba(255, 255, 255, .1); }
  .pv-side > i.is-cur { background-color: var(--acc); }
  .pv-main { display: flex; flex: 1 1 0%; flex-direction: column; gap: 2cqw; padding: 2.6cqw; min-width: 0; }
  .pv-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8cqw; }
  .pv-kpi { display: grid; gap: 1cqw; border-radius: 1.2cqw; background-color: #fff; padding: 1.6cqw; }
  .pv-chart { display: flex; flex: 1 1 0%; align-items: flex-end; gap: 1.6cqw; border-radius: 1.2cqw; background-color: #fff; padding: 2.4cqw; min-height: 0; }
  .pv-chart i { display: block; flex: 1 1 0%; border-radius: .6cqw; background-color: rgba(11, 11, 11, .8); }
  .pv-chart i.is-acc { background-color: var(--acc); }

  /* unsure */
  .pv-unsure { position: relative; display: grid; height: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 2cqw; padding: 4cqw; }
  .pv-unsure > span { display: block; border: .35cqw dashed color-mix(in oklab, var(--c-ink) 25%, transparent); border-radius: 1.4cqw; }
  .pv-unsure > .u1 { grid-column: 1 / span 3; }
  .pv-unsure > .u2 { grid-column: 1 / span 2; grid-row: 2 / span 2; display: grid; place-items: center; }
  .pv-unsure > .u2 b { display: grid; width: 12cqw; height: 12cqw; place-items: center; border-radius: 99px; background-color: var(--acc); font-size: 6cqw; font-weight: 700; line-height: 1; color: var(--c-ink); }
  .pv-unsure > em { position: absolute; bottom: 3cqw; left: 50%; translate: -50% 0; white-space: nowrap; border-radius: 99px; background-color: var(--c-ink); padding: .7cqw 2cqw; font-size: 1.4cqw; font-style: normal; font-weight: 700; color: var(--c-cream); }
  .pv-empty { display: grid; height: 100%; place-items: center; padding: 6cqw; text-align: center; }
  .pv-empty p { max-width: 40cqw; font-size: 2.4cqw; font-weight: 600; line-height: 1.375; color: var(--c-ink-2); }

  /* floating tags and search card */
  .pv-tag {
    position: absolute; top: -1rem; z-index: 2; display: flex; align-items: center; gap: .4rem; max-width: 46%; overflow: hidden; border: 1.5px solid var(--c-ink); border-radius: 99px; background-color: #fff;
    padding: .375rem .875rem; font-size: .875rem; line-height: 1.25rem; font-weight: 700; opacity: 0; visibility: hidden; transform: scale(.6) translateY(10px);
  }
  .pv-tag svg { width: 1em; height: 1em; flex: none; }
  .pv-tag span { min-width: 0; overflow: hidden; }
  .pv-site { left: 12%; }
  .pv-time { right: 8%; max-width: 44%; background-color: var(--c-orange); }
  .pv-seo {
    position: absolute; bottom: -12%; left: 4%; z-index: 2; width: min(420px, 64%); border: 1.5px solid var(--c-ink); border-radius: 14px; background-color: #fff; padding: 1rem;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 0 #0000, 0 0 #0000, 0 20px 40px -20px rgba(11, 11, 11, .5); opacity: 0; visibility: hidden; transform: scale(.6) translateY(10px);
  }
  .pv-seo p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pv-seo__url { font-size: .75rem; line-height: 1rem; color: color-mix(in oklab, var(--c-ink) 60%, transparent); }
  .pv-seo__title { font-size: 1.05rem; line-height: 1.55; font-weight: 600; color: #2A4FD6; }
  .pv-seo__desc { margin-top: .25rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal !important; font-size: .875rem; line-height: 1.25rem; color: color-mix(in oklab, var(--c-ink) 70%, transparent); }
  @media not all and (min-width: 40rem) {
    .pv-seo { padding: .625rem; }
    .pv-seo__url { font-size: 10px; line-height: 1.3333; }
    .pv-seo__title { font-size: .75rem; line-height: 1rem; }
    .pv-seo__desc { display: none; }
    .pv-tag { padding: .25rem .625rem; font-size: .75rem; line-height: 1rem; }
  }
}
@layer sections { .q-qm { font-size: 1.1em; font-weight: 700; line-height: 1; } }
