/* ============ SAMMYFITNESS — Portal del Cliente · Estilos ============
   Tema de marca: negro + cian turquesa + plata (igual que la app del coach).
   Mobile-first: los clientes entran desde el teléfono.
*/
:root {
  --bg: #060808;
  --panel: #0e1413;
  --panel-2: #121a19;
  --line: #2a3635;
  --line-soft: #1b2322;
  --ink: #eef5f4;
  --ink-soft: #a4b6b4;
  --ink-mute: #647877;
  --accent: #00F5D4;
  --accent-2: #00c9ae;
  --accent-glow: rgba(0, 245, 212, .45);
  --lime: #9EF01A;   --lime-soft: rgba(158,240,26,.14);
  --wa: #25D366;     --wa-dark: #1eb257;
  --green: #22c55e;  --green-soft: rgba(34,197,94,.14);
  --yellow: #f5b73d; --yellow-soft: rgba(245,183,61,.14);
  --red: #ef4444;    --red-soft: rgba(239,68,68,.14);
  --blue: #38bdf8;   --blue-soft: rgba(56,189,248,.14);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --font-d: 'Barlow Condensed', 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(0,245,212,.08) 0%, transparent 60%),
    radial-gradient(700px 500px at -10% 40%, rgba(0,201,174,.06) 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  min-height: 100dvh;
  overflow-x: hidden;
}
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

/* ---------- Fondo animado ---------- */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

/* Foto de fondo difuminada (gimnasio). Si la imagen no existe, no pasa nada:
   simplemente queda el fondo oscuro de siempre. */
.bg-photo {
  position: absolute; inset: -24px;               /* margen extra: evita bordes claros del blur */
  background: url('../assets/bg_gym.jpg') center 35% / cover no-repeat;
  filter: blur(6px) brightness(.72) saturate(.9);
  transform: scale(1.04);
}
.bg-photo::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(0,245,212,.06) 0%, transparent 55%),
    linear-gradient(180deg, rgba(6,8,8,.28) 0%, rgba(6,8,8,.5) 55%, rgba(6,8,8,.82) 100%);
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; }
.g1 { width: 480px; height: 480px; background: #0a2e2b; top: -160px; left: -120px; animation: drift1 16s ease-in-out infinite alternate; }
.g2 { width: 380px; height: 380px; background: rgba(0,229,210,.12); bottom: -140px; right: -120px; animation: drift2 20s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(60px, 40px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-50px, -50px) scale(1.1); } }
.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,229,210,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,229,210,.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}

.screen { position: relative; z-index: 1; min-height: 100dvh; }
.hidden { display: none !important; }
.acc { color: var(--accent); }

/* ---------- Splash / loading ---------- */
.splash {
  min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; color: var(--ink-soft);
}
.splash-logo { width: 110px; height: auto; filter: drop-shadow(0 0 24px var(--accent-glow)); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); filter: drop-shadow(0 0 36px var(--accent-glow)); } }
.splash-bar { width: 180px; height: 3px; background: var(--line-soft); border-radius: 3px; margin: 26px 0 14px; overflow: hidden; }
.splash-bar span { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 3px; animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-120%); } 100% { transform: translateX(400%); } }

/* ---------- Login ---------- */
.login-wrap { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px; }
.login-card {
  width: 100%; max-width: 400px; background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 22px; padding: 34px 26px; text-align: center; box-shadow: var(--shadow);
}
.login-logo { width: 88px; filter: drop-shadow(0 0 18px var(--accent-glow)); }
.login-card h1 { font-family: var(--font-d); font-size: 34px; letter-spacing: .5px; margin: 14px 0 4px; text-transform: uppercase; }
.login-sub { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 22px; line-height: 1.5; }
.fld { display: block; text-align: left; margin-bottom: 14px; }
.fld span { display: block; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-mute); margin-bottom: 6px; }
.fld input {
  width: 100%; background: #0a0f0e; border: 1px solid var(--line); color: var(--ink);
  border-radius: var(--radius-sm); padding: 13px 14px; font-size: 15px; outline: none; transition: border .2s, box-shadow .2s;
}
.fld input:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(0,229,210,.12); }
.btn-main {
  width: 100%; padding: 14px; border: none; border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--accent-2), var(--accent)); color: #04211e;
  font-weight: 800; font-size: 15px; letter-spacing: .4px; text-transform: uppercase;
  transition: transform .15s, box-shadow .2s; box-shadow: 0 6px 20px rgba(0,229,210,.25);
}
.btn-main:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0,229,210,.35); }
.btn-main:active { transform: translateY(0) scale(.98); }
.login-hint { font-size: 12px; color: var(--ink-mute); margin-top: 14px; line-height: 1.5; }
.login-err { margin-top: 12px; font-size: 13px; color: var(--red); background: var(--red-soft); border: 1px solid rgba(239,68,68,.3); border-radius: var(--radius-sm); padding: 10px; }
.login-foot { margin-top: 22px; font-size: 11.5px; color: var(--ink-mute); letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: rgba(6,8,8,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-d); font-size: 19px; letter-spacing: 1.5px; }
.topbar-brand img { width: 34px; height: 34px; object-fit: contain; }
.topbar-brand b { color: var(--accent); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.hello { font-size: 13px; color: var(--ink-soft); max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); border-radius: 9px; padding: 7px 13px; font-size: 12.5px; transition: all .2s; }
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent); }

/* ---------- Vista principal ---------- */
.view { max-width: 860px; margin: 0 auto; padding: 20px 16px 110px; }

/* animación de entrada de secciones */
.reveal { animation: rise .5s cubic-bezier(.22,.9,.35,1) both; }
.reveal.d1 { animation-delay: .06s; } .reveal.d2 { animation-delay: .12s; } .reveal.d3 { animation-delay: .18s; } .reveal.d4 { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.card {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px; margin-bottom: 16px;
}
.card h3 { font-family: var(--font-d); font-size: 21px; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card h3 .bar { display: inline-block; width: 4px; height: 18px; border-radius: 2px; background: linear-gradient(var(--accent), var(--accent-2)); }
.sub { color: var(--ink-soft); font-size: 13px; }
.mute { color: var(--ink-mute); }

/* ---------- Hero de inicio ---------- */
.hero {
  position: relative; border-radius: 20px; overflow: hidden; padding: 26px 20px; margin-bottom: 18px;
  background: linear-gradient(135deg, #0a2e2b 0%, #0e1413 55%, #0a1211 100%);
  border: 1px solid var(--line);
}
.hero::after { content: ''; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(0,229,210,.18), transparent 70%); }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-txt { flex: 1; min-width: 0; }
.hero-coach { flex: none; position: relative; z-index: 1; text-align: center; animation: rise .6s .15s cubic-bezier(.22,.9,.35,1) both; }
.hero-coach img {
  width: 108px; height: 108px; border-radius: 50%; object-fit: cover; object-position: center top; display: block;
  border: 2px solid rgba(0,245,212,.55); box-shadow: 0 0 26px rgba(0,245,212,.28), 0 8px 20px rgba(0,0,0,.4);
  transition: transform .3s cubic-bezier(.3,1.4,.4,1), box-shadow .3s ease-out;
}
.hero-coach:hover img { transform: scale(1.05) rotate(-2deg); box-shadow: 0 0 34px rgba(0,245,212,.45), 0 10px 24px rgba(0,0,0,.5); }
.hero-coach span { display: block; margin-top: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
@media (max-width: 480px) { .hero-coach img { width: 84px; height: 84px; } }
.hero .kicker { font-size: 11.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.hero h2 { font-family: var(--font-d); font-size: clamp(28px, 6vw, 40px); text-transform: uppercase; letter-spacing: .5px; line-height: 1.05; }
.hero .sub { margin-top: 8px; max-width: 480px; }
.hero .obj-chip { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; background: rgba(0,229,210,.1); border: 1px solid rgba(0,229,210,.3); color: var(--accent); border-radius: 30px; padding: 7px 14px; font-size: 13px; font-weight: 600; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px 14px; position: relative; overflow: hidden; }
.stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--accent), transparent); }
.stat .n { font-family: var(--font-d); font-size: 30px; font-weight: 800; line-height: 1; }
.stat .l { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-mute); margin-top: 6px; }

/* anillo de progreso */
.ring-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ring { position: relative; width: 116px; height: 116px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .ring-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .ring-txt b { font-family: var(--font-d); font-size: 26px; }
.ring .ring-txt span { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-mute); }
.ring-info { flex: 1; min-width: 180px; }
.ring-info p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 6px; }
.ring-info b { color: var(--ink); }

/* proxima sesion */
.next-session { display: flex; align-items: center; gap: 14px; }
.next-session .ns-day {
  flex: none; width: 68px; height: 68px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(0,229,210,.08); border: 1px solid rgba(0,229,210,.3);
}
.next-session .ns-day b { font-family: var(--font-d); font-size: 22px; color: var(--accent); line-height: 1; }
.next-session .ns-day span { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); margin-top: 3px; }
.next-session .ns-info b { font-size: 15px; }
.next-session .ns-info p { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 30px; padding: 4px 11px; font-size: 12px; font-weight: 600; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.yellow { background: var(--yellow-soft); color: var(--yellow); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.cyan { background: rgba(0,229,210,.1); color: var(--accent); }

/* ---------- Rutina ---------- */
.rt-svg { width: 100%; max-width: 430px; height: auto; display: block; margin: 0 auto; }
.rt-switch { display: flex; gap: 8px; justify-content: center; margin-bottom: 12px; }
.rt-switch button {
  background: var(--panel); border: 1px solid var(--line); color: var(--ink-soft); border-radius: 30px; padding: 8px 18px; font-size: 13px; font-weight: 600; transition: all .2s;
}
.rt-switch button.on { background: rgba(0,229,210,.1); border-color: var(--accent-2); color: var(--accent); }
.grp { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; }
.grp-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--panel-2); border: none; color: var(--ink); padding: 13px 15px; font-size: 14.5px; font-weight: 700; text-align: left;
}
.grp-head .cnt { font-size: 12px; color: var(--accent); font-weight: 600; }
.grp-body { display: none; padding: 4px 15px 12px; }
.grp.open .grp-body { display: block; animation: rise .3s both; }
.ex-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); }
.ex-row:last-child { border-bottom: none; }
.ex-row .nm { font-size: 14px; }
.ex-row .sr { flex: none; font-family: var(--font-d); font-size: 16px; color: var(--accent); font-weight: 700; letter-spacing: .5px; }

/* ---------- Horario ---------- */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.wday { border-radius: 12px; border: 1px solid var(--line-soft); background: var(--panel); padding: 10px 4px; text-align: center; min-height: 86px; position: relative; }
.wday.today { border-color: var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2), 0 0 18px rgba(0,229,210,.15); }
.wday.train { background: linear-gradient(180deg, rgba(0,229,210,.1), var(--panel)); }
.wday .d { font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-mute); font-weight: 700; }
.wday.train .d { color: var(--accent); }
.wday .hs { margin-top: 7px; display: flex; flex-direction: column; gap: 4px; }
.wday .h { font-size: 10px; font-weight: 700; background: rgba(0,229,210,.12); color: var(--accent); border-radius: 6px; padding: 3px 2px; }
.wday .h.eval { background: var(--yellow-soft); color: var(--yellow); }
.wday .rest { font-size: 14px; opacity: .3; margin-top: 12px; }
.today-tag { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #04211e; font-size: 8.5px; font-weight: 800; padding: 2px 7px; border-radius: 20px; letter-spacing: .5px; }

/* historial asistencia */
.att-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line-soft); font-size: 13.5px; }
.att-row:last-child { border-bottom: none; }

/* ---------- Nutrición ---------- */
.day-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 12px; scrollbar-width: none; }
.day-tabs::-webkit-scrollbar { display: none; }
.day-tabs button {
  flex: none; background: var(--panel); border: 1px solid var(--line); color: var(--ink-soft);
  border-radius: 30px; padding: 8px 16px; font-size: 13px; font-weight: 600; transition: all .2s;
}
.day-tabs button.on { background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-color: transparent; color: #04211e; }
.meal { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--panel-2); padding: 13px 15px; }
.meal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.meal-head b { font-size: 14.5px; }
.meal-head .kc { font-size: 12px; color: var(--accent); font-weight: 700; }
.food { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 6px 0; border-bottom: 1px dashed var(--line-soft); }
.food:last-child { border-bottom: none; }
.food .g { color: var(--ink-mute); flex: none; }
.macros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.macro { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 11px 8px; text-align: center; }
.macro b { font-family: var(--font-d); font-size: 20px; display: block; }
.macro span { font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-mute); }
.macro .mbar { height: 3px; border-radius: 2px; background: var(--line-soft); margin-top: 7px; overflow: hidden; }
.macro .mbar i { display: block; height: 100%; border-radius: 2px; }

/* ---------- Progreso ---------- */
.prog-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.prog-table th, .prog-table td { padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.prog-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-mute); }
.prog-table td.up { color: var(--green); font-weight: 600; }
.prog-table td.down { color: var(--red); font-weight: 600; }
.chart-svg { width: 100%; height: auto; }

/* ---------- Consejos ---------- */
.tip { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed var(--line-soft); }
.tip:last-child { border-bottom: none; }
.tip .t-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: rgba(0,229,210,.08); border: 1px solid rgba(0,229,210,.2); }
.tip b { font-size: 14.5px; display: block; margin-bottom: 3px; }
.tip p { font-size: 13px; color: var(--ink-soft); line-height: 1.55; }
.tip-day {
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(0,229,210,.12), var(--panel)); border: 1px solid rgba(0,229,210,.25);
}
.tip-day .kicker { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.tip-day p { font-size: 16px; line-height: 1.55; font-weight: 500; }

/* vacíos */
.empty { text-align: center; padding: 38px 18px; color: var(--ink-mute); }
.empty .e-ico { font-size: 40px; margin-bottom: 10px; }
.empty b { color: var(--ink-soft); }

/* ---------- Tab bar inferior ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  display: flex; justify-content: space-around; gap: 2px;
  background: rgba(10,15,14,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-soft); padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}
.tab {
  flex: 1; max-width: 96px; background: none; border: none; color: var(--ink-mute);
  display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; font-weight: 600;
  padding: 6px 2px; border-radius: 10px; transition: color .2s, transform .15s;
}
.tab .t-ico { font-size: 18px; line-height: 1; }
.tab.active { color: var(--accent); }
.tab.active .t-ico { transform: translateY(-2px); filter: drop-shadow(0 0 8px var(--accent-glow)); }
.tab:active { transform: scale(.94); }

/* ============================================================
   CAPA VIVA — paleta intensa + micro-animaciones por elemento
   (solo estética/interacción; no toca la lógica de datos)
   ============================================================ */

/* --- Fondo: glows más vivos --- */
.g1 { background: #0c4a44; opacity: .5; }
.g2 { background: rgba(0,245,212,.16); opacity: .5; }

/* --- Títulos grandes: degradado turquesa → blanco --- */
.hero h2, .login-card h1 {
  background: linear-gradient(100deg, var(--accent) 0%, #d9fff9 55%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.login-card h1 .acc, .hero h2 .acc { -webkit-text-fill-color: transparent; }

/* --- Botones: escala + glow progresivo --- */
.btn-main {
  transition: transform .22s cubic-bezier(.22,.9,.35,1.4), box-shadow .3s ease-out, filter .3s ease-out;
}
.btn-main:hover { transform: translateY(-1px) scale(1.03); box-shadow: 0 10px 30px var(--accent-glow), 0 0 0 1px rgba(0,245,212,.35); filter: brightness(1.08); }
.btn-main:active { transform: scale(.97); box-shadow: 0 4px 12px rgba(0,245,212,.25); }
.btn-ghost { transition: border-color .25s ease-out, color .25s ease-out, box-shadow .3s ease-out, transform .2s ease-out; }
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent); box-shadow: 0 0 14px rgba(0,245,212,.18); transform: translateY(-1px); }
.btn-ghost:active { transform: scale(.96); }

/* --- Tarjetas: entrada escalonada (ya con .reveal) + hover elevado --- */
.card, .stat {
  transition: transform .28s ease-out, box-shadow .3s ease-out, border-color .3s ease-out;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(0,0,0,.55), 0 0 22px rgba(0,245,212,.07); border-color: var(--line); }
.stat:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0,0,0,.5), 0 0 18px rgba(0,245,212,.1); border-color: rgba(0,245,212,.28); }
.reveal.d5 { animation-delay: .30s; } .reveal.d6 { animation-delay: .36s; }

/* --- Inputs login: glow progresivo + label que cambia de color --- */
.fld input { transition: border-color .3s ease-out, box-shadow .35s ease-out, background .3s ease-out; }
.fld input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,245,212,.16), 0 0 18px rgba(0,245,212,.22);
  background: #0b1211;
}
.fld:focus-within span { color: var(--accent); }
.fld span { transition: color .25s ease-out; }

/* --- Tabs: indicador deslizante + bounce + wiggle --- */
.tabbar { overflow: visible; }
#tabInd {
  position: absolute; top: 0; left: 0; z-index: 0; border-radius: 12px;
  background: linear-gradient(180deg, rgba(0,245,212,.16), rgba(0,245,212,.05));
  border: 1px solid rgba(0,245,212,.22);
  box-shadow: 0 0 16px rgba(0,245,212,.12);
  transition: transform .3s cubic-bezier(.3,.9,.3,1.2), width .3s cubic-bezier(.3,.9,.3,1.2), height .3s ease-out;
  pointer-events: none; opacity: 0;
}
#tabInd.ready { opacity: 1; }
.tabbar { position: fixed; } /* mantiene su display flex previo */
.tab { position: relative; z-index: 1; transition: color .3s ease-out, transform .15s ease-out; }
.tab .t-ico { transition: transform .25s ease-out, filter .3s ease-out; display: inline-block; }
.tab:hover .t-ico { animation: wiggle .5s ease-in-out; }
@keyframes wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-12deg) scale(1.1); } 75% { transform: rotate(10deg) scale(1.1); } }
.tab.active .t-ico { animation: tabBounce .45s cubic-bezier(.3,1.6,.4,1); filter: drop-shadow(0 0 10px var(--accent-glow)); }
@keyframes tabBounce { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(-6px) scale(1.22); } 70% { transform: translateY(1px) scale(.96); } 100% { transform: translateY(-2px) scale(1); } }

/* --- Badges: color eléctrico + pulso sutil constante --- */
.badge { transition: transform .2s ease-out, box-shadow .3s ease-out; }
.badge.green { background: var(--lime-soft); color: var(--lime); box-shadow: 0 0 12px rgba(158,240,26,.15); animation: badgePulse 2.6s ease-in-out infinite; }
.badge.cyan { box-shadow: 0 0 12px rgba(0,245,212,.15); }
.badge.yellow, .badge.red, .badge.blue { animation: badgePulse 2.6s ease-in-out infinite; }
@keyframes badgePulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.045); opacity: .92; } }
.today-tag { animation: todayPulse 1.8s ease-in-out infinite; box-shadow: 0 0 12px var(--accent-glow); }
@keyframes todayPulse { 0%,100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.12); } }

/* --- Barras y anillos: brillo --- */
.macro .mbar i { box-shadow: 0 0 8px rgba(0,245,212,.35); transition: width .8s cubic-bezier(.22,.9,.35,1); }
.splash-bar span { box-shadow: 0 0 10px var(--accent-glow); }
.ring svg circle[stroke^="url"] { filter: drop-shadow(0 0 6px rgba(0,245,212,.45)); }
.wday.train { box-shadow: inset 0 0 18px rgba(0,245,212,.06); }
.wday { transition: transform .25s ease-out, box-shadow .3s ease-out; }
.wday:hover { transform: translateY(-3px); }
.wday.today { box-shadow: 0 0 0 1px var(--accent-2), 0 0 22px rgba(0,245,212,.22); }

/* --- Acordeones, selectores y filas: respuesta al toque --- */
.grp-head { transition: background .25s ease-out, color .25s ease-out; }
.grp-head:hover { background: #17211f; }
.grp-head:active { transform: scale(.995); }
.day-tabs button, .rt-switch button { transition: all .25s ease-out; }
.day-tabs button:hover, .rt-switch button:hover { border-color: var(--accent-2); color: var(--accent); transform: translateY(-1px); }
.day-tabs button:active, .rt-switch button:active { transform: scale(.95); }
.day-tabs button.on { box-shadow: 0 4px 16px rgba(0,245,212,.3); }
.ex-row, .food, .att-row, .tip { transition: background .25s ease-out, padding-left .25s ease-out; border-radius: 6px; }
.ex-row:hover, .food:hover, .att-row:hover { background: rgba(0,245,212,.04); padding-left: 6px; }
.tip:hover .t-ic { transform: rotate(-8deg) scale(1.1); box-shadow: 0 0 14px rgba(0,245,212,.2); }
.tip .t-ic { transition: transform .25s cubic-bezier(.3,1.4,.4,1), box-shadow .3s ease-out; }

/* --- Estados vacíos: ícono flotando --- */
.empty .e-ico { animation: floaty 3s ease-in-out infinite; display: inline-block; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* --- Logo splash y login con más vida --- */
.login-logo { transition: transform .4s cubic-bezier(.3,1.4,.4,1); }
.login-card:hover .login-logo { transform: scale(1.06) rotate(-2deg); }

/* --- FAB WhatsApp: contactar al entrenador --- */
.fab-wa {
  position: fixed; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 0;
  height: 58px; min-width: 58px; max-width: 58px;
  padding: 0 15px; border-radius: 30px; text-decoration: none;
  background: linear-gradient(135deg, #34e07a 0%, var(--wa) 60%, var(--wa-dark) 100%);
  box-shadow: 0 8px 24px rgba(37,211,102,.4), 0 2px 8px rgba(0,0,0,.4);
  transition: max-width .35s cubic-bezier(.25,.9,.3,1), box-shadow .3s ease-out, transform .2s ease-out;
  overflow: hidden; white-space: nowrap;
}
.fab-wa:active { transform: scale(.94); }
.fab-wa .fab-ico { flex: none; width: 28px; height: 28px; display: block; }
.fab-wa .fab-txt {
  color: #fff; font-weight: 700; font-size: 13.5px; letter-spacing: .3px;
  opacity: 0; margin-left: 0; transform: translateX(6px);
  transition: opacity .3s ease-out .05s, transform .3s ease-out .05s, margin-left .3s ease-out;
}
@media (hover: hover) {
  .fab-wa:hover { max-width: 260px; box-shadow: 0 12px 32px rgba(37,211,102,.55), 0 0 0 2px rgba(37,211,102,.25); }
  .fab-wa:hover .fab-txt { opacity: 1; transform: translateX(0); margin-left: 10px; }
}
/* pulso constante estilo widget de chat */
.fab-wa::before {
  content: ''; position: absolute; inset: 0; border-radius: 30px;
  box-shadow: 0 0 0 0 rgba(37,211,102,.5);
  animation: waPulse 2.2s ease-out infinite; pointer-events: none;
}
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.45); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Desktop ---------- */
@media (min-width: 720px) {
  .view { padding-top: 28px; }
  .tabbar { top: 60px; bottom: auto; left: 50%; right: auto; transform: translateX(-50%); border-radius: 40px; border: 1px solid var(--line-soft); padding: 6px 10px; width: auto; }
  .tab { flex-direction: row; gap: 7px; font-size: 12.5px; padding: 9px 16px; max-width: none; }
  .view { padding-top: 96px; }
  .topbar { padding: 14px 26px; }
  .fab-wa { right: 26px; bottom: 26px; }
}
