/* Rutinas y progreso · demo de infoweb.mx («Fuerza Base Entrenamiento»)
   Paleta: carbón #141414 · grafito #1E1E1D · hule #2A2A28 · tiza #F4F4F1 · gris tiza #A8A8A1 · naranja señal #FF5B14
   Tipos: Big Shoulders Display (títulos y números grandes, condensada) · Barlow (texto)
   Firma: los discos de pesas. Las series son discos que se cargan y el descanso es un disco cuyo anillo se cierra. */

[hidden] { display: none !important; }

:root {
  --carbon: #141414;
  --grafito: #1E1E1D;
  --hule: #2A2A28;
  --linea: #3A3A37;
  --tiza: #F4F4F1;
  --gris: #A8A8A1;
  --naranja: #FF5B14;
  --naranja-2: #FF7A3D;
  --naranja-osc: #C2410C;
  --verde-ok: #7FD48A;
  --rojo: #FF6B6B;
  --cab: 116px;
  --radio: 14px;
  --f-disp: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --f-txt: 'Barlow', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--cab) + .5rem); background: var(--carbon); }
body {
  margin: 0; background: var(--carbon); color: var(--tiza);
  font-family: var(--f-txt); font-size: 1.02rem; line-height: 1.5;
  padding-bottom: calc(70px + env(safe-area-inset-bottom));
}
body.con-capa, body.en-entreno { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--naranja-2); }
h1, h2, h3 { font-family: var(--f-disp); line-height: 1; margin: 0 0 .35em; letter-spacing: .005em; text-transform: uppercase; }
h1 { font-size: clamp(2.3rem, 9vw, 3.4rem); font-weight: 900; }
h2 { font-size: 1.65rem; font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 800; margin-top: 1.3rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -999px; top: 0; background: var(--naranja); color: var(--carbon); padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.saltar:focus { left: .5rem; }
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 3px; }
.ojo { font-family: var(--f-disp); text-transform: uppercase; letter-spacing: .12em; font-size: .86rem; font-weight: 800; color: var(--gris); margin: 0 0 .3rem; }
.lema { color: var(--gris); margin: 0 0 .8rem; max-width: 62ch; }
.lema strong { color: var(--tiza); }
.vacio { color: var(--gris); font-style: italic; margin: .4rem 0; }
.ayuda { color: var(--gris); font-size: .9rem; margin: .5rem 0; }
.link { background: none; border: 0; padding: .3rem 0; min-height: 44px; color: var(--tiza); text-decoration: underline; font-weight: 600; cursor: pointer; }
.sin-js { padding: 2rem 1rem; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px;
  padding: .7rem 1.2rem; border-radius: 12px; border: 2px solid var(--naranja); background: var(--naranja); color: var(--carbon);
  font-family: var(--f-disp); font-weight: 800; font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: transform .12s, background .2s;
}
.btn:hover { background: var(--naranja-2); border-color: var(--naranja-2); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .35; cursor: default; transform: none; }
.btn svg { width: 22px; height: 22px; }
.btn-sec { background: transparent; color: var(--tiza); border-color: var(--linea); }
.btn-sec:hover { background: var(--hule); border-color: var(--gris); }
.btn-mini { min-height: 44px; padding: .45rem .9rem; font-size: 1rem; }
.btn-grande { width: 100%; min-height: 64px; font-size: 1.55rem; border-radius: 16px; margin-top: .4rem; }
.btn-grande svg { width: 26px; height: 26px; }
.btn-ancho { width: 100%; margin: 0 0 1rem; }
.fila-bot { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 .4rem; }
.btn-icono { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--linea); background: var(--grafito); color: var(--tiza); display: grid; place-items: center; cursor: pointer; }
.btn-icono svg { width: 22px; height: 22px; }
.btn-icono[aria-pressed="true"] .ico-off, .btn-icono[aria-pressed="false"] .ico-on { display: none; }

/* ---------- cabecera ---------- */
.demo-banner { background: #2b2620; color: #f2ece1; text-align: center; font-size: .8rem; line-height: 1.35; padding: .32rem .8rem; letter-spacing: .01em; }
@media (min-width: 640px) { .demo-banner { font-size: .88rem; } }
.cab { position: sticky; top: 0; z-index: 30; background: rgba(20, 20, 20, .96); border-bottom: 1px solid var(--hule); backdrop-filter: blur(6px); }
.cab-barra { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .6rem; padding: .5rem 1rem .55rem; }
.marca { display: flex; align-items: center; gap: .55rem; color: var(--tiza); text-decoration: none; margin-right: auto; }
.marca-ico { width: 34px; height: 34px; }
.marca-txt { display: flex; flex-direction: column; line-height: 1; }
.marca-txt strong { font-family: var(--f-disp); font-weight: 900; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; }
.marca-txt small { color: var(--gris); font-size: .78rem; }
.cab-acciones { display: flex; gap: .4rem; }
.rol { order: 0; flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; background: var(--grafito); border: 1px solid var(--hule); border-radius: 12px; padding: 3px; }
.rol button { border: 0; background: none; color: var(--gris); padding: .4rem .2rem; min-height: 44px; border-radius: 9px; font-family: var(--f-disp); font-weight: 800; font-size: clamp(.86rem, 3.6vw, 1.08rem); white-space: nowrap; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.rol button[aria-pressed="true"] { background: var(--tiza); color: var(--carbon); }
@media (max-height: 520px) and (orientation: landscape) { .cab { position: static; } }
@media (max-width: 759px) {
  .marca { margin-right: 0; }
  .marca-txt { display: none; }
  .cab-barra { flex-wrap: nowrap; padding: .45rem .75rem; gap: .4rem; }
  .cab-acciones { gap: .3rem; }
  .cab-acciones .btn-icono { width: 44px; }
  :root { --cab: 86px; }
}
@media (min-width: 760px) {
  .rol { flex: 0 0 auto; display: flex; }
  .rol button { padding: .4rem 1rem; }
}

/* ---------- estructura ---------- */
.app { max-width: 1100px; margin: 0 auto; padding: 1rem 1rem 1.2rem; min-height: 60vh; }
.app:focus { outline: none; }
.intro { margin: .6rem 0 1.1rem; }
.tarjeta { background: var(--grafito); border: 1px solid var(--hule); border-radius: var(--radio); padding: 1.1rem 1rem; margin: 0 0 1rem; }
.tarjeta > h2 { margin-bottom: .7rem; }
.hoy, .progreso, .calendario, .ficha { max-width: 760px; margin: 0 auto; }
.hoy-cab { display: flex; justify-content: flex-end; margin-bottom: .6rem; }
.ver-como { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--gris); max-width: 100%; }
.ver-como select, .arm-ctrl select, .comp-sel select, #arm-g {
  background: var(--grafito); border: 1px solid var(--linea); border-radius: 10px; color: var(--tiza);
  padding: .5rem .6rem; min-height: 44px; max-width: 100%; min-width: 0;
}
.ver-como select { max-width: 230px; }

/* ---------- saludo / hoy ---------- */
.saludo { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.saludo-foto { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; border: 3px solid var(--naranja); }
.saludo h1 { margin: 0 0 .1rem; font-size: clamp(2.4rem, 11vw, 3.6rem); }
.saludo-obj { margin: 0; color: var(--gris); font-size: .95rem; }
.racha-mini { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1; }
.racha-mini strong { font-family: var(--f-disp); font-weight: 900; font-size: 2.6rem; color: var(--naranja); }
.racha-mini span { font-size: .72rem; color: var(--gris); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
@media (max-width: 400px) { .saludo { grid-template-columns: auto 1fr; } .racha-mini { display: none; } }

.toca { background: linear-gradient(160deg, #262624, #1A1A19); border: 1px solid var(--linea); border-radius: 18px; padding: 1.1rem 1rem 1rem; margin-bottom: 1rem; position: relative; overflow: hidden; }
.toca::after { content: ''; position: absolute; right: -60px; top: -60px; width: 190px; height: 190px; border-radius: 50%;
  border: 22px solid rgba(255, 91, 20, .14); box-shadow: inset 0 0 0 30px rgba(255, 91, 20, .05); pointer-events: none; }
.toca-n { font-size: clamp(2.2rem, 10vw, 3.3rem); font-weight: 900; margin-bottom: .5rem; color: var(--tiza); position: relative; z-index: 1; }
.toca-datos { display: flex; gap: 1.1rem; margin: 0 0 .8rem; color: var(--gris); position: relative; z-index: 1; }
.toca-datos strong { font-family: var(--f-disp); font-size: 1.6rem; color: var(--tiza); font-weight: 800; margin-right: .2rem; }
.toca-listo { color: var(--verde-ok); font-weight: 600; margin: 0 0 .4rem; }
.toca .btn { position: relative; z-index: 1; }

.rut-lista { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.rut-it { width: 100%; display: grid; grid-template-columns: 64px 1fr auto; gap: .8rem; align-items: center; text-align: left;
  background: var(--grafito); border: 1px solid var(--hule); border-radius: 14px; padding: .5rem .8rem .5rem .5rem; cursor: pointer; color: var(--tiza); }
.rut-it:hover { border-color: var(--linea); }
.rut-it img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.rut-txt { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.rut-txt strong { font-family: var(--f-disp); font-size: 1.3rem; font-weight: 800; text-transform: uppercase; line-height: 1.05; }
.rut-txt span { color: var(--gris); font-size: .92rem; }
.rut-txt small { color: var(--gris); font-size: .82rem; }
.chip-marca { font-style: normal; font-size: .82rem; font-weight: 700; color: var(--naranja-2); }
.rut-n { font-family: var(--f-disp); font-size: 1.8rem; font-weight: 900; color: var(--gris); }

.descanso h2 { font-size: 2rem; }
@media (min-width: 980px) {
  .hoy { max-width: 1100px; }
  .hoy-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
  .hoy-der { position: sticky; top: calc(var(--cab) + .6rem); }
  .hoy-der .tarjeta-fig .figura { max-width: 300px; }
  .saludo, .hoy-cab { max-width: 1100px; }
}

/* ---------- figura ---------- */
.tarjeta-fig { overflow: hidden; }
.fig-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; }
.fig-cab h2 { margin-bottom: .6rem; }
.figura { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; max-width: 380px; margin: 0 auto; }
.fig-lado { margin: 0; text-align: center; }
.fig-lado svg { width: 100%; height: auto; max-height: 340px; overflow: visible; }
.fig-lado figcaption { font-family: var(--f-disp); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--gris); font-weight: 700; }
.sil { fill: #30302D; stroke: #30302D; stroke-linecap: round; }
.mus { fill: rgb(72, 72, 67); stroke: var(--carbon); stroke-width: 1.5; transition: fill .55s ease; }
.mus.on { filter: drop-shadow(0 0 5px rgba(255, 91, 20, .85)); }
.mus.pulso { animation: pulso .9s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes pulso { 0% { transform: scale(1); } 30% { transform: scale(1.14); filter: drop-shadow(0 0 12px rgba(255, 140, 70, 1)) brightness(1.35); } 100% { transform: scale(1); } }
.fig-lista { text-align: center; color: var(--tiza); font-weight: 600; margin: .6rem 0 0; }
.fig-nota { margin: .7rem 0 0; color: var(--gris); text-align: center; }
.fig-nota.alerta { color: var(--tiza); }
.fig-nota.alerta::before { content: ''; display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--naranja); margin-right: .45rem; vertical-align: .05em; }
.escala { display: flex; align-items: center; gap: .5rem; justify-content: center; font-size: .78rem; color: var(--gris); margin-top: .4rem; }
.escala i { width: 120px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgb(72, 72, 67), var(--naranja)); }
@media (min-width: 700px) { .fig-hoy, .fig-semana { max-width: 420px; } }

/* ---------- guía ---------- */
.guia { background: var(--tiza); color: var(--carbon); border-radius: 14px; padding: .8rem .9rem; margin: 0 0 1rem; position: relative; box-shadow: 0 0 0 3px rgba(255, 91, 20, .55); }
.guia p { margin: .2rem 0 .5rem; }
.guia-n { font-family: var(--f-disp); font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--naranja-osc); }
.guia-bot { display: flex; align-items: center; gap: 1rem; }
.guia .link { color: var(--carbon); }
.guia .btn { min-height: 44px; }
.toca .guia { z-index: 1; margin-top: .2rem; }

/* ---------- chips, kpis ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; margin-right: -1rem; padding-right: 1rem; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--linea); background: transparent; color: var(--tiza); border-radius: 999px; padding: .45rem .9rem; min-height: 44px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--tiza); color: var(--carbon); border-color: var(--tiza); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0 0 1rem; }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { background: var(--grafito); border: 1px solid var(--hule); border-radius: 12px; padding: .7rem .8rem; display: flex; flex-direction: column; }
.kpi strong { font-family: var(--f-disp); font-weight: 900; font-size: 2.4rem; line-height: 1; color: var(--tiza); }
.kpi span { color: var(--gris); font-size: .85rem; }

/* ---------- gráfica ---------- */
.frase-graf { font-family: var(--f-disp); font-weight: 800; font-size: clamp(1.6rem, 7vw, 2.2rem); line-height: 1.05; text-transform: uppercase; margin: 0 0 .8rem; }
.graf { width: 100%; height: auto; display: block; }
.g-guia { stroke: var(--hule); stroke-width: 1; }
.g-eje { fill: var(--gris); font-size: 11px; font-family: var(--f-txt); }
.g-area { fill: rgba(255, 91, 20, .12); }
.g-linea { fill: none; stroke: var(--naranja); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.g-linea.dibuja { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dibuja 1.1s ease-out forwards; }
@keyframes dibuja { to { stroke-dashoffset: 0; } }
.g-pt { fill: var(--carbon); stroke: var(--naranja); stroke-width: 1.6; }
.g-ult { fill: var(--naranja); stroke: var(--tiza); stroke-width: 2; }
.g-val { fill: var(--tiza); font-family: var(--f-disp); font-weight: 800; font-size: 17px; }

/* ---------- muro de marcas ---------- */
.muro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
@media (min-width: 640px) { .muro { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pr-card { position: relative; text-align: left; display: flex; flex-direction: column; gap: .15rem; background: var(--carbon); border: 1px solid var(--hule); border-radius: 12px; padding: .7rem .75rem; color: var(--tiza); cursor: pointer; min-height: 104px; }
.pr-card:hover { border-color: var(--linea); }
.pr-v { font-family: var(--f-disp); font-weight: 900; font-size: 1.75rem; line-height: 1; }
.pr-n { font-weight: 600; font-size: .9rem; line-height: 1.2; }
.pr-card small { color: var(--gris); font-size: .78rem; margin-top: auto; }
.pr-card.nueva { border-color: var(--naranja); }
.pr-card em { align-self: flex-start; margin-bottom: .2rem; font-style: normal; font-family: var(--f-disp); font-weight: 800; text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; background: var(--naranja); color: var(--carbon); padding: .05rem .4rem; border-radius: 6px; }

/* ---------- medidas ---------- */
.medidas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.medida { background: var(--carbon); border: 1px solid var(--hule); border-radius: 12px; padding: .6rem .65rem; display: flex; flex-direction: column; gap: .1rem; }
.medida-n { color: var(--gris); font-size: .82rem; }
.medida strong { font-family: var(--f-disp); font-size: 1.8rem; font-weight: 900; line-height: 1; }
.medida strong small { font-size: .9rem; color: var(--gris); }
.medida-dif { font-size: .76rem; color: var(--gris); }
.chispa { width: 100%; height: 26px; margin-top: .3rem; }
.chispa path { fill: none; stroke: var(--naranja); stroke-width: 2; stroke-linejoin: round; }

/* ---------- antes y después ---------- */
.interruptor { display: flex; align-items: center; gap: .7rem; margin: 0 0 .9rem; cursor: pointer; min-height: 44px; }
.interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.int-pista { width: 50px; height: 28px; border-radius: 14px; background: var(--linea); position: relative; flex: none; transition: background .2s; }
.int-pista::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--tiza); transition: transform .2s; }
.interruptor input:checked + .int-pista { background: var(--naranja); }
.interruptor input:checked + .int-pista::after { transform: translateX(22px); }
.interruptor input:focus-visible + .int-pista { outline: 3px solid var(--naranja); outline-offset: 3px; }
.comp-sel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; margin-bottom: .6rem; }
.comp-sel label { display: flex; flex-direction: column; gap: .2rem; font-size: .82rem; color: var(--gris); }
.comp-sel select { width: 100%; }
.comp { position: relative; max-width: 340px; margin: 0 auto; aspect-ratio: 560 / 1140; border-radius: 14px; overflow: hidden; background: #222; }
.comp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.comp-a { clip-path: inset(0 calc(100% - var(--corte)) 0 0); }
.comp-linea { position: absolute; top: 0; bottom: 0; left: var(--corte); width: 3px; margin-left: -1.5px; background: var(--naranja); pointer-events: none; }
.comp-linea::after { content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%;
  background: var(--naranja); color: var(--carbon); display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; letter-spacing: .1em; }
.comp-rango { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.comp-et { position: absolute; top: .6rem; font-family: var(--f-disp); font-weight: 800; text-transform: uppercase; font-size: .85rem; letter-spacing: .06em; background: rgba(20, 20, 20, .8); padding: .15rem .45rem; border-radius: 6px; pointer-events: none; }
.comp-et-a { left: .6rem; }
.comp-et-b { right: .6rem; }
.candado { display: flex; gap: .8rem; align-items: center; background: var(--carbon); border: 1px dashed var(--linea); border-radius: 12px; padding: .9rem; }
.candado svg { width: 34px; height: 34px; flex: none; color: var(--gris); }
.candado p { margin: 0; color: var(--gris); }
.candado strong { color: var(--tiza); }
.logros { list-style: none; padding: 0; margin: 0 0 .6rem; display: grid; gap: .4rem; }
.logros li { background: var(--carbon); border-left: 4px solid var(--naranja); border-radius: 6px; padding: .55rem .75rem; font-weight: 500; }
.logro-form { display: flex; gap: .5rem; }
.logro-form input { flex: 1; min-width: 0; background: var(--carbon); border: 1px solid var(--linea); border-radius: 10px; padding: .55rem .7rem; min-height: 44px; }

/* ---------- calendario ---------- */
.racha-grande { display: flex; gap: 1.1rem; align-items: center; margin: .4rem 0 1.2rem; }
.racha-grande h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); }
.racha-disco { flex: none; width: 128px; height: 128px; border-radius: 50%; background: var(--naranja); color: var(--carbon); display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 14px var(--naranja), inset 0 0 0 17px var(--carbon); line-height: 1; }
.racha-disco strong { font-family: var(--f-disp); font-size: 3.6rem; font-weight: 900; }
.racha-disco span { font-family: var(--f-disp); font-weight: 800; text-transform: uppercase; font-size: .9rem; letter-spacing: .08em; }
@media (max-width: 420px) { .racha-grande { flex-direction: column; align-items: flex-start; } }
.cal-meses { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cal-mes h3 { margin: 0 0 .5rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { text-align: center; font-size: .72rem; color: var(--gris); font-weight: 700; }
.cal-d { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-size: .82rem; color: var(--gris); }
.cal-d.plan { box-shadow: inset 0 0 0 2px var(--linea); }
.cal-d.hecho { background: var(--naranja); color: var(--carbon); font-weight: 800; }
.cal-d.hoy { box-shadow: inset 0 0 0 2px var(--tiza); color: var(--tiza); font-weight: 700; }
.cal-d.hecho.hoy { box-shadow: inset 0 0 0 2px var(--tiza); }
.cal-d.futuro { opacity: .4; }
.leyenda-cal { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0; color: var(--gris); font-size: .85rem; }
.leyenda-cal i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: .35rem; vertical-align: -2px; }
.lc-hecho { background: var(--naranja); }
.lc-plan { box-shadow: inset 0 0 0 2px var(--linea); }
.lc-hoy { box-shadow: inset 0 0 0 2px var(--tiza); }

/* ---------- biblioteca ---------- */
.buscar { display: flex; align-items: center; gap: .5rem; background: var(--grafito); border: 1px solid var(--linea); border-radius: 12px; padding: 0 .8rem; margin: 0 0 .7rem; }
.buscar svg { width: 20px; height: 20px; color: var(--gris); flex: none; }
.buscar input { flex: 1; min-width: 0; border: 0; background: none; padding: .7rem 0; min-height: 46px; outline: none; }
.buscar:focus-within { border-color: var(--naranja); }
.lib-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (min-width: 640px) { .lib-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .lib-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.lib-it { text-align: left; background: var(--grafito); border: 1px solid var(--hule); border-radius: 12px; padding: 0 0 .6rem; overflow: hidden; color: var(--tiza); cursor: pointer; display: flex; flex-direction: column; }
.lib-it img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: .5rem; }
.lib-it strong { font-family: var(--f-disp); font-weight: 800; text-transform: uppercase; font-size: 1.12rem; line-height: 1.05; padding: 0 .6rem; }
.lib-it span { color: var(--gris); font-size: .8rem; padding: .15rem .6rem 0; }
.lib-it:hover { border-color: var(--linea); }

/* ---------- capa (hoja inferior) ---------- */
.capa { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.capa-fondo { position: absolute; inset: 0; background: rgba(0, 0, 0, .66); }
.hoja { position: relative; width: 100%; max-width: 760px; max-height: 92vh; overflow-y: auto; background: var(--grafito); border: 1px solid var(--linea); border-bottom: 0;
  border-radius: 20px 20px 0 0; padding: 1.2rem 1rem calc(1.4rem + env(safe-area-inset-bottom)); animation: sube .25s ease-out; }
@keyframes sube { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 760px) { .capa { align-items: center; } .hoja { border-radius: 20px; border-bottom: 1px solid var(--linea); } }
.hoja-cerrar { position: sticky; top: 0; float: right; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linea); background: var(--carbon); color: var(--tiza); font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 2; }
.ej-det { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
.ej-det > .ej-info { grid-column: 1 / -1; order: 2; }
.ej-det .fig-ej { max-width: 100%; }
.ej-det .fig-lista { font-size: .82rem; }
.ej-foto { width: 100%; max-width: 420px; border-radius: 14px; aspect-ratio: 1; object-fit: cover; }
.ej-info h2 { font-size: 2.1rem; }
.claves { padding-left: 1.1rem; margin: 0; }
.claves li { margin: .25rem 0; }
.claves li::marker { color: var(--naranja); }
.en-rutina { color: var(--naranja-2); font-weight: 600; }
@media (min-width: 760px) { .ej-det .fig-lista { font-size: 1rem; } }
.msj-burbuja { background: #1F3A2E; color: #EAF7EE; border-radius: 14px 14px 14px 4px; padding: .9rem 1rem; margin: .8rem 0; line-height: 1.45; }
.menu-dias { display: grid; gap: .5rem; margin-top: .8rem; }
.tarjeta-img { width: 100%; max-width: 340px; height: auto; border-radius: 12px; margin: .8rem auto; }

/* ---------- toast ---------- */
.aviso-toast { position: fixed; left: 16px; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); margin: 0 auto; width: fit-content; max-width: 520px;
  background: var(--tiza); color: var(--carbon); font-weight: 600; padding: .7rem 1rem; border-radius: 12px; z-index: 120; opacity: 0; transform: translateY(10px);
  transition: opacity .2s, transform .2s; pointer-events: none; box-shadow: 0 8px 30px rgba(0, 0, 0, .4); }
.aviso-toast.ver { opacity: 1; transform: none; }

/* ---------- pestañas ---------- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(20, 20, 20, .97);
  border-top: 1px solid var(--hule); padding: .3rem .3rem calc(.3rem + env(safe-area-inset-bottom)); }
.tab { display: flex; flex-direction: column; align-items: center; gap: .1rem; text-decoration: none; color: var(--gris); padding: .3rem .2rem; border-radius: 10px; min-height: 52px; justify-content: center; }
.tab svg { width: 24px; height: 24px; }
.tab span { font-family: var(--f-disp); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .9rem; }
.tab.on { color: var(--naranja); }
@media (min-width: 900px) { .app { padding-bottom: 110px; } .tabs { left: 50%; right: auto; transform: translateX(-50%); width: 620px; bottom: 12px; border: 1px solid var(--linea); border-radius: 16px; } }

/* ---------- CTA fijo ---------- */
.cta-fijo { position: fixed; right: 12px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 39; display: flex; align-items: center; gap: .4rem;
  background: #0F7A6E; color: #fff; text-decoration: none; border-radius: 999px; padding: .5rem .85rem .5rem .6rem; font-size: .84rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); min-height: 44px; }
.cta-fijo .ico-wa { width: 22px; height: 22px; flex: none; }
.cta-fijo-txt strong { font-weight: 700; }
body.en-entreno .cta-fijo, body.con-capa .cta-fijo, body.arrastrando .cta-fijo { display: none; }
body.fig-visible .cta-fijo { opacity: 0 !important; pointer-events: none; transition: opacity .2s; }
@media (max-width: 520px) { .cta-fijo-txt { font-size: .78rem; } }
@supports (animation-timeline: scroll()) {
  .cta-fijo { animation: ctaIn linear both; animation-timeline: scroll(); animation-range: 0 260px; }
  @keyframes ctaIn { from { opacity: 0; transform: scale(.7); pointer-events: none; } to { opacity: 1; } }
}

/* ---------- entrenador: clientes ---------- */
.coach-cab { display: flex; gap: 1rem; align-items: center; margin: .4rem 0 1rem; }
.coach-cab img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--naranja); flex: none; }
.cli-lista { display: grid; gap: .6rem; }
@media (min-width: 820px) { .cli-lista { grid-template-columns: 1fr 1fr; } }
.cli { background: var(--grafito); border: 1px solid var(--hule); border-left: 5px solid var(--verde-ok); border-radius: 14px; overflow: hidden; }
.cli.est-frio { border-left-color: #E8B04A; }
.cli.est-ausente { border-left-color: var(--rojo); }
.cli-link { display: grid; grid-template-columns: 58px 1fr auto; gap: .75rem; align-items: center; padding: .65rem .8rem; color: var(--tiza); text-decoration: none; }
.cli-link img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.cli-txt { display: flex; flex-direction: column; min-width: 0; }
.cli-txt strong { font-family: var(--f-disp); font-weight: 800; text-transform: uppercase; font-size: 1.3rem; line-height: 1.05; }
.cli-txt strong small { font-family: var(--f-txt); text-transform: none; font-weight: 500; color: var(--gris); font-size: .8rem; }
.cli-txt span { color: var(--gris); font-size: .86rem; }
.cli-est { color: var(--tiza) !important; font-weight: 600; }
.est-frio .cli-est { color: #F2C46D !important; }
.est-ausente .cli-est { color: #FF9A9A !important; }
.cli-num { text-align: center; line-height: 1; }
.cli-num strong { display: block; font-family: var(--f-disp); font-size: 2rem; font-weight: 900; }
.cli-num span { font-size: .7rem; color: var(--gris); text-transform: uppercase; }
.cli-pie { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: 0 .8rem .65rem; font-size: .82rem; color: var(--gris); }
.barra-as { width: 90px; height: 8px; border-radius: 4px; background: var(--hule); overflow: hidden; }
.barra-as i { display: block; height: 100%; width: var(--p); background: var(--tiza); }
.cli-pie .btn { margin-left: auto; }
.chip-frio[aria-pressed="true"] { background: #F2C46D; border-color: #F2C46D; }
.chip-ausente[aria-pressed="true"] { background: #FF9A9A; border-color: #FF9A9A; }

/* ---------- ficha ---------- */
.volver a { color: var(--gris); text-decoration: none; font-weight: 600; display: inline-block; padding: .7rem 0; }
.ficha-cab { display: flex; gap: 1rem; align-items: center; margin: .4rem 0 1rem; }
.ficha-cab img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 3px solid var(--verde-ok); flex: none; }
.ficha-cab.est-frio img { border-color: #E8B04A; }
.ficha-cab.est-ausente img { border-color: var(--rojo); }
.ficha-cab h1 { font-size: clamp(2.1rem, 8vw, 3rem); margin-bottom: .2rem; }
.ficha-obj { margin: 0; font-weight: 600; }
.ficha-datos { display: grid; gap: .6rem; margin-bottom: 1rem; }
@media (min-width: 640px) { .ficha-datos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ficha-datos > div { background: var(--grafito); border: 1px solid var(--hule); border-radius: 12px; padding: .7rem .8rem; }
.ficha-datos span { font-family: var(--f-disp); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--gris); }
.ficha-datos p { margin: .2rem 0 0; }
.ficha-datos .cuidado { border-color: #6b4a2c; background: #2a1f17; }
.ficha-datos .cuidado span { color: var(--naranja-2); }
.sem-rut { display: grid; gap: .6rem; }
@media (min-width: 640px) { .sem-rut { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.sem-dia { background: var(--carbon); border-radius: 12px; padding: .7rem .8rem; border: 1px solid var(--hule); }
.sem-dia h3 { margin: 0 0 .5rem; font-size: 1.25rem; display: flex; flex-direction: column; }
.sem-dia h3 span { font-size: .78rem; color: var(--naranja-2); letter-spacing: .08em; }
.sem-dia ul { list-style: none; padding: 0; margin: 0; }
.sem-dia li { display: flex; justify-content: space-between; gap: .5rem; padding: .25rem 0; border-top: 1px solid var(--hule); font-size: .9rem; }
.sem-dia li small { color: var(--gris); white-space: nowrap; }

/* ---------- estudio ---------- */
.estudio-fotos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1.4rem; }
.estudio-fotos figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; }
.estudio-fotos .grande { grid-column: 1 / -1; }
.estudio-fotos img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.estudio-fotos .grande img { aspect-ratio: 16 / 10; }
.estudio-fotos figcaption { position: absolute; left: .5rem; bottom: .5rem; background: rgba(20, 20, 20, .85); padding: .15rem .5rem; border-radius: 6px; font-size: .82rem; }
@media (min-width: 760px) { .estudio-fotos { grid-template-columns: repeat(4, minmax(0, 1fr)); } .estudio-fotos .grande { grid-column: span 2; grid-row: span 2; } .estudio-fotos .grande img { aspect-ratio: 1; height: 100%; } }
.sub { margin-top: .4rem; }
.coaches { display: grid; gap: 1rem; }
@media (min-width: 760px) { .coaches { grid-template-columns: 1fr 1fr; } }
.coach { background: var(--grafito); border: 1px solid var(--hule); border-radius: 14px; overflow: hidden; display: grid; grid-template-columns: 110px 1fr; }
.coach > img:first-child { width: 110px; height: 110px; object-fit: cover; }
.coach > div { padding: .7rem .9rem; }
.coach h3 { margin: 0 0 .2rem; font-size: 1.4rem; }
.coach p { margin: 0; }
.coach-acc { grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- armar ---------- */
.armar { max-width: 1100px; }
.arm-ctrl { display: grid; gap: .6rem; margin-bottom: 1rem; }
.arm-ctrl label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--gris); min-width: 0; }
.arm-copiar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: end; }
@media (min-width: 760px) { .arm-ctrl { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
.arm-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.arm-lib { position: sticky; top: var(--cab); z-index: 5; background: var(--carbon); padding: .5rem 0 .3rem; margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; border-bottom: 1px solid var(--hule); }
.arm-lib-cab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 9rem); gap: .5rem; }
.buscar-chico { margin: 0; }
.buscar-chico input { min-height: 42px; padding: .45rem 0; }
.arm-cards { display: flex; gap: .5rem; overflow-x: auto; padding: .55rem 0 .2rem; scrollbar-width: thin; }
.arm-card { flex: none; width: 90px; display: flex; flex-direction: column; align-items: stretch; gap: .25rem; background: var(--grafito); border: 1px solid var(--linea); border-radius: 12px; padding: .3rem; color: var(--tiza); cursor: grab; touch-action: pan-x; position: relative; user-select: none; -webkit-user-select: none; }
.arm-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; pointer-events: none; }
.arm-card span { font-size: .78rem; font-weight: 600; line-height: 1.15; text-align: left; min-height: 2.3em; }
.arm-asa { position: absolute; top: .45rem; right: .45rem; width: 18px; height: 18px; fill: var(--tiza); background: rgba(20, 20, 20, .75); border-radius: 4px; }
.arm-pista { margin: .2rem 0 0; font-size: .78rem; color: var(--gris); }
.arm-fantasma { position: fixed; left: 0; top: 0; width: 120px; z-index: 200; pointer-events: none; background: var(--naranja); color: var(--carbon); border-radius: 12px; padding: .3rem; display: flex; flex-direction: column; gap: .2rem; box-shadow: 0 14px 30px rgba(0, 0, 0, .55); opacity: .95; rotate: -3deg; }
.arm-fantasma img { width: 100%; border-radius: 8px; }
.arm-fantasma span { font-size: .8rem; font-weight: 700; }
.arm-fantasma svg { display: none; }
body.arrastrando { user-select: none; -webkit-user-select: none; cursor: grabbing; }
.arm-dias { display: grid; gap: .8rem; }
@media (min-width: 900px) {
  .arm-grid { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
  .arm-lib { margin: 0; padding: .6rem; border: 1px solid var(--hule); border-radius: 14px; max-height: calc(100vh - var(--cab) - 30px); display: flex; flex-direction: column; top: calc(var(--cab) + 10px); }
  .arm-lib-cab { grid-template-columns: 1fr; }
  .arm-cards { display: grid; grid-template-columns: 1fr 1fr; overflow-y: auto; overflow-x: hidden; }
  .arm-card { width: auto; touch-action: none; }
  .arm-pista { display: none; }
  .arm-dias { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
.arm-dia { background: var(--grafito); border: 2px dashed transparent; border-radius: 14px; padding: .7rem; transition: border-color .15s, background .15s; }
.arm-dia.sobre { border-color: var(--naranja); background: #2a1d16; }
.arm-dia-cab { display: flex; flex-direction: column; gap: .2rem; margin-bottom: .5rem; }
.arm-letra { font-family: var(--f-disp); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--naranja-2); }
.arm-n { background: transparent; border: 0; border-bottom: 1px solid var(--linea); font-family: var(--f-disp); font-weight: 800; font-size: 1.45rem; text-transform: uppercase; padding: .1rem 0; min-height: 40px; width: 100%; }
.arm-n:focus { outline: none; border-bottom-color: var(--naranja); }
.arm-items { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.arm-it { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: .5rem; align-items: start; background: var(--carbon); border: 1px solid var(--hule); border-radius: 10px; padding: .45rem; }
.arm-it.nuevo { animation: nuevo 1.2s ease-out; }
@keyframes nuevo { 0% { background: #4a2512; border-color: var(--naranja); } 100% { background: var(--carbon); } }
.arm-it img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; }
.arm-it-c strong { display: block; font-size: .92rem; line-height: 1.15; margin-bottom: .3rem; }
.arm-campos { display: flex; flex-wrap: wrap; gap: .3rem; }
.arm-campo { display: flex; align-items: center; gap: .2rem; background: var(--grafito); border: 1px solid var(--linea); border-radius: 8px; padding: 0 .35rem; font-size: .72rem; color: var(--gris); }
.arm-campo input { width: 3.1rem; background: none; border: 0; text-align: right; font-weight: 700; font-size: 1rem; padding: .3rem 0; min-height: 44px; color: var(--tiza); }
.arm-campo:focus-within { border-color: var(--naranja); }
.arm-acc { display: flex; flex-direction: column; gap: .2rem; }
.arm-acc button { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--linea); background: var(--grafito); color: var(--tiza); cursor: pointer; font-weight: 700; }
.arm-acc button:disabled { opacity: .3; }
.arm-soltar { margin: .5rem 0 0; text-align: center; color: var(--gris); font-size: .8rem; border: 1px dashed var(--linea); border-radius: 10px; padding: .55rem; }
.arm-dia.sobre .arm-soltar { color: var(--naranja-2); border-color: var(--naranja); }
.arm-fig { margin-top: 1rem; }

/* ---------- entrenamiento guiado ---------- */
.entreno { position: fixed; inset: 0; z-index: 70; background: var(--carbon); overflow-y: auto; overscroll-behavior: contain; }
.en-top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; background: rgba(20, 20, 20, .97); border-bottom: 1px solid var(--hule); }
.en-salir { border: 1px solid var(--linea); background: none; color: var(--tiza); border-radius: 10px; min-height: 44px; padding: 0 .8rem; font-family: var(--f-disp); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: 1rem; cursor: pointer; }
.en-prog { flex: 1; display: flex; gap: 4px; }
.en-prog i { flex: 1; height: 6px; border-radius: 3px; background: var(--hule); }
.en-prog i.ok { background: var(--tiza); }
.en-prog i.act { background: var(--naranja); }
.en-cont { font-family: var(--f-disp); font-weight: 800; font-size: 1.1rem; }
.en-cuerpo { max-width: 560px; margin: 0 auto; padding: .7rem .9rem 2rem; }
.en-foto { position: relative; border-radius: 16px; overflow: hidden; }
.en-foto img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: center 55%; }
.en-mini { position: absolute; right: .5rem; bottom: .5rem; width: 92px; background: rgba(20, 20, 20, .82); border-radius: 10px; padding: .3rem .2rem; transform-origin: bottom right; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.en-mini.grande { transform: scale(1.8); }
.en-mini .figura { gap: 0; }
.en-mini .fig-lado svg { max-height: 86px; }
.en-info { position: absolute; left: .5rem; top: .5rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(20, 20, 20, .82); color: var(--tiza); font-weight: 800; font-size: 1.2rem; cursor: pointer; }
.en-datos { text-align: center; }
.en-datos .ojo { margin-top: .8rem; }
.en-nombre { font-size: clamp(2.2rem, 10vw, 3rem); font-weight: 900; margin-bottom: .2rem; }
.en-clave { color: var(--gris); margin: 0 0 .8rem; }
.en-cargas { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .6rem; margin-bottom: .4rem; }
.carga { background: var(--grafito); border: 1px solid var(--hule); border-radius: 14px; padding: .45rem .35rem; min-width: 0; }
.carga-et { font-family: var(--f-disp); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; color: var(--gris); }
.carga-fila { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: .2rem; }
.carga-b { width: 44px; height: 48px; border-radius: 12px; border: 1px solid var(--linea); background: var(--carbon); color: var(--tiza); font-size: 1.6rem; font-weight: 700; cursor: pointer; }
.carga-b:active { background: var(--hule); }
.carga-v { font-family: var(--f-disp); font-weight: 900; font-size: clamp(2.2rem, 10vw, 3rem); white-space: nowrap; line-height: 1; font-variant-numeric: tabular-nums; }
.carga-u { color: var(--naranja-2); }
.carga-v small { font-size: 1rem; color: var(--gris); margin-left: .15rem; font-weight: 800; }
.en-marca { margin: .3rem 0; color: var(--gris); font-size: .92rem; }
.en-marca strong { color: var(--tiza); }
.en-marca em { color: var(--naranja-2); font-style: normal; font-weight: 700; }
.en-serie { font-family: var(--f-disp); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 1.2rem; margin: .8rem 0 .4rem; }
.en-serie strong { color: var(--naranja); font-size: 1.5rem; }
.guia-en { text-align: left; margin: .5rem 0 .7rem; }

/* discos = series */
.discos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .55rem; margin: .4rem 0 1rem; }
.disco { --t: 70px; width: var(--t); height: var(--t); border-radius: 50%; border: 0; cursor: pointer; position: relative; color: var(--gris);
  background: radial-gradient(circle, #2f2f2d 0 58%, #262624 59% 100%); box-shadow: inset 0 0 0 3px var(--linea); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.disco-n { font-family: var(--f-disp); font-weight: 900; font-size: 1.5rem; line-height: 1; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; }
.disco-n small { font-size: .62rem; font-weight: 800; letter-spacing: .02em; }
.disco-n b { font-weight: 900; }
.disco:disabled { cursor: default; opacity: .55; }
.disco.hecho { opacity: 1; color: var(--carbon); background: radial-gradient(circle, var(--naranja) 0 60%, #E54A0A 61% 100%); box-shadow: inset 0 0 0 3px #B53A06, inset 0 0 0 9px var(--naranja), inset 0 0 0 10.5px #B53A06, 0 0 18px rgba(255, 91, 20, .35); }
.disco.hecho .disco-n { background: rgba(255, 255, 255, .0); }
.disco.sig { --t: 100px; color: var(--tiza); box-shadow: inset 0 0 0 4px var(--naranja); animation: llama 1.6s ease-in-out infinite; }
.disco.sig .disco-n { font-size: 2.2rem; }
.disco-t { position: relative; z-index: 1; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--naranja-2); margin-top: .1rem; }
@keyframes llama { 0%, 100% { box-shadow: inset 0 0 0 4px var(--naranja), 0 0 0 0 rgba(255, 91, 20, .45); } 50% { box-shadow: inset 0 0 0 4px var(--naranja), 0 0 0 10px rgba(255, 91, 20, 0); } }
.disco.clanc { animation: clanc .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes clanc { 0% { transform: scale(1.2) rotate(-20deg); } 60% { transform: scale(.94) rotate(4deg); } 100% { transform: none; } }
.en-frase { font-style: italic; color: var(--gris); margin: 0 0 1rem; }
.en-nav { display: flex; justify-content: space-between; gap: .5rem; }

/* capas dentro del entrenamiento */
.en-capa { position: fixed; inset: 0; z-index: 75; background: var(--carbon); display: flex; align-items: center; justify-content: center; overflow-y: auto; padding: 1rem; }
.desc-in, .marca-in, .fin-in { width: 100%; max-width: 440px; text-align: center; margin: auto; }
.capa-descanso .desc-in { animation: entra .3s ease-out; }
@keyframes entra { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.anillo { position: relative; width: min(78vw, 330px); aspect-ratio: 1; margin: .3rem auto 1rem; }
.anillo svg { width: 100%; height: 100%; }
.an-disco { fill: #1c1c1b; }
.an-marcas line { stroke: #4a4a46; stroke-width: 2; }
.an-pista { fill: none; stroke: #2c2c2a; stroke-width: 18; }
.an-prog { fill: none; stroke: var(--naranja); stroke-width: 18; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(255, 91, 20, .7)); }
.corre .an-prog { transition: stroke-dashoffset .09s linear; }
.an-centro { fill: #232321; stroke: #33332f; stroke-width: 2; }
.an-hueco { fill: var(--carbon); stroke: #4a4a46; stroke-width: 3; }
.an-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.an-num { font-family: var(--f-disp); font-weight: 900; font-size: clamp(3.4rem, 16vw, 4.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.an-sub { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); font-weight: 700; }
.casi .an-num { color: var(--naranja); }
.listo .anillo { animation: listo .6s ease-out; }
.listo .an-num { color: var(--naranja); }
@keyframes listo { 30% { transform: scale(1.07); } }
.desc-sig { font-size: 1.05rem; margin: 0 0 .3rem; }
.desc-frase { color: var(--gris); font-style: italic; margin: 0 0 1rem; }
.desc-bot { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.desc-nota { color: #85857f; font-size: .78rem; margin: .8rem 0 0; }

/* celebración */
.capa-marca { background: radial-gradient(circle at 50% 40%, #3a1a0b 0%, #141414 62%); overflow: hidden; }
.estallido { position: absolute; left: 50%; top: 40%; width: 0; height: 0; }
.estallido i { position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2); border-radius: 50%;
  background: radial-gradient(circle, var(--carbon) 0 22%, var(--naranja) 23% 100%); transform: rotate(var(--a)) translateY(0); opacity: 0;
  animation: vuela 1.4s cubic-bezier(.15, .8, .3, 1) var(--t) forwards; }
.estallido i:nth-child(3n) { background: radial-gradient(circle, var(--carbon) 0 22%, var(--tiza) 23% 100%); }
@keyframes vuela { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.3); } 70% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(1); } }
.marca-in { position: relative; z-index: 1; }
.marca-ojo { font-family: var(--f-disp); font-weight: 900; text-transform: uppercase; letter-spacing: .14em; color: var(--naranja); font-size: 1.3rem; margin: 0; animation: entra .4s ease-out; }
.marca-big { font-family: var(--f-disp); font-weight: 900; font-size: clamp(6rem, 34vw, 9.5rem); line-height: .9; margin: .1rem 0 .2rem; animation: golpe .7s cubic-bezier(.2, 1.5, .4, 1) .1s both; }
.marca-big small { font-size: .3em; color: var(--naranja); margin-left: .1em; }
@keyframes golpe { 0% { transform: scale(2.2); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
.marca-ej { font-family: var(--f-disp); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; margin: 0 0 .3rem; }
.marca-antes { color: var(--gris); margin: 0 0 .6rem; }
.marca-antes strong { color: var(--naranja-2); }
.marca-frase { margin: 0 0 .3rem; }
.marca-muro { color: var(--gris); font-size: .85rem; margin: 0 0 1rem; }

/* fin */
.fin-t { font-size: clamp(2.6rem, 12vw, 3.6rem); font-weight: 900; }
.fin-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; margin: .6rem 0 1rem; }
.fin-kpis div { background: var(--grafito); border-radius: 12px; padding: .5rem .2rem; display: flex; flex-direction: column; }
.fin-kpis strong { font-family: var(--f-disp); font-weight: 900; font-size: 1.9rem; line-height: 1; }
.fin-kpis span { font-size: .72rem; color: var(--gris); }
.fin-prs { list-style: none; padding: 0; margin: 0 0 1rem; }
.fin-prs li { background: #2a1d16; border: 1px solid var(--naranja); border-radius: 10px; padding: .45rem .7rem; margin-bottom: .35rem; }
.fin-prs strong { color: var(--naranja-2); }
.fig-fin { max-width: 300px; }
.fin-frase { margin: .8rem 0 1rem; color: var(--gris); }

/* ---------- pie de la app, CTA y pie del sitio ---------- */
.app-pie { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.aviso-medico { text-align: center; color: var(--gris); font-size: .85rem; margin: .5rem 0 1rem; }
.restaurar-pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem; color: var(--gris); font-size: .86rem; margin: 0 0 1.6rem; }
.cta { background: var(--tiza); color: var(--carbon); border-radius: 18px; margin: 0 0 1.5rem; position: relative; overflow: hidden; }
.cta::after { content: ''; position: absolute; right: -70px; bottom: -70px; width: 200px; height: 200px; border-radius: 50%; background: var(--naranja); box-shadow: inset 0 0 0 30px var(--naranja), inset 0 0 0 34px var(--carbon); opacity: .9; }
.cta-in { position: relative; z-index: 1; padding: 1.4rem 1.2rem; max-width: 640px; }
.cta-ojo { font-family: var(--f-disp); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: #5c5c57; margin: 0 0 .3rem; }
.cta h2 { font-size: clamp(1.9rem, 7vw, 2.6rem); color: var(--carbon); }
.cta p { margin: 0 0 1rem; max-width: 52ch; }
.cta-botones { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.btn-wa { background: #0F7A6E; border-color: #0F7A6E; color: #fff; }
.btn-wa:hover { background: #0B6359; border-color: #0B6359; }
.btn-wa .ico-wa { width: 24px; height: 24px; }
.cta-tel { color: var(--carbon); font-weight: 500; display: inline-block; padding: .6rem 0; }
.pie { border-top: 1px solid var(--hule); padding: 1.2rem 1rem 1.6rem; text-align: center; color: var(--gris); font-size: .85rem; max-width: 900px; margin: 0 auto; }
.pie p { margin: 0 0 .5rem; }
.pie a { color: var(--tiza); }
.pie .credito { margin-top: 1rem; color: var(--tiza); }
body.pag-legal { padding-bottom: 0; }

/* ---------- aviso de privacidad ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 1.2rem 1rem 2rem; }
.legal h1 { font-size: 2.6rem; }
.legal h2 { font-size: 1.5rem; margin-top: 1.4rem; }
.legal-meta { color: var(--gris); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
