/* ═══════════════════════════════════════════════════
   JobRadar — Global Styles v2.0
   Importado en todas las páginas
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ─── TOKENS ─── */
:root {
  --ink:       #07070f;
  --ink2:      #1c1c2e;
  --ink3:      #3b3b5c;
  --surface:   #f4f2ee;
  --surface2:  #eceae5;
  --card:      #ffffff;
  --accent:    #1a56ff;
  --accent-h:  #0040e0;
  --accent2:   #00c9a7;
  --accent3:   #ff4757;
  --warn:      #f59e0b;
  --muted:     #8b8ba7;
  --border:    #e4e1db;
  --border2:   #d1cec7;

  --tag-bg:    #eef1ff;
  --tag-color: #1a56ff;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.09);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.13);
  --shadow-accent: 0 6px 32px rgba(26,86,255,0.18);

  --transition: 0.2s ease;
  --nav-h: 64px;
  --max-w: 1180px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--surface);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
[hidden] { display: none !important; }

/* ─── TYPOGRAPHY ─── */
.font-display { font-family: 'Syne', sans-serif; }
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; letter-spacing: -0.5px; line-height: 1.15; }

/* ─── NAV ─── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: white;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

.nav-logo span { color: var(--accent2); }

.nav-links {
  display: flex; align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.nav-link {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover { color: white; background: rgba(255,255,255,0.07); }
.nav-link.active { color: white; background: rgba(26,86,255,0.25); }
.nav-link .nav-icon { font-size: 0.95rem; }

.nav-badge {
  font-size: 0.62rem;
  font-weight: 700;
  background: var(--accent2);
  color: var(--ink);
  padding: 0.1rem 0.45rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 0.2rem;
}

.nav-spacer { flex: 1; }

.nav-version {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
  font-family: 'DM Sans', sans-serif;
}
.nav-donate {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  height: 32px;
}
.nav-donate img {
  height: 100%;
  display: block;
}

/* ─── PAGE HEADER ─── */
.page-header {
  background: var(--ink2);
  padding: 3rem 2rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 50%, rgba(26,86,255,0.12) 0%, transparent 60%),
                    radial-gradient(circle at 20% 80%, rgba(0,201,167,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.page-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
}

.page-header h1 { color: white; font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
.page-header h1 em { font-style: normal; color: var(--accent2); }
.page-header p { color: rgba(255,255,255,0.45); font-size: 0.95rem; margin-top: 0.4rem; font-weight: 300; }

/* ─── MAIN LAYOUT ─── */
.page-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}

/* ─── CARDS ─── */
.card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.2px;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-h);
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent3); color: var(--accent3); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--tag-bg); }

/* ─── FORM ELEMENTS ─── */
.field { display: flex; flex-direction: column; gap: 0.4rem; }
label.field-label {
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--muted);
}

input, select, textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  padding: 0.72rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,86,255,0.1);
  background: white;
}
textarea { resize: vertical; min-height: 120px; }

/* ─── TAGS / CHIPS ─── */
.chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  background: var(--tag-bg);
  color: var(--tag-color);
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--accent); background: white; }
.chip.active { background: var(--accent); color: white; border-color: var(--accent); }

/* ─── BADGES ─── */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.18rem 0.6rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-yellow { background: #fef3c7; color: #b45309; }
.badge-gray   { background: #f3f4f6; color: #6b7280; }

/* ─── AD SLOTS ─── */
.ad-slot {
  width: 100%;
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
}
.ad-slot-header { margin-bottom: 1.5rem; }
.ad-slot-footer { margin-top: 2rem; }
.adsbygoogle-frame { display: block; width: 100%; }
.ad-inline-wrap { grid-column: 1 / -1; }
.ad-placeholder {
  background: repeating-linear-gradient(45deg, #f8f8f8, #f8f8f8 10px, #efefef 10px, #efefef 20px);
  border: 1.5px dashed #d1d5db;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #9ca3af;
  font-size: 0.8rem;
  font-family: 'DM Sans', sans-serif;
  margin: 0 auto;
  max-width: 100%;
}
.ad-placeholder-header,
.ad-placeholder-footer { width: 100%; min-height: 90px; }
.ad-placeholder-inline { width: 100%; min-height: 280px; }
.ad-placeholder-sidebar { width: 300px; max-width: 100%; min-height: 250px; }
.ad-placeholder-default { width: 100%; min-height: 100px; }
.ad-placeholder-icon { font-size: 1.4rem; }
.ad-placeholder-title { color: #6b7280; }
.ad-placeholder-copy { font-size: 0.72rem; }

/* ─── COMING SOON ─── */
.coming-soon-overlay {
  position: absolute; inset: 0;
  background: rgba(7,7,15,0.55);
  backdrop-filter: blur(3px);
  border-radius: inherit;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.animate-fadeup  { animation: fadeUp 0.4s ease both; }
.animate-fadein  { animation: fadeIn 0.3s ease both; }

/* ─── FOOTER ─── */
footer {
  background: var(--ink);
  color: white;
  padding: 2rem;
  font-size: 0.82rem;
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: white; transition: color var(--transition); }
.footer-links a:hover { color: white; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .page-header-inner { flex-direction: column; align-items: flex-start; }
  .page-body { padding: 1.5rem 1rem 4rem; }
  footer .footer-links { display: none; }
}
