/* ====================================================================
   AQUÍJOBS — Sistema de diseño
   Tokens + Landing + Formulario + Admin
   ==================================================================== */

:root {
  /* Color */
  --bg-0: #060A12;
  --bg-1: #0A0F1C;
  --bg-2: #0E1626;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --accent: #22C4FF;
  --accent-2: #1FB6FF;
  --accent-deep: #0E8FD6;
  --accent-glow: rgba(34, 196, 255, 0.45);

  --text: #FFFFFF;
  --text-dim: #9AA8BD;
  --text-faint: #67748A;

  --ok: #34D399;
  --ok-bg: rgba(52, 211, 153, 0.14);
  --warn: #FBBF24;
  --warn-bg: rgba(251, 191, 36, 0.14);
  --danger: #F87171;
  --danger-bg: rgba(248, 113, 113, 0.14);
  --muted-bg: rgba(154, 168, 189, 0.14);

  /* Tipografía */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Poppins', var(--font);

  /* Espaciado / radios */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --maxw: 1080px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.65);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Fondo animado (canvas) ---------- */
#network-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 700px at 50% -10%, #14233f 0%, transparent 60%),
    radial-gradient(900px 600px at 85% 20%, #0d2236 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
}

/* ---------- Logo ---------- */
.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}
.logo .aqui { color: #fff; }
.logo .jobs { color: var(--accent); }
.logo .dot { color: var(--accent); }
.logo-img { height: 120px; width: auto; display: block; }
.site-footer .logo-img { height: 110px; margin: 0 auto 12px; }
.login-card .logo-img { height: 100px; margin: 0 auto; }
@media (max-width: 480px) { .logo-img { height: 90px; } }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 5;
  padding: 26px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-link {
  color: var(--text-dim);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .2s, gap .2s;
}
.nav-link:hover { color: #fff; gap: 12px; }
.nav-link svg { width: 18px; height: 18px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  border-radius: var(--r-md);
  padding: 15px 30px;
  font-size: 1rem;
  transition: transform .18s, box-shadow .25s, background .2s;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #00121d;
  box-shadow: 0 10px 30px -8px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -10px var(--accent-glow);
}
.btn-ghost {
  background: var(--surface-2);
  color: #fff;
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(34, 196, 255, 0.10);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 0 40px;
}
.kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 4px;
  font-size: .82rem;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.04;
  margin: 0 auto 26px;
  max-width: 14ch;
  letter-spacing: -1px;
}
.hero h1 .accent {
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
}
.hero .lead {
  color: var(--text-dim);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  max-width: 52ch;
  margin: 0 auto 38px;
}
.hero .cta-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Features ---------- */
.features {
  position: relative;
  z-index: 2;
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.feature {
  text-align: center;
  padding: 0 28px;
  position: relative;
}
.feature + .feature::before {
  content: "";
  position: absolute;
  left: 0; top: 12%;
  height: 76%;
  width: 1px;
  background: var(--border);
}
.feature .icon {
  width: 52px; height: 52px;
  margin: 0 auto 18px;
  color: var(--accent);
}
.feature h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 8px;
}
.feature p { color: var(--text-dim); margin: 0; font-size: .96rem; }

/* ---------- Card CTA (red de talentos) ---------- */
.netcard {
  position: relative;
  z-index: 2;
  margin: 80px 0 40px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--r-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow);
}
.netcard .doc-icon { width: 96px; height: 110px; color: var(--accent); }
.netcard h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.7rem;
  margin: 0 0 10px;
}
.netcard h2 .accent { color: var(--accent); }
.netcard p { color: var(--text-dim); margin: 0; max-width: 40ch; }
.netcard .divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 50px 0 40px;
  text-align: center;
}
.site-footer .logo { font-size: 1.6rem; margin-bottom: 12px; }
.site-footer .tagline { color: var(--text-dim); margin: 0; }
.footer-grid {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-top: 34px;
  flex-wrap: wrap;
  text-align: left;
}
.footer-col h4 {
  font-size: .85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 14px;
}
.footer-col a { color: var(--text-dim); display: block; margin-bottom: 8px; font-size: .92rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.social { display: flex; gap: 12px; }
.social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #00121d;
  transition: transform .2s, box-shadow .2s;
}
.social a:hover { transform: translateY(-3px); box-shadow: 0 8px 20px -6px var(--accent-glow); }
.social svg { width: 18px; height: 18px; }

/* ---------- Animaciones de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ====================================================================
   FORMULARIO (crear-perfil)
   ==================================================================== */
.form-wrap { position: relative; z-index: 2; padding: 30px 0 60px; }
.form-head { text-align: center; margin-bottom: 40px; }
.form-head h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 14px 0 10px;
}
.form-head h1 .accent { color: var(--accent); }
.form-head p { color: var(--text-dim); max-width: 50ch; margin: 0 auto; }

.profile-form {
  max-width: 760px;
  margin-inline: auto;
}
.fieldset {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 28px 30px;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.fieldset legend {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fieldset legend .num {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(34,196,255,.15);
  font-size: .85rem;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-top: 16px; display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .9rem; color: var(--text-dim); font-weight: 500; }
.field label .req { color: var(--accent); }
.field-hint { font-size: .82rem; margin-top: 4px; min-height: 1.1em; }
.field input,
.field select,
.field textarea {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: #fff;
  padding: 13px 15px;
  font-family: var(--font);
  font-size: .98rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34,196,255,.16);
}
.field select { appearance: none; cursor: pointer; }
.checkbox-row { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.checkbox-row label { color: var(--text-dim); }

/* Subida de archivos */
.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-md);
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.dropzone:hover { border-color: var(--accent); background: rgba(34,196,255,.04); }
.dropzone .dz-icon { width: 44px; height: 44px; color: var(--accent); margin: 0 auto 12px; }
.dropzone p { margin: 0; color: var(--text-dim); }
.dropzone strong { color: #fff; }
.dropzone input[type=file] { display: none; }
.file-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.file-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 9px 14px;
  font-size: .9rem;
}
.file-chip svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.file-chip .sz { color: var(--text-faint); margin-left: auto; }

.form-actions { display: flex; justify-content: flex-end; gap: 14px; margin-top: 10px; }

/* Alertas */
.alert {
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: .95rem;
  border: 1px solid;
}
.alert-error { background: var(--danger-bg); border-color: rgba(248,113,113,.4); color: #fecaca; }
.alert-ok    { background: var(--ok-bg); border-color: rgba(52,211,153,.4); color: #bbf7d0; }
.alert ul { margin: 8px 0 0; padding-left: 20px; }

/* ====================================================================
   GRACIAS
   ==================================================================== */
.thanks {
  position: relative; z-index: 2;
  text-align: center;
  padding: 90px 0;
  max-width: 600px;
  margin-inline: auto;
}
.thanks .check {
  width: 86px; height: 86px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--ok-bg);
  border: 1px solid rgba(52,211,153,.4);
  display: grid; place-items: center;
  color: var(--ok);
}
.thanks .check svg { width: 42px; height: 42px; }
.thanks h1 { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; margin: 0 0 14px; }
.thanks p { color: var(--text-dim); font-size: 1.1rem; margin: 0 0 30px; }

/* ====================================================================
   ADMIN
   ==================================================================== */
.admin-body { background: var(--bg-0); min-height: 100vh; }
.admin-topbar {
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
  padding: 18px 0;
}
.admin-topbar .container { display: flex; align-items: center; justify-content: space-between; }
.admin-topbar .user { color: var(--text-dim); display: flex; align-items: center; gap: 16px; }

/* Login */
.login-wrap {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 24px;
}
.login-card {
  width: 100%; max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px 36px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.login-card .logo { display: flex; justify-content: center; font-size: 1.7rem; margin-bottom: 8px; }
.login-card h1 { text-align: center; font-size: 1.3rem; font-weight: 600; margin: 0 0 28px; color: var(--text-dim); }

/* KPIs */
.kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 30px 0;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 20px;
}
.kpi .n { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; }
.kpi .l { color: var(--text-dim); font-size: .85rem; }
.kpi.accent .n { color: var(--accent); }
.kpi.ok .n { color: var(--ok); }
.kpi.warn .n { color: var(--warn); }
.kpi.danger .n { color: var(--danger); }

/* Panel reportería */
.report-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 32px;
  margin-bottom: 30px;
}
.report-panel h2 { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; margin: 0 0 4px; }
.report-panel .sub { color: var(--text-dim); margin: 0 0 22px; }

.filters { display: flex; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.filters input, .filters select {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: #fff; padding: 10px 14px; font-family: var(--font); font-size: .92rem;
}
.filters input { flex: 1; min-width: 200px; }
.filters input:focus, .filters select:focus { outline: none; border-color: var(--accent); }

/* Tabla */
.table-scroll { overflow-x: auto; }
table.report {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
}
table.report th {
  text-align: left;
  color: var(--text-dim);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .5px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.report td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: middle;
}
table.report tr:hover td { background: rgba(255,255,255,.02); }
.cell-name { font-weight: 600; }
.cell-sub { color: var(--text-faint); font-size: .82rem; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: .8rem;
  font-weight: 600;
}
.badge.pendiente   { background: var(--muted-bg); color: var(--text-dim); }
.badge.en_revision { background: var(--warn-bg); color: var(--warn); }
.badge.aprobado    { background: var(--ok-bg); color: var(--ok); }
.badge.rechazado   { background: var(--danger-bg); color: var(--danger); }

.docs-count { display: inline-flex; align-items: center; gap: 7px; color: var(--text-dim); }
.docs-count svg { width: 15px; height: 15px; }

.empty {
  text-align: center; padding: 50px 20px; color: var(--text-faint);
}

/* Detalle */
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.detail-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 28px;
}
.detail-block h3 { font-family: var(--font-head); margin: 0 0 18px; font-size: 1.15rem; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; }
.kv dt { color: var(--text-faint); font-size: .9rem; }
.kv dd { margin: 0; }
.doc-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border: 1px solid var(--border);
  border-radius: var(--r-sm); margin-bottom: 8px;
  transition: border-color .2s, background .2s;
}
.doc-link:hover { border-color: var(--accent); background: rgba(34,196,255,.04); }
.doc-link svg { width: 18px; height: 18px; color: var(--accent); }
.back-link { color: var(--text-dim); display: inline-flex; gap: 8px; align-items: center; margin-bottom: 20px; }
.back-link:hover { color: var(--accent); }

.estado-form { display: flex; gap: 10px; margin-top: 14px; }
.estado-form select { flex: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .features { grid-template-columns: 1fr; gap: 36px; }
  .feature + .feature::before { display: none; }
  .feature { border-top: 1px solid var(--border); padding-top: 30px; }
  .netcard { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .netcard .doc-icon { margin-inline: auto; }
  .netcard .divider { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 36px; }
}
@media (max-width: 480px) {
  .kpis { grid-template-columns: 1fr; }
  .hero { padding-top: 30px; }
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
