/* =========================================================
   Jardín emocional · DASS-21
   Tarjeta de entrada (sección #381) + experiencia tipo juego.
   Paleta clara y pastel, animaciones lentas: pensada para
   transmitir calma, sin colores de alarma ni parpadeos.
   ========================================================= */

/* ---------- Tarjeta de entrada en la sección Línea #381 ---------- */
.mscan-cta {
  position: relative; display: grid; grid-template-columns: 180px 1fr auto; gap: 30px; align-items: center;
  margin-top: 60px; padding: 28px 34px; border-radius: 28px; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, #fff 0%, #fff6f7 50%, #eefaf4 100%);
  border: 1px solid rgba(217,8,23,.1); color: var(--ink);
  box-shadow: 0 26px 60px -34px rgba(143,29,44,.35);
}
.mscan-cta::before, .mscan-cta::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(40px); opacity: .55; }
.mscan-cta::before { width: 260px; height: 260px; left: -60px; top: -90px; background: #ffd3d8; animation: msDrift 14s ease-in-out infinite; }
.mscan-cta::after { width: 240px; height: 240px; right: -40px; bottom: -110px; background: #c8f0dc; animation: msDrift 16s ease-in-out infinite reverse; }
@keyframes msDrift { 50% { transform: translate(30px, 20px) scale(1.1); } }

.mscan-cta__viz { position: relative; width: 180px; aspect-ratio: 1; display: grid; place-items: center; }
.mscan-cta__viz::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, #fff 30%, #ffe9ec 70%, transparent 71%); box-shadow: 0 18px 40px -20px rgba(240,138,149,.6); }
.mscan-cta__viz .calmi { position: relative; width: 62%; }
.mscan-cta__viz em { position: absolute; font-style: normal; font-size: 22px; animation: msBob 5s ease-in-out infinite; }
.mscan-cta__viz em:nth-of-type(1) { top: 6%; right: 10%; }
.mscan-cta__viz em:nth-of-type(2) { bottom: 10%; left: 4%; animation-delay: -1.6s; }
.mscan-cta__viz em:nth-of-type(3) { top: 22%; left: 2%; font-size: 16px; animation-delay: -3s; }
@keyframes msBob { 50% { transform: translateY(-8px) rotate(6deg); } }

.mscan-cta__tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #1f8a5e; background: #e3f7ee; }
.mscan-cta h3 { margin: 12px 0 6px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.mscan-cta p { max-width: 560px; color: var(--gray); font-size: 15px; }
.mscan-cta ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; list-style: none; }
.mscan-cta li { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--text); background: #fff; border: 1px solid rgba(217,8,23,.1); }

.mscan-cta__btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 17px 28px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 800; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, #f06470, #e23a4a); box-shadow: 0 16px 34px -14px rgba(226,58,74,.7);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.mscan-cta__btn svg { width: 20px; height: 20px; transition: transform .4s var(--ease); }
.mscan-cta__btn:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -14px rgba(226,58,74,.8); }
.mscan-cta__btn:hover svg { transform: translateX(4px); }

:root[data-theme="dark"] .mscan-cta { background: linear-gradient(120deg, #2a1418 0%, #24161a 55%, #15241d 100%); border-color: rgba(255,255,255,.08); }
:root[data-theme="dark"] .mscan-cta::before { background: #5a2530; }
:root[data-theme="dark"] .mscan-cta::after { background: #1d4a36; }
:root[data-theme="dark"] .mscan-cta li { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); }
:root[data-theme="dark"] .mscan-cta__tag { background: rgba(61,200,140,.15); color: #7de0b0; }
:root[data-theme="dark"] .mscan-cta__viz::before { background: radial-gradient(circle, rgba(255,255,255,.12) 30%, rgba(255,201,207,.08) 70%, transparent 71%); }

@media (max-width: 1024px) {
  .mscan-cta { grid-template-columns: 140px 1fr; }
  .mscan-cta__viz { width: 140px; }
  .mscan-cta__btn { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 600px) {
  .mscan-cta { grid-template-columns: 1fr; padding: 24px 20px; text-align: center; }
  .mscan-cta__viz { width: 130px; margin-inline: auto; }
  .mscan-cta p { margin-inline: auto; }
  .mscan-cta ul { justify-content: center; }
}

/* ---------- Calmi (mascota) ---------- */
.calmi { display: inline-block; flex: none; }
.calmi svg { display: block; width: 100%; height: auto; overflow: visible; }
.calmi--lg { width: 130px; } .calmi--md { width: 92px; } .calmi--sm { width: 54px; }
.calmi { animation: msCalmi 4.5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes msCalmi { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.03, .97) translateY(2px); } }
.calmi__leaf { fill: #6fcf97; }
.calmi__leaf--b { fill: #9be3b8; }
.calmi__cheek { fill: #ff8fa0; opacity: .45; }
.calmi__eyes { fill: #4a2b31; transform-origin: 60px 60px; animation: msBlink 5s infinite; }
@keyframes msBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.calmi__mouth { fill: none; stroke: #4a2b31; stroke-width: 3.2; stroke-linecap: round; }
.calmi[data-mood="happy"] .calmi__mouth, .calmi[data-mood="wave"] .calmi__mouth { d: path("M47 74q13 14 26 0"); }
.calmi[data-mood="calm"] .calmi__mouth { d: path("M51 77q9 6 18 0"); }
.calmi[data-mood="care"] .calmi__mouth { d: path("M52 78q8 4 16 0"); }
.calmi[data-mood="care"] .calmi__eyes ellipse { ry: 5; }
.calmi[data-mood="wave"] { animation: msWave 2.4s ease-in-out infinite; }
@keyframes msWave { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-6deg); } 40% { transform: rotate(5deg); } 60% { transform: rotate(0); } }

/* ---------- Modal ---------- */
.mscan-lock, .mscan-lock body { overflow: hidden; }
.mscan {
  --ms-ink: #3a2a2e; --ms-dim: #7d6d71; --ms-line: rgba(143,29,44,.1); --ms-card: rgba(255,255,255,.78);
  --ms-rose: #f06470; --ms-rose-soft: #ffe4e7; --ms-mint: #3fbf8f; --ms-mint-soft: #e3f7ee;
  --ok: #3fbf8f; --mild: #8fb8ea; --mod: #f2b35b; --high: #ef8a7a; --vhigh: #d9738f;
  position: fixed; inset: 0; z-index: 9999; display: none; color: var(--ms-ink);
  background: linear-gradient(160deg, #fff 0%, #fff5f6 45%, #f1fbf6 100%);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}
.mscan.is-open { display: block; animation: msOpen .7s var(--ease); }
@keyframes msOpen { from { opacity: 0; transform: scale(.98); } }
.mscan svg { height: auto; fill: none; } /* anula la regla global svg { 1em; fill } */
.mscan__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mscan__blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; filter: blur(60px); }
.mscan__blobs i { position: absolute; border-radius: 50%; opacity: .5; animation: msDrift 18s ease-in-out infinite; }
.mscan__blobs i:nth-child(1) { width: 420px; height: 420px; left: -120px; top: -120px; background: #ffd9de; }
.mscan__blobs i:nth-child(2) { width: 380px; height: 380px; right: -100px; bottom: -120px; background: #cdf2df; animation-delay: -6s; }
.mscan__blobs i:nth-child(3) { width: 300px; height: 300px; right: 25%; top: 10%; background: #fff0d6; animation-delay: -12s; }
.mscan__shell { position: relative; height: 100%; display: flex; flex-direction: column; }

.mscan__top { display: flex; align-items: center; gap: 18px; padding: 16px clamp(16px, 4vw, 40px); }
.mscan__brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.mscan__logo { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--ms-mint-soft); font-size: 20px; }
.mscan__brand b { font-size: 16px; font-weight: 800; }
.mscan__progress { flex: 1; height: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--ms-line); overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,.04); }
.mscan__progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #9be3b8, #3fbf8f); transition: width .9s var(--ease); position: relative; }
.mscan__progress i::after { content: ""; position: absolute; inset: 2px 6px auto; height: 3px; border-radius: 3px; background: rgba(255,255,255,.6); }
.mscan__score { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--ms-line); font-size: 15px; box-shadow: 0 6px 16px -10px rgba(143,29,44,.3); }
.mscan__score b { min-width: 2ch; font-weight: 800; color: #2f8fc4; }
.mscan__score.is-bump { animation: msBump .5s var(--ease); }
@keyframes msBump { 40% { transform: scale(1.15); } }
.mscan__close { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ms-line); background: #fff; color: var(--ms-dim); cursor: pointer; transition: color .2s, transform .4s var(--ease); }
.mscan__close:hover { color: var(--ms-ink); transform: rotate(90deg); }
.mscan__close svg { width: 18px; }

.ms-float { position: fixed; z-index: 3; transform: translate(-50%, 0); font-size: 15px; font-weight: 800; color: #2f8fc4; pointer-events: none; animation: msFloatUp 1.2s var(--ease) forwards; }
@keyframes msFloatUp { to { transform: translate(-50%, -50px); opacity: 0; } }

.mscan__body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: clamp(16px, 4vw, 56px); padding: 0 clamp(16px, 4vw, 40px) 20px; }
.mscan__side { align-self: center; display: grid; justify-items: center; gap: 10px; width: 100%; }
.mscan__count { text-align: center; }
.mscan__count b { display: block; font-size: 24px; font-weight: 800; color: var(--ms-mint); }
.mscan__count small { font-size: 12.5px; color: var(--ms-dim); }

/* Árbol */
.mscan__treebox { position: relative; width: 100%; max-width: 270px; }
.tree { display: block; width: 100%; overflow: visible; filter: drop-shadow(0 18px 30px rgba(143,29,44,.14)); }
.tree__hill { fill: #bfe9cf; }
.tree__grass path { fill: none; stroke: #7fcf9c; stroke-width: 1.6; stroke-linecap: round; transform-box: fill-box; transform-origin: 50% 100%; animation: msGrass 3.5s ease-in-out infinite; }
.tree__grass path:nth-child(2n) { animation-delay: -1.2s; }
@keyframes msGrass { 50% { transform: rotate(8deg); } }
.tree__sun { transform: translate(196px, calc(150px - var(--sun, 0) * 110px)); transition: transform 1.2s var(--ease); }
.tree__sunray { fill: none; stroke: rgba(255,200,80,.45); stroke-width: 3; stroke-dasharray: 3 6; transform-box: fill-box; transform-origin: center; animation: spinSlow 18s linear infinite; }
.tree__cloud { fill: #fff; opacity: .9; }
.tree__cloud--a { animation: msCloud 26s linear infinite; }
.tree__cloud--b { animation: msCloud 34s linear infinite -14s; }
@keyframes msCloud { from { transform: translate(-40px, 52px); } to { transform: translate(280px, 52px); } }
.tree__cloud--b { animation-name: msCloudB; }
@keyframes msCloudB { from { transform: translate(-40px, 88px); } to { transform: translate(280px, 88px); } }
.tree__rainbow { fill: none; stroke: url(#treeSun); stroke-width: 0; opacity: 0; }
.tree.is-final .tree__rainbow { stroke-width: 9; opacity: .55; stroke: #ffc2cb; stroke-dasharray: 100; stroke-dashoffset: 100; animation: msDraw 1.6s var(--ease) .3s forwards; filter: drop-shadow(0 -9px 0 #ffe08a) drop-shadow(0 -9px 0 #b8f0d0) drop-shadow(0 -9px 0 #bfe0ff); }
@keyframes msDraw { to { stroke-dashoffset: 0; } }

.tree__body { transform-box: view-box; transform-origin: 120px 262px; animation: msSway 6s ease-in-out infinite; }
@keyframes msSway { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
.tree.is-wiggle .tree__body { animation: msWiggle .7s cubic-bezier(.34,1.56,.64,1), msSway 6s ease-in-out .7s infinite; }
@keyframes msWiggle { 0% { transform: scale(1); } 30% { transform: scale(1.05, .96); } 60% { transform: scale(.98, 1.03) rotate(-2deg); } 100% { transform: scale(1); } }
.tree__trunk { fill: none; stroke: url(#treeTrunk); stroke-width: 13; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 82; transition: stroke-dashoffset 1s var(--ease); }
.tree__branch { fill: none; stroke: #a0694a; stroke-width: 5.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1s var(--ease); }
.tree__branch.is-on { stroke-dashoffset: 0; }
.tree__puff { transform-box: fill-box; }
.tree__puff > * { transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform .7s cubic-bezier(.34,1.7,.64,1); }
.tree__puff.is-on > * { transform: scale(1); }
.tree__shine { fill: rgba(255,255,255,.35); }
.tree__blossom ellipse { fill: #ffb3c1; }
.tree__blossom circle { fill: #ffe08a; }
.tree__blossom { opacity: 0; transition: opacity .6s; }
.tree__blossom.is-on { opacity: 1; animation: msPopIn .7s cubic-bezier(.34,1.7,.64,1); }
.tree__fruit path { fill: #ff6b7d; stroke: #e04a5c; stroke-width: .8; }
.tree__fruit { opacity: 0; }
.tree.is-final .tree__fruit { opacity: 1; animation: msFruit .8s cubic-bezier(.34,1.7,.64,1) both; animation-delay: calc(.4s + var(--d)); }
@keyframes msFruit { from { opacity: 0; transform: translateY(-14px) scale(0); } }
.tree__bloom { transform-box: fill-box; }
.tree__flowers { opacity: 0; transition: opacity .8s; }
.tree.is-final .tree__flowers { opacity: 1; }

.tree__butterfly { opacity: 0; transition: opacity .8s; fill: #ff9fd0; }
.tree.has-butterfly .tree__butterfly { opacity: 1; animation: msFly 9s ease-in-out infinite; }
@keyframes msFly {
  0% { transform: translate(30px, 150px); } 25% { transform: translate(90px, 70px) rotate(10deg); }
  50% { transform: translate(200px, 110px) rotate(-8deg); } 75% { transform: translate(150px, 190px) rotate(6deg); } 100% { transform: translate(30px, 150px); }
}
.tree__wings { transform-box: fill-box; transform-origin: center; animation: msFlap .3s ease-in-out infinite alternate; }
@keyframes msFlap { to { transform: scaleX(.35); } }
.tree__bird { opacity: 0; transition: opacity .8s; }
.tree.has-bird .tree__bird { opacity: 1; }
.tree.has-bird .tree__birdbody { animation: msBird 2.4s ease-in-out infinite; }
@keyframes msBird { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(-5px) rotate(-6deg); } 80% { transform: translateY(0); } }

.mscan__toast {
  position: absolute; left: 50%; top: 4%; z-index: 2; padding: 8px 14px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  font-size: 13px; font-weight: 800; color: #6a4a00; background: linear-gradient(135deg, #fff4cc, #ffe08a); box-shadow: 0 10px 24px -12px rgba(201,144,43,.8);
  opacity: 0; transform: translate(-50%, 10px) scale(.8);
}
.mscan__toast.is-on { animation: msToast 2.6s cubic-bezier(.34,1.56,.64,1) forwards; }
@keyframes msToast { 12% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 20%, 82% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -10px) scale(.95); } }
.mscan__lvl { display: inline-block; margin-bottom: 4px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #1f8a5e; background: var(--ms-mint-soft); }

.ms-drop { position: fixed; left: 0; top: 0; z-index: 5; margin: -14px 0 0 -12px; font-size: 24px; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(47,143,196,.35)); }
.calmi.is-jump { animation: msJump .6s cubic-bezier(.34,1.56,.64,1); }
@keyframes msJump { 40% { transform: translateY(-14px) scale(1.06, .94); } 70% { transform: translateY(0) scale(.96, 1.04); } }

/* Escenario */
.mscan__stage { position: relative; align-self: center; width: 100%; max-width: 740px; max-height: 100%; overflow-y: auto; padding: 6px 6px 10px; scrollbar-width: thin; }
.mscan__stage.is-in > * { animation: msIn .7s var(--ease) both; }
@keyframes msIn { from { opacity: 0; transform: translateY(14px); } }
.mscan__stage.is-result { align-self: start; max-width: 940px; }

.ms-kicker { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .03em; color: var(--ms-mint); }
.mscan h2 { margin: 8px 0 10px; font-size: clamp(24px, 3vw, 36px); line-height: 1.18; font-weight: 800; letter-spacing: -.02em; color: var(--ms-ink); }
.mscan p { color: var(--ms-dim); }
.mscan p b { color: var(--ms-ink); }

.ms-bubble { position: relative; display: inline-block; padding: 10px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--ms-line); font-size: 15px; font-weight: 600; color: var(--ms-ink); box-shadow: 0 10px 24px -16px rgba(143,29,44,.35); }
.ms-bubble::before { content: ""; position: absolute; left: -7px; bottom: 14px; width: 12px; height: 12px; background: #fff; border-left: 1px solid var(--ms-line); border-bottom: 1px solid var(--ms-line); transform: rotate(45deg); }
.ms-bubble--sm { font-size: 14px; padding: 8px 14px; animation: msPopIn .6s var(--ease) both .15s; }
@keyframes msPopIn { from { opacity: 0; transform: scale(.85) translateX(-6px); } }

/* Botones */
.ms-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 800; text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s, background .3s;
}
.ms-btn svg { width: 18px; }
.ms-btn--go { color: #fff; background: linear-gradient(135deg, #4fcf9c, #2fa57a); box-shadow: 0 14px 30px -12px rgba(47,165,122,.7); }
.ms-btn--call { color: #fff; background: linear-gradient(135deg, #f06470, #e23a4a); box-shadow: 0 14px 30px -14px rgba(226,58,74,.6); }
.ms-btn--go:hover, .ms-btn--call:hover { transform: translateY(-3px); }
.ms-btn--soft { color: var(--ms-ink); background: #fff; border: 1px solid var(--ms-line); box-shadow: 0 8px 20px -14px rgba(143,29,44,.3); }
.ms-btn--soft:hover { transform: translateY(-2px); background: #fffafa; }
.ms-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 4px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ms-dim); cursor: pointer; }
.ms-link svg { width: 16px; }
.ms-link:hover:not(:disabled) { color: var(--ms-ink); }
.ms-link:disabled { opacity: .35; cursor: default; }
.mscan :focus-visible { outline: 3px solid #9be3b8; outline-offset: 3px; }

/* Intro */
.ms-intro { text-align: center; max-width: 600px; margin-inline: auto; }
.ms-hello { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 6px; }
.ms-hello .ms-bubble { animation: msPopIn .7s var(--ease) both .4s; }
.ms-intro > p { font-size: 16px; }
.ms-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 26px; list-style: none; }
.ms-feats li { padding: 14px 10px; border-radius: 20px; background: var(--ms-card); border: 1px solid var(--ms-line); }
.ms-feats span { display: block; font-size: 22px; }
.ms-feats b { display: block; font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--ms-ink); }
.ms-feats small { font-size: 12.5px; color: var(--ms-dim); }
.ms-privacy { margin-top: 18px; font-size: 13px; }

/* Pregunta */
.ms-q__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.ms-q__phase { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #1f8a5e; background: var(--ms-mint-soft); }
.ms-q__num { font-size: 13.5px; color: var(--ms-dim); }
.ms-q__num b { color: var(--ms-ink); }
.ms-q__guide { display: flex; align-items: flex-end; gap: 12px; }
.ms-q__text { margin: 18px 0 24px !important; min-height: 2.36em; }
.ms-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ms-opt {
  --c: hsl(calc(155 - var(--i) * 48), 60%, 58%);
  position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 22px; text-align: left; cursor: pointer;
  font: inherit; color: var(--ms-ink); background: var(--ms-card); border: 2px solid transparent;
  box-shadow: 0 10px 26px -18px rgba(143,29,44,.35), inset 0 0 0 1px var(--ms-line);
  transition: transform .4s var(--ease), border-color .3s, background .3s, box-shadow .3s;
  animation: msIn .6s var(--ease) both; animation-delay: calc(.15s + var(--i) * .07s);
}
.ms-opt:hover { transform: translateY(-3px); background: #fff; border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.ms-opt.is-sel { background: #fff; border-color: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 18%, transparent), 0 14px 30px -18px var(--c); transform: scale(1.02); }
.ms-opt.is-sel::after { content: "✓"; position: absolute; top: 10px; right: 14px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 800; color: #fff; background: var(--c); animation: msBump .4s var(--ease); }
.ms-opt__emo { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; font-size: 26px; background: color-mix(in srgb, var(--c) 14%, #fff); transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.ms-opt:hover .ms-opt__emo { transform: rotate(-8deg) scale(1.12); }
.ms-opt.is-sel .ms-opt__emo { transform: scale(1.18); }
.ms-opt__txt b { display: block; font-size: 17px; font-weight: 800; }
.ms-opt__txt small { font-size: 13px; color: var(--ms-dim); }
.ms-q__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.ms-steps { display: flex; gap: 6px; }
.ms-steps i { width: 26px; height: 8px; border-radius: 8px; background: rgba(143,29,44,.1); transition: background .4s, width .4s; }
.ms-steps i.done { background: var(--ms-mint); }
.ms-steps i.cur { width: 40px; background: #9be3b8; }
.is-locked .ms-opt { pointer-events: none; }

/* Insignias */
.ms-badge { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 6px; padding: 8px 18px 8px 8px; border-radius: 999px; background: #fff; border: 1px solid #f6e3a6; box-shadow: 0 12px 26px -16px rgba(242,179,91,.8); text-align: left; animation: msBadge .9s cubic-bezier(.34,1.56,.64,1) both; }
.ms-badge > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; font-size: 22px; background: linear-gradient(135deg, #fff4cc, #ffe08a); }
.ms-badge small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #c9902b; }
.ms-badge b { font-size: 15px; color: var(--ms-ink); }
@keyframes msBadge { from { opacity: 0; transform: scale(.6) translateY(10px); } }

/* Minijuegos */
.ms-game { text-align: center; }
.ms-bub { position: relative; height: clamp(250px, 40vh, 340px); margin: 18px 0 14px; border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, #f2fbff, #eefaf4); border: 1px solid var(--ms-line); }
.ms-bub__b {
  position: absolute; left: var(--x); top: var(--y); width: calc(92px * var(--s)); aspect-ratio: 1; border-radius: 50%; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 700; color: #4d6a80; border: 1.5px solid rgba(143,190,230,.7);
  background: radial-gradient(circle at 30% 25%, #fff 0%, rgba(214,236,255,.9) 35%, rgba(190,225,250,.55) 100%);
  box-shadow: inset -6px -8px 16px rgba(143,190,230,.35), 0 10px 22px -14px rgba(80,140,190,.6);
  animation: msFloat 8s ease-in-out infinite; animation-delay: var(--d); transition: transform .3s var(--ease);
}
.ms-bub__b:hover { transform: scale(1.08); }
.ms-bub__b.is-pop { animation: msPop .6s var(--ease) forwards; pointer-events: none; }
@keyframes msFloat { 0%, 100% { translate: 0 0; } 33% { translate: 10px -14px; } 66% { translate: -8px 8px; } }
@keyframes msPop { 40% { transform: scale(1.25); opacity: .7; } to { transform: scale(1.6) translateY(-30px); opacity: 0; } }
.ms-game__bar { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ms-dim); }
.ms-game__bar b { color: var(--ms-ink); font-size: 18px; }

.ms-breath { --ms: 4000ms; position: relative; width: clamp(220px, 34vh, 290px); aspect-ratio: 1; margin: 20px auto 14px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, #fff 40%, #fff1f3 70%, transparent 71%); }
.ms-breath__flower { position: absolute; inset: 0; transform: scale(.55) rotate(0deg); transition: transform var(--ms) cubic-bezier(.45,0,.55,1); }
.ms-breath__flower i { position: absolute; left: 50%; top: 50%; width: 30%; height: 44%; margin: -44% 0 0 -15%; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; transform-origin: 50% 100%; transform: rotate(var(--r)); background: linear-gradient(180deg, #ffc2cb, #ffe4e7); opacity: .85; box-shadow: inset 0 -6px 12px rgba(240,100,112,.15); }
.ms-breath[data-phase="in"] .ms-breath__flower { transform: scale(1) rotate(30deg); }
.ms-breath[data-phase="out"] .ms-breath__flower { transform: scale(.55) rotate(0deg); }
.ms-breath[data-phase="done"] .ms-breath__flower { transform: scale(.85) rotate(15deg); transition-duration: 1s; }
.ms-breath[data-phase="done"] .ms-breath__flower i { background: linear-gradient(180deg, #9be3b8, #e3f7ee); }
.ms-breath b { position: relative; padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,.9); font-size: 20px; font-weight: 800; color: var(--ms-ink); box-shadow: 0 8px 20px -12px rgba(143,29,44,.35); }

/* Florecer */
.ms-grow { text-align: center; }
.ms-grow__flower { position: relative; width: 150px; aspect-ratio: 1; margin: 0 auto 18px; }
.ms-grow__flower i { position: absolute; left: 50%; top: 50%; width: 32%; height: 46%; margin: -46% 0 0 -16%; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; transform-origin: 50% 100%; background: linear-gradient(180deg, #ffb3bd, #ffe4e7); transform: rotate(var(--r)) scale(0); animation: msPetal 1s cubic-bezier(.34,1.56,.64,1) forwards; animation-delay: var(--d); }
.ms-grow__flower b { position: absolute; inset: 38%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c4, #ffd36e); box-shadow: 0 0 0 6px rgba(255,211,110,.25); animation: msBump 1.6s ease-in-out infinite 1s; }
@keyframes msPetal { to { transform: rotate(var(--r)) scale(1); } }

/* Resultados */
.ms-res__head { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.ms-res__head h2 { margin-bottom: 6px; }
.ms-care { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; margin-bottom: 18px; padding: 18px 20px; border-radius: 22px; background: #fff; border: 1px solid #ffd0d6; box-shadow: 0 14px 34px -24px rgba(240,100,112,.6); animation: msIn .7s var(--ease) .2s both; }
.ms-care.is-urgent { background: linear-gradient(120deg, #fff, #fff1f3); border-color: #f7a8b2; }
.ms-care__ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; font-size: 24px; background: var(--ms-rose-soft); }
.ms-care b { font-size: 16px; color: var(--ms-ink); }
.ms-care p { margin-top: 2px; font-size: 14px; }

.ms-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ms-card {
  --c: var(--ok);
  display: grid; justify-items: center; text-align: center; padding: 22px 18px 18px; border-radius: 26px;
  background: var(--ms-card); border: 1px solid var(--ms-line); box-shadow: 0 16px 34px -26px rgba(143,29,44,.4);
  animation: msIn .7s var(--ease) both; animation-delay: calc(.25s + var(--i) * .15s);
}
.ms-card.lvl-mild { --c: var(--mild); } .ms-card.lvl-mod { --c: var(--mod); } .ms-card.lvl-high { --c: var(--high); } .ms-card.lvl-vhigh { --c: var(--vhigh); }
.ms-card__ring { position: relative; width: 116px; }
.ms-card__ring svg { width: 100%; transform: rotate(-90deg); }
.ms-card__ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ms-card__track { stroke: color-mix(in srgb, var(--c) 16%, #fff); }
.ms-card__val { stroke: var(--c); stroke-dasharray: 100; stroke-dashoffset: 100; animation: msRing 1.8s var(--ease) forwards; animation-delay: calc(.5s + var(--i) * .15s); }
@keyframes msRing { to { stroke-dashoffset: calc(100 - var(--p)); } }
.ms-card__ic { position: absolute; inset: 0; display: grid; place-items: center; font-size: 36px; }
.ms-card h3 { margin-top: 10px; font-size: 17px; font-weight: 800; color: var(--ms-ink); }
.ms-lvl { margin: 6px 0 8px; padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; color: color-mix(in srgb, var(--c) 70%, #2a1a1e); background: color-mix(in srgb, var(--c) 20%, #fff); }
.ms-card p { font-size: 13.5px; line-height: 1.5; }
.ms-card__pts { margin-top: 10px; font-size: 12px; color: var(--ms-dim); }
.ms-card__pts b { color: var(--ms-ink); }

.ms-tips { margin-top: 14px; padding: 20px 22px; border-radius: 24px; background: var(--ms-card); border: 1px solid var(--ms-line); }
.ms-tips h3 { font-size: 16px; font-weight: 800; color: var(--ms-ink); margin-bottom: 12px; }
.ms-tips ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; }
.ms-tips li { display: flex; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--ms-line); font-size: 14px; line-height: 1.5; animation: msIn .6s var(--ease) both; animation-delay: calc(1s + var(--i) * .08s); }
.ms-tips__ic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--ms-mint-soft); font-size: 18px; }
.ms-tips small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ms-mint); }

.ms-res__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.ms-disclaimer { max-width: 720px; margin: 16px auto 4px; text-align: center; font-size: 12px; line-height: 1.55; }

/* Responsive */
@media (max-width: 900px) {
  .mscan__body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 4px; overflow-y: auto; }
  .mscan__side { grid-auto-flow: column; justify-content: start; align-items: center; gap: 12px; }
  .mscan__treebox { width: 120px; }
  .mscan__toast { font-size: 11px; top: -6px; }
  .mscan__count { text-align: left; }
  .mscan__count b { font-size: 18px; }
  .mscan__stage { align-self: start; max-height: none; overflow: visible; }
  .ms-cards { grid-template-columns: 1fr; }
  .ms-card { grid-template-columns: 96px 1fr; justify-items: start; text-align: left; column-gap: 16px; }
  .ms-card__ring { width: 96px; grid-row: span 4; }
  .ms-card h3 { margin-top: 0; }
}
@media (max-width: 600px) {
  .mscan__top { gap: 10px; padding: 12px 14px; }
  .mscan__brand b { display: none; }
  .ms-opts, .ms-tips ul { grid-template-columns: 1fr; }
  .ms-opt { padding: 14px 16px; }
  .ms-feats li { padding: 12px 6px; }
  .ms-res__head { flex-direction: column; text-align: center; gap: 6px; }
  .ms-care { grid-template-columns: auto 1fr; }
  .ms-care .ms-btn { grid-column: 1 / -1; }
  .ms-hello { flex-direction: column; }
  .ms-hello .ms-bubble::before { display: none; }
  .calmi--lg { width: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  .mscan *, .mscan-cta *, .mscan-cta::before, .mscan-cta::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =========================================================
   Mejoras: progreso por bloques, transiciones, pausas
   ========================================================= */
.mscan__score { display: none; }
.mscan__progress { position: relative; overflow: visible; }
.mscan__progress i { overflow: hidden; }
.mscan__mark { position: absolute; top: 50%; width: 16px; height: 16px; margin-left: -8px; translate: 0 -50%; border-radius: 50%; background: #fff; border: 2px solid rgba(143,29,44,.15); box-shadow: 0 2px 6px rgba(0,0,0,.08); transition: background .5s, border-color .5s, transform .5s var(--ease); }
.mscan__mark::after { content: "🍃"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 9px; opacity: .45; }
.mscan__mark.is-on { background: var(--ms-mint-soft); border-color: var(--ms-mint); transform: scale(1.15); }
.mscan__mark.is-on::after { opacity: 1; }
.mscan__pct { min-width: 3.2ch; font-size: 13px; font-weight: 800; color: var(--ms-mint); font-variant-numeric: tabular-nums; }

/* Pregunta: tarjeta con entrada y salida laterales */
.mscan__stage.is-q.is-in > .ms-q { animation: msQIn .55s var(--ease) both; }
.mscan__stage.is-q.is-in > .ms-q.is-back { animation-name: msQBack; }
.ms-q.is-out { animation: msQOut .26s ease-in forwards !important; }
@keyframes msQIn { from { opacity: 0; transform: translateX(40px); } }
@keyframes msQBack { from { opacity: 0; transform: translateX(-40px); } }
@keyframes msQOut { to { opacity: 0; transform: translateX(-40px); } }
.ms-q { padding: 26px clamp(18px, 3vw, 32px) 20px; border-radius: 30px; background: rgba(255,255,255,.6); border: 1px solid var(--ms-line); box-shadow: 0 30px 60px -44px rgba(143,29,44,.45); backdrop-filter: blur(6px); }
.ms-q__meta { margin-bottom: 10px; }
.ms-q__dots { display: flex; gap: 6px; margin-bottom: 16px; }
.ms-q__dots i { flex: 1; height: 5px; border-radius: 5px; background: rgba(143,29,44,.08); transition: background .4s; }
.ms-q__dots i.done { background: #9be3b8; }
.ms-q__dots i.cur { background: linear-gradient(90deg, #9be3b8, #3fbf8f); }
.ms-q__text { margin: 16px 0 22px !important; }
.ms-opt kbd { position: absolute; right: 14px; bottom: 10px; min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; font: 700 11px/1 inherit; font-family: inherit; color: var(--ms-dim); background: rgba(143,29,44,.05); border: 1px solid var(--ms-line); opacity: .7; }
.ms-opt.is-sel kbd { opacity: 0; }

/* Intro */
.ms-intro__acts { display: grid; justify-items: center; gap: 6px; }

/* Encabezado común de las pausas */
.ms-pause__head { display: grid; justify-items: center; gap: 4px; }
.ms-pause__done { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #1f8a5e; background: var(--ms-mint-soft); animation: msPopIn .6s var(--ease) both; }
.ms-pause__tag { font-size: 12.5px; font-weight: 700; color: var(--ms-dim); margin-top: 6px; }
.ms-pause__head h2 { margin: 4px 0 4px; }
.ms-pause__head p { max-width: 480px; }

/* Pausa 1: sigue la luz */
.ms-luz { position: relative; height: clamp(240px, 38vh, 320px); margin: 18px 0 14px; border-radius: 28px; overflow: hidden; background: radial-gradient(70% 80% at 50% 40%, #fffdf6, #f3f7ff 70%, #eef6ff); border: 1px solid var(--ms-line); }
.ms-luz::before { content: ""; position: absolute; left: 14%; right: 14%; top: 22%; bottom: 22%; border-radius: 50%; border: 1.5px dashed rgba(143,190,230,.35); }
.ms-luz__orb { position: absolute; left: 0; top: 0; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; cursor: pointer; background: radial-gradient(circle at 35% 30%, #fff, #cfe6ff 45%, #9cc9f5); box-shadow: 0 0 0 10px rgba(156,201,245,.18), 0 0 40px 10px rgba(156,201,245,.45); transition: background .4s, box-shadow .4s; will-change: transform; touch-action: manipulation; }
.ms-luz__orb.is-gold { background: radial-gradient(circle at 35% 30%, #fff, #ffe9a6 45%, #ffc94a); box-shadow: 0 0 0 12px rgba(255,201,74,.25), 0 0 50px 16px rgba(255,201,74,.6); }
.ms-luz__orb.is-hit { animation: msBump .5s var(--ease); }

/* Pausa 3: burbujas que se transforman */
.ms-bub__b span { transition: opacity .3s; }
.ms-bub__b.is-calm { color: #1f8a5e; border-color: rgba(63,191,143,.7); background: radial-gradient(circle at 30% 25%, #fff 0%, rgba(214,248,232,.95) 40%, rgba(160,226,196,.6) 100%); animation: msCalmB .5s var(--ease); }
.ms-bub__b.is-calm.is-pop { animation: msPop .7s var(--ease) forwards; }
@keyframes msCalmB { 40% { transform: scale(1.18); } }

@media (max-width: 600px) {
  .ms-q { padding: 18px 14px 14px; border-radius: 24px; }
  .ms-opt kbd { display: none; }
  .mscan__pct { display: none; }
  .ms-bub__b { width: calc(76px * var(--s)); font-size: 11.5px; }
}

/* =========================================================
   Pausas interactivas v2: constelaciones, respiración y mandala
   ========================================================= */
/* Constelaciones */
.ms-cielo { position: relative; height: clamp(260px, 42vh, 360px); margin: 16px 0 12px; border-radius: 28px; overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 70% at 70% 10%, #5b4bb8 0%, transparent 60%), radial-gradient(80% 70% at 10% 100%, #c2547e 0%, transparent 55%), linear-gradient(170deg, #1d1b4f, #2a2366 55%, #3a2a6b); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 24px 50px -30px #2a2366; }
.ms-cielo__brillos { position: absolute; inset: 0; z-index: -1; background-image:
  radial-gradient(1.5px 1.5px at 12% 20%, #fff, transparent), radial-gradient(1px 1px at 30% 70%, #fff, transparent), radial-gradient(1.5px 1.5px at 62% 14%, #fff, transparent),
  radial-gradient(1px 1px at 82% 62%, #fff, transparent), radial-gradient(1px 1px at 46% 90%, #fff, transparent), radial-gradient(1.2px 1.2px at 92% 22%, #fff, transparent),
  radial-gradient(1px 1px at 6% 82%, #fff, transparent), radial-gradient(1px 1px at 70% 40%, #fff, transparent); animation: msTitila 4s ease-in-out infinite alternate; }
@keyframes msTitila { to { opacity: .45; } }
.ms-cielo__lineas, .ms-cielo__stars { position: absolute; top: 7%; left: 50%; height: 80%; aspect-ratio: 1; translate: -50% 0; overflow: visible; }
.mscan svg.ms-cielo__lineas { width: auto; height: 80%; aspect-ratio: 1; }
.ms-cielo__lineas line { stroke: #ffe9a8; stroke-linecap: round; stroke-width: .9; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 4px #ffd56b); animation: msTrazo .45s ease-out forwards; }
@keyframes msTrazo { to { stroke-dashoffset: 0; } }
.ms-star { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 0; border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; touch-action: manipulation; animation: msIn .5s both; animation-delay: var(--d); }
.ms-star i { width: 10px; height: 10px; border-radius: 50%; background: #c9c3ff; box-shadow: 0 0 8px 2px rgba(201,195,255,.6); transition: transform .3s cubic-bezier(.34,1.7,.64,1), background .3s, box-shadow .3s; }
.ms-star.is-next i { background: #fff; transform: scale(1.5); box-shadow: 0 0 0 6px rgba(255,255,255,.12), 0 0 18px 6px rgba(255,233,168,.9); animation: msLatir 1.2s ease-in-out infinite; }
@keyframes msLatir { 50% { box-shadow: 0 0 0 12px rgba(255,255,255,.06), 0 0 26px 10px rgba(255,233,168,.9); } }
.ms-star.is-on i { background: #ffe9a8; transform: scale(1.7); box-shadow: 0 0 16px 6px rgba(255,213,107,.85); }
.ms-star.is-no { animation: msNo .4s; }
@keyframes msNo { 25%, 75% { transform: translateX(-5px); } 50% { transform: translateX(5px); } }
.ms-cielo.is-done .ms-cielo__lineas line { stroke: #fff6d6; animation: msTrazo .45s ease-out forwards, msBrilla 1.2s ease-in-out .4s 2; }
@keyframes msBrilla { 50% { filter: drop-shadow(0 0 10px #ffd56b) drop-shadow(0 0 20px #ff9fb0); } }
.ms-cielo__nombre { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-size: 13.5px; font-weight: 700; backdrop-filter: blur(6px); white-space: nowrap; opacity: 0; transition: opacity .4s; }
.ms-cielo.is-done .ms-cielo__nombre { opacity: 1; animation: msPopIn .5s var(--ease); }

/* Respira conmigo */
.ms-loto { --n: 0; position: relative; width: clamp(230px, 36vh, 300px); aspect-ratio: 1; margin: 18px auto 8px; display: grid; place-items: center; }
.ms-loto::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.95) 30%, rgba(255,228,231,.7) 62%, transparent 72%); transform: scale(calc(.8 + var(--n) * .25)); }
.ms-loto__ola { position: absolute; inset: 14%; border-radius: 50%; border: 2px solid rgba(240,138,149,.35); opacity: 0; }
.ms-loto.is-out .ms-loto__ola { animation: msOla 2.5s ease-out infinite; }
.ms-loto.is-out .ms-loto__ola + .ms-loto__ola { animation-delay: 1.25s; }
@keyframes msOla { from { transform: scale(.8); opacity: .8; } to { transform: scale(1.45); opacity: 0; } }
.ms-loto__anillo { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ms-loto__anillo circle { fill: none; stroke-width: 5; stroke-linecap: round; }
.ms-loto__anillo .pista { stroke: rgba(143,29,44,.08); }
.ms-loto__anillo .valor { stroke: #f08a95; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 6px rgba(240,138,149,.5)); }
.ms-loto.is-full .ms-loto__anillo .valor { stroke: #3fbf8f; }
.ms-loto__flor { position: relative; width: 62%; aspect-ratio: 1; border: 0; border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ms-loto__petalos { position: absolute; inset: 0; transform: scale(calc(.55 + var(--n) * .5)) rotate(calc(var(--n) * 40deg)); }
.ms-loto__petalos i { position: absolute; left: 50%; top: 50%; width: 34%; height: 50%; margin: -50% 0 0 -17%; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; transform-origin: 50% 100%; transform: rotate(var(--r)); opacity: .9;
  background: linear-gradient(180deg, #ffb3c1, #fff1f3); box-shadow: inset 0 -8px 14px rgba(240,100,112,.12); }
.ms-loto.is-full .ms-loto__petalos i { background: linear-gradient(180deg, #ffc2cb, #fff6f7); }
.ms-loto__flor b { position: relative; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.94); font-size: 15px; font-weight: 800; color: var(--ms-ink); box-shadow: 0 10px 22px -12px rgba(143,29,44,.4); white-space: nowrap; pointer-events: none; }
.ms-loto.is-in .ms-loto__flor b { color: #e23a4a; }
.ms-loto.is-full .ms-loto__flor b { color: #1f8a5e; animation: msBump .5s var(--ease); }
.ms-loto.is-calm .ms-loto__petalos i { background: linear-gradient(180deg, #9be3b8, #e3f7ee); }
.ms-loto__ciclos { display: flex; justify-content: center; gap: 10px; margin-bottom: 8px; }
.ms-loto__ciclos i { font-style: normal; font-size: 24px; filter: grayscale(1) opacity(.3); transition: filter .5s, transform .5s cubic-bezier(.34,1.7,.64,1); }
.ms-loto__ciclos i.is-on { filter: none; transform: scale(1.2); }

/* Mandala de calma */
.ms-man { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; justify-items: center; margin: 14px 0 10px; }
.ms-man__lienzo { width: min(340px, 74vw); aspect-ratio: 1; padding: 10px; border-radius: 50%; background: radial-gradient(circle, #fff 60%, #fff5f6); box-shadow: 0 30px 60px -36px rgba(143,29,44,.45), inset 0 0 0 1px var(--ms-line); }
.ms-man__lienzo svg { width: 100%; height: 100%; display: block; }
.ms-man__guia { fill: none; stroke: rgba(143,29,44,.06); stroke-width: 1; stroke-dasharray: 2 4; }
.ms-man__anillo { cursor: pointer; outline: none; }
.mscan .ms-man__p { fill: #fff; stroke: rgba(143,29,44,.22); stroke-width: 1.4; transition: fill .35s ease, stroke .35s; transform-box: fill-box; transform-origin: center; }
.ms-man__anillo:hover .ms-man__p, .ms-man__anillo:focus-visible .ms-man__p { stroke: rgba(143,29,44,.5); }
.mscan .ms-man__p.is-pop { animation: msPinta .45s cubic-bezier(.34,1.7,.64,1); stroke: rgba(255,255,255,.9); }
@keyframes msPinta { 40% { transform: scale(1.22); } }
.ms-man svg.is-done { animation: msGira 8s linear infinite; filter: drop-shadow(0 0 16px rgba(255,179,193,.7)); }
@keyframes msGira { to { transform: rotate(360deg); } }
.ms-man__paleta { display: grid; gap: 10px; }
.ms-man__color { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; cursor: pointer; background: var(--c); box-shadow: 0 6px 14px -6px var(--c), 0 0 0 1px var(--ms-line); transition: transform .3s cubic-bezier(.34,1.7,.64,1), box-shadow .3s; }
.ms-man__color:hover { transform: scale(1.1); }
.ms-man__color.is-sel { transform: scale(1.18); box-shadow: 0 0 0 3px var(--c), 0 10px 20px -8px var(--c); }

@media (max-width: 600px) {
  .ms-man { grid-template-columns: 1fr; gap: 14px; }
  .ms-man__paleta { grid-auto-flow: column; }
  .ms-man__color { width: 38px; height: 38px; }
  .ms-star { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
}
