/* Estilos del cotizador de CMO Fraccional (/cotizador/ y /en/quote/). */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --black: #160A30; --white: #FFFFFF; --cream: #F4F1FF;
  --warm-gray: #EDE8FF; --warm-gray2: #E8E3FF;
  --muted: #6B5E8A; --lime: #AAFF47; --purple: #5B12C2;
  --text: #0F0720; --line: rgba(22,10,48,0.09); --line-s: rgba(22,10,48,0.20);
  --lime-tint: rgba(170,255,71,0.13); --max-w: 860px; --error: #B0303A;
}
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Plus Jakarta Sans', -apple-system, sans-serif; background: var(--cream); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; padding-top: 58px; overflow-x: hidden; }
nav.snav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 58px; }
footer.sfoot { margin-top: 0; }

.q-stage { display: flex; justify-content: center; padding: 52px 28px 40px; }
.q-screen { width: 100%; max-width: var(--max-w); min-width: 0; animation: q-fade 340ms ease; }
@keyframes q-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.q-lbl { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.q-screen h1:focus, .q-screen h2:focus { outline: none; }

/* Intro */
.q-intro { padding-top: 40px; }
.q-intro .q-lbl { margin-bottom: 22px; display: block; }
.q-intro h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; margin: 0 0 22px; color: var(--black); }
.q-intro h1 em { font-style: normal; color: var(--purple); }
.q-lead { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--muted); max-width: 620px; margin: 0 0 32px; line-height: 1.65; }
.q-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 34px; }
.q-chips li { font-size: 0.8rem; font-weight: 700; color: var(--purple); background: rgba(91,18,194,0.08); padding: 6px 12px; border-radius: 50px; }
.q-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 8px; }

.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--lime); color: var(--black); border: none; padding: 0.95rem 2rem; font-family: inherit; font-size: 0.95rem; font-weight: 700; border-radius: 50px; cursor: pointer; text-decoration: none; transition: transform .2s, box-shadow .2s; min-height: 48px; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(170,255,71,0.35); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: transparent; border: 1.5px solid var(--line-s); color: var(--text); padding: 0.8rem 1.5rem; font-family: inherit; font-size: 0.88rem; font-weight: 600; border-radius: 50px; cursor: pointer; text-decoration: none; min-height: 48px; transition: border-color .2s, background .2s; }
.btn-ghost:hover { border-color: var(--black); background: var(--warm-gray); }
.btn-ghost:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-restart { background: none; border: none; color: var(--muted); font-family: inherit; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 12px 0; cursor: pointer; min-height: 44px; }
.btn-restart:hover { color: var(--purple); }

/* Secciones estáticas bajo la intro */
.q-info { max-width: calc(var(--max-w) + 56px); margin: 0 auto; padding: 0 28px 72px; }
.q-info h2 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; padding-top: 28px; border-top: 1px solid var(--line-s); }
.q-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 44px; counter-reset: step; }
.q-steps li { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px; font-size: 0.92rem; line-height: 1.55; counter-increment: step; }
.q-steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: var(--lime); color: var(--black); font-size: 0.8rem; font-weight: 800; margin-bottom: 12px; }
.q-steps strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.q-levels { list-style: none; margin: 0 0 20px; border-top: 1px solid var(--line); }
.q-levels li { display: grid; grid-template-columns: 1.1fr 1fr 1.6fr; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.q-levels .lv-name { font-weight: 800; }
.q-levels .lv-price { color: var(--purple); font-weight: 700; }
.q-levels .lv-for { color: var(--muted); }
.q-more { font-size: 0.92rem; }
.q-more a { color: var(--purple); font-weight: 700; }

/* Progreso */
.q-progress { position: sticky; top: 58px; z-index: 10; background: var(--cream); padding: 14px 28px 18px; margin: 0 -28px 32px; }
.q-progress-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.q-track { height: 3px; background: var(--line-s); border-radius: 2px; overflow: hidden; }
.q-fill { height: 100%; background: var(--lime); border-radius: 2px; transition: width 420ms cubic-bezier(0.22,1,0.36,1); }

/* Pregunta */
.q-prompt { font-size: clamp(1.55rem, 3.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; margin: 0 0 12px; color: var(--black); }
.q-hint { color: var(--muted); font-size: 0.95rem; margin: 0 0 30px; }
.q-prompt + .q-options { margin-top: 28px; }
.q-hint + .q-options { margin-top: 0; }
.q-options { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 30px; }
.q-option { width: 100%; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 16px; text-align: left; background: var(--white); border: 1.5px solid var(--line-s); color: var(--text); padding: 18px 20px; font-family: inherit; font-size: 0.98rem; font-weight: 500; line-height: 1.4; border-radius: 14px; cursor: pointer; min-height: 56px; transition: border-color .2s, background .2s, transform .2s; }
.q-option:hover { border-color: var(--black); background: var(--warm-gray); transform: translateX(3px); }
.q-mark { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 7px; background: var(--cream); font-size: 0.75rem; font-weight: 700; color: var(--muted); transition: background .2s, color .2s; }
.q-multi .q-mark { border-radius: 7px; border: 1.5px solid var(--line-s); background: var(--white); }
.q-option[aria-pressed="true"], .q-option.is-selected { border: 2px solid var(--lime); background: var(--lime-tint); transform: none; padding: 17px 19px; }
.q-option[aria-pressed="true"] .q-mark, .q-option.is-selected .q-mark { background: var(--lime); color: var(--black); border-color: var(--lime); }
.q-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; }

/* Resultado */
.q-result .q-lbl { display: block; margin-bottom: 14px; }
.q-reco { background: var(--black); border: 2px solid var(--lime); border-radius: 20px; padding: 34px; margin-bottom: 28px; }
.q-reco-tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--lime); margin-bottom: 14px; }
.q-reco h2 { font-size: clamp(1.8rem, 4.2vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; color: var(--white); margin: 0 0 8px; }
.q-reco-price { font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 800; color: var(--lime); margin: 0 0 16px; }
.q-reco-text { color: rgba(255,255,255,0.82); font-size: 1rem; line-height: 1.65; max-width: 640px; margin: 0 0 24px; }
.q-reco-note { color: rgba(255,255,255,0.7); font-size: 0.85rem; line-height: 1.6; max-width: 640px; margin: 18px 0 0; }
.q-reco .btn-primary { font-size: 1rem; }
.q-later { background: var(--lime-tint); border-radius: 12px; padding: 14px 18px; font-size: 0.92rem; line-height: 1.55; margin-bottom: 28px; }

.q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; margin-bottom: 36px; }
.q-grid > * { min-width: 0; }
.q-panel { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.q-panel h3 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.q-why { list-style: none; margin: 0 0 22px; }
.q-why li { position: relative; padding: 0 0 12px 22px; font-size: 0.92rem; line-height: 1.6; }
.q-why li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); border: 1.5px solid var(--black); }
.q-details summary { cursor: pointer; font-size: 0.8rem; font-weight: 700; color: var(--purple); padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
.q-details[open] summary { margin-bottom: 4px; }
.q-answers { list-style: none; border-top: 1px solid var(--line); }
.q-answers li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.82rem; line-height: 1.5; }
.q-answers .a-q { color: var(--muted); display: block; }
.q-answers .a-v { font-weight: 700; }

/* Formulario */
.q-form label { display: block; font-size: 0.8rem; font-weight: 700; margin: 0 0 6px; }
.q-form .opt { font-weight: 500; color: var(--muted); }
.q-field { margin-bottom: 14px; }
.q-form input[type="text"], .q-form input[type="email"], .q-form input[type="tel"] { width: 100%; background: var(--cream); border: 1.5px solid var(--line-s); color: var(--text); padding: 12px 16px; font-family: inherit; font-size: 0.95rem; border-radius: 12px; outline: none; min-height: 48px; }
.q-form input:focus { border-color: var(--purple); background: var(--white); }
.q-form input[aria-invalid="true"] { border-color: var(--error); }
.q-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.q-privacy { font-size: 0.8rem; line-height: 1.5; color: var(--muted); margin: 0 0 16px; }
.q-privacy a { color: var(--purple); font-weight: 700; }
.q-consent { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; font-size: 0.8rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.q-consent input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--purple); cursor: pointer; }
.q-consent a { color: var(--purple); font-weight: 700; }
.q-error { color: var(--error); font-size: 0.85rem; font-weight: 600; margin: 0 0 12px; }
.q-form .btn-primary { width: 100%; }
.q-done { font-size: 0.95rem; line-height: 1.6; }
.q-done strong { display: block; font-size: 1.05rem; color: var(--purple); margin-bottom: 6px; }

/* Alternativas */
.q-alt-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.q-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.q-alt-card { background: var(--white); border: 1.5px solid var(--line-s); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; }
.q-alt-card h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 4px; }
.q-alt-price { color: var(--purple); font-weight: 800; margin: 0 0 10px; }
.q-alt-card p.q-alt-text { font-size: 0.9rem; line-height: 1.6; color: var(--text); margin: 0 0 18px; flex: 1; }
.q-alt-card .btn-ghost { align-self: flex-start; }
.q-call { background: var(--white); border: 1.5px solid var(--line-s); border-radius: 16px; padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.q-call p { font-size: 0.95rem; line-height: 1.55; max-width: 460px; }
.q-call strong { display: block; font-size: 1.05rem; }

@media (max-width: 860px) {
  .q-stage { padding: 30px 20px 30px; }
  .q-intro { padding-top: 24px; }
  .q-progress { margin: 0 -20px 26px; padding: 12px 20px 16px; }
  .q-info { max-width: none; padding: 0 20px 56px; }
  .q-steps { grid-template-columns: 1fr; }
  .q-levels li { grid-template-columns: 1fr; gap: 2px; }
  .q-grid, .q-alt { grid-template-columns: 1fr; }
  .q-reco { padding: 24px 20px; }
  .q-reco .btn-primary, .q-call .btn-primary, .q-call .btn-ghost { width: 100%; }
  .q-option { padding: 16px; font-size: 0.95rem; gap: 12px; }
  .q-option[aria-pressed="true"], .q-option.is-selected { padding: 15px; }
  .q-panel { padding: 20px; }
  .q-actions .btn-primary { width: 100%; }
  .q-alt-card .btn-ghost { align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .q-screen { animation: none; }
  .q-option:hover { transform: none; }
}
