:root {
  --green: #1D9E75;
  --green-dark: #0F6E56;
  --green-light: #E1F5EE;
  --green-glow: rgba(29, 158, 117, 0.4);
  --accent: #D85A30;
  --accent-light: #FAEEDA;
  --blue: #378ADD;
  --blue-light: #E6F1FB;
  --purple: #534AB7;
  --purple-light: #EDE9FE;
  --gold: #F59E0B;
  --pink: #EC4899;
  --bg: #F8F7F3;
  --card: #FFFFFF;
  --border: #E8E6DF;
  --text: #1a1a1a;
  --muted: #888;
  --muted-2: #aaa;
  --danger: #DC2626;
  --danger-bg: #FCEBEB;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  overscroll-behavior-y: contain;
}

body {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: 16px;
}

/* ─── LOADING ─── */
.loading-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 9999;
}
.loading-emoji {
  font-size: 64px;
  animation: pulse 1.5s ease-in-out infinite;
}
.loading-text {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

/* ─── HEADER ─── */
.header {
  background: linear-gradient(180deg, #fff 0%, #fff 100%);
  padding: calc(16px + var(--safe-top)) 16px 14px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.brand {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted-2);
  margin-top: 1px;
  font-weight: 500;
}

.rank-mini {
  text-align: right;
}

.rank-mini-name {
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-end;
}

.rank-mini-pts {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}

.prog-bar {
  height: 7px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.prog-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-dark) 100%);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.prog-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.prog-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
}

/* ─── CONTENT ─── */
.content {
  padding: 14px 16px;
  padding-bottom: calc(90px + var(--safe-bottom));
  min-height: calc(100vh - 80px);
}

.content > * {
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.content > *:nth-child(1) { animation-delay: 0.05s; }
.content > *:nth-child(2) { animation-delay: 0.1s; }
.content > *:nth-child(3) { animation-delay: 0.15s; }
.content > *:nth-child(4) { animation-delay: 0.2s; }
.content > *:nth-child(5) { animation-delay: 0.25s; }
.content > *:nth-child(6) { animation-delay: 0.3s; }
.content > *:nth-child(n+7) { animation-delay: 0.35s; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 10px 12px calc(10px + var(--safe-bottom));
  display: flex;
  gap: 4px;
  z-index: 100;
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

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

.nav-ico {
  font-size: 22px;
  transition: transform 0.25s;
}

.nav-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav-btn.active {
  color: var(--green);
}

.nav-btn.active .nav-ico {
  transform: translateY(-2px) scale(1.1);
}

.nav-btn.active::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  animation: indicatorIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes indicatorIn {
  from { width: 0; opacity: 0; }
  to { width: 24px; opacity: 1; }
}

/* ─── CARDS ─── */
.card {
  background: var(--card);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.card-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ─── FRASE ─── */
.frase-card {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 12px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(29, 158, 117, 0.25);
}

.frase-card::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 50%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.frase-date {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: capitalize;
  position: relative;
}

.frase-text {
  font-size: 15px;
  line-height: 1.55;
  font-style: italic;
  font-weight: 500;
  position: relative;
}

/* ─── DUAL RANK ─── */
.dual-rank {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.rank-card {
  background: var(--card);
  border-radius: 18px;
  padding: 16px 12px;
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.rank-card:active {
  transform: scale(0.97);
}

.rank-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  opacity: 0.08;
}

.rank-card.gaming::before { background: var(--accent); }
.rank-card.peso::before { background: var(--blue); }

.rank-card-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.rank-card-ico {
  font-size: 40px;
  margin-bottom: 6px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.rank-card-name {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.rank-card-desc {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.3;
  font-weight: 500;
}

/* ─── STATS ─── */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.stat-card {
  background: var(--card);
  border-radius: 16px;
  padding: 14px 14px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.stat-card:active { transform: scale(0.97); }

.stat-val {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.stat-lbl {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 600;
}

.stat-trend {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 14px;
}

/* ─── HITOS ─── */
.hito-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.hito-row:last-child { border-bottom: none; }

.hito-emoji {
  font-size: 26px;
  width: 40px;
  text-align: center;
}

.hito-info {
  flex: 1;
  min-width: 0;
}

.hito-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.hito-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
}

.hito-bar {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  margin-top: 7px;
  overflow: hidden;
}

.hito-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hito-dias {
  text-align: right;
  min-width: 50px;
}

.hito-dias-num {
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.hito-dias-lbl {
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ─── COMIDAS ─── */
.comida-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comida-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: 12px;
  transition: transform 0.2s;
}

.comida-row:active { transform: scale(0.98); }

.comida-emoji {
  font-size: 26px;
  width: 36px;
  text-align: center;
}

.comida-info {
  flex: 1;
  min-width: 0;
}

.comida-tipo {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text);
}

.comida-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.comida-stats {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-end;
}

.comida-kcal {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.comida-score {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
}

.score-10 { background: linear-gradient(135deg, #1D9E75, #0F6E56); color: #fff; }
.score-9, .score-8 { background: var(--green-light); color: var(--green-dark); }
.score-7, .score-6 { background: var(--blue-light); color: var(--blue); }
.score-5, .score-4 { background: #FEF3C7; color: #B45309; }
.score-3, .score-2, .score-1 { background: var(--danger-bg); color: var(--danger); }
.score-0 { background: #E5E5E5; color: var(--muted); }

/* ─── BUTTONS ─── */
.btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:active { transform: scale(0.97); }

.btn-green {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(29, 158, 117, 0.3);
}

.btn-blue {
  background: linear-gradient(135deg, var(--blue) 0%, #2D6BB5 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(55, 138, 221, 0.3);
}

.btn-purple {
  background: linear-gradient(135deg, var(--purple) 0%, #3F3895 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(83, 74, 183, 0.3);
}

.btn-ghost {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12px;
  border-radius: 10px;
  width: auto;
}

/* ─── FORM ─── */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  display: block;
  font-weight: 600;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  font-size: 15px;
  color: var(--text);
  background: #fff;
  outline: none;
  appearance: none;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  border-color: var(--green);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.section-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
}

.section-sep-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-sep-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.section-sep-icon {
  font-size: 16px;
}

textarea.form-input {
  resize: vertical;
  font-family: inherit;
}

.json-area {
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.5;
  min-height: 140px;
}

/* ─── MSG ─── */
.msg {
  position: fixed;
  top: calc(100px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 448px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  z-index: 200;
  text-align: center;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  animation: msgIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes msgIn {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.msg.ok {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
}

.msg.err {
  background: linear-gradient(135deg, var(--danger) 0%, #B91C1C 100%);
  color: #fff;
}

/* ─── HISTORIAL ─── */
.hist-card {
  background: var(--card);
  border-radius: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
  position: relative;
}

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

.hist-fecha {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.hist-fecha-day {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: capitalize;
  margin-top: 2px;
}

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

.hist-peso {
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 20px;
  font-weight: 800;
}

.hist-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.hist-mini {
  background: var(--bg);
  border-radius: 10px;
  padding: 8px 10px;
}

.hist-mini-lbl {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
}

.hist-mini-val {
  font-size: 13px;
  font-weight: 800;
  margin-top: 1px;
}

.hist-comidas {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.hist-comida-chip {
  font-size: 11px;
  background: var(--bg);
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hist-puntuacion {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 10px;
  margin-bottom: 8px;
}

.hist-puntuacion-num {
  font-size: 22px;
  font-weight: 900;
}

.hist-puntuacion-lbl {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.btn-del {
  background: var(--danger-bg);
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

/* ─── FOTOS ─── */
.foto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.foto-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.foto-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.foto-fecha-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
}

.foto-del {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.comp-banner {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(29, 158, 117, 0.25);
  position: relative;
  overflow: hidden;
}

.comp-banner::before {
  content: '✨';
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  font-size: 32px;
  opacity: 0.4;
}

.comp-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
}

.comp-sub {
  font-size: 12px;
  opacity: 0.85;
}

.comparativa {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.comp-img-wrap {
  position: relative;
}

.comp-label {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.comp-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* ─── LOGROS ─── */
.rank-detail-card {
  background: linear-gradient(135deg, var(--card) 0%, #FAFAF7 100%);
  border-radius: 20px;
  padding: 24px 16px;
  border: 1px solid var(--border);
  margin-bottom: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rank-detail-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--green-glow) 0%, transparent 50%);
  opacity: 0.4;
  pointer-events: none;
}

.rank-big-ico {
  font-size: 64px;
  margin-bottom: 10px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
  animation: bigFloat 4s ease-in-out infinite;
}

@keyframes bigFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
}

.rank-big-name {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.rank-big-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 500;
}

.rank-big-stat {
  font-size: 36px;
  font-weight: 900;
  margin-top: 12px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rank-big-stat-lbl {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.rank-big-next {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 600;
}

.rank-big-next b { color: var(--text); font-weight: 800; }

.logro-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.logro-card {
  background: var(--card);
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.logro-card.locked {
  opacity: 0.35;
  filter: grayscale(60%);
}

.logro-card.unlocked {
  border-left: 4px solid var(--green);
}

.logro-card.unlocked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--green-light) 0%, transparent 30%);
  opacity: 0.5;
  pointer-events: none;
}

.logro-ico {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  position: relative;
}

.logro-info {
  flex: 1;
  position: relative;
}

.logro-name {
  font-size: 14px;
  font-weight: 800;
}

.logro-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
}

.logro-check {
  color: var(--green);
  font-size: 22px;
  font-weight: 900;
  position: relative;
}

/* ─── CHART ─── */
.chart-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: -4px;
  padding: 4px;
}

.chart-wrap svg {
  display: block;
}

/* ─── EMPTY ─── */
.empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.empty-ico {
  font-size: 48px;
  margin-bottom: 12px;
  animation: float 3s ease-in-out infinite;
}

/* ─── ANIMATIONS ─── */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 var(--green-glow); }
  50% { box-shadow: 0 0 0 12px transparent; }
}

@keyframes celebrate {
  0% { transform: scale(0) rotate(0); opacity: 0; }
  50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
  100% { transform: scale(1) rotate(360deg); opacity: 1; }
}

.celebrate {
  animation: celebrate 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── CONFETTI ─── */
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
  to {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

/* ─── BANNER FECHA INICIO ─── */
.start-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #B8472A 100%);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(216, 90, 48, 0.25);
}

.start-banner-ico {
  font-size: 24px;
}

.start-banner-text {
  flex: 1;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}

.start-banner-text b { font-size: 13px; }
