:root {
  --bg: #0b1020;
  --bg-2: #0f172a;
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --brand: #06b6d4;
  --brand-hover: #22d3ee;
  --surface: rgba(30, 41, 59, 0.7);
  --border: rgba(148, 163, 184, 0.15);
  --glass: rgba(15, 23, 42, 0.95);
  --radius: 12px;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 50%, rgba(6, 182, 212, 0.05), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.05), transparent 25%),
    var(--bg);
  min-height: 100vh;
  font-size: 14px;
  padding-bottom: 80px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.brand-dot {
  width: 10px;
  height: 10px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand);
}

.role-badge {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--brand);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.75rem;
}

.menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.menu a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: 0.2s;
  white-space: nowrap;
}

.menu a:hover,
.menu a.active {
  color: #fff;
}

.menu a.active {
  border-bottom: 2px solid var(--brand);
  padding-bottom: 4px;
}

main {
  padding-top: 2rem;
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn {
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--ink);
}

.btn:hover {
  border-color: var(--brand);
  background: rgba(255,255,255,0.1);
}

/* Seguridad responsive global para todas las pantallas */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
canvas,
svg,
iframe {
  max-width: 100%;
  height: auto;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

@media (max-width: 768px) {
  /* Evita cortes en tablas anchas en mobile */
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .container {
    padding: 0 12px;
  }

  nav {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .brand {
    justify-content: space-between;
  }

  .menu {
    overflow-x: auto;
    padding-bottom: 5px;
    gap: 20px;
  }

  .menu::-webkit-scrollbar {
    display: none;
  }
}
