/* Plan Atleta · diseño oscuro con acento champán */
:root {
  --fondo: #07080a;
  --capa: #0e1013;
  --sup: #14161b;
  --sup-2: #1b1e24;
  --sup-3: #23272f;
  --linea: rgba(255, 255, 255, .07);
  --linea-2: rgba(255, 255, 255, .12);
  --texto: #f6f3ec;
  --texto-2: #a7a29a;
  --texto-3: #6f6b65;
  --oro: #e2c58f;
  --oro-2: #b8924f;
  --oro-suave: rgba(226, 197, 143, .12);
  --grad-oro: linear-gradient(135deg, #f3e0b5 0%, #d9b56f 45%, #a9813f 100%);
  --ok: #5ee39a;
  --ok-suave: rgba(94, 227, 154, .13);
  --ambar: #f5b453;
  --ambar-suave: rgba(245, 180, 83, .13);
  --rojo: #ff6b6b;
  --rojo-suave: rgba(255, 107, 107, .13);
  --azul: #8fb4ff;
  --azul-suave: rgba(143, 180, 255, .12);
  --r: 22px;
  --r-s: 14px;
  --sombra: 0 18px 40px -18px rgba(0, 0, 0, .8);
  --seg-top: env(safe-area-inset-top, 0px);
  --seg-bot: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--fondo); color: var(--texto); }
body {
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  min-height: 100dvh;
  padding-bottom: calc(100px + var(--seg-bot));
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(226, 197, 143, .10), transparent 60%),
    radial-gradient(700px 400px at -10% 10%, rgba(143, 180, 255, .05), transparent 60%),
    var(--fondo);
  background-attachment: fixed;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: var(--texto); }
a { color: var(--oro); text-decoration: none; }
.oculto { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

main { padding: calc(14px + var(--seg-top)) 16px 24px; max-width: 640px; margin: 0 auto; animation: entra .35s ease both; }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Cabecera de cada vista */
.cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 8px 2px 18px; }
.ceja { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--oro); }
.titulo { font-size: 30px; line-height: 1.1; font-weight: 750; letter-spacing: -.025em; margin: 4px 0 0; }
.titulo em { font-style: normal; background: var(--grad-oro); -webkit-background-clip: text; background-clip: text; color: transparent; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-oro); color: #1a1407; font-weight: 800; font-size: 16px; box-shadow: 0 0 0 3px var(--fondo), 0 0 0 4px rgba(226, 197, 143, .35); flex: none; }

/* Pestañas flotantes */
.tabs {
  position: fixed; z-index: 20; left: 12px; right: 12px; bottom: calc(10px + var(--seg-bot));
  max-width: 520px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 7px; border-radius: 26px;
  background: rgba(20, 22, 27, .72);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--linea-2);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .7);
}
.tabs button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 5px; border-radius: 19px; color: var(--texto-3); font-size: 10.5px; font-weight: 600; transition: color .2s, background .2s; }
.tabs button svg { width: 22px; height: 22px; }
.tabs button.activa { color: var(--oro); background: var(--oro-suave); }

/* Tarjetas */
.tarjeta {
  position: relative; border-radius: var(--r); padding: 16px; margin-bottom: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), var(--sup);
  border: 1px solid var(--linea);
  box-shadow: var(--sombra);
}
.tarjeta.plana { box-shadow: none; }
.tarjeta.hero {
  padding: 20px; overflow: hidden;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(226, 197, 143, .20), transparent 65%),
    radial-gradient(300px 200px at 0% 100%, rgba(143, 180, 255, .07), transparent 70%),
    linear-gradient(180deg, #1a1c21, #121418);
  border-color: rgba(226, 197, 143, .18);
}
.tarjeta.hero.run { background: radial-gradient(420px 220px at 100% 0%, rgba(94, 227, 154, .16), transparent 65%), linear-gradient(180deg, #171b1a, #111413); border-color: rgba(94, 227, 154, .16); }
.tarjeta.hero.casa { background: radial-gradient(420px 220px at 100% 0%, rgba(143, 180, 255, .16), transparent 65%), linear-gradient(180deg, #171a20, #111317); border-color: rgba(143, 180, 255, .16); }
.hero-titulo { font-size: 25px; line-height: 1.15; font-weight: 760; letter-spacing: -.02em; margin: 10px 0 4px; }
h2 { font-size: 18px; font-weight: 720; letter-spacing: -.01em; margin: 0; }
h3 { font-size: 15.5px; font-weight: 680; margin: 0; }
.seccion { display: flex; align-items: center; justify-content: space-between; margin: 26px 4px 10px; }
.seccion > span:first-child { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--texto-3); }
.sub { color: var(--texto-2); font-size: 13.5px; }
.peq { font-size: 12px; color: var(--texto-3); }
.fila { display: flex; align-items: center; gap: 10px; }
.fila.entre { justify-content: space-between; }
.envuelve { flex-wrap: wrap; }
.crece { flex: 1; min-width: 0; }
.mt { margin-top: 10px; }
.mt-g { margin-top: 16px; }
.centro { text-align: center; }

/* Chips y etiquetas */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; background: rgba(255,255,255,.06); color: var(--texto-2); border: 1px solid var(--linea); }
.chip svg.i { width: 14px; height: 14px; }
.chip.oro { background: var(--oro-suave); color: var(--oro); border-color: rgba(226,197,143,.2); }
.chip.verde { background: var(--ok-suave); color: var(--ok); border-color: transparent; }
.chip.ambar { background: var(--ambar-suave); color: var(--ambar); border-color: transparent; }
.chip.rojo { background: var(--rojo-suave); color: var(--rojo); border-color: transparent; }
.chip.azul { background: var(--azul-suave); color: var(--azul); border-color: transparent; }

.banda { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--r-s); padding: 11px 13px; font-size: 13.5px; margin: 10px 0; line-height: 1.4; }
.banda svg.i { width: 18px; height: 18px; margin-top: 1px; }
.banda.ambar { background: var(--ambar-suave); color: #ffd79a; }
.banda.rojo { background: var(--rojo-suave); color: #ffc0c0; }
.banda.verde { background: var(--ok-suave); color: #b3f5cf; }
.banda.azul { background: var(--azul-suave); color: #cddcff; }
.banda.oro { background: var(--oro-suave); color: #f2deb4; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 18px; border-radius: 16px; font-weight: 720; font-size: 15px; background: var(--grad-oro); color: #1d1607; box-shadow: 0 10px 24px -10px rgba(217, 181, 111, .55), inset 0 1px 0 rgba(255,255,255,.4); transition: transform .12s; }
.btn:active, .pulsable:active { transform: scale(.97); }
.btn-sec { background: rgba(255,255,255,.07); color: var(--texto); box-shadow: inset 0 0 0 1px var(--linea-2); }
.btn-rojo { background: var(--rojo-suave); color: var(--rojo); box-shadow: none; }
.btn-ok { background: linear-gradient(135deg, #8ef0b8, #39c47a); color: #04210f; box-shadow: 0 10px 24px -10px rgba(57, 196, 122, .55); }
.ancho { width: 100%; }
.btn-mini { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.07); font-size: 13px; font-weight: 650; }
.enlace { color: var(--oro); font-weight: 650; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.btn-icono { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--texto-2); flex: none; }
.btn-icono.oro { background: var(--oro-suave); color: var(--oro); }

/* Tira de la semana */
.semana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 14px; }
.dia { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 0 8px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--linea); transition: all .2s; }
.dia b { font-size: 11px; font-weight: 700; color: var(--texto-3); letter-spacing: .04em; }
.dia .n { font-size: 16px; font-weight: 720; }
.dia .ico { width: 22px; height: 22px; border-radius: 8px; display: grid; place-items: center; color: var(--texto-3); }
.dia .ico svg.i { width: 15px; height: 15px; }
.dia.hoy { border-color: rgba(226,197,143,.45); }
.dia.hoy b { color: var(--oro); }
.dia.sel { background: var(--grad-oro); border-color: transparent; color: #1d1607; box-shadow: 0 10px 22px -12px rgba(217,181,111,.8); }
.dia.sel b, .dia.sel .ico { color: #3a2c0e; }
.dia .punto { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.dia .punto.on { background: var(--ok); }
.dia.sel .punto.on { background: #1d1607; }

/* Anillos */
.anillos { display: grid; grid-template-columns: 118px 1fr; gap: 16px; align-items: center; }
.anillo { position: relative; width: 118px; height: 118px; }
.anillo svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anillo .fondo { fill: none; stroke: rgba(255,255,255,.07); }
.anillo .valor { fill: none; stroke: url(#gradOro); stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.2,.8,.2,1); }
.anillo .centro { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.anillo .centro b { font-size: 24px; font-weight: 780; letter-spacing: -.02em; }
.anillo .centro span { font-size: 11px; color: var(--texto-3); }
.barras { display: grid; gap: 11px; }
.barra-top { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 5px; }
.barra-top b { font-weight: 700; }
.barra-top span { color: var(--texto-3); }
.barra { height: 7px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.barra i { display: block; height: 100%; border-radius: 99px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.b-p { background: linear-gradient(90deg, #ffb3a0, #ff7a59); }
.b-g { background: linear-gradient(90deg, #ffe08a, #f5b453); }
.b-h { background: linear-gradient(90deg, #b7cdff, #6f95ff); }
.b-oro { background: var(--grad-oro); }
.b-ok { background: linear-gradient(90deg, #8ef0b8, #39c47a); }

/* Losetas de datos */
.losetas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.losetas.cuatro { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.loseta { border-radius: 18px; padding: 13px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)), var(--sup); border: 1px solid var(--linea); }
.loseta .et { font-size: 11px; color: var(--texto-3); display: flex; align-items: center; gap: 5px; font-weight: 600; }
.loseta .et svg.i { width: 14px; height: 14px; }
.loseta .v { font-size: 21px; font-weight: 760; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.loseta .v small { font-size: 12px; color: var(--texto-3); font-weight: 600; margin-left: 2px; }
.losetas.cuatro .loseta { padding: 10px 8px; text-align: center; }
.losetas.cuatro .loseta .et { justify-content: center; }
.losetas.cuatro .loseta .v { font-size: 16px; }

/* Lista de cargas */
.cargas { margin-top: 12px; border-top: 1px solid var(--linea); }
.carga { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.carga:last-child { border-bottom: 0; }
.carga .ini, .ej-ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--oro); font-weight: 800; font-size: 12.5px; flex: none; letter-spacing: .02em; }
.carga .nom { font-weight: 620; font-size: 14.5px; }
.carga .kg { text-align: right; font-weight: 760; font-variant-numeric: tabular-nums; white-space: nowrap; }
.carga .kg small { display: block; font-size: 11px; font-weight: 700; color: var(--ok); }

/* Comidas */
.comida { border-radius: 18px; background: rgba(255,255,255,.03); border: 1px solid var(--linea); margin-bottom: 8px; overflow: hidden; transition: background .2s; }
.comida.hecha { background: var(--ok-suave); border-color: rgba(94,227,154,.2); }
.comida-cab { display: flex; align-items: center; gap: 12px; padding: 12px 13px; width: 100%; text-align: left; }
.comida-ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.06); font-size: 20px; flex: none; }
.comida-cuerpo { padding: 0 14px 14px 65px; }
.comida-cuerpo ul { margin: 0; padding: 0; list-style: none; }
.comida-cuerpo li { padding: 5px 0; font-size: 14px; color: var(--texto-2); border-bottom: 1px dashed var(--linea); display: flex; justify-content: space-between; gap: 8px; }
.comida-cuerpo li:last-child { border-bottom: 0; }
.comida-cuerpo li b { color: var(--texto); font-weight: 650; white-space: nowrap; }
.flecha { color: var(--texto-3); transition: transform .2s; }
.abierta .flecha { transform: rotate(180deg); }

/* Casilla redonda */
.casilla { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--linea-2); display: grid; place-items: center; flex: none; transition: all .18s; }
.casilla svg { width: 15px; height: 15px; fill: none; stroke: transparent; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.casilla.on { background: linear-gradient(135deg, #8ef0b8, #39c47a); border-color: transparent; animation: pop .25s ease; }
.casilla.on svg { stroke: #04210f; }
@keyframes pop { 50% { transform: scale(1.18); } }

/* Elementos de lista */
.item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--linea); }
.item:last-child { border-bottom: 0; }
.item.hecho .nom { color: var(--texto-3); text-decoration: line-through; }
.item .nom { font-weight: 600; font-size: 14.5px; }
.item .cant { text-align: right; font-weight: 720; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item .cant small { display: block; font-size: 11px; color: var(--texto-3); font-weight: 600; }
.ajuste { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--linea); width: 100%; text-align: left; }
.ajuste:last-child { border-bottom: 0; }
.ajuste .ico-c { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }

/* Segmentos */
.segmento { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 15px; background: rgba(255,255,255,.05); border: 1px solid var(--linea); margin-bottom: 14px; }
.segmento button { padding: 9px 0; border-radius: 11px; font-size: 13.5px; font-weight: 680; color: var(--texto-2); transition: all .2s; display: flex; align-items: center; justify-content: center; gap: 6px; }
.segmento button.sel { background: var(--sup-3); color: var(--texto); box-shadow: 0 4px 12px -4px rgba(0,0,0,.6), inset 0 0 0 1px var(--linea-2); }
.pildoras { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: 12px; }
.pildoras::-webkit-scrollbar { display: none; }
.pildoras button { flex: none; padding: 8px 13px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--linea); font-size: 13px; font-weight: 650; color: var(--texto-2); }
.pildoras button.sel { background: var(--grad-oro); color: #1d1607; border-color: transparent; }

/* Progreso circular de la compra */
.progreso-lineal { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; margin: 10px 0 2px; }
.progreso-lineal i { display: block; height: 100%; background: var(--grad-oro); border-radius: 99px; transition: width .5s; }

/* Entreno activo */
.cab-activa { position: sticky; top: 0; z-index: 12; margin: calc(-14px - var(--seg-top)) -16px 14px; padding: calc(12px + var(--seg-top)) 16px 12px; background: rgba(7, 8, 10, .82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--linea); }
.datos-activa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.datos-activa div span { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--texto-3); font-weight: 700; }
.datos-activa div b { font-size: 19px; font-weight: 760; font-variant-numeric: tabular-nums; }
.ej { padding: 16px; }
.ej.parado { opacity: .72; }
.ej-cab { display: flex; align-items: flex-start; gap: 12px; }
.ej-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--oro-suave); font-size: 13.5px; }
.ej-nombre { font-weight: 720; font-size: 16px; letter-spacing: -.01em; }
.ej-objetivo { font-size: 13px; color: var(--texto-2); margin-top: 2px; }
.ej-nota { width: 100%; background: transparent; border: 0; color: var(--texto-2); font-size: 13px; padding: 8px 0 0; resize: none; }
.ej-nota::placeholder { color: var(--texto-3); }
.series { width: 100%; border-collapse: separate; border-spacing: 0 5px; margin-top: 8px; }
.series th { font-size: 10.5px; color: var(--texto-3); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 2px 3px; text-align: center; }
.series td { text-align: center; padding: 0 3px; height: 46px; background: rgba(255,255,255,.03); transition: background .2s; }
.series td:first-child { border-radius: 12px 0 0 12px; }
.series td:last-child { border-radius: 0 12px 12px 0; }
.series tr.hecha td { background: var(--ok-suave); }
.series .n { font-weight: 780; width: 30px; color: var(--texto-2); }
.series .ant { color: var(--texto-3); font-size: 12.5px; }
.series input { width: 100%; max-width: 66px; text-align: center; background: rgba(255,255,255,.07); border: 1px solid transparent; border-radius: 10px; padding: 8px 2px; font-weight: 720; font-size: 15px; }
.series input:focus { outline: none; border-color: var(--oro); background: rgba(226,197,143,.08); }
.series tr.hecha input { background: transparent; }
.check { width: 36px; height: 34px; border-radius: 11px; background: rgba(255,255,255,.08); display: grid; place-items: center; margin: 0 auto; transition: all .18s; }
.check svg { width: 18px; height: 18px; fill: none; stroke: var(--texto-3); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
tr.hecha .check { background: linear-gradient(135deg, #8ef0b8, #39c47a); animation: pop .25s ease; }
tr.hecha .check svg { stroke: #04210f; }
.fila-botones { display: flex; gap: 8px; margin-top: 8px; }
.fila-botones .btn-mini { flex: 1; padding: 10px; }

.dolor { margin-top: 12px; }
.dolor-chips { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; margin-top: 6px; }
.dolor-chips button { padding: 8px 0; border-radius: 9px; background: rgba(255,255,255,.05); font-size: 12.5px; font-weight: 700; color: var(--texto-3); transition: all .15s; }
.dolor-chips button.sel.v0 { background: var(--ok); color: #04210f; }
.dolor-chips button.sel.v1 { background: var(--ambar); color: #2a1800; }
.dolor-chips button.sel.v2 { background: var(--rojo); color: #fff; }

/* Descanso */
.descanso {
  position: fixed; z-index: 25; left: 12px; right: 12px; bottom: calc(88px + var(--seg-bot));
  max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 22px;
  background: rgba(28, 25, 18, .9); border: 1px solid rgba(226,197,143,.3);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.8);
}
.descanso-anillo { position: relative; width: 50px; height: 50px; flex: none; }
.descanso-anillo svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.descanso-anillo circle { fill: none; stroke-width: 4; }
.descanso-anillo .f { stroke: rgba(255,255,255,.1); }
.descanso-anillo .v { stroke: var(--oro); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.descanso-centro { flex: 1; }
.descanso-etq { display: block; font-size: 10.5px; color: var(--oro); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
#descanso-tiempo { font-size: 24px; font-weight: 780; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.descanso .btn-mini { background: rgba(255,255,255,.08); }
.descanso.fin { border-color: var(--ok); background: rgba(10, 40, 24, .92); }
.descanso.fin .descanso-anillo .v { stroke: var(--ok); }

/* Peso */
.paso-peso { display: grid; grid-template-columns: 48px 1fr 48px; gap: 10px; align-items: center; margin-top: 10px; }
.paso-peso button { height: 48px; border-radius: 15px; background: rgba(255,255,255,.07); font-size: 22px; font-weight: 600; }
.paso-peso input { width: 100%; text-align: center; background: transparent; border: 0; font-size: 34px; font-weight: 780; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.paso-peso input:focus { outline: none; }

/* Formularios */
.campo { display: flex; gap: 8px; }
.campo input, .campo select { flex: 1; min-width: 0; background: rgba(255,255,255,.05); border: 1px solid var(--linea-2); border-radius: 14px; padding: 12px 14px; }
.campo input:focus, .campo select:focus { outline: none; border-color: var(--oro); }

/* Tablas */
.tabla { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tabla th { text-align: left; color: var(--texto-3); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 4px; border-bottom: 1px solid var(--linea); }
.tabla td { padding: 10px 4px; border-bottom: 1px solid var(--linea); font-variant-numeric: tabular-nums; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla tr.actual td { color: var(--oro); font-weight: 700; }

/* Gráficas */
.grafica { width: 100%; height: 170px; display: block; overflow: visible; }
.grafica .eje { stroke: var(--linea); stroke-width: 1; }
.grafica .linea { fill: none; stroke: var(--oro); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.grafica .area { fill: url(#gradArea); stroke: none; }
.grafica .media { fill: none; stroke: var(--azul); stroke-width: 1.6; stroke-dasharray: 4 5; opacity: .8; }
.grafica .punto { fill: var(--fondo); stroke: var(--oro); stroke-width: 2.2; }
.grafica text { fill: var(--texto-3); font-size: 10px; }

/* Actividades */
.act { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--linea); align-items: center; }
.act:last-child { border-bottom: 0; }
.act-ico { width: 40px; height: 40px; border-radius: 13px; background: var(--oro-suave); color: var(--oro); display: grid; place-items: center; flex: none; }
.act-ico.run { background: var(--ok-suave); color: var(--ok); }

/* Modal tipo hoja */
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; animation: fundido .2s ease; }
@keyframes fundido { from { opacity: 0; } }
.modal-caja { width: 100%; max-width: 640px; max-height: 90dvh; overflow-y: auto; background: linear-gradient(180deg, #1a1c21, #121418); border-radius: 28px 28px 0 0; padding: 10px 18px calc(18px + var(--seg-bot)); border-top: 1px solid var(--linea-2); animation: sube .28s cubic-bezier(.2,.8,.2,1); }
.modal-caja::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 9px; background: var(--linea-2); margin: 0 auto 14px; }
@keyframes sube { from { transform: translateY(40px); opacity: .5; } }
.video-marco { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000; margin: 12px 0; }
.video-marco iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.aviso { position: fixed; left: 50%; transform: translateX(-50%); top: calc(14px + var(--seg-top)); z-index: 50; background: rgba(35, 39, 47, .95); backdrop-filter: blur(12px); color: var(--texto); padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,.5); max-width: calc(100% - 32px); border: 1px solid var(--linea-2); animation: entra .25s ease; }
.vacio { text-align: center; color: var(--texto-3); padding: 22px 8px; font-size: 14px; }

/* Celebración al terminar */
.trofeo { width: 76px; height: 76px; margin: 4px auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-oro); color: #1d1607; box-shadow: 0 0 0 8px rgba(226,197,143,.12), 0 18px 40px -10px rgba(217,181,111,.7); animation: pop .5s ease; }
.trofeo svg.i { width: 36px; height: 36px; stroke-width: 2; }
