/* Litycs · estilos */
:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --bg-2: #eef0f3;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --surface-3: #e5e7eb;
  --line: rgba(15, 17, 21, .08);
  --line-2: rgba(15, 17, 21, .14);
  --text: #0f1115;
  --ink: #0f1115;
  --muted: #5b616e;
  --faint: #8a909c;
  --accent: #f0531c;
  --accent-ink: #c2410c;
  --accent-2: #0f1115;
  --accent-soft: rgba(240, 83, 28, .08);
  --sand: #2f6feb;
  --violet: #2f6feb;
  --cyan: #0e9fb5;
  --gold: #f5b400;
  --good: #12b76a;
  --good-soft: rgba(18, 183, 106, .1);
  --bad: #d92d20;
  --bad-soft: rgba(217, 45, 32, .08);
  --grad: linear-gradient(0deg, #f0531c, #f0531c);
  --grad-cool: linear-gradient(0deg, #2f6feb, #2f6feb);
  --radius: 12px;
  --radius-lg: 16px;
  --f-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(15, 17, 21, .04), 0 2px 8px -2px rgba(15, 17, 21, .06);
  --shadow-lg: 0 24px 48px -16px rgba(15, 17, 21, .18);
  --nav-h: 66px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 15px/1.55 var(--f-body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--f-display); letter-spacing: .01em; line-height: 1.05; margin: 0 0 .4em; }
h1 { font-size: clamp(34px, 7vw, 56px); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(26px, 4.5vw, 34px); font-weight: 700; text-transform: uppercase; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Fondo animado ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-fx .orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .32; animation: float 18s ease-in-out infinite; }
.bg-fx .orb.o1 { width: 420px; height: 420px; background: #ff3d7f; top: -120px; right: -100px; }
.bg-fx .orb.o2 { width: 380px; height: 380px; background: #7c5cff; bottom: -140px; left: -120px; animation-delay: -6s; opacity: .34; }
.bg-fx .orb.o3 { width: 260px; height: 260px; background: #22d3ee; top: 40%; left: 55%; animation-delay: -11s; opacity: .16; }
.bg-fx .lines { position: absolute; inset: 0; display: flex; justify-content: space-around; opacity: .5; }
.bg-fx .lines span { width: 1px; height: 100%; background: linear-gradient(to top, transparent, rgba(240, 83, 28, .35), transparent);
  background-size: 100% 40%; background-repeat: no-repeat; animation: rise 7s linear infinite; }
.bg-fx .lines span:nth-child(2n) { animation-duration: 9s; animation-delay: -3s; }
.bg-fx .lines span:nth-child(3n) { animation-duration: 11s; animation-delay: -5s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, 40px) scale(1.08); } 66% { transform: translate(-20px, 20px) scale(.95); } }
@keyframes rise { from { background-position: 0 140%; } to { background-position: 0 -60%; } }

/* ---------- Layout ---------- */
.app-header {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 20px; background: rgba(11, 8, 20, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-mark { width: 42px; height: 42px; overflow: visible; filter: drop-shadow(0 4px 10px rgba(240, 83, 28, .45)); }
.logo-mark .db { transform-origin: 32px 32px; animation: dbLift 2.8s ease-in-out infinite; }
@keyframes dbLift { 0%, 100% { transform: rotate(-20deg) translateY(3px); } 45% { transform: rotate(-2deg) translateY(-5px); } 55% { transform: rotate(-2deg) translateY(-5px); } }
.logo:hover .db { animation-duration: .9s; }
.logo-text { font-family: var(--f-display); text-transform: uppercase; line-height: .9; }
.logo-text b { display: block; font-size: 19px; font-weight: 700; letter-spacing: .14em; }
.logo-text i { display: block; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .5em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.top-nav { display: none; gap: 4px; }
.top-nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px; transition: .2s; }
.top-nav a:hover { color: var(--text); background: var(--surface); }
.top-nav a.on { color: var(--text); background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(240, 83, 28, .35); }

.bottom-nav {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(6, 1fr);
  background: rgba(18, 13, 31, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--faint);
  text-decoration: none; font-size: 10.5px; font-weight: 600; position: relative; transition: color .2s; }
.bottom-nav a svg { width: 23px; height: 23px; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.bottom-nav a.on { color: var(--accent); }
.bottom-nav a.on svg { transform: translateY(-2px) scale(1.1); }
.bottom-nav a.on::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--grad); }

main#view { max-width: 980px; margin: 0 auto; padding: 22px 16px calc(var(--nav-h) + 36px); }
body.no-nav main#view { padding-bottom: 40px; }
body.no-nav .bottom-nav, body.no-nav .top-nav, body.no-nav .header-actions { display: none; }

@media (min-width: 860px) {
  .top-nav { display: flex; }
  .bottom-nav { display: none; }
  main#view { padding: 32px 24px 60px; }
}

/* ---------- Transiciones de vista ---------- */
.view-enter { animation: viewIn .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { animation: fadeUp .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Componentes ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card.glow { position: relative; overflow: hidden; }
.card.glow::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(240, 83, 28, .6), transparent 40%, transparent 60%, rgba(47, 111, 235, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: 1fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 720px) { .grid.two { grid-template-columns: 1fr 1fr; } }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.section-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.section-title h2, .section-title h3 { margin: 0; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform .15s, background .2s, border-color .2s, box-shadow .2s; position: relative; overflow: hidden; white-space: nowrap;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--grad); border-color: transparent; color: #ffffff; box-shadow: 0 8px 24px -8px rgba(240, 83, 28, .7); }
.btn.primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: shine 3.6s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); border-color: rgba(240, 96, 90, .35); background: transparent; }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn.icon { width: 40px; min-height: 40px; padding: 0; }
.btn svg { width: 18px; height: 18px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-weight: 600; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--muted); }
.chip.accent { background: var(--accent-soft); color: var(--accent); border-color: rgba(240, 83, 28, .3); }
.chip.good { background: var(--good-soft); color: var(--good); border-color: rgba(62, 224, 143, .3); }

/* ---------- Formularios ---------- */
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: var(--bg-2); outline: none; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.form-error { background: var(--bad-soft); color: #ffb3ae; padding: 10px 14px; border-radius: var(--radius); font-size: 14px; margin-bottom: 14px; animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- Portada ---------- */
.hero { min-height: calc(100vh - 140px); display: grid; align-content: center; gap: 24px; text-align: left; padding: 20px 0; }
.hero h1 { font-size: clamp(48px, 12vw, 104px); line-height: .88; margin: 0; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; animation: slideUp .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes slideUp { from { transform: translateY(105%); } to { transform: none; } }
.hero .lead { font-size: 18px; max-width: 520px; color: var(--muted); }
.hero-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 10px; }
.hero-feat { padding: 16px; border-radius: var(--radius); background: rgba(24, 18, 38, .7); border: 1px solid var(--line); }
.hero-feat b { display: block; font-family: var(--f-display); font-size: 20px; text-transform: uppercase; margin: 6px 0 2px; }
.hero-feat .ico { font-size: 24px; }
.auth-wrap { max-width: 440px; margin: 4vh auto 0; }

/* ---------- Test inicial ---------- */
.quiz { max-width: 640px; margin: 0 auto; }
.quiz-progress { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-bottom: 26px; }
.quiz-progress > div { height: 100%; background: var(--grad); border-radius: 99px; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.quiz-step { animation: stepIn .45s cubic-bezier(.2, .8, .2, 1) both; }
.quiz-step.back { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.quiz-step h2 { margin-bottom: 6px; }
.options { display: grid; gap: 10px; margin: 22px 0; }
.options.cols-2 { grid-template-columns: 1fr 1fr; }
.options.cols-7 { grid-template-columns: repeat(7, 1fr); gap: 6px; }
.opt {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: var(--surface); cursor: pointer; text-align: left; transition: transform .15s, border-color .2s, background .2s;
  animation: fadeUp .4s both; animation-delay: calc(var(--i, 0) * 50ms);
}
.opt:hover { border-color: rgba(240, 83, 28, .5); }
.opt:active { transform: scale(.98); }
.opt.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.opt .ico { font-size: 26px; width: 40px; text-align: center; flex: none; }
.opt b { display: block; font-size: 16px; }
.opt small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.opt.day { flex-direction: column; gap: 2px; padding: 14px 0; text-align: center; justify-content: center; font-weight: 700; }
.opt.day small { margin: 0; font-size: 10px; }
.quiz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; }

.generating { text-align: center; padding: 60px 0; }
.spinner-bars { display: flex; gap: 8px; justify-content: center; align-items: flex-end; height: 70px; margin-bottom: 28px; }
.spinner-bars span { width: 14px; border-radius: 4px; background: var(--grad); animation: lift 1s ease-in-out infinite; }
.spinner-bars span:nth-child(1) { height: 30%; }
.spinner-bars span:nth-child(2) { height: 55%; animation-delay: .1s; }
.spinner-bars span:nth-child(3) { height: 80%; animation-delay: .2s; }
.spinner-bars span:nth-child(4) { height: 100%; animation-delay: .3s; }
.spinner-bars span:nth-child(5) { height: 65%; animation-delay: .4s; }
@keyframes lift { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.gen-steps { list-style: none; padding: 0; margin: 0 auto; max-width: 320px; text-align: left; }
.gen-steps li { padding: 8px 0; color: var(--faint); transition: color .3s; }
.gen-steps li.done { color: var(--good); }
.gen-steps li.done::before { content: "✓ "; }

/* ---------- Panel "Hoy" ---------- */
.greet { margin-bottom: 18px; }
.greet h1 { margin: 0; }
.today-card { background: radial-gradient(120% 140% at 100% 0%, rgba(240, 83, 28, .32), transparent 55%), var(--surface); }
.today-card .day-name { font-family: var(--f-display); font-size: 40px; font-weight: 800; text-transform: uppercase; line-height: 1; margin: 6px 0; }
.ex-preview { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat b { display: block; font-family: var(--f-display); font-size: 34px; font-weight: 800; line-height: 1; }
.stat span { font-size: 12px; color: var(--muted); }
.ring-wrap { display: flex; align-items: center; gap: 18px; }
.ring { width: 110px; height: 110px; flex: none; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .track { stroke: var(--surface-3); }
.ring .bar { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1); }
.ring .label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .label b { font-family: var(--f-display); font-size: 30px; line-height: 1; }
.ring .label span { font-size: 11px; color: var(--muted); }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 4px; }
.week-strip .wd { text-align: center; padding: 8px 0; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font-size: 12px; color: var(--faint); position: relative; }
.week-strip .wd b { display: block; font-size: 15px; color: var(--muted); }
.week-strip .wd.plan { border-color: rgba(240, 83, 28, .35); }
.week-strip .wd.plan b { color: var(--text); }
.week-strip .wd.done { background: var(--grad); color: #ffffff; border-color: transparent; }
.week-strip .wd.done b { color: #ffffff; }
.week-strip .wd.today { box-shadow: 0 0 0 2px var(--text) inset; }
.week-strip .wd .k { font-size: 10px; font-weight: 700; }
.banner { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius-lg); background: var(--accent-soft); border: 1px solid rgba(240, 83, 28, .4); margin-bottom: 16px; animation: pulseBorder 2.4s infinite; }
@keyframes pulseBorder { 50% { box-shadow: 0 0 0 6px rgba(240, 83, 28, .08); } }
.banner .ico { font-size: 30px; }

/* ---------- Rutina ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab-btn { flex: none; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; text-align: left; transition: .2s; }
.tab-btn b { display: block; font-family: var(--f-display); font-size: 18px; text-transform: uppercase; }
.tab-btn small { color: var(--muted); font-size: 12px; }
.tab-btn.on { background: var(--grad); color: #ffffff; border-color: transparent; }
.tab-btn.on small { color: rgba(29, 6, 20, .7); }
.ex-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); margin-bottom: 10px; transition: border-color .2s, transform .2s; }
.ex-card:hover { border-color: var(--line-2); }
.ex-num { width: 38px; height: 38px; border-radius: 10px; display: grid; place-content: center; background: var(--surface-2); font-family: var(--f-display); font-weight: 800; font-size: 18px; color: var(--accent); }
.ex-card.main .ex-num { background: var(--grad); color: #ffffff; }
.ex-name { font-weight: 700; cursor: pointer; }
.ex-name:hover { color: var(--accent); }
.ex-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.ex-meta b { color: var(--text); }
.ex-actions { display: flex; gap: 6px; }
.superset-tag { font-size: 11px; font-weight: 800; color: var(--sand); }
.week-plan { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wp { padding: 12px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; }
.wp b { display: block; font-family: var(--f-display); font-size: 17px; text-transform: uppercase; }
.wp.on { border-color: var(--accent); background: var(--accent-soft); }
.notes li { margin-bottom: 8px; color: var(--muted); }
@media (max-width: 600px) { .week-plan { grid-template-columns: 1fr 1fr; } .ex-card { gap: 10px; padding: 12px; } .ex-actions { flex-direction: column; } .ex-actions .btn.icon { width: 36px; min-height: 36px; } }

/* ---------- Modo sesión ---------- */
.session-head { position: sticky; top: 59px; z-index: 20; background: rgba(11, 8, 20, .9); backdrop-filter: blur(10px); margin: -22px -16px 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.session-timer { font-family: var(--f-display); font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.session-bar { height: 4px; background: var(--surface-2); border-radius: 9px; overflow: hidden; margin-top: 8px; }
.session-bar > div { height: 100%; background: var(--grad); transition: width .4s; }
.set-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; margin-top: 10px; }
.set-table th { font-size: 11px; font-weight: 600; color: var(--faint); text-align: left; text-transform: uppercase; letter-spacing: .06em; }
.set-table td { padding: 0 4px; }
.set-table input { min-height: 42px; padding: 8px; text-align: center; font-weight: 700; }
.set-table .n { width: 30px; font-family: var(--f-display); font-weight: 800; color: var(--faint); font-size: 18px; }
.set-check { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; display: grid; place-content: center; transition: .2s; }
.set-check svg { width: 20px; height: 20px; opacity: .25; }
.set-check.on { background: var(--good); border-color: var(--good); animation: pop .35s; }
.set-check.on svg { opacity: 1; color: #ffffff; }
@keyframes pop { 50% { transform: scale(1.18); } }
tr.done input { color: var(--good); }
.hint { font-size: 12px; color: var(--sand); margin-top: 6px; }
.ex-block.complete { border-color: rgba(62, 224, 143, .45); }
.ex-block.complete .ex-num { background: var(--good); color: #ffffff; }

.rest-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(8, 6, 16, .92); backdrop-filter: blur(8px); display: grid; place-content: center; text-align: center; gap: 18px; animation: viewIn .3s both; }
.rest-ring { width: 230px; height: 230px; position: relative; margin: 0 auto; }
.rest-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rest-ring circle { fill: none; stroke-width: 12; }
.rest-ring .track { stroke: var(--surface-2); }
.rest-ring .bar { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.rest-ring .label { position: absolute; inset: 0; display: grid; place-content: center; }
.rest-ring .label b { font-family: var(--f-display); font-size: 72px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }

/* ---------- Progreso ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .h { text-align: center; font-size: 11px; color: var(--faint); font-weight: 700; padding-bottom: 4px; }
.cal .d { aspect-ratio: 1; border-radius: 10px; display: grid; place-content: center; font-size: 13px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); position: relative; cursor: default; }
.cal .d.out { opacity: .25; }
.cal .d.plan { border-color: rgba(240, 83, 28, .3); }
.cal .d.done { background: var(--grad); color: #ffffff; font-weight: 800; border-color: transparent; animation: pop .4s both; animation-delay: calc(var(--i, 0) * 25ms); cursor: pointer; }
.cal .d.today { box-shadow: 0 0 0 2px var(--text) inset; }
.chart { width: 100%; height: auto; max-width: 680px; display: block; margin: 0 auto; }
.chart .b { fill: var(--accent); transform-origin: bottom; transform-box: fill-box; animation: growUp .8s cubic-bezier(.2, .8, .2, 1) both; }
.chart .b.goal-met { fill: url(#barGrad); }
.chart text { fill: var(--faint); font-size: 10px; font-family: var(--f-body); }
.chart .goal { stroke: var(--sand); stroke-dasharray: 4 4; stroke-width: 1; opacity: .7; }
@keyframes growUp { from { transform: scaleY(0); } }
.log-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin-bottom: 8px; }
.log-date { width: 50px; text-align: center; flex: none; }
.log-date b { display: block; font-family: var(--f-display); font-size: 26px; line-height: 1; }
.log-date span { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.log-body { flex: 1; min-width: 0; }
.log-body b { display: block; }

/* ---------- Biblioteca ---------- */
.lib-filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin: 12px 0 16px; scrollbar-width: none; }
.lib-filters .chip { cursor: pointer; flex: none; padding: 7px 12px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.lib-item { padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: transform .2s, border-color .2s; text-align: left; width: 100%; }
.lib-item:hover { transform: translateY(-2px); border-color: rgba(240, 83, 28, .45); }
.lib-item b { display: block; margin-bottom: 6px; }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 150; background: rgba(4, 3, 10, .72); backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .25s both; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 24px 24px 0 0; padding: 22px 20px 30px; animation: sheetUp .4s cubic-bezier(.2, .8, .2, 1) both; overscroll-behavior: contain; }
@keyframes sheetUp { from { transform: translateY(100%); } }
@media (min-width: 700px) { .modal-back { align-items: center; } .modal { border-radius: 24px; animation-name: zoomIn; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.94) translateY(20px); } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.modal-close { flex: none; }
.media-box { border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; margin: 14px 0; }
.media-box iframe { width: 100%; height: 100%; border: 0; }
.explain-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.explain-actions .btn { white-space: normal; line-height: 1.2; padding: 6px 12px; font-size: 14px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 10px 12px 10px 48px; border-radius: var(--radius); transition: background .3s, color .3s; color: var(--muted); }
.steps li::before { content: counter(s); position: absolute; left: 10px; top: 9px; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); display: grid; place-content: center; font-weight: 800; font-size: 13px; color: var(--accent); }
.steps li.speaking { background: var(--accent-soft); color: var(--text); }
.steps li.speaking::before { background: var(--grad); color: #ffffff; animation: pop .5s; }
.tip-list { padding-left: 18px; margin: 6px 0 0; color: var(--muted); }
.tip-list li { margin-bottom: 4px; }
.tip-list li.speaking { color: var(--text); }
.eq-wave { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq-wave i { width: 3px; background: currentColor; border-radius: 2px; animation: lift .8s ease-in-out infinite; height: 100%; }
.eq-wave i:nth-child(2) { animation-delay: .15s; }
.eq-wave i:nth-child(3) { animation-delay: .3s; }

/* Mapa muscular */
.body-map { display: flex; justify-content: center; gap: 24px; padding: 14px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.body-map figure { margin: 0; text-align: center; }
.body-map figcaption { font-size: 11px; color: var(--faint); margin-top: 4px; text-transform: uppercase; letter-spacing: .1em; }
.body-map svg { width: 96px; height: 190px; }
.body-map .base { fill: #3a2f52; }
.body-map .m { fill: #4a3d66; transition: fill .3s; }
.body-map .m.sec { fill: rgba(240, 83, 28, .45); }
.body-map .m.pri { fill: var(--accent); animation: musclePulse 1.6s ease-in-out infinite; }
@keyframes musclePulse { 50% { fill: #ffb08f; } }

/* ---------- Toast y confeti ---------- */
.toast { position: fixed; z-index: 300; left: 50%; bottom: calc(var(--nav-h) + 20px); transform: translateX(-50%); background: var(--surface-3); border: 1px solid var(--line-2); padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow); font-weight: 600; font-size: 14px; animation: toastIn .35s cubic-bezier(.3, 1.4, .5, 1) both; max-width: calc(100% - 32px); }
.toast.err { border-color: rgba(240, 96, 90, .5); color: #ffb3ae; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 20px); } }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 400; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .ico { font-size: 44px; margin-bottom: 10px; }
.loader { display: grid; place-content: center; min-height: 60vh; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

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

/* =========================================================
   Pique del grupo
   ========================================================= */

/* Frases animadas letra a letra */
.taunt { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 22px; line-height: 1.08; min-height: 2.2em; color: var(--text); margin-bottom: 10px; }
.taunt .tw { display: inline-block; white-space: nowrap; }
.taunt .tc { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(8deg); animation: charIn .5s cubic-bezier(.2, 1.4, .4, 1) forwards; animation-delay: var(--d); }
.taunt.out .tc { animation: charOut .35s ease-in forwards; animation-delay: 0s; }
@keyframes charIn { to { opacity: 1; transform: none; } }
@keyframes charOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-.5em); } }
.taunt-hero { font-size: clamp(20px, 5vw, 30px); color: var(--accent); min-height: 2.3em; margin-bottom: 0; }
.taunt-big { font-size: clamp(24px, 6vw, 38px); color: var(--accent); margin: 4px 0 18px; }

/* Avatares */
.av { width: 34px; height: 34px; flex: none; border-radius: 50%; display: inline-grid; place-content: center; font-weight: 800; font-size: 13px;
  color: #ffffff; background: var(--c); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px color-mix(in srgb, var(--c) 60%, transparent); }
.av.big { width: 58px; height: 58px; font-size: 20px; }

/* Tarjeta del reto */
.challenge-card { background: radial-gradient(120% 120% at 0% 0%, rgba(34, 211, 238, .14), transparent 60%), var(--surface); }
.prize-line { font-size: 16px; margin-bottom: 4px; }
.prize-big { font-family: var(--f-display); font-size: clamp(26px, 6vw, 36px); font-weight: 800; line-height: 1.05; margin: 2px 0 6px; }
.mini-board { margin: 14px 0; display: grid; gap: 8px; }
.mb-row { display: grid; grid-template-columns: 24px 34px minmax(60px, 110px) 1fr 28px; align-items: center; gap: 10px; animation: fadeUp .5s both; animation-delay: calc(var(--i) * 90ms + 200ms); }
.mb-row.me .mb-name { color: var(--accent); }
.mb-pos { font-size: 18px; text-align: center; }
.mb-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-bar, .rr-bar { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.mb-bar i, .rr-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--grad); transform-origin: left; animation: barGrow 1.1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: .35s; }
@keyframes barGrow { from { transform: scaleX(0); } }
.mb-row b { text-align: right; font-family: var(--f-display); font-size: 20px; }
.countdown { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.countdown b { font-family: var(--f-display); font-size: 40px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.countdown span { color: var(--muted); }

/* Ganador del mes anterior */
.winner-banner { display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 8px; border-radius: var(--radius-lg); position: relative; overflow: hidden;
  background: linear-gradient(120deg, rgba(255, 196, 0, .2), rgba(240, 83, 28, .22)); border: 1px solid rgba(255, 196, 0, .45); }
.winner-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .18) 50%, transparent 70%); transform: translateX(-100%); animation: sweep 3s ease-in-out infinite; pointer-events: none; }
@keyframes sweep { 60%, 100% { transform: translateX(100%); } }
.wb-crown { font-size: 42px; animation: crownBob 1.6s ease-in-out infinite; }
.wb-name { font-family: var(--f-display); font-size: 30px; font-weight: 800; text-transform: uppercase; line-height: 1; margin: 2px 0 4px; }

/* Pestañas segmentadas */
.tabs.seg { background: var(--surface); border: 1px solid var(--line); padding: 5px; border-radius: 16px; gap: 4px; }
.tabs.seg .tab-btn { flex: 1; border: 0; background: transparent; text-align: center; padding: 10px 6px; }
.tabs.seg .tab-btn b { font-size: 16px; }
.tabs.seg .tab-btn.on { background: var(--grad); }

/* Podio */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 10px; height: 300px; margin: 26px 0 10px; }
.pod { display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; justify-content: flex-end; position: relative; min-width: 0; }
.pod .av.big { animation: popIn .6s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: .9s; margin-bottom: 6px; }
.pod.p1 .av.big { width: 72px; height: 72px; font-size: 24px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #ffc400, 0 0 30px rgba(255, 196, 0, .5); }
.pod-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; animation: fadeUp .5s both; animation-delay: 1s; }
.pod-val { font-size: 12px; color: var(--muted); margin-bottom: 8px; animation: fadeUp .5s both; animation-delay: 1.05s; }
.pod.me .pod-name { color: var(--accent); }
.pod-block { width: 100%; height: var(--h); max-height: 150px; min-height: 60px; border-radius: 14px 14px 4px 4px; display: grid; place-content: start center; padding-top: 10px;
  background: linear-gradient(180deg, var(--surface-3), var(--surface)); border: 1px solid var(--line-2); transform-origin: bottom; animation: rise1 .9s cubic-bezier(.2, .8, .2, 1) both; }
.pod-block span { font-family: var(--f-display); font-size: 40px; font-weight: 800; color: var(--faint); }
.pod.p1 .pod-block { background: var(--grad); border-color: transparent; animation-delay: .3s; }
.pod.p1 .pod-block span { color: #ffffff; }
.pod.p2 .pod-block { animation-delay: .1s; }
.pod.p3 .pod-block { animation-delay: .2s; }
@keyframes rise1 { from { transform: scaleY(0); } }
@keyframes popIn { from { opacity: 0; transform: scale(.3); } }
.crown { position: absolute; top: -6px; font-size: 34px; z-index: 2; animation: crownDrop .8s cubic-bezier(.2, 1.6, .4, 1) both 1.3s, crownBob 2s ease-in-out infinite 2.1s; }
.pod.p1 { padding-top: 26px; }
@keyframes crownDrop { from { opacity: 0; transform: translateY(-60px) rotate(-30deg); } }
@keyframes crownBob { 50% { transform: translateY(-5px) rotate(6deg); } }
.rank-list { display: grid; gap: 8px; margin-top: 8px; }
.rank-row { display: grid; grid-template-columns: 26px 34px minmax(70px, 1fr) 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); animation: fadeUp .45s both; animation-delay: calc(var(--i) * 60ms + 1.1s); }
.rank-row.me { border-color: rgba(240, 83, 28, .5); background: var(--accent-soft); }
.rr-pos { font-family: var(--f-display); font-weight: 800; font-size: 20px; color: var(--faint); text-align: center; }
.rr-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-val { font-size: 13px; white-space: nowrap; }

/* Actividad */
.feed-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin-bottom: 8px; }
.feed-fire { font-size: 20px; animation: crownBob 2.4s ease-in-out infinite; }

/* Celebración a pantalla completa */
.celebrate { position: fixed; inset: 0; z-index: 350; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 50% 40%, rgba(240, 83, 28, .35), rgba(8, 6, 16, .95) 65%); backdrop-filter: blur(6px); animation: fadeIn .3s both; overflow-y: auto; }
.cel-inner { width: 100%; max-width: 420px; text-align: center; }
.stamp { font-family: var(--f-display); font-weight: 800; font-size: clamp(56px, 17vw, 92px); line-height: .95; text-transform: uppercase; color: #fff;
  text-shadow: 0 6px 0 var(--accent-2), 0 0 40px rgba(240, 83, 28, .8); animation: stamp .7s cubic-bezier(.2, 1.8, .4, 1) both; transform: rotate(-6deg); }
@keyframes stamp { 0% { opacity: 0; transform: scale(3) rotate(-20deg); } 60% { opacity: 1; } 100% { transform: scale(1) rotate(-6deg); } }
.cel-sub { color: var(--muted); margin: 18px 0; animation: fadeUp .5s both .5s; }
.cel-card { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; margin-bottom: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2);
  animation: fadeUp .5s both; animation-delay: calc(var(--i) * 180ms + .8s); }
.cel-card > span { font-size: 30px; }
.cel-card.pr { border-color: rgba(255, 196, 0, .6); background: linear-gradient(120deg, rgba(255, 196, 0, .16), var(--surface)); }
.cel-card.badge-new { border-color: rgba(62, 224, 143, .5); }
.cel-card.badge-new > span { animation: popIn .6s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: inherit; }

/* Medallas */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.badge { text-align: center; padding: 16px 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); filter: grayscale(1); opacity: .45; }
.badge.on { filter: none; opacity: 1; border-color: rgba(240, 83, 28, .4); background: radial-gradient(circle at 50% 0%, rgba(240, 83, 28, .2), var(--surface) 70%); }
.badge .b-ico { display: block; font-size: 34px; margin-bottom: 6px; }
.badge.on .b-ico { animation: crownBob 3s ease-in-out infinite; }
.badge b { display: block; font-size: 14px; }
.badge small { color: var(--muted); font-size: 12px; }
@media (max-width: 420px) { .podium { height: 270px; gap: 6px; } .mb-row { grid-template-columns: 22px 30px minmax(50px, 90px) 1fr 24px; gap: 8px; } .mb-row .av { width: 30px; height: 30px; } }
.podium, .rank-list { max-width: 640px; margin-left: auto; margin-right: auto; }

/* Fotos de perfil */
.av.has-img { background: var(--surface-3); overflow: hidden; padding: 0; }
.av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; animation: fadeIn .4s both; }
.me-av { display: inline-flex; text-decoration: none; transition: transform .2s; }
.me-av:hover { transform: scale(1.08); }
.me-av .av { width: 34px; height: 34px; }
body.no-nav .me-av { display: none; }
.greet-av { text-decoration: none; flex: none; }
.greet-av .av.big { width: 64px; height: 64px; font-size: 22px; animation: popIn .6s cubic-bezier(.2, 1.6, .4, 1) both; }
.profile-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.profile-head h1 { margin: 0 0 8px; overflow-wrap: anywhere; }
.avatar-edit { position: relative; cursor: pointer; flex: none; }
.avatar-edit .av.big { width: 96px; height: 96px; font-size: 34px; transition: transform .2s, box-shadow .2s; }
.avatar-edit:hover .av.big { transform: scale(1.04); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.ae-badge { position: absolute; right: -2px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-content: center; font-size: 15px; background: var(--grad); box-shadow: 0 0 0 3px var(--bg); animation: crownBob 2.4s ease-in-out infinite; }
label.btn { cursor: pointer; }
.profile-head .eyebrow { text-transform: none; letter-spacing: .02em; overflow-wrap: anywhere; }

/* =========================================================
   Ajustes de centrado en móvil
   ========================================================= */
html { overflow-x: hidden; }
body { width: 100%; }
.bottom-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bottom-nav a { min-width: 0; padding: 0 2px; }
.bottom-nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.greet > div { min-width: 0; }
.greet h1, .today-card .day-name { overflow-wrap: anywhere; }
.card, .ex-card, .lib-item, .stat, .log-item, .feed-item, .rank-row { min-width: 0; }

@media (max-width: 640px) {
  .app-header { padding: 10px 16px; }
  /* Portada centrada */
  .hero { text-align: center; justify-items: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .row { justify-content: center; }
  .hero-feats { width: 100%; }
  .hero-feat { text-align: center; }
  .taunt-hero { text-align: center; width: 100%; }
  /* Títulos de cada pantalla centrados */
  #view > .reveal:first-child:not(.greet):not(.banner):not(.card):not(.profile-head) { text-align: center; }
  .taunt-big { text-align: center; }
  .auth-wrap { margin-top: 2vh; }
}
@media (max-width: 380px) {
  .bottom-nav a { font-size: 9.5px; }
  .bottom-nav a svg { width: 21px; height: 21px; }
  .stats { gap: 8px; }
  .stat { padding: 12px 10px; }
  .stat b { font-size: 28px; }
}
@media (max-width: 640px) {
  .greet h1 { font-size: clamp(26px, 8vw, 44px); overflow-wrap: normal; word-break: normal; }
  .profile-head { flex-direction: column; text-align: center; gap: 12px; }
  .profile-head h1 { font-size: clamp(26px, 8vw, 40px); overflow-wrap: normal; }
  .profile-head .row { justify-content: center; }
  .today-card .day-name { font-size: clamp(30px, 10vw, 40px); overflow-wrap: normal; }
}

/* Pesa grande de la portada */
.hero-db { width: 132px; height: 132px; filter: drop-shadow(0 16px 34px rgba(240, 83, 28, .5)) drop-shadow(0 0 40px rgba(47, 111, 235, .35)); animation: dbFloat 4.2s ease-in-out infinite; }
.hero-db svg { width: 100%; height: 100%; overflow: visible; }
@keyframes dbFloat { 0%, 100% { transform: rotate(-24deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-14px); } }
.auth-db { width: 64px; height: 64px; margin: 0 auto 6px; animation: dbFloat 4.2s ease-in-out infinite; filter: drop-shadow(0 8px 20px rgba(240, 83, 28, .45)); }
.auth-db svg { width: 100%; height: 100%; overflow: visible; }
/* Detalles con los acentos fríos */
.chip.cool { background: rgba(47, 111, 235, .16); color: #b8a8ff; border-color: rgba(47, 111, 235, .4); }
.stat:nth-child(2) b { background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat:nth-child(1) b, .stat:nth-child(3) b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tabs.seg .tab-btn.on, .tab-btn.on { box-shadow: 0 8px 24px -10px rgba(240, 83, 28, .8); }
.week-strip .wd.done { box-shadow: 0 6px 16px -8px rgba(240, 83, 28, .9); }
.eyebrow { color: #f0531c; }
.btn.primary { box-shadow: 0 10px 28px -8px rgba(240, 83, 28, .75); }
.today-card { background: radial-gradient(120% 140% at 100% 0%, rgba(240, 83, 28, .34), transparent 55%), radial-gradient(90% 120% at 0% 100%, rgba(47, 111, 235, .25), transparent 60%), var(--surface); }
.challenge-card { background: radial-gradient(120% 120% at 0% 0%, rgba(34, 211, 238, .14), transparent 60%), radial-gradient(100% 100% at 100% 100%, rgba(47, 111, 235, .2), transparent 60%), var(--surface); }
.auth-wrap form, .auth-wrap .form-error { text-align: left; }


/* =========================================================
   Tema claro: máxima legibilidad
   ========================================================= */
body { font-size: 16px; }
.app-header { background: rgba(255, 255, 255, .88); box-shadow: 0 1px 0 var(--line); }
.bottom-nav { background: rgba(255, 255, 255, .96); box-shadow: 0 -6px 20px -12px rgba(15, 17, 21, .2); }
.bottom-nav a { color: rgba(15, 17, 21, .5); }
.bottom-nav a.on { color: var(--accent); }
.top-nav a { color: var(--muted); }
.top-nav a:hover { background: var(--surface-2); }
.session-head { background: rgba(255, 255, 255, .95); }
.hero-feat { background: var(--surface); box-shadow: var(--shadow); }
.card, .ex-card, .stat, .log-item, .feed-item, .rank-row, .lib-item, .opt, .wp, .badge { box-shadow: var(--shadow); }
.bg-fx .orb.o1 { opacity: .16; }
.bg-fx .orb.o2 { opacity: .12; }
.bg-fx .orb.o3 { opacity: .12; }
.bg-fx .lines { opacity: .22; }
.grad-text, .countdown b, .stat b { background: var(--grad) !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important; }
.stat:nth-child(2) b { background: var(--grad-cool) !important; -webkit-background-clip: text !important; background-clip: text !important; }
.logo-text i { background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.eyebrow { color: var(--accent); }
.taunt { color: var(--text); }
.taunt-hero, .taunt-big { color: var(--accent); }
.btn { background: var(--surface); border-color: var(--line-2); }
.btn:hover { background: var(--surface-2); }
.btn.primary, .btn.primary:hover { background: var(--grad); color: #fff; text-shadow: 0 1px 2px rgba(120, 0, 40, .25); box-shadow: 0 10px 24px -10px rgba(240, 83, 28, .7); }
.btn.ghost { background: transparent; }
.tab-btn.on, .tabs.seg .tab-btn.on { color: #fff; }
.tab-btn.on small { color: rgba(255, 255, 255, .85); }
.tabs.seg { background: var(--surface); box-shadow: var(--shadow); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea { background: var(--surface); }
.form-error { color: #b4232c; }
.toast { background: #0f1115; color: #fff; border-color: transparent; }
.toast.err { background: #b4232c; color: #fff; }
.chip { background: var(--surface-2); color: rgba(15, 17, 21, .72); }
.chip.accent { background: rgba(240, 83, 28, .1); color: #c2410c; border-color: rgba(240, 83, 28, .3); }
.chip.good { color: #0b8a4f; }
.chip.cool { color: #1d4ed8; }
.superset-tag, .hint { color: var(--violet); }
.today-card { background: radial-gradient(120% 140% at 100% 0%, rgba(240, 83, 28, .13), transparent 55%), radial-gradient(90% 120% at 0% 100%, rgba(47, 111, 235, .1), transparent 60%), var(--surface); }
.challenge-card { background: radial-gradient(120% 120% at 0% 0%, rgba(10, 179, 214, .1), transparent 60%), radial-gradient(100% 100% at 100% 100%, rgba(47, 111, 235, .1), transparent 60%), var(--surface); }
.week-strip .wd { background: var(--surface-2); }
.week-strip .wd.done, .cal .d.done { color: #fff; }
.cal .d { background: var(--surface-2); }
.set-check { background: var(--surface-2); }
.set-check svg { opacity: .35; }
.ex-num { background: var(--surface-2); }
/* Descanso y celebración en claro */
.rest-overlay { background: rgba(255, 255, 255, .97); }
.rest-ring .label b { color: var(--text); }
.celebrate { background: radial-gradient(circle at 50% 35%, rgba(240, 83, 28, .2), rgba(255, 255, 255, .97) 65%); }
.stamp { color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; text-shadow: none; filter: drop-shadow(0 6px 0 rgba(47, 111, 235, .35)); }
.cel-card { box-shadow: var(--shadow); }
.cel-card.pr { background: linear-gradient(120deg, rgba(245, 180, 0, .16), var(--surface)); }
.modal-back { background: rgba(15, 17, 21, .45); }
/* Mapa muscular */
.body-map { background: var(--surface-2); }
.body-map .base { fill: #dfe2e7; }
.body-map .m { fill: #cfd3da; }
.body-map .m.sec { fill: rgba(240, 83, 28, .38); }
@keyframes musclePulse { 50% { fill: #ffb08f; } }
/* Avatares y podio */
.av { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.pod-block { background: linear-gradient(180deg, var(--surface-3), var(--surface-2)); }
.pod-block span { color: rgba(15, 17, 21, .35); }
.pod.p1 .pod-block span { color: #fff; }
.mb-bar, .rr-bar { background: var(--surface-3); }
.winner-banner { background: linear-gradient(120deg, rgba(245, 180, 0, .18), rgba(255, 90, 60, .12)); }
.badge.on { background: radial-gradient(circle at 50% 0%, rgba(240, 83, 28, .1), var(--surface) 70%); }
.ring .track, .rest-ring .track { stroke: var(--surface-3); }
.chart .goal { stroke: var(--violet); }
.steps li.speaking { color: var(--text); }

/* =========================================================
   Antes y después
   ========================================================= */
.ba { position: relative; aspect-ratio: 3 / 4; max-height: 70vh; width: 100%; margin: 0 auto; border-radius: 16px; overflow: hidden; background: var(--surface-3); user-select: none; touch-action: pan-y; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .35); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; display: grid; place-content: center;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 18px; box-shadow: 0 6px 18px rgba(240, 83, 28, .5), 0 0 0 4px #fff; }
.ba-tag { position: absolute; top: 12px; padding: 5px 10px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: #fff; background: rgba(15, 17, 21, .62); backdrop-filter: blur(6px); pointer-events: none; }
.ba-tag.l { left: 12px; }
.ba-tag.r { right: 12px; background: rgba(240, 83, 28, .85); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba-stats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.ba-empty { text-align: center; padding: 28px 20px; border-style: dashed; }
.ba-empty-ico { font-size: 46px; margin-bottom: 8px; animation: crownBob 2.6s ease-in-out infinite; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.photo-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.photo-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; cursor: zoom-in; background: var(--surface-3); }
.pi-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 8px 10px 0; font-size: 13px; }
.pi-meta span { color: var(--muted); font-size: 12px; }
.pi-actions { display: flex; justify-content: space-between; align-items: center; padding: 6px 6px 8px 10px; }
.pi-actions .chip { cursor: pointer; }
.photo-drop { display: grid; place-items: center; position: relative; min-height: 220px; margin-bottom: 14px; border: 2px dashed var(--line-2); border-radius: 16px; background: var(--surface-2); cursor: pointer; overflow: hidden; text-align: center; }
.photo-drop:hover { border-color: var(--accent); }
.pd-empty { display: grid; gap: 6px; padding: 20px; }
.photo-drop.has { border-style: solid; min-height: 0; }
.photo-drop.has .pd-empty { display: none; }
.photo-drop img { width: 100%; max-height: 52vh; object-fit: contain; display: block; background: #000; }
.pd-change { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); padding: 6px 12px; border-radius: 99px; background: rgba(15, 17, 21, .7); color: #fff; font-size: 12px; font-weight: 700; }
.single-photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; display: block; cursor: zoom-in; }
.photo-full { width: 100%; border-radius: 14px; display: block; }
.ba-tag { max-width: 46%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.celebrate { grid-template-columns: minmax(0, 440px); justify-content: center; }
.cel-inner { min-width: 0; max-width: 100%; }
.stamp { font-size: clamp(40px, 12.5vw, 88px); max-width: 100%; overflow-wrap: anywhere; padding: 0 6px; }
.cel-card { min-width: 0; }
.cel-card .small { overflow-wrap: anywhere; }

/* =========================================================
   Prioridades: selector sobre el cuerpo y series por músculo
   ========================================================= */
.body-pick .body-map { margin: 18px 0 12px; gap: 28px; padding: 18px 10px; background: var(--surface); box-shadow: var(--shadow); }
.body-pick .body-map svg { width: 128px; height: 250px; }
.body-map .m.pick { cursor: pointer; transition: fill .2s, transform .2s; }
.body-map .m.pick:hover { fill: #ffb08f; }
.body-pick .body-map .m.pri { filter: drop-shadow(0 0 6px rgba(240, 83, 28, .6)); }
.muscle-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.muscle-chips .chip { cursor: pointer; padding: 8px 14px; font-size: 13px; animation: fadeUp .4s both; animation-delay: calc(var(--i) * 35ms); }
.muscle-chips .chip.accent { box-shadow: 0 6px 16px -8px rgba(240, 83, 28, .8); }
@media (max-width: 380px) { .body-pick .body-map svg { width: 108px; height: 212px; } .body-pick .body-map { gap: 14px; } }

.vol-card { display: grid; gap: 8px; }
.vol-row { display: grid; grid-template-columns: minmax(96px, 120px) 1fr 30px; align-items: center; gap: 10px; animation: fadeUp .45s both; animation-delay: calc(var(--i) * 50ms); }
.vol-name { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vol-bar { height: 12px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.vol-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #c3c7cf, #9aa0ab); transform-origin: left; animation: barGrow 1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: .3s; }
.vol-row b { text-align: right; font-family: var(--f-display); font-size: 18px; }
.vol-row.focus .vol-name { color: var(--accent); font-weight: 800; }
.vol-row.focus .vol-bar { height: 16px; }
.vol-row.focus .vol-bar i { background: var(--grad); }
.vol-row.focus b { color: var(--accent); font-size: 22px; }

/* =========================================================
   Modo WOD (AMRAP)
   ========================================================= */
.wod-btn { background: #0f1115; color: #fff; border-color: #0f1115; }
.wod-btn:hover { background: #262a33; }
.wod-mins { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0; }
.wod-mins .chip { cursor: pointer; padding: 9px 16px; font-size: 14px; }
.wod-mins .chip.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -8px rgba(240, 83, 28, .8); }
.wod-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; counter-reset: w; }
.wod-list li { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: .25s; }
.wl-reps { font-family: var(--f-display); font-size: 22px; font-weight: 800; color: var(--accent); }
.wl-name { font-weight: 700; cursor: pointer; }
.wod-list li.now { border-color: var(--accent); background: rgba(240, 83, 28, .07); transform: scale(1.02); }
.wod-list li.done { opacity: .45; }
.wod-target { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-radius: 14px; background: #0f1115; color: #fff; margin-bottom: 12px; }
.wod-target b { font-family: var(--f-display); font-size: 28px; background: linear-gradient(0deg, #ff8a4c, #ff8a4c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wod { max-width: 520px; margin: 0 auto; }
.wod-clock { position: relative; width: min(78vw, 300px); aspect-ratio: 1; margin: 16px auto; }
.wod-clock svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.wod-clock circle { fill: none; stroke-width: 14; }
.wod-clock .track { stroke: var(--surface-3); }
.wod-clock .bar { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.wc-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.wc-label b { font-family: var(--f-display); font-size: clamp(56px, 18vw, 84px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.wc-label span { color: var(--muted); font-weight: 700; margin-top: 4px; }
.wod-start { min-height: 64px; font-size: 22px; font-family: var(--f-display); letter-spacing: .04em; margin: 8px 0 14px; }
.wod-now { text-align: center; padding: 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); }
.wn-label { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.wn-reps { font-family: var(--f-display); font-size: clamp(54px, 16vw, 76px); font-weight: 800; line-height: 1; margin-top: 6px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wn-name { font-family: var(--f-display); font-size: 26px; font-weight: 800; text-transform: uppercase; line-height: 1.1; margin: 4px 0 14px; cursor: pointer; }
.wod-done { min-height: 72px; font-size: 26px; font-family: var(--f-display); letter-spacing: .06em; }
.wod-done:active { transform: scale(.95); }
body.wod-last .wod-clock .wc-label b { color: var(--accent); animation: lastPulse 1s ease-in-out infinite; }
body.wod-last .bg-fx .orb.o1 { opacity: .35; }
@keyframes lastPulse { 50% { transform: scale(1.08); } }
.wod-count { position: fixed; inset: 0; z-index: 400; display: grid; place-content: center; background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); }
.wod-count b { font-family: var(--f-display); font-size: 42vw; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: countZoom 1s ease-out both; }
.wod-count b.go { font-size: 26vw; }
@keyframes countZoom { 0% { transform: scale(2.2); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 100% { transform: scale(.85); opacity: .2; } }
@media (min-width: 700px) { .wod-count b { font-size: 260px; } .wod-count b.go { font-size: 180px; } }
.round-pop { position: fixed; left: 50%; top: 42%; z-index: 380; transform: translate(-50%, -50%); font-family: var(--f-display); font-weight: 800; font-size: clamp(44px, 14vw, 80px); white-space: nowrap;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 0 rgba(47, 111, 235, .35)); animation: roundPop 1.1s cubic-bezier(.2, 1.4, .4, 1) both; pointer-events: none; }
@keyframes roundPop { 0% { transform: translate(-50%, -50%) scale(.3) rotate(-10deg); opacity: 0; } 30% { transform: translate(-50%, -50%) scale(1.1) rotate(-4deg); opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(-50%, -80%) scale(1) rotate(-4deg); opacity: 0; } }
.wod-result { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 12px; }
.wod-result b { font-family: var(--f-display); font-size: 48px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.no-nav .toast { bottom: auto; top: 74px; }
.wod-mins { max-width: 420px; margin-left: auto; margin-right: auto; }
/* Modalidades de WOD */
.wod-modes { margin: 4px 0 10px; }
.wod-modes .tab-btn b { font-size: 17px; letter-spacing: .04em; }
.wl-reps small { display: block; font-family: var(--f-body); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wod-done.is-done { background: var(--good) !important; opacity: 1; box-shadow: 0 10px 24px -10px rgba(18, 183, 106, .7) !important; }
.wod.mode-emom .wc-label span { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.wr-text { font-family: var(--f-display); font-size: 22px; line-height: 1.15; }
.round-pop { font-size: clamp(36px, 11vw, 72px); max-width: 92vw; white-space: normal; text-align: center; line-height: 1; }
.wod-rest { margin-top: 8px; font-weight: 700; color: var(--good); }

/* =========================================================
   Landing pública
   ========================================================= */
.land-sec { margin: 56px 0; text-align: center; }
.land-sec h2 { margin-bottom: 18px; }
.land-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; text-align: left; }
.land-feat { padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s; }
.land-feat:hover { transform: translateY(-3px); }
.lf-ico { display: inline-grid; place-content: center; width: 52px; height: 52px; border-radius: 16px; font-size: 26px; background: rgba(240, 83, 28, .08); margin-bottom: 10px; }
.land-feat b { display: block; font-family: var(--f-display); font-size: 22px; text-transform: uppercase; margin-bottom: 4px; }
.land-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.land-step { padding: 20px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.ls-num { display: inline-grid; place-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; font-family: var(--f-display); font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.land-step b { display: block; font-size: 17px; margin-bottom: 4px; }
.land-groups { padding: 28px 22px; }
.faq { max-width: 680px; margin: 0 auto; text-align: left; display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); }
.faq-item summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--accent); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 10px 0 0; }
.land-final { padding: 30px 0; }
.land-foot { text-align: center; padding: 20px 0 10px; border-top: 1px solid var(--line); }

/* Registro: modo de uso */
.field .fl { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.mode-pick { display: grid; gap: 8px; margin-bottom: 10px; }
.mode-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; transition: .2s; }
.mode-opt:has(input:checked) { border-color: var(--accent); background: rgba(240, 83, 28, .06); box-shadow: 0 0 0 1px var(--accent) inset; }
.mode-opt input { margin-top: 4px; accent-color: var(--accent); }
.mode-opt b { display: block; font-size: 15px; }
.mode-opt small { color: var(--muted); }

/* Grupos */
.group-card h3 { margin-bottom: 4px; }
.gc-emoji { font-size: 34px; }
.gc-box { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.invite-box { display: grid; gap: 8px; margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.invite-row { display: flex; gap: 8px; }
.invite-row input { min-height: 40px; font-size: 13px; }
.wa-btn { background: #25d366 !important; color: #fff !important; border-color: #25d366 !important; }
.legal { max-width: 760px; margin: 0 auto; }
.legal h3 { margin-top: 20px; }
.legal li { margin-bottom: 6px; }

/* =========================================================
   Nutrición
   ========================================================= */
.nutri-tabs { margin-bottom: 14px; }
.nutri-intro { text-align: center; }
.ni-emoji { font-size: 64px; animation: crownBob 3s ease-in-out infinite; }
.ni-list { list-style: none; padding: 0; margin: 14px auto 18px; max-width: 360px; text-align: left; display: grid; gap: 8px; font-weight: 600; }
.options.cols-3 { grid-template-columns: repeat(3, 1fr); }
.nsum { text-align: center; }
.nsum-kcal b { display: block; font-family: var(--f-display); font-size: 72px; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nsum-kcal span { color: var(--muted); font-weight: 700; }
.macro-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; margin-top: 14px; }
.mt { padding: 10px 6px; border-radius: 12px; text-align: center; background: var(--surface-2); }
.mt b { display: block; font-family: var(--f-display); font-size: 22px; }
.mt span { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.mt-p b { color: #f0531c; } .mt-c b { color: #f08c00; } .mt-f b { color: #2f6feb; } .mt-k b { color: var(--text); }
.day-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.day-nav b { font-family: var(--f-display); font-size: 20px; text-transform: capitalize; }
.kcal-card .ring { width: 124px; height: 124px; }
.kcal-left { display: block; font-family: var(--f-display); font-size: 22px; margin-bottom: 6px; }
.kcal-left.over { color: var(--bad); }
.mbar { margin-top: 6px; }
.mb-track { display: block; height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 3px; }
.mb-track i { display: block; height: 100%; width: var(--w); border-radius: inherit; transform-origin: left; animation: barGrow .9s cubic-bezier(.2, .8, .2, 1) both; }
.mbar-p i { background: #f0531c; } .mbar-c i { background: #f08c00; } .mbar-f i { background: #2f6feb; }
.water { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.glasses { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.glass { width: 36px; height: 40px; border-radius: 8px 8px 12px 12px; border: 2px solid rgba(10, 179, 214, .35); background: transparent; font-size: 16px; cursor: pointer; filter: grayscale(1); opacity: .45; transition: .2s; }
.glass.full { filter: none; opacity: 1; background: rgba(10, 179, 214, .15); border-color: var(--cyan); animation: pop .3s; }
.meal-card { margin-top: 12px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.meal-title { font-family: var(--f-display); font-size: 20px; text-transform: uppercase; }
.plan-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 10px; padding: 10px; border-radius: 14px; background: var(--surface-2); }
.pr-emoji { font-size: 34px; cursor: pointer; }
.pr-info { min-width: 0; cursor: pointer; display: grid; }
.pr-info b { overflow: hidden; text-overflow: ellipsis; }
.pr-actions { display: flex; gap: 6px; align-items: center; }
.log-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.log-row:last-of-type { border-bottom: 0; }
.lr-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.add-food { margin-top: 10px; display: inline-flex; align-items: center; gap: 4px; }
.add-food svg { width: 14px; height: 14px; }
.kchart { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 170px; align-items: end; padding-top: 18px; }
.kc-col { display: grid; grid-template-rows: auto 1fr auto; height: 100%; align-items: end; text-align: center; }
.kc-val { font-size: 10px; color: var(--muted); font-weight: 700; }
.kc-bar { display: block; width: 70%; margin: 0 auto; height: var(--h); min-height: 2px; border-radius: 8px 8px 3px 3px; background: #d5d8de; transform-origin: bottom; animation: growUp .8s cubic-bezier(.2, .8, .2, 1) both; }
.kc-bar.ok { background: linear-gradient(180deg, #34d399, #12b76a); }
.kc-bar.over { background: var(--grad); }
.kc-lab { font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 4px; }
.kc-goal { position: absolute; left: 0; right: 0; bottom: calc(22px + (100% - 40px) * var(--g) / 100); border-top: 2px dashed rgba(47, 111, 235, .5); pointer-events: none; }
.kc-goal em { position: absolute; right: 0; top: -16px; font-size: 10px; font-style: normal; color: var(--violet); font-weight: 700; }
.menu-day { margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.menu-day summary { cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; list-style: none; }
.menu-day summary b { font-family: var(--f-display); font-size: 20px; text-transform: uppercase; }
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.recipe-card { position: relative; display: grid; gap: 6px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: left; cursor: pointer; transition: transform .2s, border-color .2s; }
.recipe-card:hover { transform: translateY(-3px); border-color: rgba(240, 83, 28, .35); }
.rc-emoji { display: grid; place-content: center; height: 84px; border-radius: 14px; font-size: 48px; background: linear-gradient(135deg, rgba(240, 83, 28, .1), rgba(255, 149, 0, .12)); }
.rc-fav { position: absolute; top: 20px; right: 20px; }
.recipe-card b { font-size: 14px; line-height: 1.25; }
.rc-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; color: var(--muted); font-weight: 700; }
.recipe-hero { margin: -22px -20px 14px; height: 130px; display: grid; place-content: center; border-radius: 24px 24px 0 0; background: linear-gradient(135deg, rgba(240, 83, 28, .16), rgba(255, 149, 0, .18), rgba(47, 111, 235, .14)); }
.rh-emoji { font-size: 76px; animation: crownBob 3s ease-in-out infinite; }
.portion { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 8px; }
.portion b { font-family: var(--f-display); font-size: 24px; min-width: 56px; text-align: center; }
.ing-list { padding-left: 20px; color: var(--muted); }
.ing-list li { margin-bottom: 4px; }
.rx-tip { padding: 12px 14px; border-radius: 12px; background: rgba(245, 180, 0, .12); font-size: 14px; }
.rx-slot { min-height: 46px; width: auto; flex: none; max-width: 42%; }
.food-list { display: grid; gap: 6px; max-height: 50vh; overflow-y: auto; margin-top: 8px; }
.food-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; }
.food-item:hover { border-color: var(--accent); }
.food-item > span:first-child { font-size: 24px; }
.fi-name { display: grid; min-width: 0; }
.fi-name small { color: var(--muted); }
.fi-k { font-family: var(--f-display); font-size: 18px; color: var(--accent); }
.shop-aisle { margin: 16px 0 6px; font-size: 18px; }
.shop-list { display: grid; gap: 4px; }
.shop-item { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.shop-item input { width: 20px; height: 20px; accent-color: var(--good); flex: none; }
.shop-item.done span { text-decoration: line-through; color: var(--faint); }
.nutri-widget .ring { width: 100px; height: 100px; }
@media (max-width: 520px) {
  .plan-row { grid-template-columns: auto 1fr; }
  .pr-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .pr-actions .btn.primary { flex: 1; }
}
.menu-day .plan-row { grid-template-columns: auto 1fr auto; }

/* Pantalla de pago */
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 14px; }
.plan-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 10px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: inherit; font: inherit; cursor: pointer; transition: .2s; }
.plan-opt:first-child { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan-opt:hover:not(:disabled) { transform: translateY(-2px); }
.plan-opt:disabled { opacity: .6; cursor: wait; }
.plan-price { font-size: 26px; font-weight: 800; line-height: 1.1; }
.plan-price small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.plan-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 2px 10px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; }
.plan-feats { list-style: none; padding: 0; margin: 0; text-align: left; font-size: 14px; display: grid; gap: 6px; }
@media (max-width: 380px) { .plan-pick { grid-template-columns: 1fr; } }

/* =========================================================
   Restyling 2026 · imagen profesional
   Paleta sobria (tinta + un acento), tipografía Inter Tight,
   superficies planas con bordes finos y sin degradados.
   ========================================================= */
body { background: var(--bg); font-size: 15.5px; letter-spacing: -.006em; }
.bg-fx { display: none !important; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-display); text-transform: none; letter-spacing: -.02em; line-height: 1.1; font-weight: 700; }
h1 { font-size: clamp(30px, 5vw, 44px); }
h2 { font-size: clamp(23px, 3.4vw, 32px); }
h3 { font-size: 18px; letter-spacing: -.018em; }
.eyebrow { font-size: 11.5px; letter-spacing: .12em; font-weight: 700; color: var(--accent-ink); }
.today-card .day-name, .tab-btn b, .wp b, .taunt, .wb-name, .stamp, .wn-name, .land-feat b, .meal-title, .menu-day summary b,
.hero-feat b, .wod-start, .wod-done, .wr-text, .prize-big { text-transform: none; letter-spacing: -.025em; }
.taunt { font-weight: 700; }
.grad-text, .countdown b { background: none !important; color: var(--accent) !important; -webkit-text-fill-color: currentColor; }
.stat b, .stat:nth-child(1) b, .stat:nth-child(2) b, .stat:nth-child(3) b { background: none !important; color: var(--text) !important; -webkit-text-fill-color: currentColor; font-weight: 700; letter-spacing: -.03em; }
.wn-reps, .nsum-kcal b, .wod-result b, .wod-count b, .round-pop, .stamp, .wod-target b { background: none !important; -webkit-text-fill-color: currentColor; color: var(--accent); text-shadow: none; filter: none; }
.wod-target b { color: #ff8a4c; }

/* Cabecera y navegación */
.app-header { background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); box-shadow: none; padding: 10px 24px; }
.logo { gap: 9px; }
.logo-mark { width: 32px; height: 32px; filter: none; }
.logo-text { display: flex; align-items: baseline; gap: 5px; text-transform: none; line-height: 1; font-family: var(--f-display); }
.logo-text b { display: inline; font-size: 18px; font-weight: 800; letter-spacing: -.035em; }
.logo-text i { display: inline; font-size: 18px; font-weight: 500; letter-spacing: -.03em; background: none; -webkit-text-fill-color: currentColor; color: var(--muted); }
.top-nav a { border-radius: 8px; font-size: 14px; color: var(--muted); }
.top-nav a:hover { background: var(--surface-2); color: var(--text); }
.top-nav a.on { background: var(--surface-2); color: var(--text); box-shadow: none; font-weight: 600; }
.bottom-nav { background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: none; }
.bottom-nav a { color: var(--faint); font-weight: 600; }
.bottom-nav a.on { color: var(--text); }
.bottom-nav a.on svg { transform: none; color: var(--accent); }
.bottom-nav a.on::before { width: 24px; height: 2px; background: var(--accent); }
.me-av .av { box-shadow: none; }

/* Botones */
.btn { border-radius: 10px; min-height: 44px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 1px 2px rgba(15, 17, 21, .05); font-weight: 600; }
.btn:hover { background: var(--surface-2); }
.btn.primary, .btn.primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; text-shadow: none; box-shadow: 0 1px 2px rgba(15, 17, 21, .18); }
.btn.primary:hover { background: #262a33; }
.btn.primary::after { display: none; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: var(--surface); color: var(--bad); border-color: rgba(217, 45, 32, .28); }
.btn.lg { min-height: 52px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.wod-btn { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.wod-btn:hover { background: var(--surface-2); }
.link-btn { color: var(--accent-ink); }

/* Tarjetas, chips y formularios */
.card { border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 22px; }
.card.glow::after { display: none; }
.card, .ex-card, .stat, .log-item, .feed-item, .rank-row, .lib-item, .opt, .wp, .badge, .meal-card, .menu-day, .recipe-card, .wod-list li, .faq-item, .photo-item, .cel-card { box-shadow: var(--shadow); }
.chip { border-radius: 8px; background: var(--surface-2); border-color: transparent; color: var(--muted); }
.chip.accent { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.chip.good { background: var(--good-soft); color: #067647; border-color: transparent; }
.chip.cool { background: rgba(47, 111, 235, .08); color: #1d4ed8; border-color: transparent; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea { border-radius: 10px; background: var(--surface); border-color: var(--line-2); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 17, 21, .08); }
label.field > span, .field .fl { color: var(--text); font-weight: 600; }
.form-error { color: #b42318; background: var(--bad-soft); }
.toast { background: var(--ink); color: #fff; border-color: transparent; border-radius: 12px; }
.modal { border-radius: 20px 20px 0 0; border-color: var(--line); }
@media (min-width: 700px) { .modal { border-radius: 20px; } }
.modal-back { background: rgba(15, 17, 21, .5); }
.auth-db { width: 48px; height: 48px; margin-bottom: 12px; animation: none; filter: none; }
.auth-wrap .card { padding: 30px 26px; }

/* Panel "Hoy": la tarjeta principal en tinta */
.today-card { background: var(--ink) !important; color: #fff; border-color: var(--ink); }
.today-card .muted, .today-card .small, .today-card p { color: rgba(255, 255, 255, .68); }
.today-card .chip { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .86); }
.today-card .chip.accent { background: var(--accent); color: #fff; }
.today-card .btn, .today-card .wod-btn { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .16); box-shadow: none; }
.today-card .btn:hover { background: rgba(255, 255, 255, .12); }
.today-card .btn.primary { background: var(--accent); border-color: var(--accent); }
.today-card .btn.primary:hover { background: #dc4a17; }
.today-card a:not(.btn) { color: #ffb08f; }
.challenge-card, .badge.on { background: var(--surface) !important; }
.winner-banner { background: #fffaeb; border-color: rgba(245, 180, 0, .4); }
.banner { background: var(--surface); border-color: rgba(240, 83, 28, .35); animation: none; }

/* Elementos de progreso */
.week-strip .wd { background: var(--surface-2); border-color: transparent; border-radius: 10px; }
.week-strip .wd.plan { border: 1px dashed rgba(15, 17, 21, .2); }
.week-strip .wd.done, .cal .d.done { background: var(--accent); box-shadow: none; }
.week-strip .wd.today, .cal .d.today { box-shadow: 0 0 0 2px var(--ink) inset; }
.tab-btn { border-radius: 10px; }
.tab-btn.on, .tabs.seg .tab-btn.on { background: var(--ink); color: #fff; box-shadow: none; }
.tabs.seg { border-radius: 12px; box-shadow: none; }
.ex-num { background: var(--surface-2); color: var(--text); font-weight: 700; }
.ex-card.main .ex-num { background: var(--ink); color: #fff; }
.opt { box-shadow: none; }
.opt:hover { border-color: rgba(15, 17, 21, .3); }
.opt.on { border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--ink) inset; }
.quiz-progress { height: 4px; }
.mode-opt:has(input:checked), .wp.on { border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--ink) inset; }
.mode-opt input { accent-color: var(--ink); }
.vol-row.focus .vol-bar i { background: var(--accent); }
.mt-p b { color: var(--accent); } .mt-c b { color: #d97706; } .mt-f b { color: var(--violet); }
.mbar-p i { background: var(--accent); } .mbar-c i { background: #f59e0b; } .mbar-f i { background: var(--violet); }
.rc-emoji, .recipe-hero { background: var(--surface-2); }
.ae-badge { background: var(--ink); animation: none; }
.av { box-shadow: 0 0 0 2px var(--surface); text-shadow: none; }
.pod.p1 .av.big { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--gold); }
.wod-mins .chip.on { background: var(--ink); box-shadow: none; }
.wod-list li.now { background: var(--accent-soft); }
.celebrate { background: rgba(255, 255, 255, .97); }
.plan-opt { border-radius: 14px; }
.plan-opt:first-child { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.plan-badge { background: var(--accent); }
.legal h3 { font-size: 17px; }

/* =========================================================
   Landing
   ========================================================= */
.lp-wrap { max-width: 1080px; margin: 0 auto; }
.lp-hero { margin: -22px calc(50% - 50vw) 0; padding: 64px 20px 72px; background: var(--ink); color: #fff; overflow: hidden; position: relative; }
.lp-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 20%, rgba(240, 83, 28, .22), transparent 60%); pointer-events: none; }
.lp-hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
.lp-pill { display: inline-block; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .8); font-size: 13px; font-weight: 600; }
.lp-hero h1 { font-size: clamp(38px, 6.4vw, 64px); line-height: 1.04; letter-spacing: -.03em; margin: 20px 0 18px; color: #fff; }
.lp-hero h1 span { color: var(--accent); }
.lp-lead { font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .72); max-width: 520px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.lp-hero .btn.primary { background: var(--accent); border-color: var(--accent); }
.lp-hero .btn.primary:hover { background: #dc4a17; }
.lp-ghost { background: transparent !important; color: #fff; border-color: rgba(255, 255, 255, .22) !important; box-shadow: none; }
.lp-ghost:hover { background: rgba(255, 255, 255, .08) !important; }
.lp-note { margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, .55); }

.lp-phone { justify-self: center; width: 290px; padding: 10px; border-radius: 44px; background: #1c1f26; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.ph-screen { border-radius: 35px; background: var(--bg); color: var(--text); padding: 22px 14px 16px; display: grid; gap: 10px; }
.ph-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -.03em; padding: 0 4px; }
.ph-chip { font-family: var(--f-body); font-size: 10px; font-weight: 600; letter-spacing: 0; padding: 4px 8px; border-radius: 6px; background: var(--surface-3); color: var(--muted); }
.ph-card { border-radius: 16px; padding: 14px; display: grid; gap: 3px; }
.ph-card.dark { background: var(--ink); color: #fff; }
.ph-card small { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ff8a4c; }
.ph-card b { font-family: var(--f-display); font-size: 22px; letter-spacing: -.03em; }
.ph-card span { font-size: 12px; color: rgba(255, 255, 255, .62); }
.ph-btn { margin-top: 10px; padding: 9px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.ph-list { background: var(--surface); border-radius: 16px; padding: 4px 12px; border: 1px solid var(--line); }
.ph-row { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; padding: 9px 0; font-size: 12px; font-weight: 600; }
.ph-row + .ph-row { border-top: 1px solid var(--line); }
.ph-row i { font-style: normal; width: 22px; height: 22px; border-radius: 6px; display: grid; place-content: center; background: var(--surface-2); font-size: 11px; }
.ph-row em { font-style: normal; color: var(--muted); font-weight: 500; font-size: 11px; }
.ph-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ph-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 6px; text-align: center; }
.ph-stats b { display: block; font-family: var(--f-display); font-size: 17px; letter-spacing: -.03em; }
.ph-stats span { font-size: 10px; color: var(--muted); }

.lp-facts { margin: 0 calc(50% - 50vw); background: var(--surface); border-bottom: 1px solid var(--line); padding: 26px 20px; }
.lp-facts .lp-wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.lp-facts b { display: block; font-family: var(--f-display); font-size: 30px; letter-spacing: -.04em; line-height: 1.1; }
.lp-facts span { font-size: 13px; color: var(--muted); }

.lp-sec { margin: 80px 0; }
.lp-head { text-align: center; max-width: 620px; margin: 0 auto 32px; }
.lp-head h2 { margin-bottom: 8px; }
.lp-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-feat { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.lp-ico { display: grid; place-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.lp-ico svg { width: 22px; height: 22px; }
.lp-feat b { display: block; font-family: var(--f-display); font-size: 18px; letter-spacing: -.02em; margin-bottom: 6px; }
.lp-feat p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lp-step { border-top: 2px solid var(--ink); padding-top: 18px; }
.lp-step span { display: block; font-family: var(--f-display); font-weight: 700; font-size: 15px; color: var(--accent); margin-bottom: 10px; }
.lp-step b { display: block; font-family: var(--f-display); font-size: 20px; letter-spacing: -.025em; margin-bottom: 6px; }
.lp-step p { margin: 0; color: var(--muted); }
.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.lp-split .row { margin-top: 20px; }
.lp-board { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-lg); display: grid; gap: 12px; }
.lb-title { font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; margin-bottom: 4px; }
.lb-row { display: grid; grid-template-columns: 18px 32px 64px 1fr 24px; align-items: center; gap: 10px; font-size: 14px; }
.lb-row.me .lb-name { color: var(--accent-ink); }
.lb-pos { color: var(--faint); font-weight: 700; }
.lb-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-content: center; color: #fff; font-weight: 700; font-size: 13px; }
.lb-name { font-weight: 600; }
.lb-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.lb-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.lb-row:first-of-type .lb-bar i, .lb-row.me .lb-bar i { background: var(--accent); }
.lb-row b { text-align: right; font-family: var(--f-display); }
.lp-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; margin: 0 auto; }
.lp-price { position: relative; padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lp-price.featured { border: 2px solid var(--ink); box-shadow: var(--shadow-lg); }
.lp-tag { position: absolute; top: -12px; right: 24px; padding: 4px 10px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.lp-price > b { font-family: var(--f-display); font-size: 18px; letter-spacing: -.02em; }
.lp-amount { font-family: var(--f-display); font-size: 42px; font-weight: 700; letter-spacing: -.04em; margin: 8px 0 2px; }
.lp-amount small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.lp-price > p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.lp-price ul { list-style: none; padding: 18px 0 0; margin: 0 0 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; }
.lp-price li { display: flex; gap: 10px; align-items: flex-start; }
.lp-price li svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 1px; }
.faq { max-width: 720px; }
.faq-item { border-radius: 12px; padding: 16px 20px; }
.faq-item summary { font-weight: 600; }
.faq-item summary::after { color: var(--muted); font-weight: 400; }
.lp-final { margin: 0 calc(50% - 50vw); padding: 72px 20px; background: var(--ink); color: #fff; text-align: center; }
.lp-final h2 { color: #fff; font-size: clamp(28px, 4.4vw, 40px); }
.lp-final p { color: rgba(255, 255, 255, .65); margin-bottom: 24px; }
.lp-final .btn.primary { background: var(--accent); border-color: var(--accent); }
.land-foot { border-top: 0; padding: 40px 0 10px; color: var(--muted); font-size: 13px; }
.land-foot p { margin: 0 0 6px; }
.lf-brand { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-family: var(--f-display); font-size: 16px; color: var(--text); }
.lf-brand svg { width: 26px; height: 26px; }

@media (min-width: 900px) {
  .lp-hero { margin-top: -32px; padding: 96px 24px 104px; }
  .lp-hero-grid { grid-template-columns: 1.15fr .85fr; }
}
@media (max-width: 860px) {
  .lp-feats { grid-template-columns: 1fr 1fr; }
  .lp-split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .lp-hero { padding: 44px 20px 56px; text-align: left; }
  .lp-lead { font-size: 16.5px; }
  .lp-cta .btn { flex: 1; }
  .lp-phone { width: 270px; }
  .lp-facts .lp-wrap { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .lp-sec { margin: 56px 0; }
  .lp-feats, .lp-steps, .lp-prices { grid-template-columns: 1fr; }
  .lp-steps { gap: 28px; }
  .lp-prices { gap: 24px; }
  .app-header { padding: 10px 16px; }
}

/* =========================================================
   Fotografía (landing, "Hoy" y pantallas de acceso)
   ========================================================= */
.lp-hero { padding-bottom: 88px; }
.lp-hero::before { background: radial-gradient(50% 70% at 80% 30%, rgba(240, 83, 28, .18), transparent 65%); }
.lp-checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; color: rgba(255, 255, 255, .78); font-size: 14.5px; }
.lp-checks li { display: flex; gap: 10px; align-items: center; }
.lp-checks svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.lp-visual { position: relative; justify-self: end; width: 100%; max-width: 460px; }
.lp-photo { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.lp-visual .lp-phone { position: absolute; left: -84px; bottom: -40px; width: 210px; padding: 7px; border-radius: 34px; }
.lp-visual .ph-screen { border-radius: 28px; padding: 16px 10px 12px; gap: 8px; }
.lp-visual .ph-top { font-size: 16px; }
.lp-visual .ph-card b { font-size: 18px; }
.lp-visual .ph-row { padding: 7px 0; font-size: 11px; }
.lp-float { position: absolute; top: 28px; right: -28px; display: grid; gap: 2px; padding: 12px 16px; border-radius: 14px; background: #fff; color: var(--text); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .45); font-size: 12.5px; }
.lp-float b { font-family: var(--f-display); font-size: 15px; letter-spacing: -.02em; }
.lp-float span { color: var(--muted); }
.lp-float::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); position: absolute; top: 16px; right: 14px; }

.lp-goals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lp-goal { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; color: #fff; text-decoration: none; background: var(--ink); }
.lp-goal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.lp-goal::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 17, 21, .92) 0%, rgba(15, 17, 21, .35) 45%, rgba(15, 17, 21, 0) 70%); }
.lp-goal > div { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px; }
.lp-goal b { display: block; font-family: var(--f-display); font-size: 22px; letter-spacing: -.025em; margin-bottom: 4px; }
.lp-goal p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .78); }
.lp-goal span { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: #ff8a4c; }
.lp-goal span svg { width: 14px; height: 14px; transition: transform .2s; }
.lp-goal:hover img { transform: scale(1.05); }
.lp-goal:hover span svg { transform: translateX(3px); }

.lp-media { position: relative; }
.lp-media img { display: block; width: 100%; border-radius: 22px; object-fit: cover; aspect-ratio: 1; box-shadow: var(--shadow-lg); }
.lp-media.with-board img { aspect-ratio: 4 / 3; }
.lp-media.with-board .lp-board { position: absolute; left: -28px; bottom: -32px; width: min(340px, 86%); }
.lp-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.lp-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.lp-list svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 1px; }
.lp-split { gap: 64px; }
.lp-secure { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 20px; font-size: 13px; color: var(--muted); text-align: center; }
.lp-secure svg { width: 16px; height: 16px; color: var(--good); flex: none; }
.lp-final { background: linear-gradient(rgba(15, 17, 21, .72), rgba(15, 17, 21, .86)), var(--bg) center 40% / cover; padding: 110px 20px; }

@media (min-width: 900px) {
  .lp-hero-grid { grid-template-columns: 1.05fr .95fr; gap: 72px; }
}
@media (max-width: 1100px) and (min-width: 900px) { .lp-visual .lp-phone { left: -40px; } .lp-float { right: -10px; } }
@media (max-width: 899px) {
  .lp-visual { justify-self: center; max-width: 520px; margin-top: 8px; }
  .lp-visual .lp-phone { display: none; }
  .lp-float { right: 14px; top: auto; bottom: 16px; }
  .lp-goals { grid-template-columns: repeat(2, 1fr); }
  .lp-media.with-board .lp-board { position: relative; left: 0; bottom: 0; width: 100%; margin-top: -40px; margin-left: auto; margin-right: auto; max-width: 92%; }
}
@media (max-width: 640px) {
  .lp-photo { aspect-ratio: 10 / 11; border-radius: 20px; }
  .lp-goals { gap: 10px; }
  .lp-goal > div { padding: 14px; }
  .lp-goal b { font-size: 18px; }
  .lp-goal p { display: none; }
  .lp-split { gap: 28px; }
  .lp-media img { border-radius: 18px; }
  .lp-final { padding: 80px 20px; }
}

/* Tarjeta "Hoy" con foto */
.today-card.has-photo { position: relative; overflow: hidden; }
.today-card.has-photo::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 62%; background: var(--photo) center 30% / cover; opacity: .62;
  -webkit-mask-image: linear-gradient(to left, #000 20%, transparent 95%); mask-image: linear-gradient(to left, #000 20%, transparent 95%); pointer-events: none; }
.today-card.has-photo > * { position: relative; z-index: 1; }
@media (max-width: 640px) { .today-card.has-photo::before { width: 100%; opacity: .32; -webkit-mask-image: linear-gradient(to left, #000 10%, transparent 100%); mask-image: linear-gradient(to left, #000 10%, transparent 100%); } }

/* Registro, acceso y pago: foto lateral en escritorio */
@media (min-width: 1024px) {
  body.auth-photo::before { content: ""; position: fixed; top: 53px; left: 0; bottom: 0; width: 44vw; z-index: 0;
    background: linear-gradient(to top, rgba(15, 17, 21, .88), rgba(15, 17, 21, .05) 55%), url('../img/photos/hero.jpg') center 45% / cover; }
  body.auth-photo::after { content: "Entrena con un plan.\A Progresa de verdad."; white-space: pre; position: fixed; left: 48px; bottom: 52px; z-index: 1;
    color: #fff; font: 700 36px/1.08 var(--f-display); letter-spacing: -.03em; }
  body.auth-photo main#view { margin-left: 44vw; max-width: none; min-height: calc(100vh - 53px); display: grid; align-content: center; }
  body.auth-photo .auth-wrap { width: 100%; margin: 0 auto; }
}
/* Ajustes de fotos */
.lp-photo, .lp-media img { height: auto; }
.lp-final { background: linear-gradient(rgba(15, 17, 21, .55), rgba(15, 17, 21, .8)), var(--lp-bg) center 40% / cover; }
.lp-hero h1 { font-size: clamp(38px, 5.2vw, 58px); }
@media (min-width: 900px) { .lp-hero-grid { grid-template-columns: 1.1fr .9fr; } .lp-visual { max-width: 430px; } }
.lp-media img { max-height: 560px; }
.plan-feats li { display: flex; gap: 10px; align-items: flex-start; }
.plan-feats svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.lp-goal::after { background: linear-gradient(to top, rgba(15, 17, 21, .96) 0%, rgba(15, 17, 21, .7) 38%, rgba(15, 17, 21, .1) 68%, rgba(15, 17, 21, 0) 80%); }

/* Logo: marca "V" + nombre en mayúsculas */
.logo { gap: 10px; }
.logo-mark { width: 34px; height: 34px; }
.logo-text { display: grid; gap: 3px; line-height: 1; }
.logo-text b { font-family: var(--f-display); font-size: 17px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; color: var(--text); }
.logo-text i { font-family: var(--f-body); font-size: 9.5px; font-weight: 700; letter-spacing: .44em; text-transform: uppercase; color: var(--accent); }
.lf-brand b { font-weight: 800; letter-spacing: .05em; text-transform: uppercase; font-size: 15px; }

/* =========================================================
   Marca Litycs · logotipo "litycs" con el punto de la i en naranja
   ========================================================= */
.wm { font-family: var(--f-display); font-weight: 800; letter-spacing: -.045em; text-transform: none; white-space: nowrap; }
.wm-i { position: relative; display: inline-block; }
.wm-i::after { content: ""; position: absolute; left: 50%; top: .02em; width: .22em; height: .22em; border-radius: 50%; background: var(--accent, #f0531c); transform: translateX(-50%); }
.logo-text { display: flex; align-items: center; }
.logo-text b.wm { font-size: 23px; letter-spacing: -.05em; color: var(--text); text-transform: none; line-height: 1; }
.logo-text i { display: none; }
.lf-brand .wm { font-size: 22px; color: inherit; }
.lf-brand b.wm, .lf-brand .wm, b.wm { text-transform: none !important; letter-spacing: -.045em !important; }

/* Contraseña con ojito */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 48px !important; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-content: center; padding: 0; }
.pw-eye:hover { background: var(--surface-2); color: var(--text); }
.pw-eye.on { color: var(--accent); }
.pw-eye svg { width: 20px; height: 20px; }

/* Logotipo con la misma inclinación que el símbolo */
.wm { display: inline-block; transform: skewX(-8deg); }

/* ---------- Chat de soporte ---------- */
.sup-fab { position: fixed; z-index: 90; right: 16px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 14px); display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 700 14.5px var(--f-body); box-shadow: 0 10px 28px -8px rgba(15,17,21,.45); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.sup-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(15,17,21,.5); }
.sup-fab svg { width: 22px; height: 22px; color: var(--accent); }
body.no-nav .sup-fab { bottom: calc(env(safe-area-inset-bottom) + 18px); }
body.sup-hide .sup-fab, body.sup-hide .sup-panel, body.sup-open .sup-fab { display: none; }
@media (min-width: 860px) { .sup-fab { bottom: 24px; right: 24px; } }

.sup-panel { position: fixed; z-index: 140; left: 0; right: 0; bottom: 0; height: min(86vh, 680px); display: flex; flex-direction: column; background: var(--bg); border-radius: 20px 20px 0 0; box-shadow: 0 -20px 50px -12px rgba(15,17,21,.35); overflow: hidden; animation: supIn .28s cubic-bezier(.2,.8,.2,1) both; }
.sup-panel[hidden] { display: none; }
@keyframes supIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (min-width: 600px) { .sup-panel { left: auto; right: 24px; bottom: 24px; width: 390px; height: min(640px, calc(100vh - 48px)); border-radius: 20px; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); } }

.sup-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--ink); color: #fff; }
.sup-logo { width: 38px; height: 38px; flex: none; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.sup-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sup-title b { font: 800 16px var(--f-display); letter-spacing: -.01em; }
.sup-title small { font-size: 12px; color: rgba(255,255,255,.66); display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-title small i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(18,183,106,.25); }
.sup-x { width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; display: grid; place-content: center; cursor: pointer; }
.sup-x:hover { background: rgba(255,255,255,.16); }
.sup-x svg { width: 18px; height: 18px; }

.sup-body { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.sup-msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; animation: supMsg .25s both; overflow-wrap: anywhere; }
@keyframes supMsg { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sup-msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; color: var(--text); box-shadow: var(--shadow); }
.sup-msg.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 5px; }
.sup-msg a { color: var(--accent-ink); font-weight: 600; }
.sup-typing { display: flex; gap: 4px; padding: 13px 14px; }
.sup-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: supDot 1s infinite ease-in-out; }
.sup-typing span:nth-child(2) { animation-delay: .15s; } .sup-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes supDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.sup-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 6px; animation: supMsg .25s .05s both; }
.sup-chip { border: 1px solid var(--line-2); background: var(--surface); color: var(--text); border-radius: 999px; padding: 8px 13px; font: 600 13.5px var(--f-body); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.sup-chip:hover { border-color: var(--ink); }
.sup-chip.human { background: var(--accent-soft); border-color: rgba(240,83,28,.35); color: var(--accent-ink); }
.sup-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.sup-form input, .sup-form textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font: 14.5px var(--f-body); background: var(--bg); color: var(--text); resize: vertical; }
.sup-form input:focus, .sup-form textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.sup-from { font-size: 13px; color: var(--muted); }
.sup-sent { margin-top: 6px; font-size: 13.5px; color: var(--muted); white-space: pre-wrap; }

.sup-ask { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.sup-ask input { flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: 999px; padding: 11px 16px; font: 15px var(--f-body); background: var(--bg); color: var(--text); }
.sup-ask input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.sup-ask button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-content: center; cursor: pointer; }
.sup-ask button svg { width: 20px; height: 20px; }
