/* Sistema visual — Practicas Preprofesionales / Ingenieria Industrial
   Paleta azul moderna sobre base neutra fria. Tailwind (CDN) se usa solo
   para layout/espaciado; el color y los componentes viven aqui. */

:root {
  --ink: #0B1220;
  --ink-soft: #3D4A63;
  --muted: #6B7A93;
  --line: #E3E8F1;
  --line-strong: #CBD5E6;
  --surface: #FFFFFF;
  --bg: #F4F7FC;

  --primary-900: #0A1D4D;
  --primary-800: #0E2A72;
  --primary-700: #14369A;
  --primary-600: #1C48C4;
  --primary-500: #2F63E8;
  --primary-400: #5C88F2;
  --primary-100: #E4ECFD;
  --primary-50: #F1F5FE;

  --amber: #B9740C;
  --amber-bg: #FBF0D9;
  --success: #12805C;
  --success-bg: #E1F5EC;
  --danger: #C4372B;
  --danger-bg: #FBE7E5;

  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(20, 54, 154, 0.18);
  --radius: 12px;
}

* { font-variant-numeric: tabular-nums; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

h1, h2, h3, .font-display {
  font-family: 'Outfit', 'Inter', ui-sans-serif, sans-serif;
  letter-spacing: -0.01em;
}

/* ---------- Franja de prototipo ---------- */
.proto-banner {
  background: linear-gradient(90deg, var(--primary-900), var(--primary-700));
  color: #DCE6FF;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.5rem 1rem;
}
.proto-banner strong { color: #fff; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 8px; padding: 0.55rem 1.1rem; font-size: 0.875rem; font-weight: 600;
  transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-700); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: #F8FAFF; border-color: var(--primary-400); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(1.08); }
.btn-warning { background: var(--amber); color: #fff; }
.btn-warning:hover { filter: brightness(1.08); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--primary-600); font-weight: 600; }
.btn-ghost:hover { text-decoration: underline; }
.btn-disabled { background: #EEF1F6; color: #9AA6BC; cursor: not-allowed; }

/* ---------- Tarjetas ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-hover { transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; }
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary-100); }

/* ---------- Insignias de estado ---------- */
.badge { display: inline-flex; align-items: center; gap: 0.35rem; border-radius: 999px; padding: 0.2rem 0.65rem; font-size: 0.72rem; font-weight: 600; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.badge-primary { background: var(--primary-100); color: var(--primary-700); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-muted { background: #EEF1F6; color: #6B7A93; }

/* ---------- Formularios ---------- */
.field-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 0.35rem; }
.field-hint { margin-top: 0.35rem; font-size: 0.75rem; color: var(--muted); }
.input, select.input, textarea.input {
  display: block; width: 100%; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--surface); padding: 0.55rem 0.75rem; font-size: 0.9rem; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.input:focus, select.input:focus, textarea.input:focus {
  outline: none; border-color: var(--primary-500); box-shadow: 0 0 0 3px var(--primary-100);
}
.input[disabled] { background: #F5F7FB; color: var(--muted); }

/* ---------- Tablas ---------- */
.table-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
table.data { width: 100%; text-align: left; font-size: 0.875rem; border-collapse: collapse; }
table.data thead { background: #F7F9FD; }
table.data th { padding: 0.75rem 1rem; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
table.data td { padding: 0.75rem 1rem; border-top: 1px solid var(--line); color: var(--ink-soft); }
table.data tbody tr:hover { background: var(--primary-50); }

/* ---------- Sidebar admin ---------- */
.admin-sidebar {
  background: linear-gradient(180deg, var(--primary-900) 0%, #0F2E86 100%);
  color: #C9D7FB;
}
.admin-sidebar .brand { color: #fff; }
.sidebar-link { display: flex; align-items: center; gap: 0.65rem; border-radius: 8px; padding: 0.55rem 0.85rem; font-size: 0.875rem; color: #BFD0FA; transition: background .15s ease, color .15s ease; }
.sidebar-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar-link.active { background: rgba(255,255,255,0.14); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 #5C88F2; }
.sidebar-link.disabled { opacity: 0.4; cursor: not-allowed; }
.sidebar-link svg { width: 18px; height: 18px; flex: none; }

/* ---------- Topbar ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: var(--primary-100); color: var(--primary-700); font-size: 0.75rem; font-weight: 700; }

/* ---------- Nav publica / estudiante ---------- */
.top-nav-link { font-size: 0.875rem; color: var(--ink-soft); padding: 0.4rem 0.1rem; border-bottom: 2px solid transparent; }
.top-nav-link:hover { color: var(--primary-600); }
.top-nav-link.active { color: var(--primary-700); font-weight: 600; border-color: var(--primary-500); }
.top-nav-link.disabled { color: #B7C0D1; cursor: not-allowed; }

/* ---------- Progreso de linea de tiempo ---------- */
.step-dot { width: 1.75rem; height: 1.75rem; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; flex: none; }
.step-dot-done { background: var(--success-bg); color: var(--success); }
.step-dot-current { background: var(--amber-bg); color: var(--amber); }
.step-dot-pending { background: #EEF1F6; color: #9AA6BC; }

/* ---------- Hero landing ---------- */
.hero-gradient {
  background:
    radial-gradient(1200px 480px at 15% -10%, rgba(92,136,242,0.25), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(28,72,196,0.18), transparent 55%),
    linear-gradient(180deg, #08133A 0%, #0E2A72 100%);
  color: #fff;
}
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9FC0FF; }

::selection { background: var(--primary-100); color: var(--primary-900); }
