/* =========================================================
   ZONA FITNESS SUR — DESIGN SYSTEM PREMIUM
   Paleta extraída de zonafitnesssur.com + profundidad/relieves
   ========================================================= */
:root {
  --bg: #0a0a09;
  --surface: #121211;
  --surface-elevated: #171715;
  --card: #161614;
  --card-hover: #1e1e1b;
  --line: #26251f;
  --line-strong: #3a3830;
  --accent: #fd5306;
  --accent-bright: #fd5306;
  --accent-deep: #fd5306;
  --accent-dim: rgba(253, 83, 6, 0.14);
  --accent-glow: rgba(253, 83, 6, 0.24);
  --text: #edede7;
  --text-soft: #b7b7b2;
  --text-dim: #8d8c84;
  --on-accent: #0a0a09;
  --success: #3dd68c;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --shadow-md: 0 10px 26px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-accent: 0 5px 14px rgba(0, 0, 0, 0.45);

  --font-display: 'Bebas Neue', 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --nav-h: 70px;
  --savebar-h: 68px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-height: 100%;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* Fondo con cuadrícula arquitectónica + brillo ambiental naranja */
body {
  background-image:
    radial-gradient(circle at 50% -10%, rgba(212, 88, 36, 0.09), transparent 50%),
    linear-gradient(to right, rgba(38, 37, 31, 0.34) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(38, 37, 31, 0.34) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
  background-position: top center;
}

button,
input {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.hidden {
  display: none !important;
}

/* =========================================================
   CONTENEDOR PRINCIPAL MÓVIL-FIRST
   ========================================================= */
.app-shell {
  width: 100%;
  max-width: 520px;
  min-height: 100dvh;
  margin: 0 auto;
  background: rgba(10, 10, 9, 0.9);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (max-width: 520px) {
  .app-shell {
    border-left: none;
    border-right: none;
    box-shadow: none;
  }
}

/* =========================================================
   LOGO ZFS CON RELIEVE
   ========================================================= */
.zfs-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.zfs-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  background: linear-gradient(145deg, #1b1a17, #0c0c0b);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.zfs-bar {
  width: 3px;
  height: 18px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-glow);
}

.zfs-letters {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 1.5px;
  line-height: 1;
  color: var(--text);
}

.zfs-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.zfs-brand-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1.2px;
  color: var(--text);
}

.zfs-brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* =========================================================
   PANTALLA DE REGISTRO (ONBOARDING + AVISO GUARDAR APP)
   ========================================================= */
.onboarding-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(26px + env(safe-area-inset-top, 0px)) 20px calc(34px + env(safe-area-inset-bottom, 0px));
  gap: 20px;
}

.onboarding-hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.onboarding-title {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 0.96;
  letter-spacing: 0.02em;
  color: var(--text);
  text-transform: uppercase;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
}

.onboarding-title span {
  color: var(--accent);
}

.onboarding-desc {
  color: var(--text-soft);
  font-size: 15px;
  max-width: 38ch;
}

/* Aviso destacado para guardar la app en el celular */
.install-notice {
  background: linear-gradient(145deg, rgba(184, 77, 32, 0.16), rgba(22, 22, 20, 0.96));
  border: 1px solid rgba(184, 77, 32, 0.48);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.install-notice-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.install-app-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(184, 77, 32, 0.35);
}

.install-notice-title {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.03em;
  line-height: 1.05;
  color: var(--text);
}

.install-notice-sub {
  font-size: 13px;
  color: var(--text-soft);
}

.install-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.install-step-pill {
  background: rgba(10, 10, 9, 0.72);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 12px;
  color: var(--text-soft);
}

.install-step-pill strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}

.onboarding-card {
  background: linear-gradient(160deg, #181816, #111110);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.field-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 16px;
  color: var(--text);
  outline: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field-input::placeholder {
  color: #5e5d57;
}

.field-input:focus {
  border-color: var(--accent);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55), 0 0 0 3px var(--accent-dim);
}

.field-error {
  font-size: 12px;
  color: #ff6b4a;
  min-height: 16px;
}

/* Botones con relieve y brillo */
.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: var(--on-accent);
  border: 1px solid rgba(255, 160, 110, 0.45);
  border-radius: var(--radius-pill);
  padding: 13px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-accent);
  transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-accent:hover {
  filter: brightness(1.04);
  box-shadow: 0 8px 20px rgba(212, 88, 36, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-danger-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #e06d58;
  border: 1px solid rgba(224, 109, 88, 0.45);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.btn-danger-outline:hover {
  background: rgba(224, 109, 88, 0.12);
  border-color: #e06d58;
}

.btn-accent:active {
  transform: translateY(1px) scale(0.98);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #1b1b19, #121211);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline:active {
  transform: translateY(1px) scale(0.98);
}

.onboarding-footnote {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
}

/* =========================================================
   HEADER PRINCIPAL (LIMPIO, SIN QR)
   ========================================================= */
.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(12, 12, 11, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: linear-gradient(180deg, #1c1c1a, #121211);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, color 0.16s ease;
}

.icon-pill-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.user-chip {
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-pill {
  position: relative;
}

.community-badge {
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.community-sheet {
  max-height: 82dvh;
}

.community-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 2px;
}

.community-post {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.community-post-date {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.community-post-title {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.05;
  color: var(--text);
}

.community-post-msg {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.5;
}

/* =========================================================
   CONTENIDO PRINCIPAL
   ========================================================= */
.app-main {
  flex: 1;
  padding: 16px 16px calc(var(--nav-h) + var(--savebar-h) + 28px);
}

.app-main.no-savebar {
  padding-bottom: calc(var(--nav-h) + 28px);
}

/* =========================================================
   SELECTOR DE SEMANA Y DÍAS (LUNES A SÁBADO)
   ========================================================= */
.week-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.week-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #1b1b19, #121211);
  border: 1px solid var(--line-strong);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.week-nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.week-nav-btn:active {
  transform: scale(0.94);
}

.week-label-wrap {
  text-align: center;
}

.week-label-top {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.week-label-dates {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.days-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}

.day-btn {
  background: linear-gradient(180deg, #191917, #111110);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 4px 8px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  position: relative;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.day-btn:active {
  transform: scale(0.95);
}

.day-btn .day-short {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.day-btn .day-num {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  color: var(--text);
}

.day-btn .day-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  margin-top: 2px;
}

.day-btn.has-log .day-dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.day-btn.active {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  border-color: rgba(255, 160, 110, 0.5);
  box-shadow: var(--shadow-accent);
}

.day-btn.active .day-short,
.day-btn.active .day-num {
  color: var(--on-accent);
}

.day-btn.active .day-dot {
  background: var(--on-accent);
  box-shadow: none;
}

/* Cabecera de sección */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

.section-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.clear-day-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: underline;
  padding: 4px 2px;
}

.clear-day-btn:hover {
  color: var(--accent);
}

/* Buscador rápido */
.search-wrap {
  position: relative;
  margin-bottom: 14px;
}

.search-input {
  width: 100%;
  background: linear-gradient(180deg, #161614, #10100f);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 11px 16px 11px 40px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm), 0 0 0 3px var(--accent-dim);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

/* =========================================================
   TARJETAS DE GRUPOS MUSCULARES CON PROFUNDIDAD
   ========================================================= */
.muscle-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.muscle-card {
  background: linear-gradient(160deg, #191917, #111110);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.muscle-card.has-selected {
  border-color: rgba(184, 77, 32, 0.65);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(184, 77, 32, 0.18), inset 0 1px 0 rgba(184, 77, 32, 0.25);
}

.muscle-card-header {
  width: 100%;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  background: transparent;
  transition: background-color 0.15s ease;
}

.muscle-card-header:hover {
  background: rgba(255, 255, 255, 0.025);
}

.muscle-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.muscle-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #1b1a17, #0b0b0a);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.muscle-card.has-selected .muscle-icon-box {
  background: linear-gradient(145deg, rgba(184, 77, 32, 0.26), rgba(184, 77, 32, 0.08));
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(184, 77, 32, 0.25);
}

.muscle-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.muscle-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.muscle-name {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: 0.03em;
  color: var(--text);
}

.muscle-card-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.muscle-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.muscle-card.has-selected .muscle-count {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 3px 10px rgba(184, 77, 32, 0.35);
}

.muscle-chevron {
  color: var(--text-dim);
  transition: transform 0.2s ease;
}

.muscle-card.open .muscle-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.muscle-card-body {
  display: none;
  padding: 4px 14px 16px;
  border-top: 1px solid var(--line);
  background: rgba(8, 8, 7, 0.8);
}

.muscle-card.open .muscle-card-body {
  display: block;
}

.exercise-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
}

.exercise-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #191917, #121211);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.exercise-metrics {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}

.sr-picker {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 2px 6px;
  flex-shrink: 0;
}

.exercise-row.selected .sr-picker {
  border-color: rgba(253, 83, 6, 0.45);
}

.sr-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 3px;
  text-align: center;
  cursor: pointer;
  outline: none;
}

.sr-select option {
  background: #141412;
  color: #edede7;
}

.sr-x {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  font-weight: 700;
}

.exercise-row.selected {
  background: linear-gradient(145deg, rgba(253, 83, 6, 0.16), rgba(253, 83, 6, 0.05));
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(253, 83, 6, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.exercise-btn {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 6px;
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
}

.exercise-row.selected .exercise-btn {
  color: var(--text);
}

.exercise-check {
  width: 19px;
  height: 19px;
  border-radius: 6px;
  border: 1.5px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.exercise-check svg {
  opacity: 0;
  transition: opacity 0.12s ease;
}

.exercise-row.selected .exercise-check {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.exercise-row.selected .exercise-check svg {
  opacity: 1;
}

/* Selector de peso en kg (rueda + botones - / +) */
.weight-picker {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 2px;
  flex-shrink: 0;
}

.exercise-row.selected .weight-picker {
  border-color: rgba(253, 83, 6, 0.55);
}

.weight-step-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.weight-step-btn:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.weight-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 6px;
  text-align: center;
  cursor: pointer;
  outline: none;
  min-width: 62px;
}

.weight-select option {
  background: #141412;
  color: #edede7;
}

/* =========================================================
   BARRA FLOTANTE DE GUARDAR DÍA
   ========================================================= */
.save-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: var(--nav-h);
  width: 100%;
  max-width: 520px;
  height: var(--savebar-h);
  padding: 10px 16px;
  background: rgba(18, 18, 17, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 25;
}

@media (max-width: 520px) {
  .save-bar {
    border-left: none;
    border-right: none;
  }
}

.save-bar-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.save-bar-count {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--text);
}

.save-bar-day {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.save-bar-day.unsaved {
  color: var(--accent);
}

.save-bar .btn-accent {
  padding: 10px 20px;
  font-size: 12px;
  flex-shrink: 0;
}

/* =========================================================
   VISTA DE RESUMEN SEMANAL
   ========================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.day-kcal-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 10px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, rgba(253, 83, 6, 0.14), rgba(16, 16, 15, 0.92));
  border: 1px solid rgba(253, 83, 6, 0.42);
  box-shadow: var(--shadow-sm);
}

.day-kcal-left {
  display: flex;
  flex-direction: column;
}

.day-kcal-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.day-kcal-sub {
  font-size: 11.5px;
  color: var(--text-dim);
}

.day-kcal-value {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--accent);
}

.stat-card {
  background: linear-gradient(160deg, #1a1a18, #111110);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 15px 10px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 2px 14px rgba(184, 77, 32, 0.35);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 4px;
}

.week-overview-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 20px;
}

.overview-day-pill {
  background: linear-gradient(180deg, #181816, #111110);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 4px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.overview-day-pill.done {
  background: linear-gradient(145deg, rgba(184, 77, 32, 0.22), rgba(184, 77, 32, 0.08));
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(184, 77, 32, 0.22);
}

.overview-day-pill .ov-day {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
}

.overview-day-pill.done .ov-day {
  color: var(--accent);
}

.overview-day-pill .ov-count {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  color: var(--text-dim);
}

.overview-day-pill.done .ov-count {
  color: var(--text);
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-day-card {
  background: linear-gradient(160deg, #191917, #111110);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-md);
}

.summary-day-card.empty {
  opacity: 0.62;
  border-style: dashed;
  box-shadow: none;
}

.summary-day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.summary-day-title {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.03em;
}

.summary-day-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.summary-edit-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(184, 77, 32, 0.4);
  background: rgba(184, 77, 32, 0.08);
}

.summary-edit-btn:hover {
  background: var(--accent-dim);
}

.summary-group-block {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.summary-group-block:first-of-type {
  margin-top: 4px;
  padding-top: 8px;
}

.summary-group-name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.summary-ex-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.summary-ex-tag {
  font-size: 12.5px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.summary-empty-text {
  font-size: 13px;
  color: var(--text-dim);
}

.summary-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* =========================================================
   VISTA C: CRONÓMETRO DE GIMNASIO
   ========================================================= */
.timer-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.timer-mode-btn {
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.timer-mode-btn.active {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  color: var(--on-accent);
  box-shadow: 0 4px 14px rgba(184, 77, 32, 0.35);
}

.timer-stage {
  background: linear-gradient(160deg, #191917, #10100f);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 26px 20px 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.timer-ring-wrap {
  position: relative;
  width: 224px;
  height: 224px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-ring-svg {
  width: 224px;
  height: 224px;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 12px rgba(184, 77, 32, 0.28));
}

.timer-ring-bg {
  fill: none;
  stroke: #23221d;
  stroke-width: 10;
}

.timer-ring-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.25s linear, stroke 0.25s ease;
}

.timer-ring-progress.done {
  stroke: var(--success);
  filter: drop-shadow(0 0 12px rgba(61, 214, 140, 0.45));
}

.timer-status-text.done {
  color: var(--success);
}

.timer-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.timer-display {
  font-family: var(--font-mono);
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}

.timer-status-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.timer-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}

.preset-btn {
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.preset-btn.active,
.preset-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.timer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.timer-controls .btn-accent {
  flex: 1;
}

.timer-custom-inputs {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.custom-time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 150px;
}

.custom-stepper {
  width: 100%;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55);
}

.custom-stepper:focus-within {
  border-color: var(--accent);
}

.custom-step-btn {
  width: 30px;
  height: 36px;
  border-radius: 8px;
  background: #1c1c1a;
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.custom-step-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.custom-time-input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: none;
  padding: 4px 2px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  outline: none;
  -moz-appearance: textfield;
}

.custom-time-input::-webkit-inner-spin-button,
.custom-time-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.custom-time-sep {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  padding-bottom: 10px;
}

.laps-list {
  width: 100%;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lap-item {
  background: linear-gradient(160deg, #181816, #111110);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  box-shadow: var(--shadow-sm);
}

.lap-item span:first-child {
  color: var(--text-dim);
}

.lap-item span:last-child {
  color: var(--accent);
  font-weight: 600;
}

/* =========================================================
   VISTA D: CONSEJOS DIARIOS (COACH ZFS)
   ========================================================= */
.tip-hero-card {
  background: linear-gradient(145deg, rgba(184, 77, 32, 0.2), #151513 62%);
  border: 1px solid rgba(184, 77, 32, 0.55);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg), 0 0 28px rgba(184, 77, 32, 0.12);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tip-hero-title {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.02;
  letter-spacing: 0.02em;
  color: var(--text);
}

.tip-hero-body {
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.55;
}

.tip-smart-card {
  background: linear-gradient(160deg, #1b1a17, #121210);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-md);
  margin-bottom: 18px;
}

.tip-smart-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.tip-smart-text {
  font-size: 13.5px;
  color: var(--text-soft);
}

.tips-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tip-card {
  background: linear-gradient(160deg, #191917, #111110);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tip-card-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.tip-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.05;
  color: var(--text);
}

.tip-card-text {
  font-size: 13.5px;
  color: var(--text-soft);
}

/* =========================================================
   VISTA E: CALENDARIO DE FERIADOS
   ========================================================= */
.cal-card {
  background: linear-gradient(160deg, #191917, #111110);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  box-shadow: var(--shadow-lg);
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cal-month-label {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.05em;
  color: var(--text);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-soft);
  position: relative;
}

.cal-cell.empty {
  background: transparent;
  border-color: transparent;
}

.cal-cell.sunday {
  opacity: 0.45;
}

.cal-cell.today {
  border-color: var(--text);
  color: var(--text);
  font-weight: 700;
}

.cal-cell.holiday {
  background: var(--accent-dim);
  border-color: rgba(253, 83, 6, 0.55);
  color: var(--text);
  font-weight: 700;
}

.cal-holiday-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 3px;
  box-shadow: 0 0 8px var(--accent-glow);
}

.holiday-clickable {
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.12s ease;
}

.holiday-clickable:hover {
  border-color: var(--accent);
}

.holiday-clickable:active {
  transform: scale(0.99);
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.holiday {
  background: var(--accent);
}

.legend-dot.sunday {
  background: #44433d;
}

.legend-dot.today {
  border: 2px solid var(--text);
}

.holiday-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.holiday-status-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--accent);
  flex-shrink: 0;
}

/* =========================================================
   NAVEGACIÓN INFERIOR (5 PESTAÑAS)
   ========================================================= */
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 520px;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(11, 11, 10, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.6);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  z-index: 30;
}

@media (max-width: 520px) {
  .bottom-nav {
    border-left: none;
    border-right: none;
  }
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.16s ease;
}

.nav-tab.active {
  color: var(--accent);
}

.nav-tab.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 10px var(--accent-glow);
}

.timer-live-dot {
  position: absolute;
  top: 10px;
  right: 22%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* =========================================================
   MODALES (PERFIL)
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
  padding: 16px;
}

@media (min-width: 540px) {
  .modal-backdrop {
    align-items: center;
  }
}

.modal-sheet {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(160deg, #191917, #111110);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.03em;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   PANEL ADMINISTRADOR
   ========================================================= */
.admin-main {
  padding: 16px 16px 36px;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.admin-tab {
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
}

.admin-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.admin-client-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.admin-mini-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-soft);
}

.admin-mini-btn.danger {
  border-color: rgba(224, 109, 88, 0.45);
  color: #e06d58;
}

.admin-mini-btn.active-ok {
  border-color: rgba(61, 214, 140, 0.45);
  color: var(--success);
}

/* =========================================================
   TOAST DE CONFIRMACIÓN
   ========================================================= */
.toast {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   MÉTRICAS ANTROPOMÉTRICAS (TARJETA Y MODAL)
   ========================================================= */
.anthro-card {
  background: linear-gradient(160deg, #1a1a18, #111110);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 15px 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-md);
}

.anthro-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.anthro-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--text);
}

.anthro-card-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.anthro-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.anthro-pill {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  text-align: center;
}

.anthro-pill-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.anthro-pill-val {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  color: var(--text);
  margin-top: 2px;
}

.anthro-pill-val.accent {
  color: var(--accent);
}

.anthro-pill-delta {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--success);
  margin-top: 1px;
}

.anthro-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.anthro-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.anthro-num-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}

.anthro-form .field-input {
  width: 100%;
  padding-right: 34px;
  -moz-appearance: textfield;
}

.anthro-form .field-input::-webkit-inner-spin-button,
.anthro-form .field-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.anthro-spin-box {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  width: 24px;
  background: #ffffff;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d4d4ce;
}

.anthro-spin-btn {
  flex: 1;
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.anthro-spin-btn:first-child {
  border-bottom: 1px solid #d4d4ce;
}

.anthro-spin-btn:active {
  background: #e5e5e0;
}

.anthro-bmi-bar {
  background: rgba(253, 83, 6, 0.12);
  border: 1px solid rgba(253, 83, 6, 0.42);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text);
  text-align: center;
}

.anthro-history-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 4px 0 8px;
}

.anthro-hist-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.anthro-del-btn {
  background: transparent;
  border: 1px solid rgba(224, 109, 88, 0.45);
  color: #e06d58;
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.anthro-train-card {
  margin-top: 2px;
  border-color: rgba(253, 83, 6, 0.35);
}
