:root {
  --primary-color: #1e1e2f;
  --secondary-color: #283044;
  --accent-color: #e94560;
  --text-light: #f5f5f5;
  --transition-speed: 0.3s;
  --nav-height: 70px;
}

/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body sin scroll horizontal */
body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, var(--primary-color), #2b2d42);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Barra de Navegación */
.main-nav {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.nav-btn {
  padding: 0.8rem 1.5rem;
  background: var(--secondary-color);
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  color: var(--text-light);
  font-weight: 600;
  transition: all var(--transition-speed) ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
}

.nav-btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Panel de información */
#info-panel {
  position: fixed;
  top: calc(var(--nav-height) + 20px);
  right: 20px;
  width: min(90vw, 320px);
  background: rgba(255, 255, 255, 0.98);
  color: black;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  z-index: 900;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Utilidades */
.hidden {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}

/* Remover scroll horizontal */
html, body {
  overflow-x: hidden;
}

/* Responsive */
@media (max-width: 768px) {
  .main-nav {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  .nav-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  #info-panel {
    top: calc(var(--nav-height) + 10px);
    padding: 1rem;
  }
}
