/* Cotizador (/cotizador). Se apoya en las variables y botones de landing-v3.css.
   Compacto a propósito: preguntas y paquete caben en una pantalla de escritorio. */

.quote { padding: 104px 0 56px; background: radial-gradient(circle at 12% 0%, rgba(17,207,192,.1), transparent 30%), var(--paper); }
.quote-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-bottom: 18px; }
.quote-head h1 { margin: 0; color: var(--ink); font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.028em; line-height: 1.1; }
.quote-head h1 em { color: var(--teal); font-style: normal; }
.quote-head p { margin: 0; color: var(--muted); font-size: 15px; }
.quote-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 20px; align-items: start; }

/* ── Preguntas: un renglón cada una ──────────────────────────────────── */
.quote-form { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.q { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 22px; }
.q + .q { border-top: 1px solid var(--line); }
.q-text { min-width: 0; }
.q-text p { margin: 0; color: var(--ink); font-size: 15px; font-weight: 750; letter-spacing: -.008em; line-height: 1.3; }
.q-text small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.q > div:last-child { flex: none; }

.q input[type="number"] { width: 64px; height: 40px; padding: 0 8px; border: 1px solid #bdc9ce; border-radius: 10px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 750; font-variant-numeric: tabular-nums; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.q input[type="number"]::-webkit-outer-spin-button, .q input[type="number"]::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.q input[type="number"]:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.q-number input[type="number"] { width: 132px; }

.q-stepper { display: inline-flex; align-items: center; gap: 6px; }
.q-stepper input[type="number"] { width: 48px; }
.q-stepper button { width: 40px; height: 40px; border: 1px solid #bdc9ce; border-radius: 10px; background: #fff; color: var(--ink); font-size: 20px; font-weight: 600; line-height: 1; cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease; }
.q-stepper button:hover { border-color: var(--ink); background: var(--paper); }

.q-choice { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.q-choice input { position: absolute; opacity: 0; pointer-events: none; }
.q-choice label { display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 34px; border-radius: 999px; color: var(--ink-soft); font-size: 14px; font-weight: 750; cursor: pointer; }
.q-choice input:checked + label { background: var(--teal); color: #fff; }
.q-choice input[value="0"]:checked + label { background: #fff; color: var(--ink); box-shadow: 0 3px 10px rgba(7,24,47,.1); }
.q-choice input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ── Resultado ───────────────────────────────────────────────────────── */
.quote-result { position: sticky; top: 96px; display: grid; gap: 10px; }
.qr-card { padding: 20px 22px; border: 2px solid var(--teal); border-radius: 20px; background: #fff; box-shadow: 0 18px 44px rgba(7,24,47,.1); }
.qr-card[hidden] { display: none; }
.qr-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.qr-eyebrow { margin: 0 0 2px; color: var(--teal-dark); font-size: 11px; font-weight: 800; letter-spacing: .105em; text-transform: uppercase; }
.qr-card h2 { margin: 0; color: var(--ink); font-size: 23px; font-weight: 800; letter-spacing: -.024em; line-height: 1.15; }
.qr-switch { margin: 0; padding: 4px; }
.qr-switch label { min-height: 34px; padding: 0 12px; font-size: 13px; }
.qr-switch label span { padding: 2px 6px; font-size: 10px; }

.qr-lines { display: grid; margin: 12px 0 0; padding: 0; list-style: none; }
.qr-lines li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.qr-lines span { display: grid; min-width: 0; }
.qr-lines strong { color: var(--ink); font-size: 14px; font-weight: 750; }
.qr-lines small { color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.qr-lines em { flex: none; color: var(--ink); font-size: 14px; font-style: normal; font-weight: 750; font-variant-numeric: tabular-nums; }

.qr-extra { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border: 1px dashed #bdc9ce; border-radius: 12px; cursor: pointer; }
.qr-extra input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--teal); }
.qr-extra span { display: grid; flex: 1; min-width: 0; }
.qr-extra strong { font-size: 13px; font-weight: 750; }
.qr-extra small { color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.qr-extra em { flex: none; color: var(--teal-dark); font-size: 13px; font-style: normal; font-weight: 750; }

.qr-total { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; }
.qr-total div { display: grid; }
.qr-total span { font-size: 13px; font-weight: 700; }
.qr-total small { color: #aebbd0; font-size: 11px; }
.qr-total strong { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.qr-note { margin: 8px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.qr-note[hidden] { display: none; }
.qr-note-warn { padding: 8px 12px; border-radius: 10px; background: var(--mist); color: var(--teal-dark); font-weight: 600; }

.qr-cta { width: 100%; margin-top: 12px; }
.qr-trial { margin: 8px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.5; text-align: center; }
.qr-trial a { color: var(--teal-dark); font-weight: 700; }

.qr-why { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.qr-why summary { color: var(--ink); font-size: 12.5px; font-weight: 800; cursor: pointer; }
.qr-why ul { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.qr-why li { position: relative; padding-left: 20px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.45; }
.qr-why li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.qr-upsell { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--paper); color: var(--ink-soft); font-size: 12.5px; line-height: 1.5; }
.qr-upsell[hidden] { display: none; }

.qr-custom p:not(.qr-eyebrow):not(.qr-trial) { margin: 12px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }

.qr-contact { margin: 0; padding: 0 6px; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.qr-contact strong { color: var(--ink); }
.qr-contact a { color: var(--teal-dark); font-weight: 750; text-underline-offset: 3px; }

@media (max-width: 980px) {
  .quote-grid { grid-template-columns: 1fr; }
  .quote-result { position: static; }
}
@media (max-width: 640px) {
  .quote { padding: 92px 0 48px; }
  .q { gap: 12px; padding: 12px 14px; }
  .q-text p { font-size: 14px; }
  .q-number input[type="number"] { width: 92px; }
  .q-stepper button { width: 36px; }
  .q-choice label { width: 50px; }
  .qr-card { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .q-stepper button { transition: none; }
}
