/* ════════════════════════════════════════════════════════════════════════
   MARKETPLACE — Estilos compartidos
   Reusa la paleta del sitio principal (argentinalitigia.com)
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --blue: #4f7eff;
  --blue2: #3b66dd;
  --purple: #7c3aed;
  --gold: #e8c97e;
  --green: #10b981;
  --yellow: #f59e0b;
  --red: #ef4444;
  --bg: #060d1a;
  --bg2: #0a1426;
  --bg3: #0d1626;
  --text: #e0e8ff;
  --dim: #7a8ab8;
  --muted: #5a729a;
  --border: #1a2a46;
  --cyan: #00d4ff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.55; min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── NAV ──────────────────────────────────────────── */
.mp-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 20, 38, .85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px; display: flex; align-items: center; justify-content: space-between;
}
.mp-brand { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.mp-brand span { color: var(--blue); }
.mp-brand small { font-size: 11px; color: var(--dim); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-left: 8px; }
.mp-nav-links { display: flex; gap: 22px; font-size: 14px; align-items: center; }
.mp-nav-links a { color: var(--text); opacity: .82; transition: opacity .15s; }
.mp-nav-links a:hover { opacity: 1; text-decoration: none; }
.mp-cta {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff !important;
  padding: 8px 18px; border-radius: 8px; font-weight: 700; font-size: 13px;
  opacity: 1 !important;
}
.mp-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79,126,255,.35); }

/* ── CONTAINERS ───────────────────────────────────── */
.mp-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ── HERO ─────────────────────────────────────────── */
.mp-hero {
  padding: 60px 24px 40px; text-align: center;
  background: radial-gradient(ellipse at top, rgba(79,126,255,.12), transparent 70%);
}
.mp-hero h1 {
  font-family: Orbitron, Inter, sans-serif;
  font-size: clamp(34px, 6vw, 56px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.1; margin-bottom: 14px;
}
.mp-hero h1 span { color: var(--blue); }
.mp-hero-sub {
  font-size: clamp(15px, 2vw, 18px); color: var(--dim);
  max-width: 680px; margin: 0 auto 32px; line-height: 1.6;
}
.mp-hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.mp-stat { text-align: center; }
.mp-stat-n { font-size: 32px; font-weight: 800; color: var(--blue); font-family: "DM Mono", monospace; }
.mp-stat-l { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; margin-top: 2px; font-weight: 600; }

/* ── SEARCH BOX (hero & listing) ──────────────────── */
.mp-search-box {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px; max-width: 760px; margin: 0 auto; display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto; gap: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
.mp-search-box input, .mp-search-box select {
  background: var(--bg3); border: 1px solid var(--border); color: var(--text);
  padding: 12px 14px; border-radius: 10px; font-size: 14px; font-family: inherit;
  width: 100%; transition: border-color .15s;
}
.mp-search-box input:focus, .mp-search-box select:focus { outline: none; border-color: var(--blue); }
.mp-search-btn {
  background: linear-gradient(135deg, var(--blue), var(--blue2)); color: #fff;
  border: none; padding: 12px 28px; border-radius: 10px; cursor: pointer;
  font-weight: 700; font-family: inherit; font-size: 14px; transition: transform .1s;
}
.mp-search-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(79,126,255,.35); }

@media (max-width: 820px) { .mp-search-box { grid-template-columns: 1fr; } }

/* ── MAP CONTAINER ────────────────────────────────── */
.mp-map { width: 100%; height: 480px; background: #0a1426; border-radius: 12px; overflow: hidden; }
.mp-map-small { height: 280px; border-radius: 10px; }
.mp-map-lateral { height: calc(100vh - 200px); border-radius: 12px; position: sticky; top: 80px; }

/* ── CARDS ───────────────────────────────────────── */
.mp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 28px; }
.mp-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; transition: all .15s; cursor: pointer;
  display: flex; flex-direction: column; gap: 10px;
}
.mp-card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(79,126,255,.2); }
.mp-card-head { display: flex; gap: 14px; align-items: flex-start; }
.mp-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.mp-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.mp-card-name { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.3; }
.mp-card-matricula { font-size: 12px; color: var(--dim); margin-top: 2px; }
.mp-card-bio { font-size: 13px; color: var(--text); opacity: .85; line-height: 1.5; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mp-fueros { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.mp-fuero {
  font-size: 10.5px; padding: 3px 9px; background: rgba(79,126,255,.12);
  color: var(--blue); border-radius: 10px; text-transform: capitalize;
  font-weight: 600;
}
.mp-card-meta { display: flex; gap: 12px; font-size: 11.5px; color: var(--dim); margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--border); }
.mp-card-meta-item { display: flex; align-items: center; gap: 4px; }
.mp-tipo-badge {
  display: inline-block; padding: 2px 9px; border-radius: 10px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.mp-tipo-fisica { background: rgba(6,182,212,.15); color: #22d3ee; }
.mp-tipo-home { background: rgba(139,92,246,.15); color: #a78bfa; }
.mp-tipo-virtual { background: rgba(79,126,255,.15); color: #8faee0; }
.mp-verified {
  background: rgba(16,185,129,.15); color: #34d399;
  padding: 2px 8px; border-radius: 10px; font-size: 10px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: 3px;
}

/* ── FORM ─────────────────────────────────────────── */
.mp-form-group { margin-bottom: 18px; }
.mp-form-label { display: block; font-size: 11px; color: var(--dim); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.mp-input, .mp-select, .mp-textarea {
  width: 100%; padding: 12px 14px; background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); border-radius: 10px; font-size: 14px; font-family: inherit;
  transition: border-color .15s;
}
.mp-input:focus, .mp-select:focus, .mp-textarea:focus { outline: none; border-color: var(--blue); }
.mp-textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
.mp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) { .mp-row { grid-template-columns: 1fr; } }

/* ── BTN ─────────────────────────────────────────── */
.mp-btn {
  padding: 12px 24px; border-radius: 10px; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 700; border: none; transition: all .1s;
  display: inline-flex; align-items: center; gap: 8px;
}
.mp-btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue2)); color: #fff; }
.mp-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(79,126,255,.35); }
.mp-btn-secondary { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.mp-btn-secondary:hover { border-color: var(--blue); }
.mp-btn-ghost { background: transparent; color: var(--dim); }
.mp-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── SECTIONS ────────────────────────────────────── */
.mp-section { padding: 60px 0; }
.mp-section-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.01em; }
.mp-section-sub { font-size: 15px; color: var(--dim); margin-bottom: 32px; }

/* ── CTA BOX ─────────────────────────────────────── */
.mp-cta-box {
  background: linear-gradient(135deg, rgba(79,126,255,.1), rgba(124,58,237,.05));
  border: 1px solid var(--border); border-radius: 16px;
  padding: 40px; text-align: center; margin: 40px 0;
}

/* ── ALERT / TOAST ───────────────────────────────── */
.mp-alert { padding: 14px 18px; border-radius: 10px; font-size: 14px; line-height: 1.5; margin-bottom: 18px; }
.mp-alert-success { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: #6ee7b7; }
.mp-alert-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
.mp-alert-warn { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3); color: #fcd34d; }
.mp-alert-info { background: rgba(79,126,255,.1); border: 1px solid rgba(79,126,255,.3); color: #8faee0; }

.mp-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--bg3); border: 1px solid var(--border);
  padding: 14px 18px; border-radius: 10px; font-size: 13px;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  animation: mpSlideIn .2s;
}
.mp-toast.ok { border-color: rgba(16,185,129,.4); }
.mp-toast.err { border-color: rgba(239,68,68,.4); color: #fca5a5; }
@keyframes mpSlideIn { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── WIZARD STEPS ────────────────────────────────── */
.mp-steps { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.mp-step {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 20px; font-size: 12.5px; font-weight: 600; color: var(--dim);
  transition: all .15s;
}
.mp-step.done { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.3); color: #6ee7b7; }
.mp-step.current { background: linear-gradient(135deg, rgba(79,126,255,.15), rgba(79,126,255,.05)); border-color: var(--blue); color: var(--text); }
.mp-step-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg3); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.mp-step.done .mp-step-num { background: var(--green); color: #fff; }
.mp-step.current .mp-step-num { background: var(--blue); color: #fff; }

/* ── FOOTER ──────────────────────────────────────── */
.mp-footer {
  border-top: 1px solid var(--border); padding: 40px 24px 28px; margin-top: 60px;
  background: var(--bg2); text-align: center; font-size: 13px; color: var(--dim);
}
.mp-footer a { color: var(--dim); margin: 0 10px; }
.mp-footer a:hover { color: var(--blue); }
.mp-footer-copy { margin-top: 14px; font-size: 11.5px; color: var(--muted); }

/* ── PROFILE VIEW ────────────────────────────────── */
.mp-profile-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 32px; margin-top: 30px; }
@media (max-width: 980px) { .mp-profile-wrap { grid-template-columns: 1fr; } }
.mp-profile-head { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.mp-profile-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 800; color: #fff;
}
.mp-profile-name { font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.mp-profile-subtitle { font-size: 14px; color: var(--dim); margin-top: 4px; }
.mp-profile-badges { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.mp-profile-bio { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 22px; line-height: 1.7; font-size: 15px; }
.mp-contact-panel { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.mp-contact-title { font-size: 16px; font-weight: 700; margin-bottom: 18px; }

/* ── UTILITIES ───────────────────────────────────── */
.mp-center { text-align: center; }
.mp-mt-20 { margin-top: 20px; }
.mp-mt-30 { margin-top: 30px; }
.mp-mb-20 { margin-bottom: 20px; }
.mp-empty { padding: 60px 20px; text-align: center; color: var(--dim); font-size: 14px; }
.mp-empty-icon { font-size: 42px; margin-bottom: 12px; opacity: .5; }
.mp-loading { text-align: center; padding: 40px 20px; color: var(--dim); }

/* ── HIDE SCROLLBAR EN FIREFOX PARA MAP ──────────── */
.mp-map * { scrollbar-width: thin; }
