:root {
  --fondo: #050706;
  --capa: #0e1210;
  --capa2: #151a17;
  --linea: #222a25;
  --texto: #eef4f0;
  --suave: #8e9a93;
  --verde: #2ef184;
  --verde2: #19c766;
  --verde-txt: #04150b;
  --verde-sutil: rgba(46, 241, 132, .12);
  --verde-borde: rgba(46, 241, 132, .35);
  --amarillo: #ffd257;
  --rojo: #ff6464;
  --texto2: #c9d3cd;
  --tenue: #55625b;
  --borde-fuerte: #3a463f;
  --verde-tx: #2ef184;
  --texto-verde: #c9f9dd;
  --verde-fondo: #10301e;
  --capa3: #1b221e;
  --capa2-t: rgba(21, 26, 23, .9);
  --barra: rgba(5, 7, 6, .88);
  --brillo: rgba(46, 241, 132, .10);
  --radio: 18px;
  --nav: 68px;
  --gutter: 16px;
  color-scheme: dark;
}

/* Tema claro (Ajustes → Tema). El verde de los textos es más oscuro para que se lea sobre blanco. */
:root[data-theme="claro"] {
  --fondo: #f2f5f3;
  --capa: #ffffff;
  --capa2: #edf1ee;
  --linea: #dbe3dd;
  --texto: #0b130e;
  --suave: #5f6c64;
  --verde: #25d97a;
  --verde2: #14b862;
  --verde-txt: #04150b;
  --verde-sutil: rgba(20, 184, 98, .12);
  --verde-borde: rgba(16, 160, 85, .38);
  --amarillo: #9a6500;
  --rojo: #cf3434;
  --texto2: #34413a;
  --tenue: #98a39c;
  --borde-fuerte: #bfc9c2;
  --verde-tx: #0a8a45;
  --texto-verde: #0b5a30;
  --verde-fondo: #d3f6e2;
  --capa3: #ffffff;
  --capa2-t: rgba(255, 255, 255, .92);
  --barra: rgba(255, 255, 255, .9);
  --brillo: rgba(37, 217, 122, .16);
  color-scheme: light;
}
:root[data-theme="claro"] .modal-pantalla .btn,
:root[data-theme="claro"] .grid4 > div,
:root[data-theme="claro"] .card { box-shadow: 0 1px 2px rgba(10, 30, 20, .05); }
:root[data-theme="claro"] .prog-barra,
:root[data-theme="claro"] .meta-barra,
:root[data-theme="claro"] .timer-barra { background: var(--linea); }
:root[data-theme="claro"] .toast,
:root[data-theme="claro"] .timer { box-shadow: 0 10px 30px rgba(10, 30, 20, .16); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  background-image: radial-gradient(120% 60% at 50% -10%, var(--brillo), transparent 60%);
  background-repeat: no-repeat;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 2px; }

.vista {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 14px) var(--gutter) calc(var(--nav) + env(safe-area-inset-bottom) + 28px);
}
body.con-timer .vista { padding-bottom: calc(var(--nav) + env(safe-area-inset-bottom) + 110px); }

/* Cabecera */
.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.marca { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; font-size: 15px; }
.marca b { color: var(--verde-tx); }
.marca-logo {
  width: 30px; height: 30px; border-radius: 9px; background: var(--verde);
  box-shadow: 0 0 18px rgba(46, 241, 132, .45);
  position: relative;
}
.marca-logo::before, .marca-logo::after { content: ""; position: absolute; background: var(--verde-txt); border-radius: 2px; }
.marca-logo::before { left: 7px; right: 7px; top: 13px; height: 4px; }
.marca-logo::after { left: 6px; top: 8px; width: 4px; height: 14px; box-shadow: 14px 0 0 var(--verde-txt); }
.semana-chip {
  font-size: 13px; font-weight: 700; color: var(--verde-tx); background: var(--verde-sutil);
  border: 1px solid var(--verde-borde); padding: 5px 11px; border-radius: 999px;
}

.top-der { display: flex; align-items: center; gap: 8px; }

/* Indicador de la nube */
.nube {
  position: relative; width: 36px; height: 32px; border-radius: 999px; display: grid; place-items: center;
  background: var(--capa); border: 1px solid var(--linea); color: var(--suave); font-size: 19px;
}
.nube i, .nube-txt i { width: 8px; height: 8px; border-radius: 50%; background: var(--suave); }
.nube i { position: absolute; right: 5px; bottom: 5px; border: 2px solid var(--capa); box-sizing: content-box; }
.nube-ok { color: var(--verde-tx); }
.nube-ok i, .nube-txt.nube-ok i { background: var(--verde); }
.nube-pendiente i, .nube-offline i, .nube-txt.nube-pendiente i, .nube-txt.nube-offline i { background: var(--amarillo); }
.nube-error { color: var(--rojo); }
.nube-error i, .nube-txt.nube-error i { background: var(--rojo); }
.nube-sync i { background: var(--verde); animation: latido 1s ease-in-out infinite; }
@keyframes latido { 50% { opacity: .2; } }
.nube-txt { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.cuenta b { color: var(--texto); word-break: break-all; }

/* Entrada */
body.en-login .tabs, body.en-login .timer { display: none; }
body.en-login .vista { padding-bottom: 32px; }
.login { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.marca-logo.grande { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 18px; }
.marca-logo.grande::before { left: 17px; right: 17px; top: 33px; height: 7px; }
.marca-logo.grande::after { left: 14px; top: 21px; width: 10px; height: 31px; box-shadow: 34px 0 0 var(--verde-txt); }
.login h1 { margin: 0; font-size: 38px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.login h1 b { color: var(--verde-tx); }
.login > p { color: var(--suave); margin: 8px auto 26px; max-width: 320px; }
.login-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.login-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--suave); }
.login-form input {
  height: 52px; border-radius: 14px; border: 1px solid var(--linea); background: var(--capa);
  padding: 0 14px; font-size: 17px;
}
.login-form input:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px var(--verde-sutil); }
.login-error { min-height: 1.2em; margin: 0; color: var(--rojo); font-size: 14px; font-weight: 700; }
.login-form .btn-principal { margin: 0; }
.login-form .btn-principal:disabled { opacity: .6; }

/* Días */
.dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 12px; padding-top: 5px; }
.dia {
  height: 58px; border-radius: 14px; background: var(--capa); border: 1px solid var(--linea);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  font-weight: 800; font-size: 15px; color: var(--suave); position: relative;
}
.dia .d-num { font-size: 12px; font-weight: 700; opacity: .75; font-variant-numeric: tabular-nums; }
.dia .d-chk {
  position: absolute; top: -5px; right: -5px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--verde); color: var(--verde-txt); display: grid; place-items: center; font-size: 11px;
  box-shadow: 0 0 8px rgba(46, 241, 132, .6);
}
.dia .d-chk svg { stroke-width: 3.4; }
.dia.libre { opacity: .55; }
.dia.falto { opacity: .4; }
.dia.hecho { border-color: var(--verde-borde); color: var(--verde-tx); background: var(--verde-sutil); opacity: 1; }
.dia.hoy { color: var(--texto); border-color: var(--texto); }
.dia.activo { background: var(--verde); color: var(--verde-txt); border-color: var(--verde); opacity: 1; box-shadow: 0 6px 22px rgba(46, 241, 132, .28); }
.dia.activo .d-chk { background: var(--verde-txt); color: var(--verde-tx); }
.semana-cont { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 18px; font-size: 14px; color: var(--suave); }
.semana-cont b { color: var(--texto); }
.puntos { display: flex; gap: 6px; flex: none; }
.puntos span { width: 22px; height: 6px; border-radius: 9px; background: var(--capa2); border: 1px solid var(--linea); }
.puntos span.on { background: var(--verde); border-color: var(--verde); box-shadow: 0 0 8px rgba(46, 241, 132, .5); }

/* Encabezado del día */
.hero { margin-bottom: 12px; }
.eyebrow { margin: 0 0 2px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--verde-tx); }
.hero h1 { margin: 0; font-size: 44px; line-height: 1; font-weight: 900; letter-spacing: -.02em; text-transform: uppercase; }
.musculos { margin: 6px 0 14px; color: var(--suave); font-size: 15px; }
.prog { display: flex; align-items: center; gap: 12px; }
.prog-barra { flex: 1; height: 10px; border-radius: 99px; background: var(--capa2); overflow: hidden; }
.prog-barra span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--verde2), var(--verde)); box-shadow: 0 0 12px rgba(46, 241, 132, .6); transition: width .35s ease; }
.prog-txt { font-size: 14px; color: var(--suave); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prog-txt b { color: var(--texto); }

.nota { color: var(--suave); font-size: 15px; margin: 0 0 12px; }
.aviso { font-size: 14px; color: var(--amarillo); margin: 0 0 10px; }
.banner {
  font-size: 14px; padding: 12px 14px; margin-bottom: 14px; border-radius: 14px;
  background: var(--verde-sutil); border: 1px solid var(--verde-borde); color: var(--texto-verde);
}
.banner b { color: var(--verde-tx); }

/* Tarjetas */
.card {
  background: var(--capa); border: 1px solid var(--linea); border-radius: var(--radio);
  padding: 16px; margin-bottom: 12px;
}
.card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 17px; font-weight: 800; letter-spacing: .01em; }
.card h2 svg { color: var(--verde-tx); font-size: 20px; }

.ej { transition: border-color .25s, box-shadow .25s; }
.ej.completo { border-color: var(--verde-borde); }
.ej.ss { border-left: 3px solid var(--verde-borde); }
.ej.pr-flash { animation: pr 1.6s ease; }
@keyframes pr {
  0% { box-shadow: 0 0 0 0 rgba(46, 241, 132, .0); }
  25% { box-shadow: 0 0 0 4px rgba(46, 241, 132, .55), 0 0 40px rgba(46, 241, 132, .5); }
  100% { box-shadow: 0 0 0 0 rgba(46, 241, 132, 0); }
}
.ej-head { display: flex; gap: 12px; align-items: flex-start; }
.ej-num {
  width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: var(--capa2); border: 1px solid var(--linea); font-weight: 800; font-size: 15px; color: var(--suave);
}
.ej.completo .ej-num { background: var(--verde); border-color: var(--verde); color: var(--verde-txt); font-size: 18px; }
.ej-tit { min-width: 0; flex: 1; }
.ej-nombre { text-decoration: none; font-size: 18px; font-weight: 800; line-height: 1.3; }
.nw { white-space: nowrap; }
.play {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; margin-left: 8px;
  background: var(--verde-sutil); color: var(--verde-tx); font-size: 12px; vertical-align: -4px;
}
.ej-nombre:active .play { background: var(--verde); color: var(--verde-txt); }
.ej-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--suave); }
.pill { font-weight: 800; color: var(--verde-tx); background: var(--verde-sutil); padding: 2px 9px; border-radius: 99px; font-size: 13px; font-variant-numeric: tabular-nums; }
.ss-tag { margin: 10px 0 0; font-size: 13px; font-weight: 700; color: var(--verde-tx); }
.clave { margin: 10px 0 0; font-size: 14px; color: var(--texto2); }
.tip { margin: 8px 0 0; font-size: 14px; color: var(--amarillo); }
.alt-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 12px; border-radius: 10px;
  background: var(--capa2); border: 1px solid var(--linea); font-size: 13px; font-weight: 700; color: var(--texto);
}
.alt-btn svg { color: var(--verde-tx); }
.ultima {
  margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--capa2);
  display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--suave);
}
.ultima b { color: var(--texto); font-size: 15px; font-variant-numeric: tabular-nums; }
.subir { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-style: normal; font-weight: 800; color: var(--verde-tx); }

/* Series */
.sets { margin-top: 12px; }
.set-h, .set { display: grid; grid-template-columns: 34px 1fr 1fr 52px; gap: 8px; align-items: center; }
.set-h { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--suave); padding: 0 0 6px; }
.set-h span:first-child { text-align: center; }
.set { margin-bottom: 8px; }
.set-n { text-align: center; font-weight: 800; color: var(--suave); font-variant-numeric: tabular-nums; }
.in {
  width: 100%; min-width: 0; height: 50px; border-radius: 12px; border: 1px solid var(--linea);
  background: var(--fondo); text-align: center; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums;
  -webkit-appearance: none; appearance: none;
}
.in::placeholder { color: var(--tenue); font-weight: 700; }
.in:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px var(--verde-sutil); }
.chk {
  width: 52px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: var(--capa2); border: 1px solid var(--linea); color: var(--tenue); font-size: 24px;
  transition: transform .12s, background .2s, color .2s;
}
.chk:active { transform: scale(.92); }
.set.ok .chk, .cardio.ok .chk { background: var(--verde); border-color: var(--verde); color: var(--verde-txt); box-shadow: 0 0 16px rgba(46, 241, 132, .35); }
.set.ok .in { border-color: var(--verde-borde); background: rgba(46, 241, 132, .06); }
.set.ok .set-n { color: var(--verde-tx); }
.ej-pie { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.ej-pie button { font-size: 13px; font-weight: 700; color: var(--suave); padding: 8px 10px; border-radius: 10px; }
.ej-pie button:active { background: var(--capa2); }

/* Cardio, terminar, metas */
.cardio { display: flex; align-items: center; gap: 14px; }
.cardio-txt { flex: 1; }
.cardio h2 { margin-bottom: 4px; }
.cardio p { margin: 0; font-size: 14px; color: var(--suave); }
.cardio.ok { border-color: var(--verde-borde); }
.chk.grande { width: 58px; height: 58px; border-radius: 16px; font-size: 28px; }
.siguiente { color: var(--suave); font-size: 15px; }
.siguiente b { color: var(--verde-tx); }

.btn-principal {
  display: block; width: 100%; height: 56px; border-radius: 16px; margin: 4px 0 16px;
  background: var(--verde); color: var(--verde-txt); font-size: 17px; font-weight: 900; letter-spacing: .03em; text-transform: uppercase;
  box-shadow: 0 8px 28px rgba(46, 241, 132, .3);
}
.btn-principal:active { transform: translateY(1px); background: var(--verde2); }
.btn {
  flex: 1; height: 48px; border-radius: 14px; background: var(--capa2); border: 1px solid var(--linea);
  font-weight: 800; font-size: 15px;
}
.botones { display: flex; gap: 10px; margin: 12px 0; }
.link-peligro { color: var(--rojo); font-size: 14px; font-weight: 700; padding: 8px 0; }

.hab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hab {
  display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 14px;
  background: var(--capa2); border: 1px solid var(--linea);
}
.hab-chk {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none;
  border: 2px solid var(--borde-fuerte); color: transparent; font-size: 16px;
}
.hab.ok { border-color: var(--verde-borde); }
.hab.ok .hab-chk { background: var(--verde); border-color: var(--verde); color: var(--verde-txt); }
.hab-txt { display: flex; flex-direction: column; min-width: 0; }
.hab-txt b { font-size: 14px; }
.hab-txt small { font-size: 12px; color: var(--suave); }

/* Progreso */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stats div { background: var(--capa); border: 1px solid var(--linea); border-radius: 16px; padding: 12px; }
.stats b { display: block; font-size: 26px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats b small { font-size: 15px; color: var(--suave); }
.stats span { font-size: 12px; color: var(--suave); line-height: 1.2; display: block; margin-top: 2px; }
.peso-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.peso-big { font-size: 52px; font-weight: 900; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.peso-big small { font-size: 20px; color: var(--suave); font-weight: 700; }
.peso-lado { text-align: right; display: flex; flex-direction: column; }
.peso-lado b { color: var(--verde-tx); font-size: 22px; font-weight: 900; }
.peso-lado span { color: var(--suave); font-size: 14px; }
.meta-barra { height: 12px; background: var(--capa2); border-radius: 99px; margin-top: 16px; overflow: hidden; }
.meta-barra span { display: block; height: 100%; min-width: 12px; border-radius: inherit; background: linear-gradient(90deg, var(--verde2), var(--verde)); box-shadow: 0 0 14px rgba(46, 241, 132, .55); }
.meta-ejes { display: flex; justify-content: space-between; font-size: 12px; color: var(--suave); margin-top: 6px; font-variant-numeric: tabular-nums; }
.consejo { font-size: 14px; color: var(--texto2); margin: 14px 0 6px; }
.consejo b { color: var(--verde-tx); }
.graf { width: 100%; height: auto; display: block; margin: 8px 0 4px; stroke: none; }
.g-grid { stroke: var(--linea); stroke-width: 1; }
.g-eje { fill: var(--suave); font-size: 11px; stroke: none; }
.g-meta { stroke: var(--amarillo); stroke-width: 1.5; stroke-dasharray: 5 5; }
.g-meta-txt { fill: var(--amarillo); font-size: 11px; font-weight: 700; stroke: none; }
.g-linea { fill: none; stroke: var(--verde); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.g-punto { fill: var(--fondo); stroke: var(--verde); stroke-width: 2; }
.g-punto.ult { fill: var(--verde); filter: drop-shadow(0 0 6px var(--verde)); }

.peso-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.peso-form label:first-child { grid-column: 1 / -1; }
.peso-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--suave); font-weight: 700; min-width: 0; }
.peso-form input {
  height: 46px; border-radius: 12px; border: 1px solid var(--linea); background: var(--fondo);
  padding: 0 10px; font-size: 16px; font-weight: 700; min-width: 0; width: 100%;
}
.peso-form input:focus { outline: none; border-color: var(--verde); }
.peso-form .btn-principal { grid-column: 1 / -1; margin: 4px 0 0; height: 50px; }
.mini { font-size: 13px; color: var(--suave); margin: 10px 0 0; }
.pesos, .recs, .lista, .metas, .hist ul { list-style: none; margin: 12px 0 0; padding: 0; }
.pesos li { display: grid; grid-template-columns: 1fr auto 70px 36px; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--linea); font-size: 14px; font-variant-numeric: tabular-nums; }
.pesos li span:first-child { color: var(--suave); }
.pesos li span:nth-child(3) { color: var(--suave); text-align: right; }
.borrar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--tenue); }
.borrar:active { background: var(--capa2); color: var(--rojo); }
.recs li { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 10px 0; border-top: 1px solid var(--linea); }
.recs li:first-child, .pesos li:first-child { border-top: 0; }
.recs span { font-weight: 700; font-size: 15px; }
.recs b { color: var(--verde-tx); font-variant-numeric: tabular-nums; }
.recs small { color: var(--suave); font-size: 12px; }
.vacio { color: var(--suave); font-size: 14px; margin: 0; }

.hist { border-top: 1px solid var(--linea); }
.hist:first-of-type { border-top: 0; }
.hist summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; cursor: pointer; font-size: 15px; }
.hist summary::-webkit-details-marker { display: none; }
.hist summary small { color: var(--suave); font-size: 13px; white-space: nowrap; }
.hist[open] summary b { color: var(--verde-tx); }
.hist ul { margin: 0 0 6px; }
.hist li { display: flex; flex-direction: column; padding: 6px 0; font-size: 13px; color: var(--suave); }
.hist li b { color: var(--texto); font-size: 14px; font-variant-numeric: tabular-nums; }

/* Guía */
.reglas { margin: 0; }
.reglas dt { font-weight: 800; color: var(--verde-tx); font-size: 14px; margin-top: 12px; }
.reglas dt:first-child { margin-top: 0; }
.reglas dd { margin: 2px 0 0; font-size: 15px; color: var(--texto2); }
.lista li { position: relative; padding-left: 18px; margin-bottom: 8px; font-size: 15px; color: var(--texto2); }
.lista li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--verde); }
.lista li b { color: var(--texto); }
.metas li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--linea); font-size: 15px; }
.metas li:first-child { border-top: 0; }
.metas span { color: var(--suave); }
.pie { text-align: center; font-size: 12px; color: var(--tenue); margin-top: 18px; }

/* Temporizador */
.timer {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav) + env(safe-area-inset-bottom) + 10px);
  width: calc(100% - 2 * var(--gutter)); max-width: 528px; z-index: 30;
  background: var(--capa); border: 1px solid var(--verde-borde); border-radius: 18px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .7), 0 0 28px rgba(46, 241, 132, .15);
}
.timer[hidden] { display: none; }
.timer-barra { height: 4px; background: var(--capa2); }
.timer-barra span { display: block; height: 100%; width: 100%; background: var(--verde); transition: width .25s linear; }
.timer-fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px; }
.timer-info { display: flex; flex-direction: column; min-width: 0; }
.timer-label { font-size: 12px; color: var(--suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timer-tiempo { font-size: 30px; font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--verde-tx); }
.timer-botones { display: flex; gap: 6px; flex: none; }
.timer-botones button { height: 42px; min-width: 46px; padding: 0 10px; border-radius: 12px; background: var(--capa2); border: 1px solid var(--linea); font-weight: 800; font-size: 14px; }
.timer-botones .timer-skip { background: var(--verde-sutil); border-color: var(--verde-borde); color: var(--verde-tx); }
.timer.listo { animation: listo .5s ease 3; border-color: var(--verde); }
.timer.listo .timer-label { color: var(--verde-tx); font-weight: 800; }
@keyframes listo { 50% { background: var(--verde-fondo); } }

/* Barra de navegación */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: center; gap: 4px;
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
  background: var(--barra); border-top: 1px solid var(--linea);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.tabs button {
  flex: 1; max-width: 170px; height: 56px; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 12px; font-weight: 700; color: var(--suave);
}
.tabs svg { font-size: 22px; }
.tabs button[aria-current] { color: var(--verde-tx); }
.tabs button[aria-current] svg { filter: drop-shadow(0 0 6px rgba(46, 241, 132, .6)); }

/* Toast y modal */
.toast {
  position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 14px); z-index: 60;
  transform: translate(-50%, -140%); opacity: 0; transition: transform .3s ease, opacity .3s;
  max-width: calc(100% - 2 * var(--gutter)); width: max-content;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-radius: 14px; background: var(--capa3); border: 1px solid var(--linea);
  font-size: 15px; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); pointer-events: none;
}
.toast.visible { transform: translate(-50%, 0); opacity: 1; }
.toast.pr { background: var(--verde); color: var(--verde-txt); border-color: var(--verde); box-shadow: 0 10px 40px rgba(46, 241, 132, .5); }
.toast.pr svg { font-size: 22px; }

.modal {
  position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .72);
  display: flex; align-items: flex-end; justify-content: center; padding: var(--gutter);
  padding-bottom: calc(var(--gutter) + env(safe-area-inset-bottom));
}
.modal[hidden] { display: none; }
.modal-caja {
  width: 100%; max-width: 480px; background: var(--capa); border: 1px solid var(--verde-borde);
  border-radius: 22px; padding: 20px; animation: sube .3s ease;
}
@keyframes sube { from { transform: translateY(30px); opacity: 0; } }
.modal-tit { margin: 0 0 14px; font-size: 32px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.modal-stats div { background: var(--capa2); }
.modal-recs { background: var(--verde-sutil); border: 1px solid var(--verde-borde); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.modal-recs b { display: flex; align-items: center; gap: 6px; color: var(--verde-tx); }
.modal-recs ul { margin: 6px 0 0; padding-left: 20px; font-size: 14px; }
body.con-modal { overflow: hidden; }

/* Día completado (fijo) */
.hero-corto { margin-bottom: 12px; }
.completado {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; margin: 0 0 14px;
  background: linear-gradient(135deg, rgba(46, 241, 132, .20), rgba(46, 241, 132, .06)); border: 1px solid var(--verde-borde);
}
.completado .sello {
  width: 44px; height: 44px; border-radius: 50%; background: var(--verde); color: var(--verde-txt);
  display: grid; place-items: center; font-size: 24px; flex: none; box-shadow: 0 0 18px rgba(46, 241, 132, .55);
}
.completado .sello svg { stroke-width: 3; }
.completado-txt { flex: 1; min-width: 0; text-align: left; display: flex; flex-direction: column; }
.completado-txt b { font-size: 16px; color: var(--verde-tx); }
.completado-txt small { color: var(--texto2); font-size: 13px; }
.btn-mini {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: 13px; font-weight: 800; padding: 9px 12px; border-radius: 10px; background: var(--capa2); border: 1px solid var(--linea);
}
.btn-mini svg { color: var(--verde-tx); font-size: 15px; }
.ej-hecho { padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.ej-hecho .ej-num { background: var(--verde); border-color: var(--verde); color: var(--verde-txt); width: 30px; height: 30px; font-size: 16px; }
.ej-hecho .ej-num svg { stroke-width: 3; }
.ej-hecho .ej-nombre { font-size: 16px; }
.ej-hecho .play { width: 20px; height: 20px; font-size: 10px; }
.ej-hecho.saltado { opacity: .55; }
.ej-hecho.saltado .ej-num { background: var(--capa2); border-color: var(--linea); color: var(--suave); }
.no-hecho { margin: 4px 0 0; font-size: 13px; color: var(--suave); }
.sets-hechos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.sets-hechos span {
  display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums;
  padding: 4px 9px; border-radius: 8px; background: var(--verde-sutil); border: 1px solid var(--verde-borde);
}
.sets-hechos span svg { color: var(--verde-tx); font-size: 11px; stroke-width: 3.2; }
.pr-mini { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-size: 12px; font-weight: 800; color: var(--verde-tx); vertical-align: middle; }
.cardio-hecho { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; font-weight: 700; color: var(--suave); }
.cardio-hecho span { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--capa2); font-size: 14px; }
.cardio-hecho.ok { color: var(--texto); border-color: var(--verde-borde); }
.cardio-hecho.ok span { background: var(--verde); color: var(--verde-txt); }

/* Días que no llegan, no registrados o en edición */
.aviso-dia { padding: 14px; border-radius: 16px; margin: 0 0 12px; background: var(--capa); border: 1px solid var(--linea); }
.aviso-dia p { margin: 0 0 12px; font-size: 14px; color: var(--texto2); }
.aviso-dia p b { color: var(--texto); }
.aviso-dia .btn-principal { margin: 0; height: 50px; }
.aviso-dia .btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.aviso-dia .btn svg { color: var(--verde-tx); }
.aviso-dia.falto { border-color: rgba(255, 210, 87, .35); }
.ej.ver .ej-num { font-size: 14px; }
.editando {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 10px 12px;
  border-radius: 14px; background: rgba(255, 210, 87, .08); border: 1px solid rgba(255, 210, 87, .35); font-size: 14px; font-weight: 700;
}
.editando span { display: inline-flex; align-items: center; gap: 8px; color: var(--amarillo); }
.link-volver { display: block; margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--verde-tx); text-decoration: underline; text-underline-offset: 3px; }

/* Calendario */
.cal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.cal-top h2 { margin: 0; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button {
  width: 36px; height: 36px; border-radius: 10px; background: var(--capa2); border: 1px solid var(--linea);
  display: grid; place-items: center; font-size: 18px;
}
.cal-nav button:disabled { opacity: .3; }
.cal-stat { display: flex; align-items: center; gap: 10px; margin: 10px 0 14px; }
.cal-stat b { font-size: 46px; font-weight: 900; color: var(--verde-tx); line-height: 1; text-shadow: 0 0 22px rgba(46, 241, 132, .45); font-variant-numeric: tabular-nums; }
.cal-stat span { color: var(--suave); font-size: 14px; line-height: 1.3; }
.cal-stat strong { color: var(--texto); display: block; font-size: 15px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .dsem { text-align: center; font-size: 11px; font-weight: 800; color: var(--suave); padding-bottom: 2px; }
.cal .c {
  aspect-ratio: 1; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 15px;
  color: var(--suave); background: var(--capa2); font-variant-numeric: tabular-nums;
}
.cal .c.vacio { background: none; }
.cal .c.ok { background: var(--verde); color: var(--verde-txt); box-shadow: 0 0 14px rgba(46, 241, 132, .35); }
.cal button.c.ok:active { transform: scale(.92); }
.cal .c.hoy { outline: 2px solid var(--texto); outline-offset: -2px; color: var(--texto); }
.cal .c.ok.hoy { color: var(--verde-txt); outline-color: var(--texto); outline-offset: 2px; }
.cal .c.futuro { opacity: .35; }
.cal-ley { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12px; color: var(--suave); }
.cal-ley span { display: inline-flex; align-items: center; gap: 6px; }
.cal-ley i { width: 12px; height: 12px; border-radius: 4px; background: var(--verde); display: inline-block; }
.cal-ley i.h { background: none; outline: 2px solid var(--texto); outline-offset: -2px; }

/* Hoja con el resumen de un día */
.modal-hoja { padding: 0; }
.caja-hoja {
  max-width: 560px; max-height: 88vh; overflow-y: auto; border: 0; border-top: 1px solid var(--verde-borde);
  border-radius: 26px 26px 0 0; padding: 10px 18px calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 -20px 50px rgba(0, 0, 0, .6);
}
.asa { width: 44px; height: 5px; border-radius: 9px; background: var(--borde-fuerte); margin: 0 auto 14px; }
.hoja-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.hoja-top h3 { margin: 2px 0 12px; font-size: 30px; line-height: 1.05; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.cerrar { width: 36px; height: 36px; border-radius: 50%; background: var(--capa2); display: grid; place-items: center; color: var(--suave); font-size: 16px; flex: none; }
.caja-hoja .stats { margin-bottom: 10px; }
.caja-hoja .stats div { background: var(--capa2); padding: 10px; }
.caja-hoja .stats b { font-size: 22px; }
.linea-ej { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1px solid var(--linea); font-size: 14px; }
.caja-hoja .stats + .linea-ej { border-top: 0; }
.linea-ej span { color: var(--texto2); display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.linea-ej span svg { color: var(--verde-tx); font-size: 14px; stroke-width: 3; }
.linea-ej b { font-variant-numeric: tabular-nums; text-align: right; font-size: 13px; }
.pr-ico { display: inline-flex; font-style: normal; }
.sep { border: 0; border-top: 1px solid var(--verde-borde); margin: 16px 0; }

/* Resumen al terminar (pantalla completa) */
.modal-pantalla { padding: 0; align-items: stretch; background: var(--fondo); }
.caja-pantalla {
  max-width: 560px; height: 100%; overflow-y: auto; border: 0; border-radius: 0; position: relative;
  padding: calc(env(safe-area-inset-top) + 18px) 18px calc(env(safe-area-inset-bottom) + 18px);
  display: flex; flex-direction: column; animation: none;
  background: radial-gradient(90% 45% at 50% 16%, rgba(46, 241, 132, .30), transparent 70%), var(--fondo);
}
.res-cuerpo { position: relative; z-index: 1; }
.confeti { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.confeti i {
  position: absolute; top: -24px; width: 8px; height: 14px; border-radius: 2px; background: var(--verde); opacity: 0;
  animation-name: caer; animation-timing-function: cubic-bezier(.25, .6, .5, 1); animation-fill-mode: forwards;
}
.confeti i.b { background: var(--texto); }
.confeti i.c { background: #19c766; width: 10px; height: 10px; border-radius: 50%; }
@keyframes caer {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translate(var(--deriva), 105vh) rotate(var(--giro)); opacity: 0; }
}
.sello-grande {
  width: 96px; height: 96px; border-radius: 50%; margin: 14px auto 14px; display: grid; place-items: center;
  background: var(--verde); color: var(--verde-txt); font-size: 54px;
  box-shadow: 0 0 0 10px rgba(46, 241, 132, .15), 0 0 0 22px rgba(46, 241, 132, .07), 0 0 60px rgba(46, 241, 132, .7);
}
.sello-grande svg { stroke-width: 3; }
.sello-grande.pop { animation: pop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pop { 0% { transform: scale(.2); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.res-tit { text-align: center; margin: 10px 0 4px; font-size: 36px; line-height: 1; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.res-que { text-align: center; color: var(--verde-tx); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin: 0 0 18px; }
.grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid4 > div { background: var(--capa2-t); border: 1px solid var(--linea); border-radius: 16px; padding: 12px 14px; }
.grid4 b { display: block; font-size: 30px; font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; }
.grid4 b small { font-size: 15px; color: var(--suave); font-weight: 700; }
.grid4 > div > span { font-size: 12px; color: var(--suave); }
.vs {
  display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 11px 14px; border-radius: 14px;
  background: var(--verde-sutil); border: 1px solid var(--verde-borde); font-size: 14px; color: var(--texto-verde);
}
.vs .flecha { width: 30px; height: 30px; border-radius: 50%; background: var(--verde); color: var(--verde-txt); display: grid; place-items: center; font-size: 16px; flex: none; }
.vs .flecha svg { stroke-width: 3; }
.vs b { color: var(--verde-tx); }
.vs.neutro { background: var(--capa2-t); border-color: var(--linea); color: var(--texto2); }
.vs.neutro .flecha { background: var(--capa2); color: var(--suave); }
.vs.neutro b { color: var(--texto); }
.recs-r { margin-top: 8px; padding: 11px 14px; border-radius: 14px; background: var(--capa2-t); border: 1px solid var(--linea); }
.recs-r .t { display: flex; align-items: center; gap: 6px; color: var(--verde-tx); font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.recs-r .r { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 3px 0; }
.recs-r .r b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.recs-r .r b em { font-style: normal; color: var(--suave); font-weight: 600; }
.sem-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--suave); }
.sem-r b { color: var(--texto); }
.frase { text-align: center; color: var(--texto2); font-size: 15px; margin: 14px 0 0; }
.frase b { color: var(--verde-tx); }
.aviso.centro { text-align: center; margin: 10px 0 0; }
.acciones { display: flex; gap: 10px; margin-top: auto; padding-top: 18px; position: relative; z-index: 1; }
.acciones .btn { flex: 0 0 auto; padding: 0 18px; height: 56px; display: inline-flex; align-items: center; gap: 8px; }
.acciones .btn svg { font-size: 18px; color: var(--verde-tx); }
.acciones .btn-principal { margin: 0; flex: 1; }

/* Botones del ejercicio: Mi progreso y Discos */
.ej-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ej-tools button {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px;
  background: var(--capa2); border: 1px solid var(--linea); font-size: 13px; font-weight: 700;
}
.ej-tools svg { color: var(--verde-tx); font-size: 15px; }
.ej-tools button:active { background: var(--verde-sutil); }

/* Cronómetro del entreno */
.btn-empezar {
  display: flex; flex-direction: column; align-items: center; width: 100%; margin-top: 14px; padding: 10px;
  border-radius: 14px; background: var(--verde-sutil); border: 1px dashed var(--verde-borde); color: var(--verde-tx); font-weight: 800; font-size: 15px;
}
.btn-empezar svg { display: none; }
.btn-empezar small { color: var(--suave); font-weight: 600; font-size: 12px; }
.crono {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav) + env(safe-area-inset-bottom) + 10px);
  width: calc(100% - 2 * var(--gutter)); max-width: 528px; z-index: 29;
  display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 16px; text-align: left;
  background: var(--capa); border: 1px solid var(--verde-borde);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .55), 0 0 22px rgba(46, 241, 132, .12);
}
.crono[hidden] { display: none; }
.crono .pulso { width: 10px; height: 10px; border-radius: 50%; background: var(--verde); flex: none; box-shadow: 0 0 0 4px var(--verde-sutil); animation: latido 1.6s ease-in-out infinite; }
.crono-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.crono-txt small { font-size: 12px; color: var(--suave); }
.crono-txt b { font-size: 24px; font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; }
.crono-series { font-size: 12px; color: var(--suave); text-align: right; display: flex; flex-direction: column; }
.crono-series b { color: var(--verde-tx); font-size: 18px; font-variant-numeric: tabular-nums; }
body.con-crono .vista { padding-bottom: calc(var(--nav) + env(safe-area-inset-bottom) + 96px); }
:root[data-theme="claro"] .crono { box-shadow: 0 10px 30px rgba(10, 30, 20, .16); }

/* Tus ejercicios (Progreso) */
.ejs { list-style: none; margin: 0; padding: 0; }
.ejs li { border-top: 1px solid var(--linea); }
.ejs li:first-child { border-top: 0; }
.ejs button { display: grid; grid-template-columns: 1fr 74px 72px; align-items: center; gap: 10px; width: 100%; padding: 11px 0; text-align: left; }
.ejs .n { min-width: 0; }
.ejs .n b { display: block; font-size: 15px; }
.ejs .n small { color: var(--suave); font-size: 12px; }
.spark { width: 74px; height: 30px; }
.spark polyline { fill: none; stroke: var(--verde); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.spark circle { fill: var(--verde); stroke: none; }
.ejs .delta { font-size: 13px; font-weight: 800; color: var(--verde-tx); text-align: right; white-space: nowrap; }
.ejs .delta.igual { color: var(--suave); }
.ejs .delta small { display: block; color: var(--suave); font-weight: 600; font-size: 11px; }

/* Gráfica de un ejercicio */
.big-delta { font-size: 15px; color: var(--suave); margin: -6px 0 12px; }
.big-delta b { color: var(--verde-tx); font-size: 17px; }
.big-delta b.neutro { color: var(--texto); }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--capa2); margin-bottom: 10px; }
.seg2 button { padding: 9px; border-radius: 9px; font-size: 13px; font-weight: 800; color: var(--suave); }
.seg2 button[aria-pressed="true"] { background: var(--verde); color: var(--verde-txt); }
.g-lbl { fill: var(--texto); font-size: 11px; font-weight: 800; stroke: none; }
.graf-vacia { padding: 26px 0; text-align: center; }
.caja-hoja .stats + .linea-ej, .caja-hoja .stats ~ .linea-ej:first-of-type { border-top: 0; }

/* Calculadora de discos */
.disco-peso { display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; }
.disco-peso > button { width: 56px; height: 64px; border-radius: 14px; background: var(--capa2); border: 1px solid var(--linea); font-size: 22px; font-weight: 900; flex: none; }
.disco-peso .valor {
  flex: 1; min-width: 0; height: 64px; border-radius: 16px; background: var(--fondo); border: 1px solid var(--verde-borde);
  display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 10px;
}
.disco-peso input {
  width: 100%; min-width: 0; border: 0; background: none; text-align: right; font-size: 38px; font-weight: 900;
  font-variant-numeric: tabular-nums; padding: 0; -webkit-appearance: none; appearance: none;
}
.disco-peso input:focus { outline: none; }
.disco-peso .valor span { color: var(--suave); font-weight: 700; flex: 0 0 auto; width: 40%; }
.tipo-barra { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.tipo-barra button {
  padding: 9px 4px; border-radius: 12px; background: var(--capa2); border: 1px solid var(--linea);
  font-size: 13px; font-weight: 800; display: flex; flex-direction: column; align-items: center; color: var(--suave);
}
.tipo-barra button small { font-weight: 600; font-size: 11px; }
.tipo-barra button[aria-pressed="true"] { background: var(--verde-sutil); border-color: var(--verde-borde); color: var(--texto); }
.barra-dib { position: relative; height: 150px; margin: 4px 0; overflow: hidden; }
.barra-dib .eje { position: absolute; left: 0; right: 0; top: 50%; height: 10px; margin-top: -5px; border-radius: 4px; background: linear-gradient(#c7cdc9, #8e9691); }
.barra-dib .centro { position: absolute; left: 50%; width: 120px; margin-left: -60px; top: 50%; height: 14px; margin-top: -7px; border-radius: 3px; background: repeating-linear-gradient(90deg, #9ba39e 0 2px, #b8bfba 2px 4px); }
.lado { position: absolute; top: 50%; display: flex; align-items: center; gap: 3px; transform: translateY(-50%) scaleX(var(--esc, 1)); }
.lado.izq { right: calc(50% + 64px); flex-direction: row-reverse; transform-origin: right center; }
.lado.der { left: calc(50% + 64px); transform-origin: left center; }
.d { display: block; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .28); }
.d25 { width: 16px; height: 130px; background: #e5383b; }
.d20 { width: 15px; height: 124px; background: #2f6fe4; }
.d15 { width: 14px; height: 110px; background: #f2c230; }
.d10 { width: 13px; height: 94px; background: #2fbf6b; }
.d5 { width: 11px; height: 72px; background: #eef1ef; }
.d2_5 { width: 9px; height: 58px; background: #4a514d; }
.d1_25 { width: 7px; height: 46px; background: #a9b0ac; }
.por-lado { text-align: center; font-size: 14px; color: var(--suave); margin: 0 0 10px; }
.por-lado b { color: var(--texto); }
.chips-discos { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chips-discos span { padding: 5px 11px; border-radius: 99px; font-size: 13px; font-weight: 800; background: var(--capa2); border: 2px solid var(--linea); }
.chips-discos .c25 { border-color: #e5383b; } .chips-discos .c20 { border-color: #2f6fe4; }
.chips-discos .c15 { border-color: #f2c230; } .chips-discos .c10 { border-color: #2fbf6b; }
.caja-hoja .btn-principal { margin: 0; }

/* Ajustes */
.opciones { display: flex; flex-direction: column; gap: 8px; }
.opcion {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px;
  background: var(--capa2); border: 1px solid var(--linea);
}
.opcion .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--borde-fuerte); flex: none; display: grid; place-items: center; }
.opcion.sel { border-color: var(--verde-borde); background: var(--verde-sutil); }
.opcion.sel .radio { border-color: var(--verde); }
.opcion.sel .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--verde); }
.opcion-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.opcion-txt b { font-size: 15px; }
.opcion-txt small { font-size: 13px; color: var(--suave); }
.probar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--capa); border: 1px solid var(--linea); color: var(--verde-tx); font-size: 13px; flex: none; }
.interruptor {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; margin-top: 14px; padding: 12px 14px;
  border-radius: 14px; background: var(--capa2); border: 1px solid var(--linea);
}
.interruptor > span { flex: 1; display: flex; flex-direction: column; }
.interruptor b { font-size: 15px; }
.interruptor small { font-size: 13px; color: var(--suave); }
.interruptor i {
  width: 50px; height: 30px; border-radius: 99px; background: var(--borde-fuerte); position: relative; flex: none; transition: background .2s;
}
.interruptor i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s;
}
.interruptor.on i { background: var(--verde); }
.interruptor.on i::after { transform: translateX(20px); }
.segmento { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 16px; background: var(--capa2); border: 1px solid var(--linea); }
.segmento button {
  height: 48px; border-radius: 12px; font-weight: 800; font-size: 15px; color: var(--suave);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.segmento button svg { font-size: 18px; }
.segmento button[aria-pressed="true"] { background: var(--verde); color: var(--verde-txt); box-shadow: 0 4px 16px rgba(46, 241, 132, .3); }

@media (max-width: 370px) {
  .hero h1 { font-size: 36px; }
  .set-h, .set { grid-template-columns: 26px 1fr 1fr 48px; gap: 6px; }
  .chk { width: 48px; }
  .timer-botones button { min-width: 40px; padding: 0 8px; }
  .stats b { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
