/* ─── HERO MARKETPLACE ─── */
.mkt-hero {
  background: linear-gradient(135deg, #080a12 0%, #0f1a33 50%, #1a0a0a 100%);
  padding: 90px 20px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mkt-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255,45,45,.18), transparent 70%);
}
.mkt-hero-container { position: relative; }
.mkt-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.85); font-size: 13px; font-weight: 700; margin-bottom: 24px;
}
.mkt-hero-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff2d2d; box-shadow: 0 0 0 4px rgba(255,45,45,.2); }
.mkt-hero-title { font-size: clamp(36px,5vw,64px); font-weight: 900; letter-spacing: -.8px; line-height: 1.05; color: #fff; margin-bottom: 16px; }
.mkt-hero-title span { color: #ff2d2d; }
.mkt-hero-lead { font-size: clamp(15px,1.6vw,18px); color: rgba(255,255,255,.65); max-width: 540px; margin: 0 auto 32px; line-height: 1.65; }
.mkt-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.mkt-stats { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.08); }
.mkt-stat-num { font-size: 28px; font-weight: 900; color: #fff; }
.mkt-stat-num span { color: #ff2d2d; }
.mkt-stat-lbl { font-size: 12px; color: rgba(255,255,255,.45); font-weight: 600; margin-top: 2px; }

/* ─── BÚSQUEDA ─── */
.mkt-search-bar { background: #fff; border-bottom: 1px solid rgba(0,0,0,.08); padding: 18px 0; position: sticky; top: 69px; z-index: 40; }
.section, .section-alt { scroll-margin-top: 70px; }
.mkt-search-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.mkt-search-wrap { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; background: #f5f5f7; border: 1px solid rgba(0,0,0,.1); border-radius: 999px; padding: 10px 18px; }
.mkt-search-wrap input { border: none; background: none; outline: none; font-size: 14px; color: #0a0a0a; width: 100%; font-family: inherit; }

/* ─── LAYOUT ─── */
.mkt-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding: 32px 0 60px; align-items: start; }

/* ─── SIDEBAR ─── */
.mkt-sidebar { background: #fff; border-radius: 20px; border: 1px solid rgba(0,0,0,.08); padding: 20px; position: sticky; top: 132px; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.mkt-sidebar-title { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; color: rgba(10,10,10,.4); margin-bottom: 14px; }
.mkt-filter-group { margin-bottom: 22px; }
.mkt-filter-group h4 { font-size: 14px; font-weight: 900; margin-bottom: 10px; color: #0a0a0a; }
.mkt-check { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; cursor: pointer; font-size: 13px; color: rgba(10,10,10,.75); font-weight: 600; transition: background .15s; }
.mkt-check:hover { background: #f5f5f7; }
.mkt-check input { accent-color: #ff2d2d; width: 15px; height: 15px; }
.mkt-badge { margin-left: auto; font-size: 11px; font-weight: 800; background: rgba(0,0,0,.06); padding: 2px 7px; border-radius: 999px; color: rgba(10,10,10,.45); }
.mkt-range input[type=range] { width: 100%; accent-color: #ff2d2d; }
.mkt-range-labels { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: rgba(10,10,10,.4); margin-top: 6px; }

/* ─── GRID ─── */
.mkt-grid-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.mkt-grid-header h2 { font-size: 20px; font-weight: 900; }
.mkt-count { color: rgba(10,10,10,.4); font-size: 15px; font-weight: 600; }
.mkt-sort { border: 1px solid rgba(0,0,0,.12); background: #fff; border-radius: 12px; padding: 8px 14px; font-size: 13px; font-weight: 700; color: #0a0a0a; outline: none; cursor: pointer; }
.mkt-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }

/* ─── CARD FREELANCER ─── */
.fc { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 22px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.05); transition: transform .2s, box-shadow .2s; cursor: pointer; }
.fc:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.fc-head { background: linear-gradient(135deg,#0b1220,#1a0a0a); padding: 20px 20px 0; display: flex; justify-content: space-between; align-items: flex-start; }
.fc-avatar { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg,rgba(255,45,45,.3),rgba(255,122,0,.2)); border: 2px solid rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 900; color: #fff; margin-bottom: -20px; }
.fc-status { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 999px; }
.status-ok { color: #22c55e; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.25); }
.status-busy { color: #f59e0b; background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.25); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fc-body { padding: 28px 18px 18px; }
.fc-name { font-size: 16px; font-weight: 900; margin-bottom: 2px; color: #0a0a0a; }
.fc-role { font-size: 13px; color: rgba(10,10,10,.5); font-weight: 600; margin-bottom: 10px; }
.fc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.fc-tag { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.05); border: 1px solid rgba(0,0,0,.08); color: rgba(10,10,10,.6); }
.fc-tag.hl { background: rgba(255,45,45,.07); border-color: rgba(255,45,45,.2); color: #cc1a1a; }
.fc-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; margin-bottom: 12px; color: #f59e0b; }
.fc-rating span { color: #0a0a0a; }
.fc-rating small { color: rgba(10,10,10,.4); font-size: 12px; }
.fc-meta { display: flex; gap: 12px; margin-bottom: 14px; padding: 10px; background: #f8f8fa; border-radius: 12px; }
.fc-meta-item { text-align: center; flex: 1; }
.fc-meta-val { font-size: 14px; font-weight: 900; color: #0a0a0a; }
.fc-meta-lbl { font-size: 11px; color: rgba(10,10,10,.45); font-weight: 600; }
.fc-foot { display: flex; justify-content: space-between; align-items: center; }
.fc-price { font-size: 18px; font-weight: 900; color: #0a0a0a; }
.fc-price small { font-size: 12px; font-weight: 600; color: rgba(10,10,10,.45); }
.fc-btn { padding: 9px 16px; border-radius: 999px; font-size: 12px; font-weight: 900; background: #ff2d2d; color: #fff; border: none; cursor: pointer; transition: all .2s; box-shadow: 0 4px 14px rgba(255,45,45,.25); }
.fc-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255,45,45,.4); }

/* ─── CÓMO FUNCIONA ─── */
.mkt-how-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 24px; }
.mkt-how-card { text-align: center; padding: 28px 18px; border-radius: 20px; background: #fff; border: 1px solid rgba(0,0,0,.07); box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.mkt-how-num { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,45,45,.1); border: 1px solid rgba(255,45,45,.2); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; color: #ff2d2d; margin: 0 auto 14px; }
.mkt-how-card h4 { font-size: 15px; font-weight: 900; margin-bottom: 8px; }

/* ─── PUBLICAR PROYECTO ─── */
.mkt-post-section {
  background: linear-gradient(135deg,#080a12,#1a0810);
  padding: 80px 20px 72px;
  scroll-margin-top: 70px;
}
.mkt-post-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.mkt-post-text h2 { font-size: clamp(26px,3vw,38px); font-weight: 900; color: #fff; margin-bottom: 14px; line-height: 1.15; }
.mkt-post-text h2 span { color: #ff2d2d; }
.mkt-post-text p { color: rgba(255,255,255,.6); font-size: 15px; line-height: 1.65; margin-bottom: 24px; }
.mkt-perks { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.mkt-perk { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255,255,255,.75); font-weight: 600; }
.mkt-perk-ico { width: 32px; height: 32px; border-radius: 10px; background: rgba(255,45,45,.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mkt-post-form {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 80px;
}
.mkt-post-form h3 { color: #fff; font-size: 18px; font-weight: 800; margin-bottom: 22px; letter-spacing: -.2px; }
.mkt-fgroup { margin-bottom: 14px; }
.mkt-fgroup label { display: block; font-size: 12px; font-weight: 800; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.mkt-fgroup input, .mkt-fgroup select, .mkt-fgroup textarea { width: 100%; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: #fff; font-size: 14px; outline: none; transition: border .2s; font-family: inherit; }
.mkt-fgroup input::placeholder, .mkt-fgroup textarea::placeholder { color: rgba(255,255,255,.3); }
.mkt-fgroup input:focus, .mkt-fgroup select:focus, .mkt-fgroup textarea:focus { border-color: #ff2d2d; }
.mkt-fgroup select option { background: #0b1220; }
.mkt-frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ─── MODAL ─── */
.mkt-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.65); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s; }
.mkt-overlay.open,
.mkt-overlay.active { opacity: 1; pointer-events: all; }
.mkt-modal { background: #fff; border-radius: 28px; width: min(600px,calc(100% - 40px)); max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 60px rgba(0,0,0,.3); transform: translateY(16px); transition: transform .25s; }
.mkt-overlay.open .mkt-modal,
.mkt-overlay.active .mkt-modal { transform: translateY(0); }
body.no-scroll { overflow: hidden; }
.mkt-modal-top { background: linear-gradient(135deg,#0b1220,#1a0a0a); padding: 28px 28px 36px; position: relative; }
.mkt-modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); cursor: pointer; color: #fff; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.mkt-modal-avatar { width: 76px; height: 76px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 900; color: #fff; margin-bottom: 12px; border: 2px solid rgba(255,255,255,.2); }
.mkt-modal-name { font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 4px; }
.mkt-modal-role { font-size: 14px; color: rgba(255,255,255,.55); font-weight: 600; margin-bottom: 12px; }
.mkt-modal-body { padding: 24px 28px 28px; }
.mkt-msec { margin-bottom: 18px; }
.mkt-msec h4 { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; color: rgba(10,10,10,.4); margin-bottom: 8px; }
.mkt-msec p { font-size: 14px; line-height: 1.7; color: rgba(10,10,10,.7); }
.mkt-modal-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.mkt-modal-tag { font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.05); border: 1px solid rgba(0,0,0,.09); color: #0a0a0a; }
.mkt-mstats { display: flex; gap: 16px; padding: 16px; background: #f5f5f7; border-radius: 14px; margin-bottom: 18px; }
.mkt-mstat { flex: 1; text-align: center; }
.mkt-mstat-val { font-size: 18px; font-weight: 900; color: #0a0a0a; }
.mkt-mstat-lbl { font-size: 11px; color: rgba(10,10,10,.45); font-weight: 600; }
.mkt-accent-yellow { color: #f59e0b !important; }
.mkt-accent-red { color: #ff2d2d !important; }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .mkt-layout { grid-template-columns: 1fr; }
  .mkt-sidebar { position: static; }
  .mkt-grid { grid-template-columns: repeat(2,1fr); }
  .mkt-post-inner { grid-template-columns: 1fr; }
  .mkt-how-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .mkt-grid { grid-template-columns: 1fr; }
  .mkt-how-grid { grid-template-columns: 1fr; }
  .mkt-frow { grid-template-columns: 1fr; }
}

/* ─── AUTH BUTTONS: FREELANCER HUB ─── */
.nav-auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.55);
}

.btn-outline-dark {
  background: #fff;
  color: #0a0a0a;
  border: 1px solid rgba(255,255,255,.18);
}

.btn-outline-dark:hover {
  background: #f8fafc;
}

.freelancer-auth-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

@media (max-width: 960px) {
  .nav-auth-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 600px) {
  .nav-auth-actions {
    width: 100%;
    justify-content: stretch;
  }

  .nav-auth-actions .btn,
  .freelancer-auth-cta .btn,
  .mkt-hero-actions .hero2-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}