/* La Vuelta · Mi cuenta versión app: pase, anillo, pista, navegación inferior, microinteracciones */
body.in-app .m-main { padding-bottom: 120px; }
.m-phrase { font: 500 11px var(--f-m); letter-spacing: .16em; text-transform: uppercase; color: var(--caramel); margin: 4px 0 6px; }
.m-tab { display: none; }
.m-tab.on { display: block; }
.m-tab > * { opacity: 0; }
.m-tab > .m-in { animation: mrise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes mrise { from { opacity: 0; transform: translateY(22px) scale(.98); } to { opacity: 1; transform: none; } }
.m-h2 { font: 400 clamp(34px, 9vw, 48px)/1 var(--f-d); text-transform: uppercase; margin: 4px 0 16px; }

/* pase */
.m-pass { --c: #5fd486; position: relative; overflow: hidden; border-radius: 26px; padding: 20px; margin-bottom: 14px; border: 1px solid rgba(237,230,224,.18);
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%), linear-gradient(160deg, #2a1713, #150a08);
  box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--c) 55%, transparent); transition: transform .25s var(--ease); }
.m-pass-shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.1) 48%, transparent 60%); transform: translateX(-120%); animation: shine 5.5s 1.2s infinite; }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.m-pass-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.m-pass-brand { font: 400 20px var(--f-d); letter-spacing: .04em; }
.m-pass-brand i { font: 500 9px var(--f-m); letter-spacing: .2em; color: var(--caramel); margin-left: 6px; font-style: normal; }
.m-pass-mid { display: flex; align-items: center; gap: 18px; }
.m-ring { position: relative; width: 132px; height: 132px; flex: none; }
.m-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.m-ring circle { fill: none; stroke-width: 9; }
.m-ring .bg { stroke: rgba(237,230,224,.1); }
.m-ring .fg { stroke-linecap: round; transition: stroke-dashoffset 1.6s cubic-bezier(.2,.8,.2,1) .2s; filter: drop-shadow(0 0 6px var(--c)); }
.m-orbit { position: absolute; inset: 0; transition: transform 1.6s cubic-bezier(.2,.8,.2,1) .2s; }
.m-orbit span { position: absolute; left: 50%; top: 0; width: 13px; height: 13px; margin: 2px 0 0 -6.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 45%, transparent), 0 0 14px var(--c); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px transparent, 0 0 18px var(--c); } }
.m-ring-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.m-ring-c b { font: 400 46px/1 var(--f-d); }
.m-ring-c small { font: 500 8.5px var(--f-m); letter-spacing: .14em; text-transform: uppercase; color: var(--caramel); margin-top: 3px; }
.m-pass-info { display: grid; gap: 11px; min-width: 0; }
.m-pass-info small { display: block; font: 500 9px var(--f-m); letter-spacing: .16em; text-transform: uppercase; color: var(--caramel); margin-bottom: 2px; }
.m-pass-info b { font: 400 21px/1.05 var(--f-d); text-transform: uppercase; overflow-wrap: anywhere; }
.m-track { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--caramel); font-size: 14px; position: relative; }
.m-lane { flex: 1; height: 6px; border-radius: 6px; background: repeating-linear-gradient(90deg, rgba(237,230,224,.22) 0 8px, transparent 8px 15px); position: relative; }
.m-lane span { position: absolute; left: 0; top: -1px; height: 8px; border-radius: 8px; background: var(--c); box-shadow: 0 0 12px var(--c); transition: width 1.6s cubic-bezier(.2,.8,.2,1) .2s; }
#runner { position: absolute; left: 0; top: -14px; color: #fff; font-size: 18px; margin-left: 20px; transition: left 1.6s cubic-bezier(.2,.8,.2,1) .2s; animation: bob .5s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-3px); } }
.m-track-t { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.m-pill { color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }

/* carga con huellas */
.m-steps { display: flex; justify-content: center; gap: 18px; padding: 70px 0 14px; font-size: 24px; color: var(--red); }
.m-steps i { opacity: 0; animation: step 1.4s infinite; transform: rotate(80deg); }
.m-steps i:nth-child(odd) { margin-top: 14px; }
.m-steps i:nth-child(2) { animation-delay: .25s; } .m-steps i:nth-child(3) { animation-delay: .5s; } .m-steps i:nth-child(4) { animation-delay: .75s; }
@keyframes step { 0% { opacity: 0; } 20%, 70% { opacity: 1; } 100% { opacity: 0; } }
.m-steps-t { text-align: center; color: var(--muted); font-size: 14px; }

/* barra inferior */
.m-nav { position: fixed; z-index: 40; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(calc(100% - 24px), 520px); display: flex; padding: 6px; border-radius: 24px; background: rgba(27,15,12,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(237,230,224,.16); box-shadow: 0 18px 40px -12px #000; animation: navin .7s var(--ease) both; }
.m-nav[hidden] { display: none; }
@keyframes navin { from { transform: translate(-50%, 120%); } }
.m-nav button { position: relative; z-index: 1; flex: 1; display: grid; justify-items: center; gap: 3px; padding: 9px 0 8px; color: var(--muted); font: 600 10.5px var(--f-b); cursor: pointer; transition: color .25s, transform .15s; }
.m-nav button i { font-size: 18px; transition: transform .3s cubic-bezier(.3,1.6,.5,1), color .25s; }
.m-nav button.on { color: var(--paper); }
.m-nav button.on i { transform: translateY(-2px) scale(1.18); color: var(--red); }
.m-nav button:active { transform: scale(.92); }
.m-nav-ind { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; border-radius: 18px; background: rgba(224,53,47,.16); border: 1px solid rgba(224,53,47,.35); transition: transform .45s cubic-bezier(.3,1.3,.5,1), width .3s; }

/* ondas, confeti, vacíos */
.btn { position: relative; overflow: hidden; }
.m-rip { position: absolute; border-radius: 50%; background: rgba(255,255,255,.35); transform: scale(0); animation: rip .65s ease-out forwards; pointer-events: none; }
@keyframes rip { to { transform: scale(1); opacity: 0; } }
.m-conf { position: fixed; left: 50%; top: 55%; z-index: 100; pointer-events: none; }
.m-conf i { position: absolute; width: 9px; height: 14px; border-radius: 2px; opacity: 0; animation: conf 1.9s cubic-bezier(.15,.7,.3,1) forwards; }
@keyframes conf { 0% { opacity: 1; transform: translate(0,0) rotate(0); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 380px)) rotate(var(--r)); } }
.m-empty { text-align: center; padding: 34px 20px; }
.m-empty i { font-size: 30px; color: var(--red); display: block; margin-bottom: 12px; transform: rotate(-20deg); }
.m-empty b { display: block; font: 400 24px var(--f-d); text-transform: uppercase; margin-bottom: 6px; }
.m-card:hover { border-color: rgba(237,230,224,.3); }
.m-pays div { transition: padding-left .2s, background .2s; }
.m-pays div:hover { padding-left: 8px; background: rgba(237,230,224,.04); }
@media (min-width: 760px) { .m-main { max-width: 620px; } }
@media (prefers-reduced-motion: reduce) { .m-tab > * { animation: none !important; opacity: 1; } .m-pass-shine, .m-steps i, .m-orbit span, #runner { animation: none !important; } .m-steps i { opacity: 1; } }

/* pasos de ayuda por WhatsApp */
.m-steps-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.m-steps-list li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: #1b0f0c; border: 1px solid var(--line); font-size: 14.5px; color: var(--wool); }
.m-steps-list i { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(224,53,47,.14); color: var(--red); font-size: 17px; }
#wa-help { margin-bottom: 4px; }
#v-forgot .u-title { font-size: clamp(30px, 11.5vw, 62px); white-space: nowrap; }

.m-openapp { margin-bottom: 14px; }
.m-plan-note{margin:14px 0 0;padding:12px 14px;border-radius:14px;background:rgba(242,210,58,.12);border:1px solid rgba(242,210,58,.35);color:#ede6e0;font-size:.95rem;line-height:1.45}
.m-plan-note[hidden]{display:none}
