/* Meu Pilates · Plataforma de entrenamiento · diseño "Bento atlético" */
/* Layout: tarjetas bento oscuras sobre café espresso con grano; títulos condensados en mayúsculas; cobre = acción, durazno = logro */
:root {
  --bg: #17110D; --card: #231A14; --card2: #2E231B; --card3: #3A2C22; --line: rgba(246, 237, 227, .09); --line2: rgba(246, 237, 227, .06);
  --ink: #F6EDE3; --text: #DCCDBF; --muted: #A8978A; --dim: #7E6F63;
  --copper: #E07A3A; --copper-d: #C9662A; --peach: #F3C69D; --on-copper: #1B120C;
  --ok: #8CC08F; --okBg: rgba(140, 192, 143, .14); --warn: #F0B567; --warnBg: rgba(240, 181, 103, .14); --bad: #F08A6E; --badBg: rgba(240, 138, 110, .12); --blue: #8BC3DD;
  --b0: #3A2C22; --b1: #4A372A; --b2: #E07A3A; --b3: #5A4232; --b4: #F3C69D;
  --r: 20px; --sh: 0 18px 40px rgba(0, 0, 0, .28);
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif; --sans: 'Barlow', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { background: var(--bg); color: var(--text); font: 15.5px/1.5 var(--sans); min-height: 100vh; }
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 300; opacity: .06; mix-blend-mode: screen; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 2px; }
.serif { font-family: var(--display); font-weight: 800; font-style: normal; color: var(--ink); text-transform: uppercase; letter-spacing: .01em; line-height: .98; text-wrap: balance; }
h1.serif { font-size: clamp(40px, 7vw, 64px); }
h2.serif { font-size: clamp(30px, 4.5vw, 40px); }
h3 { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
h3.serif { font-size: 30px; }
h4 { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); margin-bottom: 10px; }
.eyebrow { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); }
.eyebrow.peach { color: var(--peach); }
.muted { color: var(--muted); }
.sm { font-size: 13px; }
.ok-t { color: var(--ok); } .warn-t { color: var(--warn); } .danger-t { color: var(--bad) !important; }
.cu { color: var(--peach); } .bl { color: var(--blue); }
.grow { flex: 1; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.big { width: 46px; height: 46px; stroke-width: 1.4; color: var(--copper); }
.loading { padding: 60px 20px; text-align: center; color: var(--muted); font-family: var(--display); letter-spacing: .1em; text-transform: uppercase; }
.num { font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- botones y formularios */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--copper); background: var(--copper); color: var(--on-copper); border-radius: 12px; padding: 10px 20px; font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: background .15s, transform .12s, box-shadow .2s; min-height: 46px; }
.btn:hover { background: var(--copper-d); border-color: var(--copper-d); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn .ic { width: 18px; height: 18px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: rgba(246, 237, 227, .22); }
.btn.ghost:hover { background: rgba(246, 237, 227, .06); }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn.sm { padding: 6px 13px; font-size: 14px; min-height: 38px; border-radius: 10px; }
.btn.full { width: 100%; }
.btn.peach { background: var(--peach); border-color: var(--peach); color: var(--on-copper); }
.btn.light-ghost { background: transparent; border-color: rgba(246, 237, 227, .3); color: var(--ink); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--text); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--card2); }
.icon-btn.sm { width: 30px; height: 30px; } .icon-btn.sm .ic { width: 16px; height: 16px; }
.icon-btn.light { color: var(--ink); } .icon-btn.light:hover { background: rgba(255, 255, 255, .08); }
.icon-btn.flip .ic { transform: scaleX(-1); }
.link { background: none; border: 0; color: var(--peach); font-weight: 600; cursor: pointer; font-size: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
label.inline { flex-direction: row; align-items: center; gap: 8px; }
.lbl { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
input, select, textarea { width: 100%; border: 1.5px solid var(--line); background: var(--card2); border-radius: 12px; padding: 10px 12px; font-size: 16px; font-weight: 400; color: var(--ink); outline: none; min-height: 46px; }
input::placeholder, textarea::placeholder { color: var(--dim); }
select option, select optgroup { background: var(--card); color: var(--ink); }
textarea { resize: vertical; min-height: 64px; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(224, 122, 58, .2); }
input[readonly] { opacity: .65; }
input[type=color] { padding: 4px; height: 46px; }
input[type=date], input[type=time] { color-scheme: dark; }
label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; color: var(--text); font-size: 14.5px; cursor: pointer; }
label.check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--copper); flex: none; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .grid2 .span2 { grid-column: 1 / -1; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; } .row.wrap { flex-wrap: wrap; }
.row-end { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.form-msg { font-size: 14px; } .form-msg.err { color: var(--bad); } .form-msg.ok { color: var(--ok); }
.file-btn { flex-direction: row; cursor: pointer; }
.seg { display: flex; background: var(--card2); border-radius: 12px; padding: 4px; }
.seg label { flex: 1; } .seg input { display: none; }
.seg span { display: block; text-align: center; padding: 9px 10px; border-radius: 9px; font-family: var(--display); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; color: var(--muted); }
.seg input:checked + span { background: var(--copper); color: var(--on-copper); }
.feel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.feel input { display: none; }
.feel span { display: flex; flex-direction: column; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 6px 2px; cursor: pointer; font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--ink); line-height: 1.1; background: var(--card2); }
.feel small { font-family: var(--sans); font-weight: 500; font-size: 10.5px; color: var(--muted); text-align: center; }
.feel input:checked + span { border-color: var(--copper); background: rgba(224, 122, 58, .16); }

/* ---------- tarjetas, chips, barras */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.card.pad, .pad { padding: 22px; }
.card + .card, .card + .cols2, .cols2 + .card, .cols3 + .card, .card + .cols3 { margin-top: 14px; }
.card.warn { background: linear-gradient(180deg, rgba(240, 138, 110, .12), rgba(240, 138, 110, .05)); border-color: rgba(240, 138, 110, .28); }
.card.warn h4 { color: var(--bad); }
.card.alert { background: var(--warnBg); border-color: rgba(240, 181, 103, .3); margin-bottom: 14px; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 8px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; background: var(--card2); color: var(--text); border: 1px solid transparent; white-space: nowrap; }
.chip.sm { font-size: 11.5px; padding: 2px 8px; }
.chip.ok { background: var(--okBg); color: var(--ok); }
.chip.lv-0 { background: var(--okBg); color: var(--ok); } .chip.lv-1 { background: rgba(243, 198, 157, .14); color: var(--peach); } .chip.lv-2 { background: var(--badBg); color: var(--bad); }
.btnchip { cursor: pointer; border-color: var(--line); background: transparent; font-family: var(--display); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; min-height: 36px; padding: 5px 13px; color: var(--muted); }
.btnchip:hover { border-color: var(--copper); color: var(--ink); }
.btnchip.on { background: var(--copper); border-color: var(--copper); color: var(--on-copper); }
.bar { height: 8px; border-radius: 5px; background: var(--card3); position: relative; overflow: visible; }
.bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--copper), var(--peach)); }
.bar em { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); opacity: .4; }
.empty { text-align: center; padding: 48px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty.sm { padding: 24px 16px; }
.badge { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; background: var(--copper); color: var(--on-copper); padding: 2px 8px; border-radius: 6px; }

/* ---------- estructura */
.demo-bar { background: var(--copper); color: var(--on-copper); text-align: center; font-size: 13px; font-weight: 600; padding: 6px 12px; }
.demo-bar .link { color: var(--on-copper); margin-left: 8px; text-decoration: underline; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(23, 17, 13, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); height: 64px; }
.brand img { height: 40px; width: auto; object-fit: contain; }
.top-mid { flex: 1; display: flex; justify-content: center; }
.prog-sel { width: auto; min-height: 38px; padding: 6px 34px 6px 14px; border-radius: 10px; font-family: var(--display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 15px; background: var(--card2); }
.prog-pill { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-copper); background: var(--copper); padding: 4px 12px; border-radius: 8px; }
.avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--card2); color: var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .04em; flex: none; border: 1px solid var(--line); }
.layout { display: flex; max-width: 1320px; margin: 0 auto; }
.side { display: none; }
.main { flex: 1; min-width: 0; padding: 20px 16px 110px; }
.bottom { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: flex; background: rgba(17, 12, 9, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.bottom a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-family: var(--display); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: 11px; color: var(--muted); border-radius: 12px; min-width: 0; }
.bottom a.on { color: var(--copper); }
.bottom a.on .ic { stroke-width: 2.2; }
.bottom .ic { width: 23px; height: 23px; }
@media (min-width: 900px) {
  .bottom { display: none; }
  .side { display: flex; flex-direction: column; gap: 2px; width: 236px; padding: 26px 0 26px 18px; position: sticky; top: 64px; height: calc(100vh - 64px); flex: none; border-right: 1px solid var(--line); }
  .side a, .side-out { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); border: 0; border-left: 3px solid transparent; background: none; cursor: pointer; text-align: left; }
  .side a:hover, .side-out:hover { color: var(--ink); }
  .side a.on { color: var(--ink); border-left-color: var(--copper); background: linear-gradient(90deg, rgba(224, 122, 58, .14), transparent); }
  .side-out { margin-top: auto; }
  .main { padding: 34px 38px 60px; }
  .top { padding: 10px 28px; }
  .top-mid { justify-content: flex-start; padding-left: 96px; }
}
.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.ph h1 { margin-top: 4px; }
.ph p { margin-top: 8px; max-width: 640px; }
.ph-act { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--peach); font-family: var(--display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; margin-bottom: 12px; }
.back .ic { width: 18px; height: 18px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; font-family: var(--display); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; font-size: 15px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-color: var(--copper); }
.filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.filters.row { flex-direction: row; }
.filters select { width: auto; }
.search { max-width: 420px; }
.sec-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; }
.sec-h h3 { color: var(--copper); font-size: 15px; letter-spacing: .14em; }
.act-row { margin: 0 0 16px; }
.cols2 { display: grid; gap: 14px; } .cols3 { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 760px) { .cols2 { grid-template-columns: 1fr 1fr; } .cols3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } .cols2.top { align-items: start; } }

/* ---------- ingreso */
.auth { min-height: 100vh; display: grid; }
.auth-art { display: none; }
.auth-box { width: 100%; max-width: 440px; margin: 0 auto; padding: 40px 22px; display: flex; flex-direction: column; gap: 12px; }
.auth-logo { align-self: flex-start; width: auto; height: 84px; max-width: 100%; object-fit: contain; margin-bottom: 22px; }
.center .auth-logo, .narrow .auth-logo { align-self: center; }
.auth-links { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.auth-links a { color: var(--peach); font-weight: 600; font-size: 14.5px; }
.demo-box { margin-top: 18px; padding: 16px; border: 1.5px dashed rgba(243, 198, 157, .4); border-radius: var(--r); background: rgba(243, 198, 157, .06); display: flex; flex-direction: column; gap: 8px; }
.demo-box .row { flex-wrap: wrap; }
@media (min-width: 900px) {
  .auth { grid-template-columns: 1.05fr 1fr; }
  .auth-art { display: flex; align-items: center; background: linear-gradient(140deg, #2A1D15, #17110D 70%); position: relative; padding: 60px; overflow: hidden; border-right: 1px solid var(--line); }
  .auth-art::before { content: '20H'; position: absolute; right: -30px; bottom: -90px; font-family: var(--display); font-weight: 800; font-size: 380px; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(243, 198, 157, .1); }
  .auth-art::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 26px, rgba(224, 122, 58, .05) 26px 28px); }
  .auth-art-in { position: relative; z-index: 1; }
  .auth-art h1 { color: var(--ink); font-size: 76px; margin: 16px 0; }
  .auth-art p { font-size: 19px; max-width: 420px; color: var(--text); }
  .auth-box { justify-content: center; }
}
.br { position: absolute; width: 46px; height: 46px; border: 0 solid var(--copper); z-index: 1; }
.br1 { top: 36px; right: 36px; border-top-width: 3px; border-right-width: 3px; }
.br2 { bottom: 36px; left: 36px; border-bottom-width: 3px; border-left-width: 3px; }
.center-screen { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.narrow { max-width: 440px; width: 100%; display: flex; flex-direction: column; gap: 12px; }
.center { text-align: center; align-items: center; }
.plain { list-style: none; color: var(--text); }

/* ---------- inicio bento */
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
.bento > * { min-width: 0; }
@media (min-width: 760px) { .bento { grid-template-columns: repeat(4, 1fr); } .b-hero { grid-column: 1 / 4; } .b-week { grid-column: 4 / 5; } .b-next { grid-column: 1 / 3; } .b-sug { grid-column: 3 / 5; grid-row: span 2; } .b-rank, .b-q { grid-column: 1 / 3; } .b-wide { grid-column: 1 / -1; } }
.bento .card { transition: transform .2s, border-color .2s; }
.bento .card:hover { transform: translateY(-2px); border-color: rgba(246, 237, 227, .16); }
@media (prefers-reduced-motion: reduce) { .bento .card, .ex-card, .cl-card { transition: none; } .bento .card:hover, .ex-card:hover, .cl-card:hover { transform: none; } }
.prog-card { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; position: relative; overflow: hidden; background: linear-gradient(120deg, var(--card) 55%, #3a2414); }
.prog-card::before { content: attr(data-big); position: absolute; right: -6px; bottom: -64px; font-family: var(--display); font-weight: 800; font-size: 250px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(243, 198, 157, .13); pointer-events: none; }
.prog-card::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(224, 122, 58, .05) 22px 24px); pointer-events: none; }
.prog-card > * { position: relative; z-index: 1; }
.prog-card > div:last-child { flex: 1; min-width: 230px; display: flex; flex-direction: column; gap: 8px; }
.ring-wrap { position: relative; width: 150px; height: 150px; flex: none; }
.ring-bg { fill: none; stroke: var(--card3); stroke-width: 13; }
.ring-fg { fill: none; stroke: var(--copper); stroke-width: 13; stroke-linecap: round; transition: stroke-dashoffset .8s; }
.ring-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-txt b { font-family: var(--display); font-weight: 800; font-size: 50px; color: var(--ink); line-height: .9; }
.ring-txt span { font-family: var(--display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: var(--muted); }
.big-num { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.4vw, 42px); line-height: 1; text-transform: uppercase; color: var(--ink); }
.big-num em { font-style: normal; color: var(--peach); }
.big-num small { font-size: 20px; color: var(--muted); }
.wk-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 6px 0 10px; }
.wk-d { display: flex; flex-direction: column; align-items: center; padding: 7px 0; border-radius: 10px; background: var(--card2); font-family: var(--display); font-weight: 600; font-size: 11px; color: var(--muted); text-transform: uppercase; }
.wk-d b { font-size: 19px; color: var(--ink); font-weight: 800; line-height: 1.1; }
.wk-d.done { background: var(--copper); color: #4a1f06; } .wk-d.done b { color: var(--on-copper); }
.wk-d.plan { box-shadow: inset 0 0 0 2px var(--peach); }
.wk-d.today { outline: 2px solid var(--ink); outline-offset: 2px; }
.sug { background: var(--copper); border: 0; color: var(--on-copper); display: flex; flex-direction: column; gap: 12px; }
.sug h3.serif { color: var(--on-copper); font-size: clamp(38px, 5vw, 54px); }
.sug .muted { color: #4a1f06; } .sug .eyebrow { color: #4a1f06; }
.sug .chip { background: rgba(27, 18, 12, .14); color: var(--on-copper); }
.sug-img { border-radius: 14px; overflow: hidden; background: #3A2A21; aspect-ratio: 16 / 10; }
.sug-img img { width: 100%; height: 100%; object-fit: cover; }
.sug .btn { background: var(--on-copper); border-color: var(--on-copper); color: var(--peach); }
.sug .btn.ghost { background: transparent; color: var(--on-copper); border-color: rgba(27, 18, 12, .35); }
.mini-rank .rk { padding: 8px 6px; }

/* ---------- sesiones */
.sess { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line2); align-items: flex-start; }
.sess:first-of-type { border-top: 0; }
.sess-when { width: 62px; flex: none; display: flex; flex-direction: column; }
.sess-when b { font-family: var(--display); font-weight: 800; font-size: 21px; color: var(--ink); line-height: 1.05; }
.sess-when span { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--copper); }
.sess-body { flex: 1; min-width: 0; }
.sess-t { font-weight: 600; color: var(--ink); }
.sess-m { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.sess-m .ic { width: 14px; height: 14px; vertical-align: -2px; }
.sess-note { font-size: 13px; color: var(--text); font-style: italic; margin-top: 2px; }
.sess-act { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.sess.done .sess-t { color: var(--ok); }
.sess.late { background: var(--warnBg); border-radius: 12px; padding-left: 8px; padding-right: 8px; }
@media (max-width: 600px) { .sess { flex-wrap: wrap; } .sess-act { width: 100%; justify-content: flex-start; padding-left: 74px; } }
.grid-home .sess, .bento .sess, .day .sess { flex-wrap: wrap; }
.bento .sess-act { width: 100%; justify-content: flex-start; padding-left: 74px; }

/* ---------- ejercicios */
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
@media (min-width: 700px) { .ex-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; } }
.ex-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: transform .2s, border-color .2s; }
.ex-card:hover { transform: translateY(-2px); border-color: rgba(224, 122, 58, .5); }
.ex-img { aspect-ratio: 16 / 10; background: #3A2A21; display: grid; place-items: center; overflow: hidden; }
.ex-img img { width: 100%; height: 100%; object-fit: cover; }
.ex-info { display: flex; gap: 10px; padding: 10px 12px 12px; align-items: flex-start; }
.ex-info b { display: block; color: var(--ink); line-height: 1.25; font-weight: 600; }
.ex-info small { color: var(--muted); font-size: 12.5px; }
.ex-n { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--copper); line-height: 1; }
.ex-lv { position: absolute; top: 8px; right: 8px; font-family: var(--display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px; padding: 2px 9px; border-radius: 6px; background: rgba(23, 17, 13, .82); }
.ex-lv.lv-0 { color: var(--ok); } .ex-lv.lv-1 { color: var(--peach); } .ex-lv.lv-2 { color: var(--bad); }
.ex-detail { display: grid; gap: 14px; }
@media (min-width: 900px) { .ex-detail { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.ex-media { background: #3A2A21; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.ex-media img, .ex-media video { width: 100%; }
.ph-media { aspect-ratio: 16 / 10; display: grid; place-items: center; }
.ex-cards { display: flex; flex-direction: column; gap: 12px; }
.ex-cards .card + .card { margin-top: 0; }
.ex-cards p + p { margin-top: 4px; }
ul.dots { list-style: none; display: flex; flex-direction: column; gap: 6px; }
ul.dots li { padding-left: 16px; position: relative; }
ul.dots li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 2px; background: var(--copper); }
ol.steps { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
ol.steps li::marker { font-family: var(--display); font-weight: 800; color: var(--copper); }
.pager { display: flex; justify-content: space-between; margin-top: 20px; gap: 10px; }
.pager a { display: inline-flex; align-items: center; gap: 4px; color: var(--peach); font-family: var(--display); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- clases */
.cl-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.cl-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; position: relative; overflow: hidden; transition: transform .2s, border-color .2s; }
.cl-card::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(224, 122, 58, .035) 22px 24px); pointer-events: none; }
.cl-card:hover { transform: translateY(-2px); border-color: rgba(224, 122, 58, .5); }
.cl-card h3 { margin: 6px 0 6px; }
.cl-card p { font-size: 14px; }
.bbar { display: flex; height: 40px; border-radius: 10px; overflow: hidden; gap: 3px; margin-bottom: 8px; }
.bb { display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; color: var(--ink); min-width: 0; overflow: hidden; }
.bb span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.b0 { background: var(--b0); } .b1 { background: var(--b1); } .b2 { background: var(--b2); color: var(--on-copper); } .b3 { background: var(--b3); } .b4 { background: var(--b4); color: var(--on-copper); }
.blocks { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 900px) { .blocks { grid-template-columns: 1fr 1fr; } }
.blk { overflow: hidden; } .blocks .card + .card { margin-top: 0; }
.blk-h { display: flex; justify-content: space-between; padding: 11px 16px; font-family: var(--display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.it { display: flex; gap: 12px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line2); }
.it-img { width: 74px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: #3A2A21; flex: none; display: grid; place-items: center; }
.it-img img { width: 100%; height: 100%; object-fit: cover; }
.it-img.ph { background: var(--card2); color: var(--copper); }
.it-b { display: flex; flex-direction: column; min-width: 0; }
.it-b b { color: var(--ink); font-weight: 600; }
.it-b small { color: var(--muted); }

/* ---------- creador */
.builder { display: flex; flex-direction: column; gap: 14px; }
.builder .card + .card { margin-top: 0; }
.tot { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.tot b { font-family: var(--display); font-weight: 800; font-size: 19px; }
.tot.ok b { color: var(--ok); }
.blk-ed { overflow: hidden; padding-bottom: 12px; }
.blk-ed-h { display: flex; gap: 8px; align-items: center; padding: 8px 10px; }
.blk-ed-h > input { flex: 1; background: rgba(0, 0, 0, .18); border-color: transparent; font-family: var(--display); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; min-width: 0; }
.blk-ed-h .min { flex-direction: row; align-items: center; gap: 4px; }
.blk-ed-h .min input { width: 66px; background: rgba(0, 0, 0, .2); border-color: transparent; }
.blk-ed-h.b2 > input, .blk-ed-h.b4 > input, .blk-ed-h.b2 .min input, .blk-ed-h.b4 .min input { color: var(--on-copper); background: rgba(255, 255, 255, .25); }
.blk-ed-h.b2 .min, .blk-ed-h.b4 .min, .blk-ed-h.b2 .icon-btn, .blk-ed-h.b4 .icon-btn { color: var(--on-copper); }
.it-ed { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line2); }
.it-btns { display: flex; justify-content: flex-end; }
.blk-ed > .btn { margin: 10px 12px 0; }
@media (min-width: 760px) { .it-ed { grid-template-columns: 1.4fr 1fr auto; align-items: center; } .it-ed select + input:not(.reps) { grid-column: 1; } }
.sticky-save { position: sticky; bottom: 76px; background: var(--bg); padding: 10px 0; z-index: 5; }
@media (min-width: 900px) { .sticky-save { bottom: 0; } }

/* ---------- reproductor */
.player { min-height: 100vh; background: radial-gradient(900px 500px at 85% -10%, rgba(224, 122, 58, .25), transparent 60%), var(--bg); color: var(--text); display: flex; flex-direction: column; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); gap: 14px; }
.pl-top { display: flex; align-items: center; gap: 10px; }
.pl-title { flex: 1; text-align: center; }
.pl-time { font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--ink); letter-spacing: .04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pl-bar { display: flex; gap: 3px; position: relative; height: 28px; }
.pl-seg { background: var(--card2); border-radius: 6px; font-family: var(--display); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--muted); }
.pl-seg span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.pl-seg.past { background: rgba(224, 122, 58, .35); color: var(--ink); } .pl-seg.now { background: var(--copper); color: var(--on-copper); }
.pl-cursor { position: absolute; top: -4px; bottom: -4px; width: 3px; background: var(--ink); border-radius: 3px; transition: left 1s linear; }
.pl-main { flex: 1; display: grid; gap: 16px; align-content: start; }
@media (min-width: 900px) { .pl-main { grid-template-columns: 1.3fr 1fr; align-items: center; max-width: 1200px; margin: 0 auto; width: 100%; } }
.pl-media { background: #3A2A21; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.pl-media img { width: 100%; }
.pl-noimg { height: 160px; display: grid; place-items: center; }
@media (min-width: 900px) { .pl-noimg { height: 300px; } }
.pl-noimg .ic { color: var(--copper); }
.pl-info h2 { color: var(--ink); font-size: clamp(38px, 7vw, 60px); margin: 8px 0 2px; }
.pl-es { color: var(--muted); }
.pl-reps { display: inline-block; margin: 12px 0; font-family: var(--display); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 22px; color: var(--on-copper); background: var(--peach); padding: 4px 14px; border-radius: 10px; }
.pl-cue { font-size: 15.5px; margin-top: 10px; line-height: 1.45; }
.pl-cue b { display: block; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); }
.pl-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 1200px; width: 100%; margin: 0 auto; }
.pl-nav .btn { min-height: 54px; padding: 12px 22px; font-size: 17px; }
.pl-count { font-family: var(--display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; color: var(--muted); }
.pl-next { text-align: center; font-size: 14px; color: var(--muted); } .pl-next b { color: var(--ink); }

/* ---------- agenda */
.week-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.week-nav > div { flex: 1; min-width: 200px; text-align: center; }
.week-nav b { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.week { display: grid; gap: 10px; }
@media (min-width: 1100px) { .week { grid-template-columns: repeat(7, 1fr); } .week .sess { flex-direction: column; gap: 4px; } .week .sess-act { width: 100%; justify-content: flex-start; padding-left: 0; } .week .sess-when { width: auto; } }
.day { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; min-height: 64px; }
.day.today { border-color: var(--copper); box-shadow: 0 0 0 1px var(--copper); }
.day-h { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.day-h span { flex: 1; } .day-h em { font-style: normal; color: var(--copper); }
.day-empty { color: var(--dim); font-size: 13px; padding: 6px 0; }
.late-list { margin-top: 10px; }

/* ---------- progreso */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.stat { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; text-align: left; border: 1px solid var(--line); background: var(--card); cursor: default; color: var(--text); }
button.stat { cursor: pointer; font: inherit; } button.stat.sel { border-color: var(--copper); background: rgba(224, 122, 58, .12); }
.stat b { font-size: 34px; line-height: 1; }
.stat span { font-family: var(--display); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 12.5px; color: var(--muted); }
.wbars { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 18px; }
.wb { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.wb-bar { width: 100%; max-width: 38px; background: linear-gradient(180deg, var(--peach), var(--copper)); border-radius: 6px 6px 2px 2px; position: relative; min-height: 2px; }
.wb-bar span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-family: var(--display); font-weight: 700; font-size: 12px; color: var(--muted); }
.wb small { font-size: 10.5px; color: var(--muted); }
.hb { display: grid; grid-template-columns: 120px 1fr 52px; gap: 10px; align-items: center; margin: 8px 0; font-size: 14px; }
.hb b { text-align: right; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink); }
.ex-dots { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; }
.ex-dots a { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; background: var(--card2); color: var(--dim); font-family: var(--display); font-weight: 800; font-size: 16px; position: relative; }
.ex-dots a.on { background: var(--copper); color: var(--on-copper); }
.ex-dots span { display: none; }
.rank { display: flex; flex-direction: column; }
.rk { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-top: 1px solid var(--line2); border-radius: 12px; }
.rk:first-child { border-top: 0; }
.rk.me { background: var(--card2); }
.rk-n { width: 24px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--copper); }
.rk-av { width: 36px; height: 36px; border-radius: 10px; background: var(--card3); color: var(--peach); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 14px; flex: none; }
.rk-b { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rk-t { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rk-t b { color: var(--ink); font-weight: 600; } .rk-t span { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--muted); }

/* ---------- dudas */
.q-row { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line2); }
.card > .q-row:first-child { border-top: 0; }
.q-row:hover { background: rgba(246, 237, 227, .03); }
.q-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.q-b b { color: var(--ink); line-height: 1.3; font-weight: 600; }
.q-b small { color: var(--muted); font-size: 12.5px; }
.q-st { font-family: var(--display); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; padding: 3px 9px; border-radius: 6px; white-space: nowrap; flex: none; }
.q-st.abierta { background: var(--warnBg); color: var(--warn); } .q-st.respondida { background: var(--okBg); color: var(--ok); }
.q-n { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; flex: none; } .q-n .ic { width: 16px; height: 16px; }
.q-wrap { display: flex; align-items: center; gap: 4px; padding-left: 12px; border-top: 1px solid var(--line2); }
.q-wrap .q-row { border: 0; } .q-click { flex: 1; min-width: 0; }
.thread { display: flex; flex-direction: column; gap: 12px; }
.q-head { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.by { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.by b { color: var(--ink); }
.q-body { font-size: 16px; color: var(--ink); }
.atts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.atts img, .atts video { width: 100%; border-radius: 10px; max-height: 320px; object-fit: cover; background: #000; }
.atts a { display: flex; align-items: center; gap: 6px; color: var(--peach); }
.replies { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.reply { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.reply.staff { background: linear-gradient(180deg, rgba(224, 122, 58, .14), rgba(224, 122, 58, .05)); border-color: rgba(224, 122, 58, .35); }
@media (min-width: 700px) { .reply:not(.staff) { margin-left: 40px; } }
.reply.staff .rk-av { background: var(--copper); color: var(--on-copper); }

/* ---------- admin */
.tbl { display: flex; flex-direction: column; }
.tbl .tr { display: grid; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line2); align-items: center; }
.tbl .tr:first-child { border-top: 0; }
.tbl .th { display: none; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); }
.who { display: flex; flex-direction: column; min-width: 0; } .who b { color: var(--ink); font-weight: 600; } .who small { font-size: 12.5px; overflow-wrap: anywhere; color: var(--muted); } .who small.ok-t { color: var(--ok); } .who small .ic { width: 13px; height: 13px; vertical-align: -2px; }
.secs { display: flex; flex-wrap: wrap; gap: 4px; }
.acts { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.st { font-family: var(--display); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 12.5px; padding: 3px 10px; border-radius: 6px; white-space: nowrap; }
.st-ok { background: var(--okBg); color: var(--ok); } .st-soon { background: var(--warnBg); color: var(--warn); } .st-exp { background: var(--badBg); color: var(--bad); } .st-off { background: var(--card2); color: var(--muted); } .st-wait { background: rgba(139, 195, 221, .14); color: var(--blue); }
.hcell { display: flex; flex-direction: column; gap: 6px; }
.hcell b { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--ink); }
@media (min-width: 1000px) {
  .tbl .th { display: grid; }
  .acc-tbl .tr { grid-template-columns: 1.6fr .8fr 1.6fr 1fr .8fr 1.5fr; }
  .prog-tbl .tr { grid-template-columns: 1.8fr 1.4fr 1fr 1fr 1fr; }
  .acts { justify-content: flex-end; }
}
.adm-list { display: flex; flex-direction: column; max-height: 640px; overflow: auto; }
.adm-it { display: flex; gap: 10px; align-items: center; padding: 8px 4px; border-top: 1px solid var(--line2); }
.adm-it .it-img { width: 60px; }
.adm-it small { display: block; color: var(--muted); font-size: 12.5px; }
.adm-it b { color: var(--ink); font-size: 14px; font-weight: 600; }
.cert { position: relative; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cert-dot { width: 14px; height: 14px; border-radius: 4px; background: var(--c); }
.quick { margin-top: -4px; }
.acc-row { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line2); }
.acc-row:first-of-type { border-top: 0; }

/* ---------- modal y aviso */
.modal-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(8, 5, 3, .7); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.modal { background: var(--card); border: 1px solid var(--line); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); position: relative; animation: up .2s; }
.modal.wide { max-width: 760px; }
.modal-x { position: absolute; top: 12px; right: 12px; }
.m-title { font-size: 34px; margin-bottom: 16px; padding-right: 40px; }
@media (min-width: 700px) { .modal-wrap { align-items: center; padding: 20px; } .modal { border-radius: 22px; padding: 28px; } }
@keyframes fade { from { opacity: 0; } } @keyframes up { from { transform: translateY(30px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .modal, .modal-wrap { animation: none; } }
.toast { position: fixed; left: 50%; bottom: 92px; transform: translate(-50%, 20px); background: var(--peach); color: var(--on-copper); font-weight: 600; padding: 12px 18px; border-radius: 12px; font-size: 14.5px; opacity: 0; pointer-events: none; transition: .25s; z-index: 200; max-width: calc(100vw - 32px); text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--bad); }
@media (min-width: 900px) { .toast { bottom: 30px; } }
@media (max-width: 520px) { .grid2, .grid3 { grid-template-columns: 1fr; } .hb { grid-template-columns: 90px 1fr 46px; } }
.sug > .row:last-child { margin-top: auto; }

/* Complementarios y guías para la instructora */
.chip.lv-3, .ex-lv.lv-3 { color: #BFA48C; } .chip.lv-3 { background: rgba(191, 164, 140, .12); }
.cmp-tag { align-self: flex-start; font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .12em; color: #BFA48C; border: 1px solid rgba(191, 164, 140, .3); border-radius: 5px; padding: 0 5px; margin: 2px 0; }
.it-img.ph span { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--copper); opacity: .7; }
.it.cue { background: repeating-linear-gradient(135deg, rgba(224, 122, 58, .05) 0 10px, transparent 10px 20px); border-left: 3px solid var(--copper); padding-left: 13px; }
.it-img.cue-ic { background: rgba(224, 122, 58, .14); color: var(--copper); border: 1px dashed rgba(224, 122, 58, .45); }
.it-img.cue-ic .ic { width: 26px; height: 26px; }
.cue-tag { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); }
.it.cue .it-b p { color: var(--text); font-size: 14px; line-height: 1.45; margin-top: 3px; }
.pl-cuecard { width: 100%; height: 100%; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 26px; text-align: center; border-radius: inherit; background: radial-gradient(circle at 50% 30%, rgba(224, 122, 58, .22), transparent 65%), repeating-linear-gradient(135deg, rgba(224, 122, 58, .07) 0 12px, transparent 12px 24px), var(--card); border: 1px dashed rgba(224, 122, 58, .45); }
.pl-cuecard span { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--copper); }
.pl-cuecard p { color: var(--ink); font-size: 18px; line-height: 1.5; max-width: 420px; }
.it-ed input.tip { grid-column: 1 / -1; }
