/* ============================================================
   GsmTalent - Main Stylesheet
   Plataforma Marketplace Freelance
   ============================================================ */

:root {
  --primary: #6c63ff;
  --primary-dark: #5a52d5;
  --primary-light: #8b85ff;
  --secondary: #00d4aa;
  --secondary-dark: #00b894;
  --accent: #ff6b6b;
  --dark: #0f0f1a;
  --dark-2: #1a1a2e;
  --dark-3: #16213e;
  --card-bg: #1e1e3a;
  --card-border: #2d2d5e;
  --text-primary: #e8e8f0;
  --text-secondary: #9090b0;
  --text-muted: #6060808;
  --success: #00d4aa;
  --warning: #ffd93d;
  --danger: #ff6b6b;
  --info: #74b9ff;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 20px;
  --shadow: 0 4px 24px rgba(108, 99, 255, 0.15);
  --shadow-lg: 0 8px 48px rgba(108, 99, 255, 0.25);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  background: var(--dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }

img { max-width: 100%; display: block; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { color: var(--text-secondary); }

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-primary-color { color: var(--primary-light); }
.text-secondary-color { color: var(--secondary); }
.text-muted { color: var(--text-secondary); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-center { text-align: center; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { display: flex; align-items: center; gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 1.5rem; }

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.navbar-brand .brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
}

.navbar-brand .brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
}

.navbar-brand .brand-name span { color: var(--secondary); }

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.navbar-menu a {
  color: var(--text-secondary);
  padding: 0.5rem 0.875rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--text-primary);
  background: rgba(108, 99, 255, 0.1);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .navbar-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark-2); flex-direction: column; padding: 1rem; border-bottom: 1px solid var(--card-border); }
  .navbar-menu.open { display: flex; }
  .navbar-toggle { display: block; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.375rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-main);
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.45);
  color: white;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--dark);
  font-weight: 700;
}
.btn-secondary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 170, 0.4);
  color: var(--dark);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--card-border);
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(108, 99, 255, 0.08);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary-light);
  border: 1px solid var(--primary);
}
.btn-outline-primary:hover:not(:disabled) {
  background: var(--primary);
  color: white;
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #e05555);
  color: white;
}

.btn-sm { padding: 0.4rem 0.875rem; font-size: 0.8rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; border-radius: var(--border-radius); }
.btn-block { width: 100%; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: var(--transition);
}

.card:hover { border-color: rgba(108, 99, 255, 0.4); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--card-border);
}

.card-title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }

/* ============================================================
   FORMULARIOS
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-label .required { color: var(--danger); margin-left: 2px; }

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-main);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  background: rgba(108, 99, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.form-control::placeholder { color: var(--text-secondary); opacity: 0.6; }
.form-control option { background: var(--dark-2); color: var(--text-primary); }

textarea.form-control { resize: vertical; min-height: 120px; }

.form-hint { font-size: 0.78rem; color: var(--text-secondary); margin-top: 0.35rem; }
.form-error { font-size: 0.78rem; color: var(--danger); margin-top: 0.35rem; }

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}
.input-group .form-control { padding-left: 2.75rem; }
.input-group .input-icon {
  position: absolute;
  left: 0.875rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  pointer-events: none;
}
.input-group .input-icon-right {
  position: absolute;
  right: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--primary);
  margin-top: 1px;
  flex-shrink: 0;
  cursor: pointer;
}
.form-check-label { font-size: 0.875rem; color: var(--text-secondary); }

/* ============================================================
   BADGES / TAGS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-primary { background: rgba(108, 99, 255, 0.2); color: var(--primary-light); border: 1px solid rgba(108, 99, 255, 0.3); }
.badge-secondary { background: rgba(0, 212, 170, 0.15); color: var(--secondary); border: 1px solid rgba(0, 212, 170, 0.25); }
.badge-success { background: rgba(0, 212, 170, 0.15); color: var(--success); }
.badge-warning { background: rgba(255, 217, 61, 0.15); color: var(--warning); }
.badge-danger { background: rgba(255, 107, 107, 0.15); color: var(--danger); }
.badge-info { background: rgba(116, 185, 255, 0.15); color: var(--info); }
.badge-verified { background: linear-gradient(135deg, rgba(0, 212, 170, 0.2), rgba(108, 99, 255, 0.2)); color: var(--secondary); border: 1px solid rgba(0, 212, 170, 0.4); }

/* Skill tags seleccionables */
.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.skill-tag:hover,
.skill-tag.selected {
  background: rgba(108, 99, 255, 0.15);
  border-color: var(--primary);
  color: var(--primary-light);
}

.skill-tag.nivel-avanzado { border-color: rgba(0, 212, 170, 0.4); color: var(--secondary); }
.skill-tag.nivel-experto { border-color: rgba(255, 217, 61, 0.4); color: var(--warning); }

/* ============================================================
   ALERTS / FLASH MESSAGES
   ============================================================ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.alert-success { background: rgba(0, 212, 170, 0.1); color: var(--success); border-color: rgba(0, 212, 170, 0.25); }
.alert-danger  { background: rgba(255, 107, 107, 0.1); color: var(--danger); border-color: rgba(255, 107, 107, 0.25); }
.alert-warning { background: rgba(255, 217, 61, 0.1); color: var(--warning); border-color: rgba(255, 217, 61, 0.25); }
.alert-info    { background: rgba(116, 185, 255, 0.1); color: var(--info); border-color: rgba(116, 185, 255, 0.25); }

/* ============================================================
   AVATAR
   ============================================================ */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
}

.avatar-sm  { width: 36px; height: 36px; font-size: 0.875rem; }
.avatar-md  { width: 52px; height: 52px; font-size: 1rem; }
.avatar-lg  { width: 80px; height: 80px; font-size: 1.5rem; }
.avatar-xl  { width: 120px; height: 120px; font-size: 2rem; }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar-wrap {
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  height: 6px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.6s ease;
}

/* ============================================================
   RATING STARS
   ============================================================ */
.stars { color: var(--warning); letter-spacing: 2px; }

/* ============================================================
   HERO (Landing page)
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 50%, rgba(108,99,255,0.08) 100%);
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108,99,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,212,170,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(108, 99, 255, 0.15);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 1.5rem;
}
.hero-badge .dot { width: 6px; height: 6px; background: var(--secondary); border-radius: 50%; animation: pulse 2s infinite; }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.stat-item .stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item .stat-label { font-size: 0.78rem; color: var(--text-secondary); margin-top: 0.1rem; }

/* ============================================================
   FREELANCER CARD
   ============================================================ */
.freelancer-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.freelancer-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}

.freelancer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(108,99,255,0.4); }
.freelancer-card:hover::before { opacity: 1; }

.freelancer-card .card-top { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.freelancer-card .card-info { flex: 1; min-width: 0; }
.freelancer-card .name { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }
.freelancer-card .title { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.15rem; }
.freelancer-card .location { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; }

.freelancer-card .skills-wrap { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.875rem 0; }
.freelancer-card .card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--card-border); }
.freelancer-card .rate { font-size: 0.9rem; font-weight: 700; color: var(--secondary); }

/* ============================================================
   OFERTA CARD
   ============================================================ */
.oferta-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: var(--transition);
}

.oferta-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(108,99,255,0.3); }
.oferta-card.destacada { border-color: rgba(255, 217, 61, 0.35); }
.oferta-card.destacada::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--warning), var(--secondary)); }

.oferta-card { position: relative; overflow: hidden; }
.oferta-card .empresa-info { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.875rem; }
.oferta-card .empresa-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--dark-3); }
.oferta-card .empresa-name { font-size: 0.85rem; color: var(--text-secondary); }
.oferta-card .oferta-titulo { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.oferta-card .oferta-meta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 0.75rem 0; }
.oferta-card .meta-item { display: flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; color: var(--text-secondary); }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 70px);
}

.sidebar {
  background: var(--dark-2);
  border-right: 1px solid var(--card-border);
  padding: 1.5rem 0;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}

.sidebar-section { padding: 0 1rem; margin-bottom: 0.5rem; }
.sidebar-label { font-size: 0.7rem; font-weight: 700; color: var(--text-secondary); letter-spacing: 0.1em; text-transform: uppercase; padding: 0 0.75rem 0.5rem; }

.sidebar-menu { list-style: none; }
.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.875rem;
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}
.sidebar-menu a:hover,
.sidebar-menu a.active {
  color: var(--text-primary);
  background: rgba(108, 99, 255, 0.12);
}
.sidebar-menu a.active { color: var(--primary-light); }
.sidebar-menu i { width: 18px; text-align: center; }

.sidebar-user { padding: 0 1rem; margin-bottom: 1.5rem; }
.sidebar-user .user-card {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.875rem; background: rgba(108,99,255,0.08);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(108,99,255,0.15);
}
.sidebar-user .user-name { font-size: 0.875rem; font-weight: 700; color: var(--text-primary); }
.sidebar-user .user-role { font-size: 0.72rem; color: var(--text-secondary); }

.main-content { padding: 2rem; background: var(--dark); overflow-x: hidden; }

.page-header { margin-bottom: 2rem; }
.page-title { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.25rem; }
.page-subtitle { font-size: 0.9rem; color: var(--text-secondary); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.stat-card .stat-val { font-size: 1.75rem; font-weight: 800; color: var(--text-primary); }
.stat-card .stat-lbl { font-size: 0.78rem; color: var(--text-secondary); margin-top: 0.1rem; }

@media (max-width: 900px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
  padding: 2rem 1rem;
}

.auth-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo .logo-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: white; font-weight: 900;
  margin: 0 auto 1rem;
}
.auth-logo h2 { font-size: 1.5rem; }
.auth-logo p { font-size: 0.875rem; color: var(--text-secondary); margin-top: 0.25rem; }

.auth-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.5rem 0; color: var(--text-secondary); font-size: 0.85rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--card-border);
}

.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.role-card {
  border: 2px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(255,255,255,0.02);
}
.role-card:hover { border-color: var(--primary); }
.role-card.selected { border-color: var(--primary); background: rgba(108,99,255,0.1); }
.role-card .role-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.role-card .role-title { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
.role-card .role-desc { font-size: 0.78rem; color: var(--text-secondary); margin-top: 0.25rem; }

/* ============================================================
   SUSCRIPCION PAGE
   ============================================================ */
.plan-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.plan-card.popular {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(108,99,255,0.08), rgba(0,212,170,0.04));
}

.plan-card .plan-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

.plan-card .plan-price { font-size: 2.5rem; font-weight: 900; color: var(--text-primary); }
.plan-card .plan-price span { font-size: 1rem; color: var(--text-secondary); }
.plan-card .plan-features { list-style: none; margin: 1.5rem 0; }
.plan-card .plan-features li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text-secondary); padding: 0.4rem 0; }
.plan-card .plan-features .check { color: var(--secondary); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark-2);
  border-top: 1px solid var(--card-border);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .brand-tagline { font-size: 0.875rem; color: var(--text-secondary); margin-top: 0.75rem; max-width: 280px; }
.footer-brand .gsm-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(0,212,170,0.08); border: 1px solid rgba(0,212,170,0.2);
  border-radius: var(--border-radius-sm); padding: 0.5rem 0.875rem;
  font-size: 0.78rem; color: var(--secondary); margin-top: 1.25rem;
}

.footer-col h4 { font-size: 0.875rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1rem; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a { font-size: 0.875rem; color: var(--text-secondary); }
.footer-col ul a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.8rem; color: var(--text-secondary);
}

.footer-gsm-legend {
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(108,99,255,0.06), rgba(0,212,170,0.04));
  border-top: 1px solid rgba(108,99,255,0.1);
  border-bottom: 1px solid rgba(0,212,170,0.1);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}
.footer-gsm-legend strong { color: var(--secondary); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SEARCH / FILTROS
   ============================================================ */
.search-bar {
  display: flex;
  gap: 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 0.5rem;
  flex-wrap: wrap;
}

.search-bar .search-input {
  flex: 1;
  min-width: 200px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  padding: 0.5rem 0.875rem;
  outline: none;
}

.filter-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.filter-group { margin-bottom: 1.25rem; }
.filter-group:last-child { margin-bottom: 0; }
.filter-label { font-size: 0.78rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.625rem; }
.filter-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ============================================================
   UTILITIES
   ============================================================ */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.p-0 { padding: 0; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.w-100 { width: 100%; }
.overflow-hidden { overflow: hidden; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.fade-in { animation: fadeIn 0.5s ease forwards; }

.skeleton {
  background: linear-gradient(90deg, var(--card-bg) 25%, rgba(108,99,255,0.06) 50%, var(--card-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--border-radius-sm);
}

/* ============================================================
   PAYWALL OVERLAY
   ============================================================ */
.paywall-overlay {
  position: relative;
}
.paywall-overlay .paywall-blur {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}
.paywall-overlay .paywall-box {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(15,15,26,0.85);
  border-radius: var(--border-radius);
  padding: 2rem; text-align: center;
  z-index: 10;
}

/* ============================================================
   TABLA
   ============================================================ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
table th {
  background: rgba(255,255,255,0.03);
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--card-border);
  text-align: left;
}
table td { padding: 0.875rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.875rem; color: var(--text-secondary); }
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: rgba(255,255,255,0.02); }

/* Pagination */
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.page-btn { padding: 0.5rem 0.875rem; border-radius: var(--border-radius-sm); border: 1px solid var(--card-border); background: var(--card-bg); color: var(--text-secondary); cursor: pointer; font-size: 0.875rem; transition: var(--transition); }
.page-btn:hover, .page-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
