/* =========================================================
   Test «¿Tu multinivel te impulsa o te limita?» — Martha Lucía Hoyos C.
   ========================================================= */

:root {
  --navy: #142D4E;
  --navy-2: #1d3d66;
  --teal: #16A6A1;
  --teal-d: #0f8a86;
  --gold: #D4AD63;
  --gold-l: #ecd39d;
  --ivory: #FFF9F2;
  --white: #FFFFFF;
  --amber: #E8A04A;
  --ink: #142D4E;
  --muted: #55657c;
  --line: rgba(212, 173, 99, .45);
  --radius: 18px;
  --shadow: 0 18px 50px -22px rgba(20, 45, 78, .35), 0 2px 6px rgba(20, 45, 78, .06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Allura", "Brush Script MT", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--teal-d); }
[hidden] { display: none !important; }

/* ---------- Fondo ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #ffffff 0%, var(--ivory) 60%); }
.halo { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.halo--t { width: 46vmax; height: 46vmax; right: -14vmax; top: -16vmax; background: radial-gradient(circle, rgba(22,166,161,.35), transparent 65%); animation: drift 18s ease-in-out infinite alternate; }
.halo--g { width: 40vmax; height: 40vmax; left: -14vmax; bottom: -18vmax; background: radial-gradient(circle, rgba(212,173,99,.42), transparent 65%); animation: drift 22s ease-in-out infinite alternate-reverse; }
.halo--a { width: 22vmax; height: 22vmax; left: 38%; top: 40%; background: radial-gradient(circle, rgba(232,160,74,.18), transparent 70%); animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(4vmax, 3vmax, 0) scale(1.08); } }
.ribbon { position: absolute; inset: 0; width: 100%; height: 100%; }
.ribbon__line { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 2.6s .3s cubic-bezier(.65,0,.35,1) forwards; }
.ribbon__line--2 { animation-delay: .6s; }
.ribbon__line--3 { animation-delay: .9s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Escenario de slides ---------- */
.stage { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: grid; }
.slide { display: none; grid-area: 1 / 1; min-height: 100vh; min-height: 100dvh;
  padding: clamp(20px, 4vw, 48px) 16px calc(56px + env(safe-area-inset-bottom)); }
.slide.is-active { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.slide--cover.is-active { justify-content: space-between; padding-bottom: 0; padding-left: 0; padding-right: 0; }

/* ---------- Portada ---------- */
.cover { width: min(1180px, 100%); margin: 0 auto; flex: 1; display: grid; grid-template-columns: 1fr; align-items: center; gap: 24px; padding: 0 16px; }
.cover__photo { display: none; margin: 0; position: relative; align-self: end; }
.cover__body { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(14px, 2.2vh, 22px); padding: 8px 0 28px; }
.cover__logo { width: clamp(96px, 26vw, 132px); height: auto; filter: drop-shadow(0 10px 24px rgba(20,45,78,.18)); }
.cover__title { margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.02;
  font-size: clamp(30px, 8.6vw, 62px); display: flex; flex-direction: column; align-items: center; gap: .14em; color: var(--navy); }
.cover__l1 { display: block; }
.cover__l3 { display: flex; align-items: center; gap: .22em; }
.cover__o { font-size: .8em; }
.pill { display: inline-block; padding: .08em .42em .12em; border-radius: .38em; font-style: italic; letter-spacing: -.005em; }
.pill--navy { background: linear-gradient(180deg, var(--navy-2), var(--navy)); color: var(--white); box-shadow: 0 10px 28px -12px rgba(20,45,78,.65), inset 0 0 0 2px rgba(212,173,99,.55); }
.pill--gold { background: linear-gradient(180deg, #e7c47f, var(--gold) 55%, #c4994d); color: var(--white); text-shadow: 0 2px 6px rgba(120,80,20,.35); box-shadow: 0 10px 28px -12px rgba(196,153,77,.9); }
.cover__lead { margin: 0; max-width: 34em; color: var(--navy); font-size: clamp(15.5px, 2.1vw, 18.5px); font-weight: 500; }
.note { display: flex; gap: 14px; align-items: center; text-align: left; max-width: 34em; width: 100%;
  background: linear-gradient(180deg, #ffffff, #fffaf3); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow); }
.note__icon { width: 40px; height: 40px; flex: none; color: var(--navy); padding-right: 12px; border-right: 1.5px solid var(--line); box-sizing: content-box; }
.note p { margin: 0; font-size: 15px; color: var(--navy); }
.note strong { display: block; font-size: 17px; font-style: italic; font-weight: 800; }

/* Banda de firma (portada) */
.sigband { width: 100%; position: relative; background: linear-gradient(180deg, var(--navy-2), var(--navy)); color: var(--white);
  text-align: center; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
.sigband::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--amber) 50%, var(--gold) 80%, transparent); }
.sig__name { margin: 0; font-family: var(--script); font-size: clamp(34px, 6vw, 46px); line-height: 1.1; color: inherit; }
.sig__role { margin: 2px 0 0; font-size: 14px; letter-spacing: .04em; opacity: .9; display: inline-flex; align-items: center; gap: 12px; }
.sigband .sig__role::before, .sigband .sig__role::after { content: ""; width: 34px; height: 1px; background: var(--gold); }

@media (min-width: 900px) {
  .cover { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; }
  .cover__photo { display: block; height: 100%; max-height: calc(100dvh - 150px); }
  .cover__photo img { height: 100%; width: auto; max-width: none; margin: 0 auto; object-fit: contain; object-position: bottom;
    -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 78%, transparent 100%); position: relative; z-index: 1; }
  .cover__ring { position: absolute; left: 50%; bottom: 8%; width: 82%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
    background: radial-gradient(circle at 50% 45%, rgba(22,166,161,.22), rgba(22,166,161,.05) 60%, transparent 70%); border: 1.5px solid var(--line); }
  .cover__body { align-items: flex-start; text-align: left; padding: 12px 0 28px; gap: clamp(12px, 2vh, 20px); }
  .cover__title { align-items: flex-start; font-size: clamp(40px, min(4.4vw, 7.2vh), 64px); }
  .cover__logo { width: clamp(92px, 14vh, 136px); }
  .sigband { padding-top: 12px; padding-bottom: 12px; }
  .sig__name { font-size: 40px; }
  .sigband__avatar { display: none; }
}

/* ---------- Botones ---------- */
.btn { --h: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 24px;
  border-radius: 999px; border: 0; cursor: pointer; font-weight: 700; font-size: 16px; text-decoration: none; letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .2s ease, background-color .2s ease, opacity .2s ease; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn--primary { background: linear-gradient(180deg, #1bbab4, var(--teal) 50%, var(--teal-d)); color: var(--white);
  box-shadow: 0 14px 30px -12px rgba(22,166,161,.8), inset 0 0 0 2px rgba(255,255,255,.18), 0 0 0 3px rgba(212,173,99,.0); }
.btn--primary:hover { box-shadow: 0 18px 36px -12px rgba(22,166,161,.9), inset 0 0 0 2px rgba(255,255,255,.25), 0 0 0 3px rgba(212,173,99,.55); transform: translateY(-1px); }
.btn--primary:disabled { background: #c9d3d6; color: #f5f7f8; box-shadow: none; cursor: not-allowed; transform: none; }
.btn--ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px rgba(20,45,78,.18); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--gold); background: rgba(212,173,99,.08); }
.btn--xl { --h: 64px; padding: 0 14px 0 34px; font-size: clamp(18px, 2.4vw, 22px); font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  box-shadow: 0 18px 40px -14px rgba(22,166,161,.85), inset 0 0 0 2px rgba(255,255,255,.2), 0 0 0 4px rgba(212,173,99,.55); }
.btn__arrow { width: 42px; height: 42px; border-radius: 50%; background: var(--white); color: var(--navy); display: grid; place-items: center; transition: transform .25s ease; }
.btn__arrow svg { width: 22px; height: 22px; }
.btn--xl:hover .btn__arrow { transform: translateX(4px); }
.btn.is-sending { pointer-events: none; opacity: .85; }
.btn.is-sending .btn__label::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px;
  border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn:focus-visible, .opt:focus-within, .choice:focus-within, .consent:focus-within { outline: 3px solid rgba(22,166,161,.45); outline-offset: 3px; }

/* ---------- Tarjeta de pregunta ---------- */
.qcard, .rcard { width: min(720px, 100%); background: rgba(255,255,255,.9); border-radius: 24px; padding: clamp(22px, 4.5vw, 44px);
  border: 1px solid rgba(212,173,99,.35); box-shadow: var(--shadow); position: relative; }
@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .qcard, .rcard { background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
.qcard::before, .rcard::before { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--amber), var(--gold), transparent); }
.qhead { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.qhead__count { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.qhead__count b { color: var(--navy); font-weight: 800; font-size: 16px; }
.qhead__count--done { color: var(--teal-d); font-weight: 700; }
.progress { flex: 1; height: 8px; border-radius: 99px; background: rgba(20,45,78,.08); overflow: hidden; }
.progress span { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--amber)); transform-origin: left; animation: grow .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes grow { from { transform: scaleX(var(--from, .7)); } }
.qhead__kicker { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; }
.qcard__title { margin: 0 0 24px; font-size: clamp(21px, 3.4vw, 28px); line-height: 1.28; font-weight: 800; letter-spacing: -.012em; color: var(--navy); text-wrap: balance; }

.options { display: grid; gap: 12px; }
.opt { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 18px; min-height: 68px; border-radius: 16px; cursor: pointer;
  background: var(--white); border: 1.5px solid rgba(20,45,78,.12); transition: border-color .2s, box-shadow .2s, transform .15s, background-color .2s; }
.opt:hover { border-color: var(--gold); transform: translateY(-1px); box-shadow: 0 10px 24px -16px rgba(20,45,78,.45); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__key { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: var(--navy);
  background: var(--ivory); border: 1.5px solid var(--line); transition: background-color .2s, color .2s, border-color .2s; }
.opt__txt { font-size: 16.5px; font-weight: 600; color: var(--navy); line-height: 1.35; }
.opt:has(input:checked) { border-color: var(--teal); background: linear-gradient(180deg, #f1fbfa, #ffffff); box-shadow: 0 0 0 3px rgba(22,166,161,.16); }
.opt:has(input:checked) .opt__key { background: var(--teal); border-color: var(--teal); color: var(--white); }
.opt.is-checked { border-color: var(--teal); background: linear-gradient(180deg, #f1fbfa, #ffffff); box-shadow: 0 0 0 3px rgba(22,166,161,.16); }
.opt.is-checked .opt__key { background: var(--teal); border-color: var(--teal); color: var(--white); }

.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
.nav .btn--primary { min-width: 168px; }

/* ---------- Formulario ---------- */
.fcard__lead { margin: -12px 0 22px; color: var(--muted); font-size: 16px; }
.field { display: grid; gap: 6px; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend { font-weight: 700; font-size: 15px; color: var(--navy); }
.field legend { line-height: 1.4; margin-bottom: 10px; padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .phone select {
  height: 52px; border-radius: 14px; border: 1.5px solid rgba(20,45,78,.16); background: var(--white); padding: 0 16px; font-size: 16px; width: 100%;
  transition: border-color .2s, box-shadow .2s; }
.field input:focus, .phone select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(22,166,161,.14); }
.phone { display: grid; grid-template-columns: 118px 1fr; gap: 8px; }
.phone select { padding: 0 10px; appearance: auto; }
.field__err { display: none; color: #b5651d; font-size: 13.5px; font-weight: 600; }
.is-invalid .field__err, .field__err.is-shown { display: block; }
.is-invalid input, .is-invalid select { border-color: var(--amber) !important; }
.field--choice { gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1.5px solid rgba(20,45,78,.12); background: var(--white); cursor: pointer; transition: border-color .2s, background-color .2s; }
.choice input { accent-color: var(--teal); width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.choice span { font-weight: 600; font-size: 15.5px; color: var(--navy); }
.choice:has(input:checked) { border-color: var(--teal); background: #f1fbfa; }
.field--phone { animation: fadeDown .35s ease both; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 6px 0 4px; cursor: pointer; }
.consent input { accent-color: var(--teal); width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.consent a { color: var(--teal-d); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 14px 0 0; font-size: 14px; color: #b5651d; font-weight: 600; }

/* ---------- Resultado ---------- */
.rcard { text-align: center; }
.rcard__kicker { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.meter { position: relative; margin: 18px auto 8px; max-width: 420px; }
.meter__track { display: grid; grid-template-columns: 2fr 3fr 2fr 2fr; gap: 4px; height: 12px; }
.meter__track span { border-radius: 99px; }
.meter__track span:nth-child(1) { background: var(--teal); }
.meter__track span:nth-child(2) { background: var(--gold); }
.meter__track span:nth-child(3) { background: var(--amber); }
.meter__track span:nth-child(4) { background: var(--navy); }
.meter__dot { position: absolute; top: -6px; left: calc(var(--x, 0) * 100%); width: 24px; height: 24px; margin-left: -12px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--navy); box-shadow: 0 6px 16px rgba(20,45,78,.35); transition: left 1.2s cubic-bezier(.2,.8,.2,1); }
.meter__labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.rcard__score { margin: 6px 0 0; color: var(--muted); font-weight: 600; }
.rcard__score b { font-size: 30px; color: var(--navy); font-weight: 800; }
.rcard__title { margin: 14px auto 12px; max-width: 18em; font-size: clamp(25px, 4.4vw, 36px); line-height: 1.15; font-weight: 800; letter-spacing: -.015em; color: var(--navy); text-wrap: balance; }
.rcard__text { max-width: 36em; margin: 0 auto; text-align: left; }
.rcard__text p { margin: 0 0 12px; font-size: 16.5px; color: #2b3f5c; }
.rcard__text p:last-child { font-weight: 700; color: var(--navy); border-left: 3px solid var(--amber); padding-left: 14px; }
.mail-ok { display: inline-flex; align-items: center; gap: 10px; margin: 16px auto 22px; padding: 10px 16px; border-radius: 12px;
  background: #f1fbfa; color: var(--teal-d); font-size: 14.5px; font-weight: 600; text-align: left; }
.mail-ok b.sender { white-space: nowrap; }
.mail-ok span { line-height: 1.5; }
.mail-ok svg { width: 22px; height: 22px; flex: none; }
.mail-ok.is-warn { background: #fdf3e6; color: #a35b12; }
.btn--wa { padding: 0 30px; gap: 12px; width: 100%; max-width: 520px; font-size: clamp(16px, 2.2vw, 19px); }
.btn--wa svg { width: 28px; height: 28px; flex: none; }

.signature { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 30px auto 0; padding-top: 24px; border-top: 1px solid var(--line); text-align: left; }
.signature__photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: linear-gradient(180deg, #e6f6f5, #fff);
  border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--gold), 0 10px 22px -10px rgba(20,45,78,.5); flex: none; }
.signature__logo { width: 58px; height: 58px; flex: none; }
.signature .sig__name { color: var(--navy); font-size: clamp(34px, 5vw, 42px); }
.signature .sig__role { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.link-restart { margin-top: 18px; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; }

/* ---------- Pie ---------- */
.site-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 14px 16px 22px;
  font-size: 12.5px; color: var(--muted); text-align: center; }
.site-foot a { color: inherit; }
.credit { opacity: .75; }
body.on-cover .site-foot { background: var(--navy); color: rgba(255,255,255,.7); }

/* ---------- Móvil ---------- */
@media (max-width: 560px) {
  .opt { padding: 14px; gap: 12px; }
  .opt__key { width: 36px; height: 36px; }
  .opt__txt { font-size: 16px; }
  .nav { position: sticky; bottom: 0; margin: 22px -22px -22px; padding: 14px 22px calc(14px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.96) 30%); border-radius: 0 0 24px 24px; }
  .nav .btn--primary { flex: 1; min-width: 0; }
  .btn--xl { width: 100%; justify-content: space-between; }
  .signature { gap: 12px; }
  .signature__photo { width: 64px; height: 64px; }
  .signature__logo { width: 46px; height: 46px; }
  .note { padding: 12px 14px; }
  .nav .btn { padding: 0 18px; font-size: 15.5px; white-space: nowrap; }
  .signature { flex-wrap: wrap; text-align: center; }
  .signature__txt { order: 3; flex-basis: 100%; }
  .signature .sig__name { font-size: 38px; }
  .sigband .sig__role::before, .sigband .sig__role::after { width: 16px; }
  .sig__role { font-size: 13px; gap: 8px; }
}
.sigband__avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; margin: -46px auto 6px;
  background: linear-gradient(180deg, #e6f6f5, #fff); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--gold), 0 8px 18px -8px rgba(20,45,78,.6); position: relative; }

/* Mensaje sin JS */
.nojs { padding: 16px; text-align: center; }
