/* public_html/tools/quote/assets/quote.css  */
/* Sprint 2 · PAW Group · Cotizador mejorado  */

:root {
  --navy:   #1D2E57;
  --yellow: #FFD200;
  --bg:     var(--navy);
  --text:   #ffffff;
  --muted:  rgba(255,255,255,.78);
  --card:   #ffffff;
  --cardText: #0B1020;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(0,0,0,.22);
  --shadowSoft: 0 8px 22px rgba(0,0,0,.16);
}
* { box-sizing: border-box; }

body.tool-quote {
  background: var(--bg);
  color: var(--text);
}

/* ── Shell ──────────────────────────────────────────────────── */
.q-shell { max-width: 980px; margin: 0 auto; padding: 26px 0 56px; }

/* ── Header ─────────────────────────────────────────────────── */
.q-head { margin: 10px 0 14px; }
.q-head--center { text-align: center; }
.q-kicker {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .3px;
}
.q-title {
  margin: 10px 0 6px;
  font-size: clamp(24px, 4vw, 36px);
  color: #fff;
  letter-spacing: -.3px;
  font-weight: 900;
}
.q-sub { margin: 0 auto; line-height: 1.45; max-width: 72ch; color: rgba(11,16,32,.62); }
.q-head .q-sub { color: var(--muted); }

/* ── Cards ──────────────────────────────────────────────────── */
.q-card {
  margin-top: 18px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 24px;
  color: var(--cardText);
}
.q-drawer { position: relative; overflow: hidden; }
.q-drawer__top {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.q-drawer__badge { font-size: 12px; color: rgba(11,16,32,.55); white-space: nowrap; font-weight: 700; }
.q-drawer__bar {
  flex: 1; height: 8px; border-radius: 999px;
  background: rgba(29,46,87,.10); overflow: hidden;
}
.q-drawer__fill {
  display: block; height: 100%;
  background: var(--yellow); border-radius: 999px;
  transition: width .5s ease;
}

/* ── Headings ───────────────────────────────────────────────── */
.q-h2 { margin: 0 0 18px; font-size: 19px; font-weight: 900; }
.q-h2--center { text-align: center; }
.q-stack { display: flex; flex-direction: column; gap: 16px; }
.q-sep { height: 1px; background: rgba(29,46,87,.10); margin: 4px 0; }

/* ── Form ───────────────────────────────────────────────────── */
.q-form { margin: 0; }
.q-grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-top: 6px;
}
@media (max-width: 860px) { .q-grid2 { grid-template-columns: 1fr; } }
.q-field { display: flex; flex-direction: column; gap: 6px; }
.q-label { font-weight: 800; font-size: 13px; color: rgba(11,16,32,.80); }
.q-label--center { text-align: center; }
.q-input {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(0,0,0,.10);
  outline: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--cardText);
  background: #fff;
  transition: border-color .12s, box-shadow .12s;
}
.q-input:focus {
  border-color: rgba(29,46,87,.4);
  box-shadow: 0 0 0 4px rgba(29,46,87,.08);
}
.q-input::placeholder { color: rgba(11,16,32,.35); }
.q-err { min-height: 16px; color: #b42318; font-size: 12px; font-weight: 700; }
.q-err--center { text-align: center; }

/* ── Risk level hint ─────────────────────────────────────────── */
.q-risk-hint {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px; justify-content: center;
  margin-top: 6px; font-size: 12px;
}
.q-risk-hint__tag {
  padding: 3px 10px; border-radius: 20px; font-weight: 700;
}
.q-risk-hint__tag--low  { background: #DCFCE7; color: #166534; }
.q-risk-hint__tag--high { background: #FEE2E2; color: #991B1B; }
.q-risk-hint__sep { color: rgba(11,16,32,.35); }
.q-risk-hint__help {
  color: var(--navy); font-weight: 700;
  text-decoration: none; font-size: 12px;
}
.q-risk-hint__help:hover { text-decoration: underline; }

/* ── Buttons ─────────────────────────────────────────────────── */
.q-actions { display: flex; justify-content: center; margin-top: 20px; }
.q-actions--single { justify-content: center; }
.q-actions--between { justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.q-actions--stack { flex-direction: column; align-items: stretch; gap: 10px; max-width: 360px; margin: 16px auto 0; }

.q-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 13px 20px; border-radius: 14px; border: 0;
  text-decoration: none; font-weight: 900; cursor: pointer;
  width: 100%; max-width: 380px; font-size: 15px;
  transition: opacity .12s, transform .1s, filter .1s;
}
.q-btn--primary {
  background: #0B1020; color: #fff;
  box-shadow: var(--shadowSoft);
}
.q-btn--primary:hover { filter: brightness(1.08); }
.q-btn--primary:focus { outline: none; box-shadow: 0 0 0 4px rgba(255,210,0,.3), var(--shadowSoft); }

.q-btn--ghost {
  background: #fff; color: #111;
  border: 1.5px solid rgba(0,0,0,.12);
  max-width: 140px;
}
.q-btn--whatsapp { background: #25D366; color: #fff; }
.q-btn--whatsapp:hover { filter: brightness(.94); }
.q-btn--download { background: var(--navy); color: #fff; }
.q-btn--outline  { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }

/* ── Help link ───────────────────────────────────────────────── */
.q-help { margin-top: 12px; }
.q-help--center { text-align: center; }
.q-help__link { color: rgba(29,46,87,.80); font-weight: 700; text-decoration: none; font-size: 13px; }
.q-help__link:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════
   Choice cards (tamaño + riesgo)
   ══════════════════════════════════════════════════════════════ */
.q-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 10px; margin-top: 4px;
}
@media (max-width: 860px) { .q-cards { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 500px)  { .q-cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.q-cards--risk .q-cardopt { padding: 10px 8px; }

.q-cardopt {
  appearance: none;
  border: 1.5px solid rgba(0,0,0,.09);
  background: #fff;
  border-radius: 14px;
  padding: 12px 8px;
  cursor: pointer;
  text-align: center;
  font-weight: 900;
  font-size: 14px;
  color: rgba(11,16,32,.86);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  transition: transform .08s, box-shadow .08s, border-color .08s;
  position: relative;
}
.q-cardopt:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.10); }
.q-cardopt:focus { outline: none; box-shadow: 0 0 0 4px rgba(29,46,87,.12); border-color: rgba(29,46,87,.3); }
.q-cardopt.is-selected {
  border-color: var(--navy);
  background: #EEF2FF;
  box-shadow: 0 0 0 3px rgba(255,210,0,.4), 0 8px 20px rgba(0,0,0,.10);
  transform: translateY(-2px);
}
.q-cardopt.is-selected::after {
  content: "✓";
  position: absolute; top: 6px; right: 8px;
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--yellow); color: #111;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900;
}
.q-cardopt__main { display: block; font-size: 16px; }
.q-cardopt__sub  { display: block; font-size: 11px; color: rgba(11,16,32,.55); font-weight: 700; margin-top: 2px; }

/* ══════════════════════════════════════════════════════════════
   Service cards
   ══════════════════════════════════════════════════════════════ */
.q-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px; align-items: stretch;
}
@media (max-width: 900px) { .q-services { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px)  { .q-services { grid-template-columns: 1fr; } }
.q-svc-row2-wrap {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px; margin-top: 12px;
}
@media (max-width: 640px) { .q-svc-row2-wrap { grid-template-columns: 1fr; } }

.q-svc {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 13px;
  border-radius: 16px;
  border: 1.5px solid rgba(0,0,0,.09);
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: border-color .12s, box-shadow .12s, transform .1s;
}
.q-svc:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.10); }
.q-svc:has(input:checked) {
  border-color: var(--navy);
  background: #EEF2FF;
  box-shadow: 0 0 0 3px rgba(255,210,0,.4), 0 10px 24px rgba(0,0,0,.10);
}
.q-svc--popular { border-color: rgba(255,210,0,.7); }
.q-svc__badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--yellow); color: #111;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 900; white-space: nowrap;
}
.q-svc input { accent-color: var(--yellow); margin: 0; width: 16px; height: 16px; }
.q-svc__icon { font-size: 26px; line-height: 1; }
.q-svc__t { font-weight: 900; font-size: 15px; line-height: 1.25; }
.q-svc__d { font-size: 13px; color: rgba(11,16,32,.57); line-height: 1.35; margin-top: 3px; }
.q-svc__title { font-size: 12px; font-weight: 900; letter-spacing: .6px; color: var(--navy); text-transform: uppercase; margin-bottom: 2px; }
.q-svc__bullets { list-style: none; padding: 0; margin: 8px 0 0; }
.q-svc__bullets li { font-size: 12.5px; color: rgba(11,16,32,.55); line-height: 1.4; padding: 2px 0 2px 14px; position: relative; }
.q-svc__bullets li::before { content: '\2022'; position: absolute; left: 0; color: var(--navy); font-weight: 700; }
.q-svc--disabled { opacity: .4; pointer-events: none; }

/* ══════════════════════════════════════════════════════════════
   Price preview (live)
   ══════════════════════════════════════════════════════════════ */
.q-price-preview {
  margin: 16px 0 4px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1D2E57 0%, #2A4080 100%);
  color: #fff;
  padding: 18px 20px;
  box-shadow: 0 6px 24px rgba(29,46,87,.25);
  animation: priceFade .4s ease;
}
@keyframes priceFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.q-price-preview__inner { text-align: center; }
.q-price-preview__label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; opacity: .7; margin-bottom: 6px;
}
.q-price-preview__amount {
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: -.5px;
  line-height: 1;
}
.q-price-preview__mode {
  font-size: 12px; opacity: .75; margin-top: 4px;
}
.q-price-preview__note {
  font-size: 11px; opacity: .65; margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 8px; line-height: 1.4;
}

/* Contact section separator */
.q-contact-title {
  font-weight: 800; font-size: 14px;
  color: rgba(11,16,32,.65);
  margin: 20px 0 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,.07);
}

/* Captcha mejorado */
.q-captcha-wrap { display: flex; align-items: center; gap: 10px; }
.q-captcha-question {
  flex: 1;
  background: rgba(29,46,87,.06);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.q-captcha-input { max-width: 80px; text-align: center; font-size: 16px; font-weight: 900; }

/* Legal */
.q-legal { margin: 12px 0 0; color: rgba(11,16,32,.5); font-size: 12px; line-height: 1.4; text-align: center; }

/* Honeypot */
.q-hp { position: absolute; left: -9999px; top: -9999px; opacity: 0; }

/* ══════════════════════════════════════════════════════════════
   Result screen
   ══════════════════════════════════════════════════════════════ */
.q-result .q-card { margin-top: 0; }
.q-result__ok, .q-result__err { padding: 10px; }

.q-result-icon { font-size: 48px; text-align: center; margin-bottom: 6px; }
.q-result-quote-no {
  text-align: center; font-size: 12px;
  color: rgba(11,16,32,.45); margin-bottom: 16px; font-weight: 700;
}
.q-result-amount-box {
  background: linear-gradient(135deg, #1D2E57 0%, #2A4080 100%);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  color: #fff;
  margin: 16px 0;
}
.q-result-amount-label {
  font-size: 12px; opacity: .7; font-weight: 700; text-transform: uppercase;
  letter-spacing: .4px; margin-bottom: 8px;
}
.q-result-amount-value {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 900; color: var(--yellow);
  letter-spacing: -.5px; line-height: 1;
}
.q-result-amount-mode { font-size: 12px; opacity: .7; margin-top: 4px; }
.q-result-service { font-size: 13px; opacity: .8; margin-top: 8px; font-style: italic; }

.q-result-message {
  text-align: center;
  color: rgba(11,16,32,.65);
  font-size: 14px;
  line-height: 1.5;
  margin: 10px 0 4px;
}
.q-result-email-sent {
  display: inline-flex; align-items: center; gap: 6px;
  background: #DCFCE7; color: #166534;
  padding: 6px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
  margin: 8px auto; display: block; width: fit-content;
}
