/* =====================================================================
   CycloNet · cotizador (usa los tokens de cyclonet-v3.css)
   ===================================================================== */
body.qz { min-height: 100vh; background: radial-gradient(900px 500px at 100% 0%, rgba(112, 198, 233, .18), transparent 60%), radial-gradient(800px 500px at 0% 100%, rgba(74, 108, 247, .12), transparent 60%), var(--bg); }
.qz-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(12, 79, 202, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 79, 202, .05) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); mask: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }
.qz-bg span { position: absolute; left: var(--x); top: var(--y); font: 500 20px 'JetBrains Mono', monospace; color: rgba(12, 79, 202, .16); animation: drift 14s ease-in-out var(--d) infinite; }
@keyframes drift { 50% { transform: translateY(-18px) rotate(4deg); } }

/* barra superior */
.qz-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 14px var(--gutter); background: rgba(245, 247, 251, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.qz-logo img { height: 28px; width: auto; }
.qz-progress { flex: 1; height: 6px; border-radius: 6px; background: #dfe6f3; overflow: hidden; max-width: 640px; margin-inline: auto; }
.qz-progress i { display: block; height: 100%; background: var(--grad-deep); transform-origin: 0 50%; transform: scaleX(0); transition: transform .6s var(--ease); }
.qz-saved { font: 500 12.5px var(--font-d); color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.qz-close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 22px; color: var(--ink); background: #fff; box-shadow: var(--shadow); }

/* columnas */
.qz-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 56px); max-width: 1180px; margin: 0 auto; padding: clamp(18px, 3vw, 40px) var(--gutter) 120px; align-items: start; }
.qz-intro { display: none; margin-bottom: 8px; }
.is-first .qz-intro { display: block; }
.qz-intro__t { font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); max-width: 40em; }
.qz-intro__t b { color: var(--ink); }

/* pregunta */
.q__step { font: 600 12.5px var(--font-d); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-top: 18px; }
.q__t { margin-top: 8px; font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; letter-spacing: -.02em; }
.q__h { margin-top: 10px; color: var(--muted); font-size: 16px; max-width: 42em; }
.opts { display: grid; gap: 12px; margin-top: 26px; }
.opts--cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.opts--list { grid-template-columns: 1fr; max-width: 640px; }
.opts--chips { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.opts--pills { display: flex; flex-wrap: wrap; }
.opts--mini { margin-top: 14px; }
.opt { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; border: 1.5px solid var(--line); cursor: pointer; text-align: left; color: var(--ink); background: #fff; font: inherit; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease), background .25s; animation: optIn .5s var(--ease) both; animation-delay: calc(var(--i) * 35ms); }
@keyframes optIn { from { opacity: 0; transform: translateY(10px); } }
.opt:hover { border-color: rgba(74, 108, 247, .5); transform: translateY(-2px); box-shadow: 0 14px 30px -22px rgba(12, 79, 202, .6); }
.opt > i { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; font-size: 24px; color: var(--blue); background: linear-gradient(135deg, rgba(112, 198, 233, .2), rgba(74, 108, 247, .16)); transition: background .25s, color .25s; }
.opt b { display: block; font: 600 15.5px var(--font-d); }
.opt small { display: block; margin-top: 3px; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.opt kbd { position: absolute; top: 10px; right: 12px; font: 500 11px 'JetBrains Mono', monospace; color: #a5b0c6; }
.opts--cards .opt { flex-direction: column; align-items: flex-start; padding: 20px; min-height: 150px; }
.opts--pills .opt { padding: 13px 20px; border-radius: 999px; }
.opts--pills .opt kbd, .opts--mini kbd { display: none; }
.opt.is-on { border-color: var(--blue); background: linear-gradient(135deg, rgba(112, 198, 233, .1), rgba(74, 108, 247, .1)); box-shadow: 0 0 0 4px rgba(74, 108, 247, .12); }
.opt.is-on > i { color: #fff; background: var(--grad-deep); }
.opt.is-on::after { content: ""; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; animation: tick .3s var(--ease); }
@keyframes tick { from { transform: scale(0); } }
.opts--pills .opt.is-on::after { display: none; }
.opt.is-on kbd { display: none; }
.opt--none { border-style: dashed; justify-content: center; }
.q__text { width: 100%; margin-top: 24px; padding: 18px 20px; border-radius: 18px; border: 1.5px solid var(--line); font: 500 17px/1.5 var(--font-b); color: var(--ink); background: #fff; resize: vertical; min-height: 140px; transition: border-color .25s, box-shadow .25s; }
.q__text:focus { outline: 0; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(74, 108, 247, .12); }
.slider { margin-top: 30px; max-width: 560px; padding: 24px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.slider output { font: 700 54px/1 var(--font-d); background: var(--grad-deep); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slider span { margin-left: 8px; color: var(--muted); }
.slider input { width: 100%; margin-top: 18px; accent-color: var(--blue); height: 28px; }

/* navegación */
.qz-nav { display: flex; align-items: center; gap: 12px; margin-top: 32px; }
.qz-nav #next { margin-left: auto; }
.qz-nav button:disabled { opacity: .4; pointer-events: none; }
.qz-hint { font-size: 13px; color: var(--muted); }
.qz-hint kbd { padding: 3px 7px; border-radius: 6px; font: 500 11.5px 'JetBrains Mono', monospace; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.is-result .qz-nav, .is-result .qz-intro { display: none; }

/* resumen en vivo */
.live { position: sticky; top: 86px; }
.live__card { position: relative; padding: 24px; border-radius: 26px; color: #fff; background: radial-gradient(400px 260px at 100% 0%, #2b2aa8, transparent 70%), linear-gradient(160deg, var(--navy), #0d1a6b); box-shadow: 0 40px 80px -40px rgba(7, 22, 64, .7); overflow: hidden; }
.live__card::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(143, 200, 255, .35) 1px, transparent 1.5px); background-size: 22px 22px; -webkit-mask: linear-gradient(#000, transparent 60%); mask: linear-gradient(#000, transparent 60%); opacity: .5; pointer-events: none; }
.live__eyebrow { display: flex; align-items: center; gap: 8px; font: 600 12px var(--font-d); letter-spacing: .1em; text-transform: uppercase; color: var(--ice); }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
.live h2 { margin-top: 12px; color: #fff; font-size: 19px; font-weight: 600; }
.live__range { margin-top: 10px; font: 700 30px/1.1 var(--font-d); letter-spacing: -.02em; background: linear-gradient(90deg, #8fe1ff, #c7d2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.live:not(.has-est) .live__range { font-size: 18px; font-weight: 500; }
.live__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.live__meta div { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.live__meta small { display: block; font-size: 11.5px; color: #aebde8; }
.live__meta b { font: 600 13.5px var(--font-d); }
.live__items { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.live__items li { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: #c8d4f5; animation: optIn .4s var(--ease) both; }
.live__items b { flex: none; font: 600 12px var(--font-d); color: #fff; }
.live__trust { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 6px; font-size: 13px; color: #c8d4f5; }
.live__trust i { color: var(--ice); margin-right: 6px; }
.dock { display: none; }

/* resultado */
.is-result .qz-main { grid-template-columns: 1fr; max-width: 1000px; }
.is-result .live { display: none; }
.res__kpis { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; margin-top: 26px; }
.kpi { padding: 20px 22px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.kpi small { display: block; font: 600 12px var(--font-d); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kpi b { display: block; margin-top: 8px; font: 700 22px/1.15 var(--font-d); color: var(--ink); }
.kpi span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.kpi--main { color: #fff; background: radial-gradient(300px 200px at 100% 0%, #4a6cf7, transparent 70%), linear-gradient(150deg, var(--blue), #1d1680); }
.kpi--main small, .kpi--main span { color: #c8d4f5; }
.kpi--main b { color: #fff; font-size: 30px; }
.roi, .fit { display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; padding: 18px 20px; border-radius: 20px; background: #eafaf2; color: #14513a; box-shadow: inset 0 0 0 1px #bfe8d3; }
.roi > i, .fit > i { flex: none; font-size: 28px; color: #1f9a62; }
.roi small { display: block; margin-top: 6px; font-size: 12.5px; opacity: .8; }
.fit { background: #eef3ff; color: var(--ink); box-shadow: inset 0 0 0 1px #cdd9fb; }
.fit > i { color: var(--blue); }
.fit--ok { background: #eafaf2; box-shadow: inset 0 0 0 1px #bfe8d3; }
.fit--ok > i { color: #1f9a62; }
.fit__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.fit__cols > div { padding: 14px; border-radius: 14px; background: #fff; }
.fit__cols small { display: block; font: 600 12px var(--font-d); color: var(--blue); }
.fit__cols b { display: block; margin-top: 4px; font: 700 18px var(--font-d); }
.fit__cols p { margin-top: 6px; font-size: 13px; color: var(--muted); }
.res__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; margin-top: 16px; }
.res__card { padding: 24px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.res__card h2 { font-size: 18px; font-weight: 600; }
.lines { list-style: none; margin: 14px 0 0; padding: 0; }
.lines li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.lines li b { flex: none; font: 600 14px var(--font-d); color: var(--ink); }
.lines li.is-info { color: var(--muted); }
.lines li.is-info b { color: #1f9a62; }
.checks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.checks i { color: #1f9a62; margin-right: 6px; }
.tl { list-style: none; margin: 14px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
.tl li { position: relative; }
.tl li::before { content: ""; position: absolute; left: -25px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--grad-deep); box-shadow: 0 0 0 4px #fff; }
.tl b { display: block; font: 600 12px var(--font-d); color: var(--blue); text-transform: uppercase; letter-spacing: .06em; }
.tl span { display: block; font: 600 15px var(--font-d); color: var(--ink); }
.tl em { display: block; font-style: normal; font-size: 13.5px; color: var(--muted); }
.pay { display: flex; gap: 6px; margin-top: 12px; }
.pay div { padding: 12px; border-radius: 14px; background: var(--bg); min-width: 0; }
.pay b { display: block; font: 700 18px var(--font-d); color: var(--blue); }
.pay small { display: block; font-size: 12px; color: var(--muted); }
.pay span { display: block; font: 600 13px var(--font-d); margin-top: 4px; }
.notes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.notes i { color: var(--blue); margin-right: 6px; }
.disc { margin-top: 16px; font-size: 13px; color: var(--muted); }
.send { margin-top: 26px; padding: clamp(22px, 3vw, 32px); border-radius: 28px; background: #fff; box-shadow: var(--shadow-hi); }
.send h2 { font-size: 24px; font-weight: 700; }
.send > p { margin-top: 6px; color: var(--muted); }
.send__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.send select { width: 100%; padding: 13px 15px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); font: 500 15px var(--font-b); color: var(--ink); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.consent input { margin-top: 3px; accent-color: var(--blue); width: 18px; height: 18px; }
.send__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.sent { margin-top: 26px; padding: 32px; border-radius: 28px; text-align: center; background: #fff; box-shadow: var(--shadow-hi); }
.sent > i { font-size: 56px; color: #1f9a62; }
.sent h2 { margin-top: 10px; font-size: 24px; }
.sent p { margin: 10px auto 20px; max-width: 32em; color: var(--muted); }
.res__tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* toast y confeti */
.qz-toast { position: fixed; left: 50%; bottom: 96px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 14px; font: 500 14px var(--font-d); color: #fff; background: var(--ink); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5); transition: opacity .25s, transform .25s var(--ease); pointer-events: none; max-width: 92vw; text-align: center; }
.qz-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 70; }
.fx i { position: absolute; width: 10px; height: 10px; border-radius: 3px; }

/* celular */
@media (max-width: 900px) {
  .qz-main { grid-template-columns: 1fr; padding-bottom: 140px; }
  .qz-saved, .qz-hint { display: none; }
  .live { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 40; padding: 0 12px 84px; transform: translateY(105%); transition: transform .45s var(--ease); }
  .show-live .live { transform: none; }
  .live__card { max-height: 70vh; overflow: auto; }
  .dock { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border: 0; border-radius: 18px; color: #fff; text-align: left; background: linear-gradient(160deg, var(--navy), #0d1a6b); box-shadow: 0 20px 40px -18px rgba(7, 22, 64, .8); cursor: pointer; }
  .dock small { display: block; font-size: 11.5px; color: #aebde8; }
  .dock b { font: 600 16px var(--font-d); }
  .dock i { font-size: 24px; transition: transform .3s; }
  .show-live .dock i { transform: rotate(180deg); }
  .is-result .dock { display: none; }
  .qz-nav { position: fixed; left: 0; right: 0; bottom: 74px; z-index: 35; margin: 0; padding: 10px 12px; background: linear-gradient(transparent, var(--bg) 30%); }
  .opts--cards { grid-template-columns: 1fr 1fr; }
  .opts--cards .opt { min-height: 0; padding: 14px; }
  .opts--cards .opt small { display: none; }
  .opts--chips { grid-template-columns: 1fr; }
  .res__kpis, .res__grid, .fit__cols, .send__row { grid-template-columns: 1fr; }
}
@media (max-width: 380px) { .opts--cards { grid-template-columns: 1fr; } }

/* PDF: solo el plan */
@media print {
  .qz-top, .qz-bg, .dock, .live, .send, .sent, .res__tools, .qz-toast, .fx { display: none !important; }
  body.qz { background: #fff; }
  .qz-main { padding: 0; }
  .res__card, .kpi, .roi, .fit { box-shadow: none; border: 1px solid #dde4f0; break-inside: avoid; }
  .kpi--main { color: #000; background: #eef3ff; }
  .kpi--main b, .kpi--main small, .kpi--main span { color: #0b1f5c; }
}

/* Tu equipo: horas por especialidad */
.res__sub { margin: 0 0 12px; font-size: .9rem; color: var(--muted, #5b6b86); }
.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.team li { display: grid; grid-template-columns: minmax(120px, 1fr) 1.2fr auto; align-items: center; gap: 10px; font-size: .9rem; }
.team li i { height: 8px; border-radius: 999px; background: linear-gradient(90deg, #4a6cf7, #70c6e9); width: var(--w); }
.team li b { font-variant-numeric: tabular-nums; }
.lines small { color: var(--muted, #5b6b86); font-weight: 400; }
@media (max-width: 560px) { .team li { grid-template-columns: 1fr auto; } .team li i { grid-column: 1 / -1; grid-row: 2; } }
.lvl { margin-top: 16px; padding: 18px 20px; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.06), inset 0 0 0 1px #e3e8f2; }
.lvl h2 { margin: 0 0 4px; font-size: 18px; }
.lvl__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.lvl__opt { display: grid; gap: 4px; justify-items: start; text-align: left; padding: 14px 16px; border: 0; border-radius: 16px; background: #f5f7fb; color: var(--ink); box-shadow: inset 0 0 0 1px #e3e8f2; cursor: pointer; font: inherit; transition: box-shadow .2s, background .2s; }
.lvl__opt:hover { box-shadow: inset 0 0 0 1px var(--blue); }
.lvl__opt i { font-size: 22px; color: var(--blue); }
.lvl__opt span { font-weight: 700; font-size: 15px; }
.lvl__opt small { color: var(--muted); font-size: 12.5px; }
.lvl__opt.is-on { background: #eef3ff; box-shadow: inset 0 0 0 2px var(--blue); }
@media (max-width: 640px) { .lvl__opts { grid-template-columns: 1fr; } }
@media print { .lvl { display: none; } }
.prec { display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; padding: 18px 20px; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.06), inset 0 0 0 1px #e3e8f2; }
.prec b { display: block; }
.prec small { display: block; color: var(--muted); margin-top: 2px; }
.prec p { margin: 10px 0 0; font-size: 14px; }
.prec__meter { display: flex; gap: 3px; align-items: flex-end; height: 26px; flex: none; margin-top: 2px; }
.prec__meter i { width: 7px; border-radius: 3px; background: #dde4f0; }
.prec__meter i:nth-child(1) { height: 10px; } .prec__meter i:nth-child(2) { height: 18px; } .prec__meter i:nth-child(3) { height: 26px; }
.prec--orientativa .prec__meter i:nth-child(1) { background: #f59e0b; }
.prec--media .prec__meter i:nth-child(-n+2) { background: var(--blue); }
.prec--alta .prec__meter i { background: #16a34a; }
.prec__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media print { .prec__btns, .prec p { display: none; } }
/* Membrete de CycloNet: solo al imprimir o guardar la cotización en PDF */
.res__brand { display: none; }
@media print {
  .res__brand { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 0 0 14px; margin: 0 0 18px; border-bottom: 3px solid #0c4fca; break-inside: avoid; }
  .res__brand img { width: 170px; height: auto; display: block; }
  .res__brand-who { display: grid; gap: 1px; font-size: 11px; color: #4b5563; }
  .res__brand-who b { font-size: 14px; color: #0b1f5c; }
  .res__brand-ref { text-align: right; display: grid; gap: 1px; font-size: 11px; color: #4b5563; }
  .res__brand-ref small { text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
  .res__brand-ref b { font-size: 15px; color: #0b1f5c; }
  /* Que se impriman los colores del indicador de precisión, las barras y la inversión */
  .prec__meter i, .team li i, .kpi--main { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
