/* El Móvil — interfaz sobre la escena: botones de esquina, progreso ("2 de 6"), intro ("Para Arturo…" + despertar),
   pista de girar, globito "Toca la luna" (sigue a la figura que brilla), nombre de una figura de invitado, tarjeta
   compacta de la figura abierta (abajo, ≤ 35 % del alto), momento especial (el sol), final y el formulario "Cuelga tu
   figura". Visibilidad por clases en #app: is-intro, is-spin, is-explore, is-open, is-special, is-picking, is-final.
   Medidas contra el marco (cqw/cqh, @container), nunca contra la ventana. */

/* ---------- esquinas ---------- */
.movil .sound-btn, .movil .info-btn { position: absolute; top: calc(var(--safe-t) + 12px); }
.movil .sound-btn { right: 12px; }
.movil .info-btn { right: 68px; }

/* ---------- intro ---------- */
/* letrero de fieltro (crema, con puntada): se lee igual sobre el techo claro que sobre la noche */
.movil .intro, .movil .sp-banner { position: relative; padding: 12px 22px 14px; border-radius: 26px; background: rgba(255, 251, 244, .94); color: var(--accent-2); text-align: center; box-shadow: 0 10px 28px rgba(40, 28, 50, .25); }
.movil .intro::after, .movil .sp-banner::after { content: ""; position: absolute; inset: 6px; border: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 20px; pointer-events: none; }
.movil .intro { position: absolute; left: 50%; top: calc(var(--safe-t) + 11cqh); width: max-content; max-width: calc(100cqw - 40px); opacity: 0; visibility: hidden; transform: translate(-50%, -8px); transition: opacity .7s ease, transform .7s ease, visibility .7s; pointer-events: none; }
.movil .app.is-intro .intro { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.movil .in-kick { margin: 0; font: 800 clamp(26px, 8cqw, 40px)/1.1 var(--font-d); }
.movil .in-main { margin: 2px 0 0; font: 600 clamp(20px, 6.2cqw, 30px)/1.15 var(--font-d); color: var(--ink); }
.movil .wake { position: absolute; left: 50%; bottom: calc(var(--safe-b) + 54px); transform: translateX(-50%); white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.movil .wake-hint { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-b) + 22px); margin: 0; text-align: center; font: 700 15px/1.2 var(--font-b); color: #FFFDF8; text-shadow: 0 2px 10px rgba(40, 24, 50, .6); opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; pointer-events: none; }
.movil .app.is-intro .wake, .movil .app.is-intro .wake-hint { opacity: 1; visibility: visible; }

/* ---------- girar ---------- */
.movil .spin-hint { position: absolute; left: 50%; bottom: calc(var(--safe-b) + 9cqh); display: flex; flex-direction: column; align-items: center; gap: 2px; transform: translateX(-50%); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; pointer-events: none; color: var(--ink); }
.movil .spin-hint p { margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(255, 251, 244, .9); font: 700 15px/1.2 var(--font-d); box-shadow: 0 4px 14px rgba(40, 28, 50, .2); }
.movil .sh-hand { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .3)); }
.movil .app.is-spin .spin-hint { opacity: 1; visibility: visible; }
.movil .app.is-spin .sh-hand { animation: mv-swipe 1.6s ease-in-out infinite; }
@keyframes mv-swipe { 0% { transform: translate(-34px, 0) rotate(-10deg); } 55% { transform: translate(34px, -10px) rotate(8deg); } 100% { transform: translate(-34px, 0) rotate(-10deg); } }
.rm .movil .sh-hand, .rm.movil .app.is-spin .sh-hand { animation: none; }

/* ---------- progreso: una figura por dato ---------- */
.movil .progress { position: absolute; left: 12px; top: calc(var(--safe-t) + 12px); display: flex; align-items: center; gap: 2px; padding: 3px 6px 3px 12px; border-radius: 999px; background: rgba(255, 251, 244, .92); box-shadow: 0 4px 14px rgba(40, 28, 50, .2); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; max-width: calc(100cqw - 140px); }
.movil .app.is-explore .progress, .movil .app.is-open .progress, .movil .app.is-spin .progress { opacity: 1; visibility: visible; }
.movil .p-count { margin-right: 4px; font: 800 13px/1 var(--font-b); color: var(--ink-2); white-space: nowrap; }
.movil .pdot { display: grid; place-items: center; width: 34px; height: 40px; padding: 0; border: 0; background: none; color: #B4A7AE; cursor: pointer; }
.movil .pdot span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; transition: background .2s, color .2s, box-shadow .2s; }
.movil .pdot.is-done { color: var(--accent-2); }
.movil .pdot.is-done span { background: var(--soft); }
.movil .pdot.is-next span { background: var(--sun); color: #6A4A1A; box-shadow: 0 0 0 3px rgba(255, 210, 122, .45); }
.movil .pdot.is-on span { background: var(--accent); color: #fff; }
.movil .pdot[disabled] { cursor: default; opacity: .55; }
@container (max-width: 360px) { .movil .pdot { width: 30px; } .movil .p-count { display: none; } }

/* ---------- globito "Toca la luna" y nombre de un invitado (siguen a la figura) ---------- */
.movil .bubble, .movil .name-tag { position: absolute; left: 0; top: 0; padding: 6px 12px; border-radius: 14px; background: var(--cream); color: var(--ink); font: 700 14px/1.2 var(--font-d); white-space: nowrap; box-shadow: 0 6px 16px rgba(40, 28, 50, .25); opacity: 0; transition: opacity .3s ease; pointer-events: none; will-change: transform, opacity; }
.movil .bubble::after, .movil .name-tag::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.movil .bubble.is-on, .movil .name-tag.is-on { opacity: 1; }
.movil .bubble { background: var(--sun); color: #5A3E14; }

/* ---------- tarjeta COMPACTA de la figura abierta (≤ 35 % del alto; "Ver más" si el contenido es largo) ---------- */
.movil .panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 35cqh; display: flex; flex-direction: column; padding: 10px 14px calc(var(--safe-b) + 10px); border-radius: var(--radius) var(--radius) 0 0; background: var(--cream); box-shadow: var(--shadow); transform: translateY(110%); transition: transform .45s cubic-bezier(.2, .9, .25, 1.05), max-height .35s ease; }
.movil .panel.is-expanded { max-height: 70cqh; }
.movil .app.is-open .panel { transform: none; }
.movil .panel::before { /* puntada de fieltro en la orilla */ content: ""; position: absolute; left: 10px; right: 10px; top: 5px; border-top: 2px dashed var(--line); pointer-events: none; }
.movil .p-top { display: flex; align-items: center; gap: 8px; }
.movil .p-head { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.movil .p-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--soft); color: var(--accent-2); }
.movil .p-kick { margin: 0; font: 800 11px/1.1 var(--font-b); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.movil .p-title { margin: 1px 0 0; font: 800 19px/1.1 var(--font-d); }
.movil .p-close { width: 40px; height: 40px; box-shadow: none; background: var(--cream-2); }
.movil .p-body { flex: 0 1 auto; min-height: 0; overflow: auto; margin: 6px -4px 0; padding: 0 4px 2px; overscroll-behavior: contain; }
.movil .p-more { flex: none; align-self: center; min-height: 32px; margin-top: 2px; padding: 0 12px; border: 0; background: none; color: var(--accent-2); font: 700 14px/1 var(--font-d); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.movil .p-more[hidden] { display: none; }
.movil .p-foot { flex: none; display: flex; margin-top: 8px; }
.movil .p-next { flex: 1; min-height: 46px; }

/* contenido de las tarjetas */
.movil .cbody { display: flex; flex-direction: column; gap: 8px; }
.movil .cbody .row { display: flex; flex-wrap: wrap; gap: 8px; }
.movil .cbody .row .gbtn { flex: 1 1 auto; }
.movil .note { margin: 0; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.movil .chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--accent-2); font: 800 14px/1.3 var(--font-b); }
.movil .big { margin: 0; font: 800 22px/1.15 var(--font-d); }
.movil .lead { margin: 0; font-weight: 600; }
.movil .steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.movil .steps li { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.movil .st-num { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); color: var(--accent-2); font: 800 14px/1 var(--font-d); }
.movil .st-time { flex: none; min-width: 66px; color: var(--ink-2); }
.movil .gifts { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.movil .gifts li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 14px; background: #fff; }
.movil .gifts li.is-fav { background: #FFF4D8; }
.movil .g-dot { flex: none; color: var(--accent); }
.movil .g-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 700; font-size: 15px; }
.movil .g-text small { color: var(--ink-2); font-weight: 600; }
.movil .g-text em { color: #9A6A12; font-style: normal; font-weight: 800; font-size: 13px; }
.movil .g-link { flex: none; min-height: 36px; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 14px/1.4 var(--font-d); text-decoration: none; }
.movil .check { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.movil .check li { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; font-size: 15px; }
.movil .check li > span:first-child { flex: none; color: var(--accent); margin-top: 2px; }
.movil .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.movil .thumb { aspect-ratio: 1; padding: 0; border: 3px solid #fff; border-radius: 18px; overflow: hidden; background: var(--soft); cursor: pointer; box-shadow: 0 0 0 2px var(--line); }
.movil .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- momento especial: el sol ---------- */
.movil .special { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: calc(var(--safe-t) + 9cqh) 20px calc(var(--safe-b) + 20px); text-align: center; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; pointer-events: none; }
.movil .app.is-special .special { opacity: 1; visibility: visible; }
.movil .sp-main { margin: 0; font: 800 clamp(30px, 9.4cqw, 52px)/1.05 var(--font-d); white-space: nowrap; }
.movil .app.is-special .sp-banner { animation: mv-pop .8s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes mv-pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
.rm .movil .sp-banner, .rm.movil .app.is-special .sp-banner { animation: none; }
.movil .sp-sub { max-width: 28ch; margin: 6px auto 0; font: 700 16px/1.35 var(--font-b); color: var(--ink); }
.movil .sp-actions { margin-top: auto; display: grid; gap: 8px; width: min(340px, 100%); pointer-events: auto; }

/* ---------- final ---------- */
.movil .final { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px calc(var(--safe-b) + 14px); border-radius: var(--radius) var(--radius) 0 0; background: rgba(255, 251, 244, .94); box-shadow: var(--shadow); text-align: center; transform: translateY(110%); transition: transform .6s cubic-bezier(.2, .9, .25, 1.05) .4s; }
.movil .app.is-final .final { transform: none; }
.movil .f-kick { margin: 0; font: 800 13px/1.2 var(--font-b); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.movil .f-sub { margin: 2px 0 10px; font: 800 20px/1.2 var(--font-d); color: var(--accent-2); }
.movil .f-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.movil .f-actions .gbtn:first-child { grid-column: 1 / -1; }
.movil .f-actions .gbtn { min-height: 46px; padding: 0 12px; font-size: 15px; }

/* ---------- "Cuelga tu figura" ---------- */
.movil .rv-top { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.movil .charm-preview { flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 22px; background: var(--soft); }
.movil .rv-intro p { margin: 0; font-weight: 600; color: var(--ink-2); }
.movil .rv-intro .rv-kick { font: 800 19px/1.2 var(--font-d); color: var(--ink); }
.movil .flabel { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 6px; font: 800 14px/1.2 var(--font-b); color: var(--ink); }
.movil .count { font-weight: 600; color: var(--ink-2); }
.movil .shapes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.movil .shape { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 64px; padding: 6px 2px; border: 2px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; font: 700 12px/1.1 var(--font-b); color: var(--ink-2); }
.movil .shape[aria-checked="true"] { border-color: var(--accent); background: var(--soft); color: var(--ink); }
.movil .swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.movil .swatch { width: 44px; height: 44px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--c); cursor: pointer; box-shadow: 0 0 0 2px var(--line); }
.movil .swatch[aria-checked="true"] { box-shadow: 0 0 0 3px var(--accent); }
.movil input[type="text"], .movil textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); font: 600 16px/1.3 var(--font-b); }
.movil textarea { resize: none; }
.movil input:focus, .movil textarea:focus { border-color: var(--accent); outline: none; }
.movil .steps-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.movil .stepper { display: flex; flex-direction: column; gap: 4px; }
.movil .slabel { font: 800 14px/1.2 var(--font-b); }
.movil .sctrl { display: flex; align-items: center; justify-content: space-between; padding: 3px; border: 2px solid var(--line); border-radius: 16px; background: #fff; }
.movil .sctrl output { font: 800 18px/1 var(--font-d); }
.movil .step { width: 44px; height: 40px; border: 0; border-radius: 12px; background: var(--soft); font: 800 20px/1 var(--font-d); cursor: pointer; }
.movil .step[disabled] { opacity: .4; cursor: default; }
.movil .err { min-height: 1.2em; margin: 8px 0 0; color: #B0233F; font-weight: 700; }
.movil .decline { width: 100%; margin-top: 6px; }

/* ---------- toda la información ---------- */
.movil .chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.movil .chips::-webkit-scrollbar { display: none; }
.movil .chips .chip { flex: none; border: 0; cursor: pointer; background: var(--cream-2); color: var(--ink-2); }
.movil .chips .chip.is-on { background: var(--accent); color: #fff; }
.movil .dcard { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.movil .dcard h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 800 18px/1.2 var(--font-d); }
.movil .dic { color: var(--accent); display: grid; }
.movil .faq details { padding: 8px 0; border-bottom: 1px solid var(--line); }
.movil .faq summary { font-weight: 800; cursor: pointer; }
.movil .faq p { margin: 6px 0 0; color: var(--ink-2); }
