/* AVD Core · estilos específicos de la app del cliente */
.hero { padding: 20px 18px; border-radius: 18px; background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.hero h1 { font-size: 2.1rem; }
.hero p { margin: 6px 0 0; color: var(--steel-2); }

.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cat {
  position: relative; border: 0; text-align: left; cursor: pointer; padding: 16px 14px; border-radius: 16px; min-height: 128px;
  background: #fff; color: var(--navy); box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  transition: transform .12s;
}
.cat:active { transform: scale(.98); }
.cat svg { width: 30px; height: 30px; }
.cat .t { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.8rem; text-transform: uppercase; line-height: 1; }
.cat .d { font-size: .8rem; color: var(--text-2); margin-top: 4px; }
.cat .n { position: absolute; top: 12px; right: 14px; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1rem; opacity: .6; }
.cat.active { background: var(--navy); color: #fff; }
.cat.active .d { color: var(--steel-2); }

.routine-card { display: flex; gap: 14px; align-items: stretch; padding: 0; overflow: hidden; }
.routine-card .side { width: 10px; background: var(--navy); flex: none; }
.routine-card.medio .side { background: repeating-linear-gradient(180deg, var(--navy) 0 8px, var(--mist) 8px 12px); }
.routine-card .body { flex: 1; padding: 14px 6px 14px 0; min-width: 0; }
.routine-card h3 { font-size: 1.35rem; margin: 6px 0 4px; }
.routine-card .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .85rem; color: var(--text-2); }
.routine-card .meta span { display: inline-flex; align-items: center; gap: 4px; }
.routine-card .meta svg { width: 15px; height: 15px; }
.routine-card .go { display: grid; place-items: center; padding-right: 12px; color: var(--steel); }
.routine-card .go svg { width: 22px; height: 22px; }

.detail-head { background: var(--navy); color: #fff; padding: 18px 0 22px; margin-top: -18px; border-radius: 0 0 22px 22px; }
.detail-head h1 { font-size: 2.2rem; margin-top: 8px; }
.detail-head p { color: var(--steel-2); margin: 8px 0 0; }
.ex-card .head { display: flex; gap: 12px; align-items: center; }
.ex-card .head h3 { font-size: 1.2rem; flex: 1; }
.ex-card .dose { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.dose-pill { background: var(--mist); border-radius: 10px; padding: 8px 12px; text-align: center; min-width: 74px; }
.dose-pill b { display: block; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.35rem; line-height: 1; }
.dose-pill span { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); }
.ex-card .desc { font-size: .92rem; color: var(--text-2); margin: 10px 0 0; }
.ex-card .note { font-size: .88rem; margin-top: 8px; padding: 8px 10px; border-left: 3px solid var(--navy); background: #f6f7f9; border-radius: 0 8px 8px 0; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 12px 16px calc(12px + var(--safe-bottom)); background: linear-gradient(180deg, rgba(237,237,237,0), var(--bg) 35%); }
.sticky-cta .btn { max-width: 948px; margin: 0 auto; display: flex; }

/* ---------- reproductor ---------- */
.player { min-height: 100dvh; display: flex; flex-direction: column; background: var(--navy); color: #fff; transition: background .35s ease, color .35s ease; }
.player .pbar { display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--safe-top)) 10px 6px; }
.player .pbar .icon-btn { color: inherit; }
.player .pbar .title { flex: 1; text-align: center; font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .95rem; opacity: .85; }
.player .progress { height: 4px; background: rgba(255,255,255,.18); margin: 0 14px; border-radius: 4px; overflow: hidden; }
.player .progress i { display: block; height: 100%; background: currentColor; transition: width .3s; }
.player .pbody { flex: 1; width: 100%; max-width: 620px; margin: 0 auto; padding: 12px 16px calc(16px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 14px; }
.player .phase { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.1rem; letter-spacing: .12em; text-align: center; }
.player .exname { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 2rem; line-height: 1; text-align: center; }
.player .sub { text-align: center; opacity: .8; font-size: .95rem; }
.player .controls { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: auto; padding-top: 8px; }
.player .controls .icon-btn { color: inherit; width: 52px; height: 52px; background: rgba(255,255,255,.1); border-radius: 50%; }
.player .controls .icon-btn.main { width: 76px; height: 76px; background: #fff; color: var(--navy); }
.player .controls .icon-btn.main svg { width: 32px; height: 32px; }
.player.rest { background: var(--mist); color: var(--navy); }
.player.rest .progress { background: rgba(13,33,59,.15); }
.player.rest .controls .icon-btn { background: rgba(13,33,59,.08); }
.player.rest .controls .icon-btn.main { background: var(--navy); color: #fff; }
.player.prep { background: var(--navy-3); }
.player.roundrest { background: var(--steel); }
.player.done { background: var(--navy); }

.ring { position: relative; width: min(58vw, 230px); aspect-ratio: 1; margin: 0 auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .track { stroke: rgba(255,255,255,.16); }
.player.rest .ring .track { stroke: rgba(13,33,59,.12); }
.ring .bar { stroke: currentColor; stroke-linecap: round; transition: stroke-dashoffset .2s linear; }
.ring .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .clock { font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(3.2rem, 16vw, 4.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.ring .lbl { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; opacity: .8; margin-top: 4px; }
.ring.small { width: min(40vw, 160px); }
.ring.small .clock { font-size: clamp(2.4rem, 11vw, 3.2rem); }

.series-dots { display: flex; justify-content: center; gap: 8px; }
.series-dots i { width: 34px; height: 8px; border-radius: 6px; background: rgba(255,255,255,.2); }
.series-dots i.done { background: #fff; }
.series-dots i.cur { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.big-dose { display: flex; justify-content: center; gap: 12px; }
.big-dose div { background: rgba(255,255,255,.08); border-radius: 14px; padding: 10px 18px; text-align: center; min-width: 110px; }
.big-dose b { display: block; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 2.4rem; line-height: 1; }
.big-dose span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.rest-overlay { position: fixed; inset: 0; z-index: 60; background: var(--mist); color: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; animation: fadeIn .2s; }
.rest-overlay .ring .track { stroke: rgba(13,33,59,.12); }
.rest-overlay .next { text-align: center; }
.rest-overlay .next b { display: block; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.6rem; text-transform: uppercase; }
.upnext { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.08); border-radius: 12px; padding: 8px; }
.player.rest .upnext { background: rgba(13,33,59,.06); }
.upnext img { width: 88px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; flex: none; background: #0a1628; }
.upnext small { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; opacity: .7; }
.upnext b { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.15rem; }
.done-box { text-align: center; margin: auto 0; }
.done-box svg { width: 72px; height: 72px; margin: 0 auto 10px; }
.done-box h1 { font-size: 2.6rem; }
.done-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; }
.done-stats .stat { background: rgba(255,255,255,.08); border-radius: 12px; padding: 12px 6px; }
.done-stats .stat span { color: var(--steel-2); }
.history-item { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.history-item:last-child { border-bottom: 0; }

.upnext-head { text-align: center; }
.upnext-head small { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; opacity: .75; }
.upnext-head b { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.7rem; line-height: 1.05; }
.player.rest .video, .player.prep .video, .player.roundrest .video { box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.player.rest .video { box-shadow: 0 0 0 3px rgba(13,33,59,.25); }

.consigna { margin-top: 10px; padding: 10px 12px; border-left: 4px solid var(--navy); background: var(--mist); border-radius: 0 10px 10px 0; font-size: .95rem; font-weight: 500; }
.consigna span { display: block; font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--steel); margin-bottom: 2px; }
.consigna.on-dark { background: rgba(255,255,255,.1); border-left-color: #fff; color: #fff; }
.consigna.on-dark span { color: var(--steel-2); }

.cat .h { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(13,33,59,.15); font-size: .82rem; font-weight: 600; line-height: 1.3; }
.cat.active .h { border-top-color: rgba(255,255,255,.2); }

.media-row { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.media-row > .video:not(.portrait) { width: 100%; }
.media-row .ring.small { margin: 0 auto; }
.media-row:has(.video.portrait) { flex-direction: row; justify-content: center; gap: 16px; }
.media-row:has(.video.portrait) .video { width: min(60%, calc(58dvh * 9 / 16)); margin: 0; flex: none; }
.media-row:has(.video.portrait) .ring.small { width: min(33vw, 170px); margin: 0; flex: none; }
.player .pbody > .video.portrait { width: calc(min(44dvh, 460px) * 9 / 16); }

/* bloques (Fuerte) */
.block { margin-top: 6px; }
.block + .block { margin-top: 22px; }
.block-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 10px 12px; background: var(--navy); color: #fff; border-radius: 12px; }
.block-tag { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.3rem; white-space: nowrap; }
.block-meta { font-size: .85rem; color: var(--steel-2); line-height: 1.3; }
.block-meta b { color: #fff; }
.cue-row { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; margin-top: 10px; }
.cue-row .consigna { flex: 1 1 200px; margin-top: 0; }
.load { flex: 0 1 auto; min-width: 110px; padding: 10px 12px; background: var(--navy); color: #fff; border-radius: 10px; font-weight: 700; font-size: 1.05rem; }
.load span { display: block; font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; color: var(--steel-2); margin-bottom: 2px; }
.load.on-dark { background: #fff; color: var(--navy); }
.load.on-dark span { color: var(--steel); }
.rest-overlay .media-row { width: 100%; }
.rest-overlay .phase { text-align: center; }
