/* ── TOP NAV ── */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); background: rgba(8,11,13,0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); display: flex;
  align-items: center; justify-content: space-between;
  padding: 0 16px; z-index: 200; gap: 12px;
}

.logo { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 3px; color: var(--accent); display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo em { color: var(--text); font-style: normal; }
.logo-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.65)} }

.nav-clock { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); background: var(--surface); padding: 5px 10px; border-radius: 7px; border: 1px solid var(--border); white-space: nowrap; }

/* ── BOTTOM TAB BAR ── */
.tab-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--tab-h); background: rgba(8,11,13,0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border); display: flex; align-items: stretch; z-index: 200;
}

.tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: none; background: transparent; cursor: pointer; color: var(--muted); transition: all .2s; font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .3px; padding: 8px 4px; position: relative; }
.tab-item .tab-icon { font-size: 18px; line-height: 1; }
.tab-item.active { color: var(--accent); }
.tab-item.active::before { content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 2px; background: var(--accent); border-radius: 0 0 4px 4px; }
.tab-badge { position: absolute; top: 6px; right: calc(50% - 18px); background: var(--danger); color: #fff; font-size: 9px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: none; align-items: center; justify-content: center; padding: 0 4px; }
.tab-badge.show { display: flex; }

/* ── MAIN SCROLL AREA & PAGES ── */
.main { position: relative; z-index: 1; padding: calc(var(--nav-h) + 16px) 12px calc(var(--tab-h) + 16px); max-width: 900px; margin: 0 auto; }
.page { display: none; animation: fadeUp .3s ease; }
.page.active { display: block; }
@keyframes fadeUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }

/* ── RESPONSIVIDAD PC Y TABLET ── */
@media (min-width: 768px) {
  .main { max-width: 1000px; padding: calc(var(--nav-h) + 30px) 30px 30px 110px; }
  .tab-bar { top: var(--nav-h); bottom: 0; left: 0; width: 85px; height: auto; flex-direction: column; justify-content: flex-start; padding-top: 20px; border-top: none; border-right: 1px solid var(--border); }
  .tab-item { flex: none; height: 70px; width: 100%; margin-bottom: 5px; }
  .tab-item.active::before { top: 15%; bottom: 15%; left: 0; right: auto; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
}