@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400 800; font-style: normal; font-display: swap; src: url(/fonts/pjs-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400 800; font-style: normal; font-display: swap; src: url(/fonts/pjs-latinext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #ffffff; --ink: #1B2440; --muted: #6A7391; --card: #ffffff; --tint: #F4F3FF; --tint2: #EEF6FF; --line: rgba(27, 36, 64, .10);
  --purple: #7C5CFF; --coral: #FF7A6B; --teal: #27BFB0; --yellow: #FFC247; --blue: #4C9BFF; --pink: #FF8ED0;
  --grad: linear-gradient(135deg, #7C5CFF 0%, #B46BFF 45%, #FF7A8A 100%);
  --grad-ok: linear-gradient(135deg, #27BFB0 0%, #5BD39A 100%);
  --frame: linear-gradient(120deg, #58C4FF, #9A7BFF 28%, #FF8ED0 52%, #FFB65C 74%, #6FE3C8);
  --shadow: 0 10px 30px -12px rgba(76, 60, 160, .28);
  --stage: transparent;
  --btn-soft: #F1EFFF; --btn-soft-ink: #4A3DB5; --btn-calm: #E8F4FF; --btn-calm-ink: #2A62A8;
  --ease: cubic-bezier(.2, .9, .2, 1);
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}
html[data-theme=dark] {
  --bg: #0D1130; --ink: #F2F3FF; --muted: #A6ABD0; --card: #171C47; --tint: #1B2155; --tint2: #162049; --line: rgba(255, 255, 255, .12);
  --shadow: 0 14px 34px -14px rgba(0, 0, 0, .7);
  --stage: #F1EEFF;
  --btn-soft: #252B66; --btn-soft-ink: #D2C9FF; --btn-calm: #1B2B5E; --btn-calm-ink: #A9D1FF;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overscroll-behavior: none; transition: background-color .5s ease, color .5s ease; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; touch-action: manipulation; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 14px; }

/* ---------- fondo de escritorio ---------- */
#backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; opacity: 0; transition: opacity .6s; }
#backdrop i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
#backdrop i:nth-child(1) { width: 46vw; height: 46vw; left: -8vw; top: -12vw; background: #B9A6FF; }
#backdrop i:nth-child(2) { width: 38vw; height: 38vw; right: -6vw; top: 8vh; background: #FFB3A0; }
#backdrop i:nth-child(3) { width: 42vw; height: 42vw; left: 30vw; bottom: -22vw; background: #8FE3CF; }
html[data-theme=dark] #backdrop i { opacity: .28; }

/* ---------- contenedor de la app ---------- */
#app { position: relative; z-index: 1; width: min(100vw, 480px); height: 100dvh; margin: 0 auto; overflow: hidden; background: var(--bg); container-type: size; transition: background-color .5s ease; isolation: isolate; }
@media (min-width: 700px) {
  #backdrop { opacity: 1; }
  html, body { background: color-mix(in srgb, var(--bg) 92%, #8a7cff); }
  #app { height: min(100dvh - 40px, 900px); margin-top: max(20px, calc((100dvh - 900px) / 2)); border-radius: 44px; box-shadow: 0 40px 90px -30px rgba(70, 50, 160, .45), 0 0 0 1px var(--line); }
}
.frame { position: absolute; inset: 8px; border-radius: 38px; padding: 2px; background: var(--frame); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; opacity: .7; z-index: 6; transition: opacity .6s; }
html[data-theme=dark] .frame { opacity: .85; }
@media (min-width: 700px) { .frame { border-radius: 36px; } }

/* ---------- cabecera ---------- */
.top { position: absolute; z-index: 8; top: calc(var(--safe-t) + 18px); left: 20px; right: 20px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; animation: fadeIn .6s both; }
.top > * { pointer-events: auto; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: color-mix(in srgb, var(--tint) 85%, transparent); transition: transform .25s var(--ease), background .3s; }
.icon-btn:active { transform: scale(.88); }
.today-pill { font-size: 13px; font-weight: 700; color: var(--muted); padding: 7px 14px; border-radius: 99px; background: var(--tint); animation: pop .5s var(--ease) both; }

/* ---------- Jarvis (único, se mueve entre pantallas) ---------- */
#app { --s: clamp(230px, 72cqw, 330px); --t: 13cqh; }
.jv { position: absolute; z-index: 5; left: 50%; width: var(--s); height: var(--s); top: var(--t); transform: translateX(-50%); transition: width .8s var(--ease), height .8s var(--ease), top .8s var(--ease), opacity .5s; touch-action: manipulation; }
#app[data-view=splash] { --s: clamp(150px, 44cqw, 210px); --t: calc(50cqh - 120px); }
#app[data-view=intro] { --s: clamp(210px, 62cqw, 290px); --t: 16cqh; }
#app[data-view=intro] .jv { opacity: 0; }
#app[data-view=intro].hi .jv { opacity: 1; }
#app[data-view=think] { --s: clamp(190px, 56cqw, 260px); --t: 20cqh; }
#app[data-view=step], #app[data-view=heavy], #app[data-view=stay] { --s: clamp(96px, 27cqw, 124px); --t: calc(var(--safe-t) + 62px); }
#app[data-view=heavy] { --s: clamp(86px, 24cqw, 110px); }
#app[data-view=win] { --s: clamp(120px, 34cqw, 150px); --t: calc(var(--safe-t) + 60px); }
#app[data-view=stop] { --s: clamp(96px, 26cqw, 120px); --t: calc(var(--safe-t) + 62px); }
#app[data-view=paywall], #app[data-view=care] { --s: clamp(120px, 34cqw, 150px); --t: calc(var(--safe-t) + 54px); }
#app.sheet-open .jv { opacity: 0; transform: translateX(-50%) scale(.8); }
#app[data-view=home] .jv { cursor: pointer; }

/* ---------- vistas ---------- */
.view { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; padding: calc(var(--t) + var(--s) + 14px) 28px calc(var(--safe-b) + 28px); text-align: center; z-index: 2; }
.view.on { display: flex; animation: viewIn .55s var(--ease) both; }
.view.leave { display: flex; animation: viewOut .22s ease both; pointer-events: none; }
.view.scroll { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.view.scroll::-webkit-scrollbar { display: none; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes viewOut { to { opacity: 0; transform: translateY(-8px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.85); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.view.on .rise { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 140ms); }

/* splash */
#v-splash { padding-top: calc(50cqh + 130px); justify-content: flex-start; }
.word { font-size: 28px; font-weight: 800; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: wordIn 1s .5s var(--ease) both; }
@keyframes wordIn { from { opacity: 0; letter-spacing: .2em; filter: blur(6px); } to { opacity: 1; filter: none; } }

/* intro */
#v-intro { justify-content: flex-start; }
.intro-art { position: absolute; left: 50%; top: var(--t); width: var(--s); height: var(--s); margin-left: calc(var(--s) / -2); transition: opacity 1.2s ease, transform 1.4s var(--ease), filter 1.2s ease; }
.intro-art img { width: 100%; height: 100%; object-fit: contain; animation: floaty 6s ease-in-out infinite; }
.intro-art.gone { opacity: 0; transform: scale(1.18) translateY(-20px); filter: blur(10px); }
.welcome { margin: 6px 0 0; font-size: clamp(23px, 6.4cqw, 29px); line-height: 1.28; font-weight: 700; letter-spacing: -.02em; max-width: 21ch; text-wrap: balance; }
.w { display: inline-block; opacity: 0; transform: translateY(8px); filter: blur(4px); animation: wordIn2 .8s var(--ease) forwards; }
@keyframes wordIn2 { to { opacity: 1; transform: none; filter: none; } }
@keyframes floaty { 50% { transform: translateY(-9px) rotate(1.2deg); } }

/* home */
.hello { margin: 0 0 6px; color: var(--muted); font-weight: 600; font-size: 15px; min-height: 22px; }
.ask { margin: 0; font-size: clamp(25px, 7.4cqw, 32px); line-height: 1.16; letter-spacing: -.03em; font-weight: 800; max-width: 15ch; text-wrap: balance; }
.hint { margin: 14px 0 0; color: var(--muted); font-weight: 600; font-size: 15px; animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .5; } }
.live { min-height: 28px; margin-top: 10px; font-size: 19px; font-weight: 600; color: var(--purple); max-width: 24ch; text-wrap: balance; }
html[data-theme=dark] .live { color: #C9BBFF; }
.fallback { width: 100%; margin-top: auto; display: none; flex-direction: column; gap: 14px; align-items: center; }
.fallback.show { display: flex; animation: rise .6s var(--ease) both; }
.textrow { width: 100%; max-width: 400px; display: flex; gap: 10px; align-items: center; background: var(--tint); border-radius: 22px; padding: 6px 6px 6px 18px; border: 1.5px solid transparent; transition: border-color .3s, box-shadow .3s; }
.textrow:focus-within { border-color: var(--purple); box-shadow: 0 0 0 4px color-mix(in srgb, var(--purple) 18%, transparent); }
.textrow input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font-size: 16px; padding: 12px 0; color: var(--ink); }
.textrow input::placeholder { color: var(--muted); }
.send { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--grad); transition: transform .25s var(--ease), opacity .3s; box-shadow: 0 8px 18px -8px rgba(124, 92, 255, .8); }
.send:active { transform: scale(.88); }
.chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; max-width: 400px; }
.chip { padding: 10px 16px; border-radius: 99px; background: var(--card); border: 1.5px solid var(--line); font-weight: 600; font-size: 14.5px; color: var(--ink); transition: transform .25s var(--ease), border-color .3s, background .3s; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.chip:active { transform: scale(.94); }
.chip:hover { border-color: var(--purple); }
.chips.big .chip { padding: 13px 20px; font-size: 16px; }

/* pensando */
.thinking { margin: 0; font-size: 20px; font-weight: 700; color: var(--muted); animation: breathe 1.6s ease-in-out infinite; }

/* burbuja de Jarvis (con borde fino de color) */
.bubble { position: relative; width: 100%; max-width: 400px; margin: 18px 0 0; padding: 20px 22px; border-radius: 28px; font-size: 18.5px; line-height: 1.4; font-weight: 600; letter-spacing: -.01em; background: linear-gradient(var(--tint), var(--tint)) padding-box, linear-gradient(120deg, #7FC8FF, #B79CFF, #FF9FC8, #FFD36E) border-box; border: 1.5px solid transparent; animation: bubbleIn .6s var(--ease) both; }
.bubble::before { content: ''; position: absolute; top: -9px; left: 50%; width: 16px; height: 16px; margin-left: -8px; transform: rotate(45deg); background: linear-gradient(135deg, #B79CFF, #7FC8FF); clip-path: polygon(0 0, 100% 0, 0 100%); border-radius: 3px 0 0 0; }
.bubble::after { content: ''; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; transform: rotate(45deg); background: var(--tint); clip-path: polygon(0 0, 100% 0, 0 100%); }
.bubble p { margin: 0; }
.bubble .recall { margin-top: 10px; font-size: 16px; color: var(--muted); font-weight: 600; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.bubble.compact { padding: 14px 18px; font-size: 15.5px; color: var(--muted); }

/* tarjeta del paso */
.stepcard { position: relative; width: 100%; max-width: 400px; margin: 70px 0 0; padding: 62px 24px 26px; border-radius: 30px; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, #7C5CFF, #FF8ED0 60%, #FFC247) border-box; border: 2px solid transparent; box-shadow: var(--shadow); animation: cardIn .8s var(--ease) both; }
.stepart { position: absolute; width: 104px; height: 104px; top: -58px; left: 50%; margin-left: -52px; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(124, 92, 255, .28)); animation: floaty 5s ease-in-out infinite; }
html[data-theme=dark] .stepart { filter: drop-shadow(0 10px 18px rgba(255, 160, 120, .3)); }
.kicker { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.steptext { margin: 0; font-size: clamp(23px, 6.6cqw, 28px); line-height: 1.22; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(.95); } }

/* botones */
.actions { width: 100%; max-width: 400px; margin-top: 22px; display: flex; flex-direction: column; gap: 11px; align-items: stretch; }
.actions.in .btn { animation: rise .6s var(--ease) both; }
.actions.in .btn:nth-child(2) { animation-delay: .09s; } .actions.in .btn:nth-child(3) { animation-delay: .18s; }
.btn { min-height: 56px; padding: 15px 24px; border-radius: 20px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; text-align: center; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; position: relative; overflow: hidden; transition: transform .22s var(--ease), box-shadow .3s, filter .3s; -webkit-user-select: none; user-select: none; }
.btn:active { transform: scale(.96); }
.btn.primary { color: #fff; background: var(--grad); box-shadow: 0 12px 24px -12px rgba(124, 92, 255, .85); }
.btn.primary.ok { background: var(--grad-ok); box-shadow: 0 12px 24px -12px rgba(39, 191, 176, .85); }
.btn.soft { color: var(--btn-soft-ink); background: var(--btn-soft); }
.btn.calm { color: var(--btn-calm-ink); background: var(--btn-calm); }
.btn.big { min-height: 62px; font-size: 19px; border-radius: 22px; }
.btn::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, .55), transparent 55%); opacity: 0; transform: scale(.2); transition: opacity .5s, transform .6s var(--ease); }
.btn.ripple::after { opacity: 1; transform: scale(2.4); transition: none; animation: ripple .6s ease-out forwards; }
@keyframes ripple { to { opacity: 0; transform: scale(2.6); } }
.linkbtn { margin-top: 10px; padding: 12px 16px; color: var(--muted); font-weight: 700; font-size: 15px; border-radius: 14px; }
.jv-ping { animation: ping 1.4s var(--ease) 1; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(124, 92, 255, .55); } 100% { box-shadow: 0 0 0 26px rgba(124, 92, 255, 0); } }

/* acompañamiento */
.stay-label { margin: 6px 0 0; font-weight: 700; color: var(--muted); font-size: 15px; }
.stay-timer { position: relative; width: 150px; height: 150px; margin: 16px 0 6px; display: grid; place-items: center; }
.stay-timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.stay-timer circle { fill: none; stroke-width: 7; }
.stay-timer .trk { stroke: var(--tint); }
.stay-timer .bar { stroke: var(--purple); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.stay-timer span { font-size: 34px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stay-step { margin: 8px 0 0; font-size: 20px; font-weight: 700; line-height: 1.3; max-width: 22ch; text-wrap: balance; }

/* ilustraciones: sobre una tarjeta clara en modo oscuro */
.win-art, .heavy-art { position: relative; display: grid; place-items: center; margin: 4px 0 0; }
.win-art img, .heavy-art img { object-fit: contain; animation: floaty 6s ease-in-out infinite; }
.win-art { width: min(58cqw, 250px); aspect-ratio: 1; margin-top: 10px; }
.win-art img { width: 100%; height: 100%; animation: artIn 1s var(--ease) both, floaty 6s 1s ease-in-out infinite; }
@keyframes artIn { from { opacity: 0; transform: scale(.6) rotate(-6deg); } }
.heavy-art { width: 150px; height: 150px; margin-top: 8px; }
.heavy-art img { width: 100%; height: 100%; }
html[data-theme=dark] .win-art::before, html[data-theme=dark] .heavy-art::before { content: ''; position: absolute; inset: 6% ; border-radius: 34px; background: var(--stage); opacity: .96; box-shadow: 0 20px 50px -20px rgba(150, 120, 255, .5); }
html[data-theme=dark] .win-art img, html[data-theme=dark] .heavy-art img, html[data-theme=dark] .intro-art img { position: relative; }
html[data-theme=dark] .intro-art::before { content: ''; position: absolute; inset: 6%; border-radius: 40px; background: var(--stage); opacity: .96; }
html[data-theme=dark] .intro-art.gone::before { opacity: 0; }
html[data-theme=dark] .stepart { background: var(--stage); border-radius: 28px; padding: 6px; width: 96px; height: 96px; margin-left: -48px; top: -52px; }
.win-title { margin: 8px 0 0; font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.win-text { margin: 10px 0 0; font-size: 20px; line-height: 1.35; font-weight: 600; max-width: 22ch; text-wrap: balance; }
.win-q { margin: 14px 0 0; color: var(--muted); font-size: 15.5px; font-weight: 600; max-width: 28ch; }
#confetti { position: absolute; inset: 0; z-index: 7; pointer-events: none; overflow: hidden; }
#confetti i { position: absolute; width: 9px; height: 14px; border-radius: 3px; opacity: 0; animation: conf 1.8s var(--ease) forwards; }
@keyframes conf { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)); } }

/* paywall */
.pay-title { margin: 12px 0 0; font-size: 31px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; max-width: 14ch; text-wrap: balance; }
.pay-body, .care-text { margin: 14px 0 0; color: var(--muted); font-size: 17px; line-height: 1.45; font-weight: 500; max-width: 30ch; }
.care-text { color: var(--ink); font-weight: 600; font-size: 18px; }
.pay-points { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.pay-points li { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 16.5px; }
.pay-points li::before { content: ''; flex: none; width: 26px; height: 26px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/14px no-repeat, var(--grad-ok); }
.pay-then { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; font-weight: 600; }

/* paneles */
.sheet { position: absolute; inset: 0; z-index: 9; background: var(--bg); display: flex; flex-direction: column; padding-top: var(--safe-t); animation: sheetIn .5s var(--ease) both; }
.sheet.out { animation: sheetOut .3s ease both; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(30px); } }
@keyframes sheetOut { to { opacity: 0; transform: translateY(24px); } }
.sheet-bar { display: flex; align-items: center; gap: 12px; padding: 18px 20px 8px; }
.sheet-bar h2 { margin: 0; flex: 1; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.sheet-bar .mini { width: 44px; height: 44px; display: block; }
.sheet-body { flex: 1; overflow-y: auto; padding: 8px 22px calc(var(--safe-b) + 34px); scrollbar-width: none; }
.sheet-body::-webkit-scrollbar { display: none; }
.group { margin-top: 18px; }
.group > h3 { margin: 0 0 8px 4px; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card { background: var(--tint); border-radius: 22px; padding: 6px 18px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 0; font-weight: 700; font-size: 16.5px; }
.row + .row { border-top: 1px solid var(--line); }
.row small { display: block; color: var(--muted); font-weight: 500; font-size: 13.5px; margin-top: 3px; line-height: 1.35; }
.row.link { width: 100%; text-align: left; }
.seg { display: inline-flex; background: var(--bg); border-radius: 14px; padding: 4px; gap: 2px; }
.seg button { padding: 8px 14px; border-radius: 11px; font-weight: 700; font-size: 14.5px; color: var(--muted); transition: background .3s, color .3s, transform .2s var(--ease); }
.seg button.on { background: var(--grad); color: #fff; }
.seg button:active { transform: scale(.94); }
.switch { position: relative; flex: none; width: 54px; height: 32px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 35%, transparent); transition: background .3s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .35s var(--ease); }
.switch[aria-checked=true] { background: var(--teal); }
.switch[aria-checked=true]::after { transform: translateX(22px); }
.danger-btn { width: 100%; padding: 15px; border-radius: 18px; font-weight: 700; color: #B4506A; background: color-mix(in srgb, #FF8EA6 16%, transparent); margin-top: 10px; }
html[data-theme=dark] .danger-btn { color: #FFB3C4; }
.empty { text-align: center; padding: 20px 10px; color: var(--muted); font-weight: 600; line-height: 1.45; }
.empty img { width: 150px; height: 150px; object-fit: contain; display: block; margin: 0 auto 10px; }
html[data-theme=dark] .empty img { background: var(--stage); border-radius: 30px; padding: 10px; }
.day { margin: 22px 0 8px 4px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hcard { display: flex; gap: 13px; align-items: flex-start; background: var(--tint); border-radius: 22px; padding: 14px 16px; margin-bottom: 10px; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
.hcard .mini { flex: none; width: 40px; height: 40px; display: block; }
.hcard b { display: block; font-size: 16px; line-height: 1.3; letter-spacing: -.01em; }
.hcard span { display: block; margin-top: 4px; color: var(--muted); font-weight: 600; font-size: 13.5px; }
.mem-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.mem-item + .mem-item { border-top: 1px solid var(--line); }
.mem-item span { flex: 1; }
.mem-item button { width: 34px; height: 34px; border-radius: 50%; color: var(--muted); background: var(--bg); font-size: 20px; line-height: 1; }
.prose { line-height: 1.55; font-weight: 500; font-size: 16px; color: var(--ink); }

.toast { position: absolute; z-index: 20; left: 50%; bottom: calc(var(--safe-b) + 30px); transform: translate(-50%, 30px); max-width: min(86%, 380px); padding: 14px 20px; border-radius: 18px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .4s, transform .5s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-height: 700px) { .view { padding-left: 22px; padding-right: 22px; } .stepcard { margin-top: 62px; padding-top: 56px; } .win-art { width: min(44cqw, 190px); } }
html[data-reduce="1"] *, html[data-reduce="1"] *::before, html[data-reduce="1"] *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; }
@media (prefers-reduced-motion: reduce) { .intro-art img, .win-art img, .stepart, .hint { animation: none !important; } }

/* invitación a tocar para que Jarvis hable (solo si el teléfono bloquea el audio) */
.gate { position: absolute; z-index: 9; left: 50%; bottom: calc(var(--safe-b) + 11cqh); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 99px; font-weight: 700; font-size: 16px; color: #fff; background: var(--grad); box-shadow: 0 14px 30px -12px rgba(124, 92, 255, .9); animation: gateIn .7s var(--ease) both, gatePulse 2.2s 1s ease-in-out infinite; white-space: nowrap; }
@keyframes gateIn { from { opacity: 0; transform: translate(-50%, 20px) scale(.9); } }
@keyframes gatePulse { 50% { box-shadow: 0 14px 30px -12px rgba(124, 92, 255, .9), 0 0 0 12px rgba(124, 92, 255, .14); } }
