:root {
  --bg: #0b0b0d;
  --bg2: #111114;
  --card: #18181c;
  --card2: #202026;
  --line: #2a2a31;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;
  --red: #e3122b;
  --red2: #ff3b4f;
  --amber: #f59e0b;
  --cyan: #13a8e0;
  --green: #22c55e;
  --violet: #a78bfa;
  --accent: var(--red);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --head: 'Bebas Neue', 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 400; letter-spacing: .02em; line-height: 1; margin: 0 0 .4em; }
h1 { font-size: clamp(3rem, 9vw, 6.5rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 99; background: #fff; color: #000; padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--red2); outline-offset: 2px; }
main { min-height: 70vh; outline: none; }

/* ── Topbar ── */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 13, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--head); font-size: 2rem; letter-spacing: .08em; }
.logo svg { width: 34px; fill: var(--red); }
.logo-sm { font-size: 1.6rem; margin-bottom: 8px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .92rem; font-weight: 600; color: var(--muted); }
.nav a:hover, .nav a.on { color: var(--text); background: var(--card2); }
.nav a.nav-cta { background: var(--red); color: #fff; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; }
.menu-btn span { display: block; height: 2px; background: var(--text); margin: 5px 0; transition: .2s; }
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 64px 0 auto; flex-direction: column; align-items: stretch; background: var(--bg2); padding: 12px 16px 20px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .25s; }
  .nav.open { transform: none; }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
}

/* ── Botones ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--red); color: #fff; border: 0; border-radius: 999px; padding: 14px 26px; font-weight: 700; text-decoration: none; font-size: 1rem; transition: transform .15s, background .15s; }
.btn:hover { background: var(--red2); transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--card2); }
.btn-cyan { background: var(--cyan); }
.btn-cyan:hover { background: #3cc0f0; }
.btn-green { background: var(--green); color: #052e12; }
.btn-green:hover { background: #4ade80; }
.btn-amber { background: var(--amber); color: #2b1700; }
.btn-amber:hover { background: #fbbf24; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.link { background: none; border: 0; color: var(--red2); text-decoration: underline; padding: 0; }

/* ── Hero ── */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 20%, rgba(227, 18, 43, .28), transparent 60%), radial-gradient(40% 50% at 10% 90%, rgba(19, 168, 224, .12), transparent 60%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 span { color: var(--red); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-visual .exc:nth-child(2) { transform: translateY(24px); }
.hero-visual .exc:nth-child(4) { transform: translateY(24px); }
.kicker { display: inline-block; font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red2); margin-bottom: 12px; }
.stats { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.stats b { display: block; font-family: var(--head); font-size: 2.3rem; line-height: 1; }
.stats span { color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

.page-head { padding: 48px 0 24px; position: relative; }
.page-head::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 100% at 90% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); pointer-events: none; }
.page-head > * { position: relative; }
.page-head p { color: var(--muted); max-width: 720px; font-size: 1.08rem; }
.section { padding: 40px 0; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-title h2 { margin: 0; }

.t-red { --accent: var(--red); }
.t-amber { --accent: var(--amber); }
.t-cyan { --accent: var(--cyan); }
.t-green { --accent: var(--green); }
.t-violet { --accent: var(--violet); }

/* ── Tarjetas ── */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3 { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .g4 { grid-template-columns: 1fr 1fr; gap: 10px; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: .3em; }
.card-link { text-decoration: none; display: block; transition: transform .15s, border-color .15s; }
.card-link:hover { transform: translateY(-3px); border-color: var(--accent); }
.sec-card { position: relative; overflow: hidden; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; }
.sec-card .ico { position: absolute; top: 18px; right: 18px; width: 64px; height: 64px; color: var(--accent); opacity: .9; }
.sec-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); }
.sec-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.ico { width: 22px; height: 22px; flex: none; }

/* Ficha de ejercicio (estilo oscuro con músculos en rojo) */
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
@media (max-width: 480px) { .ex-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.exc { position: relative; background: linear-gradient(180deg, #1a1a1f, #0e0e11); border: 1px solid #2c2c33; border-radius: 14px; padding: 12px 12px 14px; display: flex; flex-direction: column; text-align: center; cursor: pointer; transition: border-color .15s, transform .15s; overflow: hidden; }
.exc:hover { border-color: var(--red); transform: translateY(-2px); }
.exc::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: 0; height: 3px; border-radius: 3px; background: var(--red); box-shadow: 0 0 14px var(--red); }
.exc-num { position: absolute; top: 10px; left: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--head); font-size: 1.25rem; display: grid; place-items: center; z-index: 1; }
.exc-tipo { position: absolute; top: 10px; right: 10px; color: var(--dim); z-index: 1; }
.exc-img { aspect-ratio: 10 / 9; display: grid; place-items: center; margin: 4px 0 6px; }
.exc-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.exc h4 { font-size: 1.35rem; margin: 4px 0 2px; text-transform: uppercase; }
.exc .presc { font-family: var(--head); font-size: 1.55rem; letter-spacing: .03em; }
.exc .presc b { color: var(--red); font-weight: 400; }
.exc .meta { font-size: .78rem; color: var(--muted); }
.exc .tags { font-size: .75rem; color: var(--dim); margin-top: 2px; }
.exc-actions { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.exc-actions button { background: var(--card2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; font-size: .78rem; color: var(--muted); }
.exc-actions button:hover { color: var(--text); border-color: var(--red); }

.mmap { width: 100%; height: auto; display: block; }
.mmap .sil { fill: #2b2b31; }
.mmap .m0 { fill: #3d3d45; }
.mmap .ms { fill: #ff7a85; opacity: .75; }
.mmap .mp { fill: var(--red); filter: drop-shadow(0 0 3px rgba(227, 18, 43, .8)); }
.mmap text { font: 600 7px var(--body); fill: #55555d; text-anchor: middle; letter-spacing: .1em; }
.mmap text.on { fill: #9b9ba3; }

/* Cabecera de día al estilo de las fichas */
.day { margin: 36px 0; scroll-margin-top: 80px; }
.day-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.day-head h2 { margin: 0; font-size: clamp(2.6rem, 7vw, 4.2rem); }
.day-head h2 span { color: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; font-family: var(--head); font-size: 1.35rem; letter-spacing: .04em; padding: 6px 18px 4px; border-radius: 10px; }
.t-cyan .pill, .t-green .pill, .t-amber .pill { color: #0b0b0d; }
.day-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 600px) { .day-actions { margin-left: 0; width: 100%; } }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.week a, .week div { text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; text-align: center; font-size: .8rem; color: var(--muted); }
.week .on { border-color: var(--accent); color: var(--text); }
.week b { display: block; font-family: var(--head); font-size: 1.4rem; font-weight: 400; color: var(--text); }
.week .ico { width: 22px; height: 22px; color: var(--accent); margin: 4px auto 0; display: block; }
@media (max-width: 600px) { .week { grid-template-columns: repeat(4, 1fr); } }

.callout { background: color-mix(in srgb, var(--red) 12%, var(--card)); border-left: 4px solid var(--red); border-radius: 10px; padding: 14px 18px; margin: 16px 0; }
.callout.info { background: color-mix(in srgb, var(--cyan) 10%, var(--card)); border-color: var(--cyan); }
.callout.ok { background: color-mix(in srgb, var(--green) 10%, var(--card)); border-color: var(--green); }
.callout ul { margin: 6px 0 0; padding-left: 18px; }

/* ── Formularios ── */
.form-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.form-block h3 { display: flex; align-items: center; gap: 10px; }
.form-block h3 .n { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 1.2rem; }
.t-cyan .form-block h3 .n, .t-green .form-block h3 .n { color: #0b0b0d; }
.form-block > p { color: var(--muted); font-size: .95rem; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .lbl { font-size: .82rem; font-weight: 600; color: var(--muted); }
.field small { color: var(--dim); font-size: .78rem; }
input[type=number], input[type=text], input[type=email], input[type=time], select {
  background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 12px 14px; font: inherit; width: 100%; min-height: 46px;
}
input:focus, select:focus { border-color: var(--accent); outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); font-size: .9rem; font-weight: 600; color: var(--muted); transition: .15s; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.t-cyan .chip input:checked + span, .t-green .chip input:checked + span, .t-amber .chip input:checked + span { color: #0b0b0d; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip.btnchip span { cursor: pointer; }

.goal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.goal { position: relative; }
.goal input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; }
.goal div { height: 100%; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); transition: .15s; }
.goal .ico { color: var(--accent); width: 28px; height: 28px; }
.goal b { display: block; font-family: var(--head); font-size: 1.45rem; font-weight: 400; margin-top: 6px; }
.goal small { color: var(--muted); font-size: .84rem; line-height: 1.4; display: block; }
.goal input:checked + div { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--bg2)); }
.goal input:focus-visible + div { outline: 2px solid var(--accent); }

.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.dayt { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.dayt.on { border-color: var(--accent); }
.dayt b { font-family: var(--head); font-size: 1.4rem; font-weight: 400; }
.dayt select { padding: 8px; min-height: 38px; font-size: .85rem; }
@media (max-width: 860px) { .days { grid-template-columns: repeat(2, 1fr); } }

/* ── Natación ── */
.swim-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 700px) { .swim-sum { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.kpi b { display: block; font-family: var(--head); font-size: 2.4rem; line-height: 1; color: var(--accent); font-weight: 400; }
.kpi span { font-size: .82rem; color: var(--muted); }
.swim-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.swim-block header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: color-mix(in srgb, var(--cyan) 10%, var(--card)); border-bottom: 1px solid var(--line); }
.swim-block header h3 { margin: 0; font-size: 1.6rem; }
.swim-block header span { font-family: var(--head); font-size: 1.5rem; color: var(--cyan); }
.swim-line { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.swim-line:last-child { border-bottom: 0; }
.swim-line .rep { font-family: var(--head); font-size: 1.9rem; line-height: 1; }
.swim-line .rep small { display: block; font-family: var(--body); font-size: .78rem; color: var(--cyan); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.swim-line .desc { font-size: .93rem; }
.swim-line .meta { text-align: right; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.swim-line .meta b { color: var(--text); }
.swim-line .drills { margin-top: 8px; display: grid; gap: 6px; }
.swim-line .drills div { font-size: .84rem; color: var(--muted); background: var(--bg2); border-radius: 8px; padding: 8px 10px; }
.swim-line .drills b { color: var(--text); }
.swim-fig { width: 110px; }
.swim-fig .agua { fill: rgba(19, 168, 224, .22); }
.swim-fig .nad circle { fill: #f4f4f5; }
.swim-fig .nad path { stroke: #f4f4f5; stroke-width: 5; stroke-linecap: round; fill: none; }
.swim-fig .nad .brazo { stroke: var(--cyan); }
.swim-fig .nad .tabla { fill: var(--amber); stroke: none; }
@media (max-width: 640px) {
  .swim-line { grid-template-columns: 1fr; gap: 6px; }
  .swim-line .meta { text-align: left; }
}
.rpe { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--card2); }
.bar { height: 10px; background: var(--bg2); border-radius: 999px; overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ── Nutrición ── */
.macro { display: grid; gap: 14px; }
.macro-row { display: grid; grid-template-columns: 110px 1fr 90px; gap: 12px; align-items: center; font-size: .92rem; }
.macro-row b { font-family: var(--head); font-size: 1.5rem; font-weight: 400; text-align: right; }
.plate { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
@media (max-width: 640px) { .plate { grid-template-columns: 1fr; } .plate svg { max-width: 220px; margin: auto; } }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: thin; }
.tabs button { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; white-space: nowrap; font-weight: 600; color: var(--muted); }
.tabs button.on { background: var(--accent); border-color: var(--accent); color: #0b0b0d; }
.meal { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.meal:last-child { border-bottom: 0; }
.meal .toma { font-family: var(--head); font-size: 1.35rem; color: var(--green); }
.meal .k { text-align: right; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.meal .k b { display: block; color: var(--text); font-size: 1rem; }
@media (max-width: 600px) { .meal { grid-template-columns: 1fr; gap: 4px; } .meal .k { text-align: left; } }
.shop { columns: 3 220px; column-gap: 24px; }
.shop label { display: flex; gap: 10px; break-inside: avoid; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.shop label span { margin-left: auto; color: var(--muted); white-space: nowrap; }

/* ── Artículos ── */
.art-card { display: flex; flex-direction: column; height: 100%; }
.art-card .tag { margin-bottom: 10px; }
.art-card h3 { font-family: var(--body); font-weight: 700; font-size: 1.15rem; line-height: 1.3; letter-spacing: 0; }
.art-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.art-cover { height: 140px; border-radius: 12px; margin: -6px -6px 16px; display: grid; place-items: center; background: radial-gradient(80% 120% at 80% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%), var(--bg2); }
.art-cover .ico { width: 64px; height: 64px; color: var(--accent); }
.article { max-width: 760px; margin: 0 auto; padding: 32px 0 56px; }
.article h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.article .intro { font-size: 1.2rem; color: var(--muted); }
.article h2 { font-size: 2.1rem; margin-top: 1.4em; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 8px; }

.tip { display: flex; gap: 14px; }
.tip .ico { width: 34px; height: 34px; color: var(--accent); }
.tip h4 { font-family: var(--body); font-weight: 700; font-size: 1.02rem; letter-spacing: 0; margin-bottom: 4px; line-height: 1.3; }
.tip p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ── Modal / temporizador / aviso ── */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .7); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { position: relative; background: var(--bg2); border: 1px solid var(--line); border-radius: 20px; width: min(760px, 100%); max-height: 90vh; overflow: auto; padding: 28px; box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 10px; right: 12px; background: var(--card2); border: 0; width: 38px; height: 38px; border-radius: 50%; font-size: 1.5rem; line-height: 1; }
.ex-detail { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.ex-detail .vis { background: linear-gradient(180deg, #1a1a1f, #0e0e11); border-radius: 14px; padding: 12px; }
.ex-detail ol, .ex-detail ul { padding-left: 20px; margin-top: 4px; }
.ex-detail li { margin-bottom: 6px; font-size: .95rem; }
.ex-detail h4 { font-family: var(--body); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red2); margin: 16px 0 6px; }
@media (max-width: 640px) { .ex-detail { grid-template-columns: 1fr; } .ex-detail .vis { max-width: 280px; } }
.swap-list { display: grid; gap: 8px; margin-top: 12px; }
.swap-list button { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.swap-list button:hover { border-color: var(--red); }
.swap-list .mmap { width: 70px; }

.timer { position: fixed; right: 16px; bottom: 16px; z-index: 80; background: var(--red); color: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; }
.timer b { font-family: var(--head); font-size: 2.6rem; line-height: 1; font-weight: 400; min-width: 70px; }
.timer button { background: rgba(0, 0, 0, .25); border: 0; border-radius: 999px; padding: 6px 12px; color: #fff; font-size: .85rem; }
.set-row { display: grid; grid-template-columns: 44px 1fr 1fr 48px; gap: 8px; align-items: center; margin-top: 8px; }
.set-row input { min-height: 40px; padding: 8px 10px; }
.set-row .chk { width: 44px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); font-weight: 700; }
.set-row .chk.done { background: var(--green); color: #052e12; border-color: var(--green); }
.set-row .n { font-family: var(--head); font-size: 1.3rem; color: var(--muted); text-align: center; }
.live-ex { display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: start; }
@media (max-width: 560px) { .live-ex { grid-template-columns: 90px 1fr; gap: 12px; } }

.consent-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--card2); border-top: 1px solid var(--line); padding: 14px 0; }
.consent-in { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.consent-in p { margin: 0; font-size: .9rem; color: var(--muted); }
.consent-in strong { color: var(--text); }
@media (max-width: 640px) { .consent-in { flex-direction: column; align-items: stretch; } }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--red); flex: none; }
.empty { text-align: center; padding: 48px 16px; }
.empty .ico { width: 56px; height: 56px; color: var(--accent); margin-bottom: 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 600; z-index: 120; box-shadow: var(--shadow); }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps .card::before { counter-increment: s; content: counter(s); font-family: var(--head); font-size: 3rem; color: var(--red); line-height: 1; display: block; margin-bottom: 8px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.badge { display: inline-block; background: var(--card2); color: var(--muted); border-radius: 6px; padding: 2px 8px; font-size: .75rem; font-weight: 600; margin: 0 4px 4px 0; }
.badge.r { background: rgba(227, 18, 43, .18); color: #ff8b97; }
.prog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.prog div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: .86rem; color: var(--muted); }
.prog b { display: block; font-family: var(--head); font-size: 1.4rem; font-weight: 400; color: var(--text); }
@media (max-width: 760px) { .prog { grid-template-columns: 1fr 1fr; } }
.blocks { display: grid; gap: 10px; }
.blocks div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.blocks b { font-family: var(--head); font-size: 1.35rem; font-weight: 400; color: var(--accent); }
@media (max-width: 560px) { .blocks div { grid-template-columns: 1fr; gap: 2px; } }
.legal h2 { font-size: 1.9rem; margin-top: 1.3em; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--line); padding: 40px 0 90px; margin-top: 40px; background: var(--bg2); }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-legal { grid-column: 1 / -1; font-size: .82rem; }
@media (max-width: 640px) { .footer-in { grid-template-columns: 1fr; } }

/* ── Impresión: versión clara tipo ficha numerada ── */
@media print {
  :root { --bg: #fff; --bg2: #fff; --card: #fff; --card2: #f4f4f5; --line: #ddd; --text: #111; --muted: #444; --dim: #666; color-scheme: light; }
  .topbar, .footer, .consent-bar, .day-actions, .exc-actions, .no-print, .timer, .btn { display: none !important; }
  body { background: #fff; }
  .exc { background: #fff; border-color: #ddd; break-inside: avoid; }
  .exc::after { display: none; }
  .mmap .sil { fill: #e4e4e7; }
  .mmap .m0 { fill: #d4d4d8; }
  .day { break-inside: avoid-page; }
  .page-head::before, .hero::before { display: none; }
}

/* ── Fotos de ejercicios (personajes) ── */
.exc-img.foto, .vis.foto, .ent-img.foto { position: relative; display: block; }
.exc-img.foto { aspect-ratio: 4 / 5; margin: -2px -2px 6px; }
.exc-img.foto img, .vis.foto > img, .ent-img.foto > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: 10px; display: block; }
.ex-detail .vis.foto { padding: 0; overflow: hidden; }
.ex-detail .vis.foto > img { aspect-ratio: 2 / 3; height: auto; }
.mini-mapa { position: absolute; right: 6px; bottom: 6px; width: 30%; max-width: 74px; padding: 3px; background: rgba(10, 10, 13, .78); border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px; backdrop-filter: blur(4px); pointer-events: none; }
.mini-mapa svg { width: 100%; height: auto; display: block; }
.foto-pj { position: absolute; left: 8px; bottom: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(10, 10, 13, .78); border-radius: 999px; padding: 3px 9px; }
.ent-img { background: #0e0e11; border-radius: 12px; padding: 6px; cursor: pointer; }
.ent-img.foto { padding: 0; aspect-ratio: 4 / 5; overflow: hidden; }

/* ── Equipo Train ── */
.pj-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 18px; }
@media (max-width: 900px) { .pj-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .pj-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.pj-card { position: relative; display: block; padding: 0; border: 1px solid #2c2c33; border-radius: 16px; overflow: hidden; background: #0e0e11; text-align: left; color: inherit; cursor: pointer; transition: transform .15s, border-color .15s; }
.pj-card:hover, .pj-card:focus-visible { transform: translateY(-3px); border-color: var(--accent); }
.pj-card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.pj-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 12px 12px; background: linear-gradient(transparent, rgba(8, 8, 10, .95) 55%); display: grid; gap: 2px; }
.pj-info b { font-family: var(--head); font-weight: 400; font-size: 1.7rem; letter-spacing: .03em; line-height: 1; }
.pj-info small { color: var(--muted); font-size: .78rem; }
.pj-card::after { content: ''; position: absolute; left: 12px; right: 60%; bottom: 0; height: 3px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.pj-hoja { width: 100%; height: auto; border-radius: 14px; display: block; }
.pj-detail h4 { font-family: var(--body); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 16px 0 8px; }
.pj-ejs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.pj-ejs button { padding: 0; background: #0e0e11; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: inherit; text-align: center; }
.pj-ejs button:hover { border-color: var(--accent); }
.pj-ejs img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; display: block; }
.pj-ejs span { display: block; font-size: .72rem; padding: 5px 4px; line-height: 1.2; }
@media print { .mini-mapa, .foto-pj { display: none; } }
.swim-foto { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; display: block; margin-bottom: 10px; }
.swim-media { position: relative; }
.swim-toggle { position: absolute; right: 8px; bottom: 18px; background: rgba(10, 10, 13, .8); color: #fff; border: 1px solid rgba(255, 255, 255, .15); border-radius: 999px; padding: 6px 12px; font-size: .78rem; font-weight: 600; }
.swim-toggle:hover, .swim-toggle[aria-pressed="true"] { border-color: var(--cyan); }
