/* bastadexcusas — "La equipación": móvil primero, se usa en el gym con las manos ocupadas.
   Cabecera y pestañas en negro camiseta; coral de equipación; fondo hueso (claro) o negro (oscuro).
   Texto en Archivo; todas las cifras en Big Shoulders Display (numeración de camiseta). */
@font-face { font-family: "Archivo"; src: url("fuentes/archivo.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url("fuentes/big-shoulders.woff2") format("woff2");
  font-weight: 500 900; font-display: swap; }

:root {
  color-scheme: light dark;
  /* segunda equipación (claro) */
  --fondo: #f3f0e8; --tarjeta: #fbfaf6; --hundido: #e9e4d8; --texto: #141414; --suave: #5b574f; --borde: #d6cfc0;
  --acento: #ff5b2e; --acento-texto: #141414; --tinta: #b8360f;
  --verde: #187a46; --amarillo: #a86f00; --rojo: #c42b22; --gris: #8a857b;
  --camiseta: #121212; --camiseta-2: #1f1e1c; --hueso: #f3f0e8;
  --radio: 8px;
  --pestanas: 0px;
  --franja: linear-gradient(to bottom, var(--acento) 0 3px, var(--hueso) 3px 5px, var(--acento) 5px 8px);
  --cifras: "Big Shoulders", "Archivo", system-ui, sans-serif;
  --i-volver: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E");
  --i-seguir: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
  --i-nota: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H10l-4 4v-4H4z'/%3E%3C/svg%3E");
  --i-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.5v15l12.5-7.5z'/%3E%3C/svg%3E");
  --i-objetivo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3C/svg%3E");
  --i-ajuste: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 7h10M18 7h2M4 17h4M12 17h8'/%3E%3Ccircle cx='16' cy='7' r='2'/%3E%3Ccircle cx='10' cy='17' r='2'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root {
    /* primera equipación (oscuro) */
    --fondo: #121212; --tarjeta: #1c1b19; --hundido: #0b0b0a; --texto: #f3f0e8; --suave: #a9a397; --borde: #34312c;
    --tinta: #ff8a63; --verde: #3ccf7f; --amarillo: #f2b72f; --rojo: #ff6a5c; --gris: #7b766d;
    --camiseta: #0b0b0a; --camiseta-2: #1c1b19;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--texto); accent-color: var(--acento); caret-color: var(--acento);
  font: 17px/1.5 "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--acento); color: #141414; }
main { max-width: 720px; margin: 0 auto; padding: 20px 16px 40px; }
body.con-pestanas { --pestanas: calc(66px + env(safe-area-inset-bottom)); }
body.con-pestanas main { padding-bottom: calc(var(--pestanas) + 32px); }

h1 { font-size: clamp(1.75rem, 6.4vw, 2.3rem); font-weight: 850; font-stretch: 115%; line-height: 1.05;
  letter-spacing: -.025em; margin: .2em 0 .55em; text-wrap: balance; }
h2 { font-size: 1.12rem; font-weight: 800; font-stretch: 110%; letter-spacing: -.01em; line-height: 1.2;
  margin: 1.7em 0 .55em; text-wrap: balance; }
.tarjeta > h2:first-child, .tarjeta > :first-child h2 { margin-top: 0; }
p { margin: .5em 0; }
a { color: var(--tinta); text-decoration-thickness: 1.5px; text-underline-offset: 3px; font-weight: 600; }
strong { font-weight: 750; }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; border-radius: 4px; }
* { scrollbar-color: var(--borde) transparent; }

/* cifras: numeración de camiseta, ancho fijo para que nada baile */
.cifra, .contador, .num-sesion, .descanso strong, .con-pasos input, .chip-rir, .nums input, .tabla-volumen td {
  font-variant-numeric: tabular-nums lining-nums; }
.cifra { font-family: var(--cifras); font-weight: 800; letter-spacing: .01em; }

/* ------------------------------------------------------------------ cabecera y pestañas */
.barra { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px 18px; padding-top: calc(10px + env(safe-area-inset-top)); background: var(--camiseta); color: var(--hueso); }
.barra::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--franja); }
.marca { display: inline-flex; align-items: baseline; gap: 10px; color: var(--hueso); text-decoration: none; }
.marca img { display: block; width: 72px; height: auto; align-self: center; }
.marca b { font-weight: 900; font-stretch: 125%; font-size: 1.55rem; letter-spacing: -.04em; line-height: 1; color: var(--hueso); }
.marca span { font-weight: 600; font-size: .82rem; letter-spacing: .02em; color: #b9b3a6; }
.barra .salir { margin: 0; }
.barra .enlace { color: #d8d2c4; font-weight: 600; font-size: .92rem; padding: 10px 4px; }
.en-linea { display: inline; margin: 0; }
.enlace { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--tinta); }

.pestanas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex;
  padding: 0 4px env(safe-area-inset-bottom); background: var(--camiseta); border-top: 1px solid #2a2825; }
.pestanas a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 66px; color: #a19b8f; text-decoration: none; font-size: .74rem; font-weight: 650; position: relative; }
.pestanas svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pestanas a[aria-current="page"] { color: var(--acento); }
.pestanas a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 4px;
  background: var(--acento); border-radius: 0 0 3px 3px; }
@media (min-width: 900px) {
  body.con-pestanas { --pestanas: 0px; }
  .pestanas { position: static; padding: 0; background: none; border: 0; gap: 4px; margin-left: auto; }
  .pestanas a { flex: none; flex-direction: row; min-height: 44px; padding: 0 12px; font-size: .95rem; color: #cfc9bb; }
  .pestanas svg { width: 20px; height: 20px; }
  .pestanas a[aria-current="page"]::before { top: auto; bottom: -14px; left: 12px; right: 12px; height: 4px; border-radius: 3px 3px 0 0; }
}

/* ------------------------------------------------------------------ piezas */
.tarjeta { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); padding: 18px 16px; margin: 14px 0; }
.aviso { background: color-mix(in srgb, var(--acento) 13%, var(--tarjeta)); color: var(--texto); padding: 12px 14px;
  border-radius: var(--radio); margin: 12px 0; }
.aviso.nota, .aviso.objetivo { display: flex; gap: 10px; align-items: flex-start; }
.aviso.nota::before, .aviso.objetivo::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px;
  background: var(--tinta); -webkit-mask: var(--i-nota) center / contain no-repeat; mask: var(--i-nota) center / contain no-repeat; }
.aviso.objetivo::before { -webkit-mask-image: var(--i-objetivo); mask-image: var(--i-objetivo); }
.error { color: var(--rojo); font-weight: 700; }
.suave { color: var(--suave); font-size: .92rem; }
.volver { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; text-decoration: none; font-weight: 700; color: var(--texto); }
.volver::before { content: ""; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--i-volver) center / contain no-repeat; mask: var(--i-volver) center / contain no-repeat; }
main > p:first-child:has(.volver) { margin: -8px 0 0; }
.seguir::after { content: ""; display: inline-block; width: 15px; height: 15px; margin-left: 4px; vertical-align: -2px; background: currentColor;
  -webkit-mask: var(--i-seguir) center / contain no-repeat; mask: var(--i-seguir) center / contain no-repeat; }

label { display: block; font-weight: 700; margin: 16px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], textarea, select {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; color: var(--texto); background: var(--tarjeta);
  border: 2px solid var(--borde); border-radius: var(--radio); transition: border-color .15s ease; }
input:hover, textarea:hover, select:hover { border-color: var(--gris); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acento) 30%, transparent); }
input::placeholder, textarea::placeholder { color: var(--suave); opacity: 1; }
textarea { min-height: 100px; resize: vertical; }

.boton { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; margin-top: 18px;
  padding: 12px 18px; border: 2px solid var(--acento); border-radius: var(--radio); background: var(--acento); color: var(--acento-texto);
  font: inherit; font-weight: 800; font-stretch: 108%; letter-spacing: .005em; text-align: center; text-decoration: none; cursor: pointer;
  transition: transform .12s cubic-bezier(.2, .8, .2, 1), background-color .15s ease, border-color .15s ease; }
.boton:hover { background: color-mix(in srgb, var(--acento) 88%, #000); border-color: color-mix(in srgb, var(--acento) 88%, #000); }
.boton:active { transform: scale(.98); }
.boton:disabled { opacity: .55; cursor: progress; }
.boton.secundario { background: transparent; color: var(--texto); border-color: var(--texto); }
.boton.secundario:hover { background: color-mix(in srgb, var(--texto) 8%, transparent); }
/* lo que no tiene vuelta atrás: en contorno y con aire alrededor */
.boton.peligro { background: transparent; color: var(--rojo); border: 2px solid currentColor; }
.boton.peligro:hover { background: color-mix(in srgb, var(--rojo) 10%, transparent); }
main > form:has(> .boton.peligro:only-of-type) { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--borde); }
.fila-botones { display: flex; gap: 10px; flex-wrap: wrap; }
.fila-botones > .boton, .fila-botones > form { flex: 1 1 200px; }
.fila-botones > form .boton { width: 100%; }
.fila-botones > form:has(.peligro) { flex: 0 1 auto; margin-left: auto; }
.fila-botones > form:has(.peligro) .boton { padding: 12px 20px; }
.boton.ico-play::before { content: ""; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--i-play) center / contain no-repeat; mask: var(--i-play) center / contain no-repeat; }

.pregunta { padding: 16px 0; border-bottom: 1px solid var(--borde); }
.si-no { display: flex; gap: 10px; margin-top: 10px; }
.si-no label, .segmentos label { position: relative; flex: 1; margin: 0; font-weight: 800; text-align: center; padding: 12px;
  min-height: 50px; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--borde); border-radius: var(--radio); cursor: pointer; background: var(--tarjeta); }
.si-no input, .segmentos input { position: absolute; opacity: 0; pointer-events: none; }
.si-no label:has(input:checked), .segmentos label:has(input:checked), .chip:has(input:checked) {
  background: var(--acento); color: #141414; border-color: var(--acento); }
.si-no label:has(input:focus-visible), .segmentos label:has(input:focus-visible) { outline: 3px solid var(--acento); outline-offset: 2px; }
.casilla { display: flex; gap: 12px; align-items: flex-start; font-weight: 550; }
.casilla input { width: 24px; height: 24px; margin-top: 1px; flex: none; }
.legal { white-space: pre-line; font-size: .9rem; color: var(--suave); max-height: 220px; overflow-y: auto;
  border-radius: var(--radio); padding: 12px 14px; background: var(--hundido); }

/* ------------------------------------------------------------------ entrenador */
.lista-alumnos { list-style: none; padding: 0; }
.lista-alumnos.tarjeta { padding: 0 16px; }
.lista-alumnos li + li { border-top: 1px solid var(--borde); }
.lista-alumnos li a { display: flex; align-items: center; gap: 14px; padding: 15px 0; color: var(--texto); text-decoration: none; font-weight: 500; }
.lista-alumnos li a strong { font-size: 1.05rem; }
.lista-alumnos li a::after { content: ""; flex: none; margin-left: auto; width: 16px; height: 16px; background: var(--gris);
  -webkit-mask: var(--i-seguir) center / contain no-repeat; mask: var(--i-seguir) center / contain no-repeat; }
.punto { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.punto.verde { background: var(--verde); } .punto.amarillo { background: var(--amarillo); }
.punto.rojo { background: var(--rojo); } .punto.gris { background: var(--gris); }
.estado { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.enlace-copiar { word-break: break-all; font-size: .88rem; background: var(--hundido); padding: 10px 12px; border-radius: var(--radio);
  user-select: all; }
.respuesta-si { color: var(--rojo); font-weight: 800; }

/* ------------------------------------------------------------------ biblioteca */
.rejilla-filtros { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.lista-ejercicios { list-style: none; padding: 0; margin: 0; }
.lista-ejercicios li a { display: block; padding: 13px 2px; border-bottom: 1px solid var(--borde); color: var(--texto); text-decoration: none; font-weight: 500; }
.nombre-ej { display: block; font-weight: 700; }
.etiquetas { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }
.etiqueta { display: inline-flex; align-items: center; font-size: .76rem; font-weight: 700; padding: 2px 8px; border-radius: 4px;
  border: 1.5px solid var(--borde); color: var(--suave); line-height: 1.4; }
/* parches A/B/C: el principal pesa más */
.etiqueta.tipo-A { background: var(--camiseta); color: var(--acento); border-color: var(--camiseta); font-family: var(--cifras); font-size: .95rem; padding: 0 9px; }
@media (prefers-color-scheme: dark) { .etiqueta.tipo-A { background: var(--acento); color: #141414; border-color: var(--acento); } }
.etiqueta.tipo-B { border-color: var(--texto); color: var(--texto); font-family: var(--cifras); font-size: .95rem; padding: 0 9px; }
.etiqueta.tipo-C { font-family: var(--cifras); font-size: .95rem; padding: 0 9px; }
.etiqueta.conf-baja { border-color: var(--rojo); color: var(--rojo); }
.etiqueta.conf-media { border-color: var(--amarillo); color: var(--amarillo); }
fieldset { border: 0; border-top: 1px solid var(--borde); margin: 20px 0 0; padding: 12px 0 0; }
legend { font-weight: 800; padding: 0 8px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; font-size: .92rem; min-height: 42px;
  padding: 6px 12px; border: 2px solid var(--borde); border-radius: 999px; cursor: pointer; }
.chip input { margin: 0; }
.datos-ficha p { margin: .4em 0; }

/* ------------------------------------------------------------------ perfil */
.opciones { display: grid; gap: 8px; }
.opcion { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-weight: 550; padding: 13px 14px;
  border: 2px solid var(--borde); border-radius: var(--radio); cursor: pointer; background: var(--tarjeta); }
.opcion:has(input:checked) { border-color: var(--acento); background: color-mix(in srgb, var(--acento) 9%, var(--tarjeta)); }
.opcion input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
.segmentos { display: flex; gap: 6px; flex-wrap: wrap; }
.segmentos label { flex: 1 0 48px; padding: 10px 0; font-family: var(--cifras); font-size: 1.35rem; }
details summary { cursor: pointer; margin: 12px 0 8px; font-weight: 700; }
.fila-molestia { display: grid; grid-template-columns: 1fr 120px; gap: 6px 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--borde); }
.fila-molestia label { margin: 0; }
.fila-molestia input { grid-column: 1 / -1; }
.resumen-perfil { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.resumen-perfil dt { color: var(--suave); }
.resumen-perfil dd { margin: 0; font-weight: 700; }

/* ------------------------------------------------------------------ rutinas */
.aviso-lista { background: color-mix(in srgb, var(--amarillo) 14%, var(--tarjeta)); border-color: color-mix(in srgb, var(--amarillo) 40%, var(--borde)); }
.aviso-lista ul { margin: 0; padding-left: 18px; }
.tabla-volumen { width: 100%; border-collapse: collapse; margin-top: 8px; }
.tabla-volumen th, .tabla-volumen td { text-align: left; padding: 7px 4px; border-bottom: 1px solid var(--borde); }
.tabla-volumen th { font-size: .82rem; color: var(--suave); font-weight: 700; }
.tabla-volumen td:nth-child(2), .tabla-volumen td:nth-child(3), .tabla-volumen th:nth-child(2),
.tabla-volumen th:nth-child(3) { text-align: right; }
.tabla-volumen td:nth-child(2), .tabla-volumen td:nth-child(3) { font-family: var(--cifras); font-weight: 800; font-size: 1.15rem; }
.fila-rutina { padding: 14px 0; border-bottom: 1px solid var(--borde); }
.cab-ej { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.nums { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.nums label { margin: 0; font-size: .8rem; font-weight: 700; color: var(--suave); display: flex; flex-direction: column; gap: 4px; }
.nums input { width: 62px; min-height: 46px; padding: 6px; text-align: center; font-family: var(--cifras); font-weight: 800; font-size: 1.3rem; }
.par { display: flex; align-items: center; gap: 4px; }
.fila-rutina input[type=text] { margin-top: 6px; }
.acciones-ej { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.boton.pequeno { width: auto; min-height: 44px; margin-top: 0; padding: 8px 14px; font-size: .92rem; }
.enlace-anadir { display: inline-block; margin-top: 12px; font-weight: 700; }
.cardio { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--borde); }
.opcion-cambio { margin: 0; }
.enlace-fila { display: block; width: 100%; min-height: 48px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--borde);
  padding: 12px 2px; font: inherit; font-weight: 600; color: var(--texto); cursor: pointer; }

/* tu semana: cada sesión con su dorsal */
.lista-sesiones { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.lista-sesiones li a { display: flex; gap: 16px; align-items: center; padding: 10px 14px 10px 10px; background: var(--tarjeta);
  border: 1px solid var(--borde); border-radius: var(--radio); color: var(--texto); text-decoration: none; font-weight: 500;
  transition: border-color .15s ease, transform .12s cubic-bezier(.2, .8, .2, 1); }
.lista-sesiones li a:hover { border-color: var(--texto); }
.lista-sesiones li a:active { transform: scale(.99); }
.lista-sesiones strong { font-size: 1.08rem; font-stretch: 108%; }
.num-sesion { position: relative; flex: none; width: 58px; height: 66px; border-radius: 6px; background: var(--camiseta); color: var(--acento);
  display: grid; place-items: center; font-family: var(--cifras); font-weight: 900; font-size: 2.6rem; line-height: 1; overflow: hidden;
  padding-bottom: 6px; }
.num-sesion::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--franja); }
.ej-alumno { padding: 12px 0; border-bottom: 1px solid var(--borde); }
.ej-alumno:last-of-type { border-bottom: 0; }
.ej-alumno p { margin: 4px 0 0; }
.ej-alumno .cifra { font-size: 1.35rem; }

/* ------------------------------------------------------------------ registro en el gym */
.cab-entreno { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cab-entreno h1 { margin-bottom: .3em; }
#estado-red:empty { display: none; }
.ej-registro { padding: 0; overflow: hidden; transition: border-color .15s ease; }
.ej-registro > :not(.cab-tarjeta) { margin-left: 16px; margin-right: 16px; }
.ej-registro > :last-child { margin-bottom: 16px; }
.ej-registro.abierto { border: 2px solid var(--texto); }
.cab-tarjeta { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 14px 16px; background: none; border: 0;
  font: inherit; color: var(--texto); text-align: left; cursor: pointer; }
.cab-tarjeta .nombre-ej { flex: 1; line-height: 1.2; }
.ej-registro.tipo-A .nombre-ej { font-size: 1.22rem; font-weight: 850; font-stretch: 110%; }
.ej-registro.tipo-B .nombre-ej { font-size: 1.08rem; font-weight: 750; }
.ej-registro.tipo-C .nombre-ej { font-size: 1rem; font-weight: 650; }
.cab-tarjeta.completo .nombre-ej { color: var(--suave); }
/* marcas de serie: contorno pendiente, relleno hecha */
.marcas { display: flex; gap: 4px; flex: none; }
.marca-serie { width: 7px; height: 20px; border: 2px solid var(--gris); border-radius: 2px; transform: skewX(-14deg); }
.marca-serie.hecha { background: var(--acento); border-color: var(--acento); }
.contador { font-family: var(--cifras); font-weight: 900; font-size: 1.5rem; line-height: 1; color: var(--texto); min-width: 2.2ch; text-align: right; }
.completo .contador { color: var(--verde); }
.plan-hoy { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 6px; }
.plan-hoy .cifra { font-size: 2.1rem; line-height: 1; }
.serie-hecha { display: flex; align-items: center; gap: 10px; width: calc(100% - 32px); text-align: left; margin: 6px 0; padding: 10px 12px; font: inherit;
  background: var(--hundido); color: var(--texto); border: 0; border-radius: var(--radio); cursor: pointer; }
.serie-hecha .marca-serie { flex: none; }
.serie-hecha .cifra { font-size: 1.45rem; line-height: 1; }
.serie-hecha .suave { margin-left: auto; white-space: nowrap; }
.serie-hecha .unidad { font-size: .8rem; color: var(--suave); }
.serie-nueva { border-top: 1px solid var(--borde); padding-top: 14px; margin-top: 12px; margin-bottom: 8px; }
.fila-kg-reps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.campo span { font-size: .85rem; font-weight: 700; color: var(--suave); }
.con-pasos { display: flex; align-items: stretch; margin-top: 4px; border: 2px solid var(--texto); border-radius: var(--radio); overflow: hidden;
  background: var(--tarjeta); }
.con-pasos:focus-within { border-color: var(--acento); }
.con-pasos input { width: 100%; min-width: 0; min-height: 76px; text-align: center; padding: 4px 0 0; border: 0; border-radius: 0; background: none;
  font-family: var(--cifras); font-weight: 800; font-size: 2.9rem; line-height: 1; }
.con-pasos input:focus { box-shadow: none; }
.con-pasos input::placeholder { font-size: 1.5rem; color: var(--gris); }
.paso { width: 46px; flex: none; font: 800 1.7rem/1 var(--cifras); background: var(--hundido); color: var(--texto); border: 0; cursor: pointer;
  touch-action: manipulation; }
.paso:active { background: var(--acento); color: #141414; }
.etq { display: block; margin: 16px 0 6px; font-size: .85rem; font-weight: 700; color: var(--suave); }
.chips-rir { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.chips-rir.vel { grid-template-columns: repeat(3, 1fr); }
.chip-rir { min-height: 52px; padding: 6px 0; font: 800 1.55rem/1 var(--cifras); background: var(--tarjeta); color: var(--texto);
  border: 2px solid var(--borde); border-radius: var(--radio); cursor: pointer; touch-action: manipulation; }
.chips-rir.vel .chip-rir { font: 700 .98rem/1 "Archivo", system-ui, sans-serif; }
.chip-rir.sel { background: var(--acento); color: #141414; border-color: var(--acento); }
.alternativas { margin-bottom: 12px; }
.sugerencia { padding: 12px 14px; border-radius: var(--radio); background: color-mix(in srgb, var(--acento) 12%, var(--tarjeta)); }
.sugerencia.accion-subir { background: color-mix(in srgb, var(--verde) 15%, var(--tarjeta)); }
.sugerencia.accion-bajar { background: color-mix(in srgb, var(--amarillo) 17%, var(--tarjeta)); }
.salto { margin: 4px 0 8px; }
.salto summary { display: inline-flex; align-items: center; gap: 6px; }
.salto summary::before { content: ""; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--i-ajuste) center / contain no-repeat; mask: var(--i-ajuste) center / contain no-repeat; }
.salto select { margin-top: 6px; }
.entreno-hist summary { margin: 0; }

/* descanso: la franja de manga que se vacía */
.descanso { position: fixed; left: 0; right: 0; bottom: var(--pestanas); z-index: 15; display: flex; justify-content: space-between;
  align-items: center; gap: 10px; padding: 18px 16px 12px; background: var(--camiseta); color: var(--hueso);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .28); --resto: 1; }
body:not(.con-pestanas) .descanso { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.descanso::before { content: ""; position: absolute; left: 0; top: 0; height: 8px; width: 100%;
  background: var(--franja); transform: scaleX(var(--resto)); transform-origin: left; transition: transform .25s linear; }
.descanso .suave { color: #b9b3a6; }
.descanso strong { display: block; font: 900 3rem/0.9 var(--cifras); color: var(--acento); }
.descanso.listo { background: var(--acento); color: #141414; }
.descanso.listo strong { color: #141414; font-size: 1.9rem; font-family: "Archivo", sans-serif; font-stretch: 112%; }
.descanso.listo .suave { color: #3a1a0e; }
.descanso-botones { display: flex; gap: 6px; }
.descanso-botones button { min-height: 48px; min-width: 56px; padding: 8px 10px; font: 800 1.1rem/1 var(--cifras); color: var(--hueso);
  background: #2a2825; border: 0; border-radius: var(--radio); cursor: pointer; }
.descanso-botones button[data-d="fin"] { font: 700 .95rem/1 "Archivo", sans-serif; }
.descanso.listo .descanso-botones button { background: #141414; }
main:has(#descanso:not([hidden])) { padding-bottom: calc(var(--pestanas) + 130px); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ------------------------------------------------------------------ inscripción por pasos */
.progreso { position: sticky; top: 0; z-index: 5; background: var(--fondo); padding: 10px 0 8px; }
.progreso::before { content: ""; display: block; height: 8px; border-radius: 2px; background: var(--hundido); }
.progreso-barra { height: 8px; margin-top: -8px; border-radius: 2px; background: var(--franja); transform-origin: left; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.progreso span { display: block; margin-top: 6px; font-weight: 700; }
.navegacion-pasos { display: flex; gap: 10px; }
.navegacion-pasos .boton { flex: 1; }

/* ------------------------------------------------------------------ entrar */
body:has(.portada) .barra { display: none; }
.portada { margin: -20px -16px 8px; padding: calc(30px + env(safe-area-inset-top)) 16px 30px; background: var(--camiseta); color: var(--hueso); position: relative; }
.portada::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--franja); }
.portada .logo { display: block; width: 150px; height: auto; margin: 0 0 26px; }
.portada h1 { font-size: clamp(2.3rem, 11vw, 3.6rem); font-weight: 900; font-stretch: 125%; letter-spacing: -.04em; line-height: .95; margin: 0 0 .3em; }
.portada h1 em { font-style: normal; color: var(--acento); }
.portada p { color: #cfc9bb; margin: 0; max-width: 34ch; }

/* etapa del alumno en "Hoy" */
.etapa { margin: 0 0 4px; padding: 12px 14px; border-radius: var(--radio); background: var(--camiseta); color: var(--hueso); }
.etapa strong { color: var(--acento); }
