﻿.banner { background: var(--pique); color: var(--pique-texto); text-align: center; font-weight: 600; padding: 6px 12px; font-size: 14px; }
.marca { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.marca svg { width: 36px; height: 36px; border-radius: 8px; background: var(--acero); padding: 3px; }
.marca strong { font-family: var(--titulo); font-size: 24px; font-weight: 800; text-transform: uppercase; }
.marca small { display: block; color: var(--texto2); font-size: 13px; margin-top: -2px; }
.card { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--radio); padding: 14px; margin-bottom: 12px; }
.card.head { background: var(--cabecera); }
.row { display: flex; align-items: center; gap: 10px; } .row.between { justify-content: space-between; } .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 10px; }
.btn { min-height: 48px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--linea); background: var(--superficie); font-weight: 600; }
.btn.primario { background: var(--pique); color: var(--pique-texto); border-color: transparent; font-weight: 700; }
.btn.ok { background: var(--cesped); color: #0b2217; border-color: transparent; font-weight: 700; }
.btn.fantasma { background: transparent; } .btn.chico { min-height: 44px; padding: 6px 12px; font-size: 14px; }
.btn.block { width: 100%; } .btn:disabled { opacity: .5; cursor: not-allowed; }
.chip { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 600; background: var(--cabecera); color: var(--texto2); border: 1px solid var(--linea); }
.chip.acento { background: var(--pique); color: var(--pique-texto); border-color: transparent; }
.chip.verde { background: var(--cesped-fondo); color: var(--cesped); border-color: transparent; }
.chip.alerta { color: var(--alerta); border-color: var(--alerta); background: transparent; }
.progreso { height: 8px; background: var(--cabecera); border-radius: 99px; overflow: hidden; } .progreso > i { display: block; height: 100%; background: var(--pique); border-radius: 99px; }
.aviso { border-left: 4px solid var(--pique); background: var(--superficie); padding: 10px 12px; border-radius: 8px; margin-bottom: 10px; font-size: 15px; }
.aviso.alerta { border-color: var(--alerta); } .aviso.ok { border-color: var(--cesped); }
/* formularios */
label.campo { display: block; margin-bottom: 12px; font-weight: 600; }
label.campo > span { display: block; margin-bottom: 4px; } label.campo small { font-weight: 400; color: var(--texto2); }
input[type=text], input[type=number], select { width: 100%; min-height: 48px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--linea); background: var(--superficie); }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.opcion { position: relative; } .opcion input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.opcion span { display: block; min-height: 44px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--linea); background: var(--superficie); font-weight: 500; }
.opcion input:checked + span { background: var(--acero); border-color: var(--caliente); color: #fff; }
.opcion input:focus-visible + span { outline: 3px solid var(--caliente); }
.error { color: var(--alerta); font-weight: 600; min-height: 1.4em; }
/* semana */
.tira { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin: 10px 0; }
.dia-chip { flex: 1 0 64px; text-align: center; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--linea); background: var(--superficie); font-family: var(--titulo); font-weight: 700; text-transform: uppercase; font-size: 15px; }
.dia-chip[aria-pressed=true] { border-color: var(--pique); } .dia-chip.hecho { background: var(--cesped-fondo); color: var(--cesped); border-color: transparent; }
.dia-card { display: block; width: 100%; text-align: left; padding: 14px; }
.dia-card h3 { margin-bottom: 2px; }
.estado { font-size: 13px; font-weight: 700; text-transform: uppercase; }
.estado.hecho { color: var(--cesped); } .estado.curso { color: var(--caliente); } .estado.pend { color: var(--texto2); }
/* bloques */
.bloque { border: 1px solid var(--linea); border-radius: var(--radio); background: var(--superficie); margin-bottom: 10px; overflow: hidden; }
.bloque > button.cab { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--cabecera); border: 0; text-align: left; min-height: 52px; }
.bloque .titulo { font-family: var(--titulo); font-weight: 800; text-transform: uppercase; font-size: 18px; flex: 1; }
.bloque .cuenta { font-size: 13px; color: var(--texto2); font-weight: 600; }
.bloque .check-b { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--linea); display: grid; place-items: center; }
.bloque.completo .check-b { background: var(--cesped); border-color: var(--cesped); color: #0b2217; }
.bloque.completo .cuenta { color: var(--cesped); }
.bloque .cuerpo { padding: 4px 14px 12px; }
.bloque .nota { font-size: 14px; color: var(--texto2); margin: 8px 0; }
.ej { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--linea); }
.ej:first-child { border-top: 0; }
.ej .etq { font-family: var(--titulo); font-weight: 800; color: var(--caliente); width: 28px; flex: none; font-size: 18px; }
.ej .nom { font-weight: 600; } .ej .dosis { font-family: var(--titulo); font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.ej .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.ej .acciones { display: flex; gap: 4px; align-items: center; }
.icono { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--texto2); text-decoration: none; }
.icono svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icono.sin { opacity: .35; }
.circulo { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; }
.circulo i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--texto2); display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; }
.circulo.hecho i { background: var(--cesped); border-color: var(--cesped); color: #0b2217; }
.circulo.parcial i { border-color: var(--caliente); color: var(--caliente); }
/* acciones fijas */
.barra-acciones { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); display: grid; gap: 8px; padding: 10px 0; background: linear-gradient(transparent, var(--fondo) 30%); }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: var(--superficie); border-top: 1px solid var(--linea); padding-bottom: env(safe-area-inset-bottom); z-index: 20; }
.tabs button { flex: 1; min-height: 60px; display: grid; place-items: center; gap: 0; padding: 6px 2px; background: none; border: 0; color: var(--texto2); font-size: 12px; font-weight: 600; }
.tabs button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabs button[aria-current=page] { color: var(--pique); }
/* overlay / reloj */
.overlay { position: fixed; inset: 0; z-index: 50; background: var(--fondo); overflow-y: auto; padding: var(--gutter); }
.overlay .centro { max-width: 640px; margin: 0 auto; }
.reloj { display: grid; gap: 10px; text-align: center; min-height: calc(100vh - 32px); align-content: space-between; }
.reloj .fase { font-family: var(--titulo); font-weight: 800; font-size: 40px; text-transform: uppercase; letter-spacing: .04em; }
.reloj .fase.trabajo { color: var(--pique); } .reloj .fase.pausa { color: var(--cesped); }
.reloj .tiempo { font-family: var(--titulo); font-weight: 800; font-size: clamp(110px, 38vw, 220px); line-height: .95; font-variant-numeric: tabular-nums; }
.reloj .ejercicio { font-size: 24px; font-weight: 600; } .reloj .siguiente { color: var(--texto2); }
.reloj .ronda { font-family: var(--titulo); font-size: 28px; font-weight: 700; }
.reloj > div { min-width: 0; } .reloj .ejercicio, .reloj .siguiente, .reloj .muted { overflow-wrap: anywhere; padding: 0 8px; }
.reloj .controles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .reloj .controles .btn { padding: 8px 4px; font-size: 14px; }
.reloj.fondo-trabajo { box-shadow: inset 0 0 0 6px var(--pique); border-radius: 18px; }
.reloj.fondo-pausa { box-shadow: inset 0 0 0 6px var(--cesped); border-radius: 18px; }
.mini-descanso { position: fixed; left: 12px; right: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 40; background: var(--cesped); color: #0b2217; border-radius: 14px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-weight: 700; max-width: 616px; margin: 0 auto; }
.mini-descanso b { font-family: var(--titulo); font-size: 30px; font-variant-numeric: tabular-nums; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(90px + env(safe-area-inset-bottom)); background: var(--cabecera); border: 1px solid var(--linea); padding: 10px 16px; border-radius: 12px; z-index: 60; max-width: 90vw; }
/* slider */
input[type=range] { width: 100%; height: 44px; accent-color: var(--pique); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 15px; } table.cmp td, table.cmp th { padding: 6px 4px; border-top: 1px solid var(--linea); text-align: left; }
table.cmp .cambia { color: var(--caliente); font-weight: 700; }
.esfuerzos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.esfuerzos .opcion span { text-align: center; padding: 10px 2px; font-size: 15px; }
.nivel-grande { font-family: var(--titulo); font-weight: 800; font-size: 72px; line-height: 1; color: var(--pique); }
.barras { display: grid; gap: 8px; } .barras .b { display: grid; grid-template-columns: 90px 1fr 34px; gap: 8px; align-items: center; font-size: 14px; }
.hist { width: 100%; border-collapse: collapse; font-size: 14px; } .hist td, .hist th { padding: 6px 4px; border-top: 1px solid var(--linea); text-align: left; }
.paywall { text-align: center; padding: 24px 14px; }

/* ---- color por tipo de entrenamiento (transparentes sobre la superficie) ---- */
.t-fuerza        { --tono: rgba(154,174,190,.16); --tono-s: #9AAEBE; }
.t-aerobico      { --tono: rgba(240,90,90,.16);   --tono-s: #F05A5A; }
.t-metabolico    { --tono: rgba(242,107,33,.18);  --tono-s: #F26B21; }
.t-movilidad     { --tono: rgba(63,191,122,.16);  --tono-s: #3FBF7A; }
.t-regenerativo  { --tono: rgba(60,190,170,.16);  --tono-s: #3CBEAA; }
.t-activacion    { --tono: rgba(240,190,60,.16);  --tono-s: #F0BE3C; }
.t-transferencia { --tono: rgba(70,160,240,.16);  --tono-s: #46A0F0; }
.t-saltos        { --tono: rgba(90,200,250,.16);  --tono-s: #5AC8FA; }
.t-coordinacion  { --tono: rgba(212,170,110,.16); --tono-s: #D4AA6E; }
.t-core          { --tono: rgba(120,150,235,.16); --tono-s: #7896EB; }
.t-prevencion    { --tono: rgba(60,190,200,.16);  --tono-s: #3CBEC8; }
.bloque[class*="t-"] { background: color-mix(in srgb, var(--superficie) 55%, transparent); border-color: color-mix(in srgb, var(--linea) 70%, transparent); }
.bloque[class*="t-"] > button.cab, .bloque[class*="t-"] > .cab { background: color-mix(in srgb, var(--tono-s) 13%, transparent); box-shadow: inset 3px 0 0 var(--tono-s); }
.bloque.completo > button.cab { box-shadow: inset 3px 0 0 var(--cesped); }
.dia-card[class*="t-"] { background: color-mix(in srgb, var(--superficie) 55%, transparent); box-shadow: inset 3px 0 0 var(--tono-s); }
.dia-card[class*="t-"] h3 { display: inline-block; padding: 2px 8px; margin-left: -8px; border-radius: 6px; background: color-mix(in srgb, var(--tono-s) 14%, transparent); }
/* ---- miniatura de video + visor chico ---- */
.miniatura { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 0 10px 0 0; min-height: 44px; border: 1px solid var(--linea); border-radius: 10px; background: var(--superficie); color: var(--texto); }
.mini-img { position: relative; width: 72px; height: 44px; border-radius: 9px 0 0 9px; overflow: hidden; background: linear-gradient(135deg, var(--acero), var(--cabecera)); flex: none; display: block; }
.mini-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-img .play { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; }
.mini-txt { font-size: 14px; font-weight: 600; }
.visor { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; padding: 12px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.visor-caja { width: min(420px, 100%); background: var(--superficie); border: 1px solid var(--linea); border-radius: 16px; padding: 10px; display: grid; gap: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.visor-video { aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.visor-video iframe, .visor-video video { width: 100%; height: 100%; border: 0; display: block; }
.sin-embed { color: #fff; display: grid; place-items: center; height: 100%; padding: 10px; text-align: center; }


/* ---- sesiones guiadas ---- */
.sesion { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 6px 12px 6px 6px; min-height: 56px; border: 1px solid var(--linea); border-radius: 12px; background: color-mix(in srgb, var(--superficie) 60%, transparent); color: var(--texto); }
.sesion .mini-img { border-radius: 8px; } .mini-img.grande { width: 96px; height: 58px; }
.sesion-txt { display: grid; gap: 2px; } .sesion-txt small { color: var(--texto2); }
.sesion.grande { border-color: var(--pique); }

/* Botón rápido de tema (oscuro/claro) */
.tema-fab { position: fixed; top: calc(8px + env(safe-area-inset-top, 0px)); right: 8px; z-index: 40; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--linea); background: var(--superficie); color: var(--texto); font-size: 18px; line-height: 1; cursor: pointer; opacity: .85; }
.tema-fab:hover { opacity: 1; }
