body {
  font-family: "Plus Jakarta Sans", sans-serif !important;
}

:root {
  /* Colores claros + azules y verdes de realeza */
  --bg: #f3f4f6;            /* Fondo general gris muy claro */
  --bg-alt: #e5e7eb;        /* Secciones alternas */
  --bg-soft: #ffffff;       /* Tarjetas / superficies */

  /* Azul real (indigo profundo, nada Facebook) */
  --primary: #3730a3;       /* Indigo 700 */
  --primary-soft: rgba(55, 48, 163, 0.08);

  /* Verde esmeralda sobrio */
  --secondary: #047857;     /* Emerald 700 */

  --text-main: #111827;     /* Gris casi negro, muy legible */
  --text-muted: #4b5563;    /* Gris medio para textos secundarios */
  --border-subtle: #d1d5db; /* Bordes suaves */
  --danger: #dc2626;        /* Rojo para alertas */

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.16);
  --shadow-card: 0 14px 32px rgba(15, 23, 42, 0.12);
  --transition-fast: 0.18s ease-out;
  --max-width: 1160px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* Layout base */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.section-subtitle {
  max-width: 540px;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(209, 213, 219, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

/* Logo con azul real */
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: radial-gradient(
    circle at 30% 20%,
    #4f46e5 0,
    #3730a3 45%,
    #111827 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #eef2ff;
  font-size: 1.1rem;
  box-shadow: 0 10px 25px rgba(55, 48, 163, 0.45);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-main);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.94rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.main-nav a:hover {
  color: var(--text-main);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: background var(--transition-fast), color var(--transition-fast),
    box-shadow var(--transition-fast), transform var(--transition-fast),
    border-color var(--transition-fast);
}

/* Botón principal en azul real */
.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #3730a3);
  color: #f9fafb;
  box-shadow: 0 10px 25px rgba(55, 48, 163, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 35px rgba(55, 48, 163, 0.5);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

.btn-ghost {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: var(--text-main);
}

.btn-ghost:hover {
  background: #e5e7eb;
}

.btn-full {
  width: 100%;
}

.small-btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 999px;
}

/* Hero */

.hero {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(
    180deg,
    #ffffff 0,
    #f9fafb 45%,
    #f3f4f6 100%
  );
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 3vw + 1.4rem, 3.4rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero-content .highlight {
  color: var(--primary);
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 1.7rem;
}

.hero-search-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
}

.search-toggle {
  display: inline-flex;
  padding: 0.18rem;
  background: #f3f4f6;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  margin-bottom: 1rem;
}

.toggle-btn {
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  position: relative;
}

.toggle-btn .toggle-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d1d5db;
}

.toggle-btn.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.toggle-btn.active .toggle-dot {
  background: var(--primary);
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.field-group input,
.field-group select {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: var(--text-main);
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.field-group input::placeholder {
  color: #9ca3af;
}

.field-group input:focus,
.field-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(55, 48, 163, 0.35);
  background: #ffffff;
}

.field-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.75rem;
}

.hero-security-note {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.metric {
  min-width: 120px;
}

.metric-number {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
}

.metric-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Hero visual */

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-preview {
  background: #ffffff;
  border-radius: 22px;
  padding: 1rem 1.1rem 1.2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  width: 100%;
  max-width: 320px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}

.badge {
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  font-size: 0.72rem;
}

.badge-urgent {
  background: rgba(248, 113, 113, 0.08);
  color: #b91c1c;
  border: 1px solid rgba(248, 113, 113, 0.6);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.2);
}

.pro-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px dashed #e5e7eb;
}

.pro-row:last-of-type {
  border-bottom: none;
  margin-bottom: 0.5rem;
}

.pro-name {
  font-size: 0.9rem;
  margin: 0 0 0.1rem;
}

.pro-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.pro-price {
  font-size: 0.9rem;
  font-weight: 500;
}

.floating-badge {
  position: absolute;
  bottom: -1.2rem;
  right: 0.5rem;
  background: #ffffff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #e5e7eb;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
}

/* Steps */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.step-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.3rem 1.2rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.step-number {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

/* Services */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.2rem 1.2rem 1.4rem;
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

/* Hover con borde azul real suave */
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: rgba(55, 48, 163, 0.6);
}

/* Why us */

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

.why-card {
  background: #ffffff;
  padding: 1.2rem 1.2rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

/* Join pros */

.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.list-check {
  list-style: none;
  padding-left: 0;
  margin: 1.2rem 0 1.6rem;
}

.list-check li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.96rem;
  color: var(--text-muted);
}

.list-check li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary);
  font-size: 0.82rem;
}

.pros-card {
  background: #ffffff;
  padding: 1.4rem 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.pros-title {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.pros-metrics {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.pros-metrics li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed #e5e7eb;
}

.pros-metrics li:last-child {
  border-bottom: none;
}

.pros-metrics span {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.pros-metrics strong {
  font-size: 0.98rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 2.3rem 0 2rem;
  margin-top: 1.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.footer-left {
  max-width: 380px;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.84rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-main);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
    margin-bottom: 1.6rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .join-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .main-nav {
    position: absolute;
    inset: 56px 0 auto 0;
    padding: 0.9rem 1.5rem 1.1rem;
    flex-direction: column;
    gap: 0.85rem;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .services-grid,
  .steps-grid,
  .why-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-search-card {
    padding: 1.1rem 1rem;
  }
}

/* ========================= */
/* PÁGINA DE RESULTADOS      */
/* ========================= */

.results-hero {
  padding: 2.4rem 0 1.6rem;
  background: linear-gradient(180deg, #ffffff 0, #f9fafb 40%, #f3f4f6 100%);
  border-bottom: 1px solid #e5e7eb;
}

.results-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.results-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.results-breadcrumb a:hover {
  text-decoration: underline;
}

.results-title {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}

.results-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.4rem;
}

.results-summary strong {
  color: var(--text-main);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: #ffffff;
}

.chip-solid {
  background: var(--primary-soft);
  border-color: rgba(55, 48, 163, 0.4);
  color: var(--primary);
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

/* Layout principal: lista + mapa */

.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: flex-start;
}

.results-sidebar {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.3rem 1.2rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.results-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.results-subtitle {
  font-size: 1rem;
  margin: 0;
}

.results-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

/* Tarjeta de resultado */

.result-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid #e5e7eb;
  padding: 0.8rem 0.9rem;
  background: #f9fafb;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast), background var(--transition-fast);
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-color: rgba(55, 48, 163, 0.4);
  background: #ffffff;
}

.result-main {
  flex: 1 1 auto;
}

.result-name {
  font-size: 0.98rem;
  margin: 0 0 0.15rem;
}

.result-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.4rem;
}

.result-tags {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
}

.result-side {
  flex: 0 0 auto;
  text-align: right;
  min-width: 110px;
}

.result-price {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

/* Mapa / placeholder */

.results-map {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.2rem 1.1rem 1.3rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  min-height: 360px;
}

.map-header {
  margin-bottom: 0.75rem;
}

.map-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0;
}

.map-canvas {
  margin-top: 0.7rem;
  border-radius: var(--radius-md);
  border: 1px solid #d1d5db;
  min-height: 260px;
  /* Para que el mapa sea responsivo */
  width: 100%;
  overflow: hidden;
}

/* Responsive resultados */

@media (max-width: 900px) {
  .results-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .results-map {
    order: -1;
  }

  .filter-bar {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .results-sidebar {
    padding: 1rem 0.9rem;
  }

  .result-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .result-side {
    text-align: left;
  }

  .filter-actions {
    width: 100%;
  }
}

/* ========================= */
/* DASHBOARD PROFESIONAL     */
/* ========================= */

.dashboard-main {
  background: #f3f4f6;
}

.dashboard-hero {
  padding: 2.4rem 0 1.4rem;
  background: linear-gradient(180deg, #ffffff 0, #f9fafb 40%, #f3f4f6 100%);
  border-bottom: 1px solid #e5e7eb;
}

.dashboard-hero-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}

.dashboard-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

.dashboard-title {
  font-size: 1.8rem;
  margin: 0 0 0.4rem;
}

.dashboard-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.dashboard-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.dash-stat-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 0.8rem 0.9rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.dash-stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.dash-stat-number {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
}

.dash-stat-extra {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.6rem;
}

/* Panels */

.dash-panel {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.3rem 1.2rem;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.dash-panel-aside {
  align-self: flex-start;
}

.dash-panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.dash-panel-header h2 {
  font-size: 1rem;
  margin: 0;
}

.dash-panel-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dash-panel-header-spaced {
  margin-top: 1.4rem;
}

/* Listas y tarjetas de trabajos */

.dash-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.dash-job-card {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid #e5e7eb;
  padding: 0.8rem 0.9rem;
  background: #f9fafb;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast),
    border-color var(--transition-fast), background var(--transition-fast);
}

.dash-job-card:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
  border-color: rgba(55, 48, 163, 0.4);
  background: #ffffff;
}

.dash-job-card-soft {
  background: #ffffff;
}

.dash-job-main {
  flex: 1 1 auto;
}

.dash-job-main h3 {
  font-size: 0.98rem;
  margin: 0 0 0.15rem;
}

.dash-job-client {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 0.2rem;
}

.dash-job-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

.dash-job-tags {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.dash-job-side {
  flex: 0 0 auto;
  min-width: 110px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: flex-end;
}

.dash-job-price {
  margin: 0 0 0.1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Historial / vacíos */

.dash-empty-block {
  border-radius: var(--radius-md);
  border: 1px dashed #d1d5db;
  padding: 0.9rem 0.9rem;
  background: #f9fafb;
}

.dash-empty-title {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
}

.dash-empty-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dash-history-list {
  margin-top: 0.6rem;
  border-top: 1px solid #e5e7eb;
}

.dash-history-item {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.dash-history-title {
  font-size: 0.9rem;
  margin: 0 0 0.1rem;
}

.dash-history-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.dash-history-right {
  text-align: right;
}

.dash-history-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
  margin-bottom: 0.1rem;
}

.dash-history-amount {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
}

/* Resumen de pagos / tarjetas lado derecho */

.dash-pay-summary {
  border-radius: var(--radius-md);
  border: 1px solid #e5e7eb;
  padding: 0.8rem 0.9rem;
  margin-bottom: 1rem;
  background: #f9fafb;
}

.dash-pay-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.86rem;
  padding: 0.2rem 0;
}

.dash-card {
  border-radius: var(--radius-md);
  border: 1px solid #e5e7eb;
  padding: 0.85rem 0.9rem;
  background: #ffffff;
  margin-bottom: 0.8rem;
}

.dash-card h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.dash-card-text {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dash-support-card {
  background: var(--primary-soft);
  border-color: rgba(55, 48, 163, 0.4);
}

.dash-link {
  color: var(--primary);
  text-decoration: none;
}

.dash-link:hover {
  text-decoration: underline;
}

/* Responsive dashboard */

@media (max-width: 900px) {
  .dashboard-hero-inner {
    flex-direction: column;
  }

  .dashboard-metrics-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dash-panel-aside {
    order: -1;
  }
}

@media (max-width: 640px) {
  .dashboard-metrics-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .dash-job-card {
    flex-direction: column;
  }

  .dash-job-side {
    align-items: flex-start;
    text-align: left;
  }
}

/* ========================= */
/* PERFIL DE USUARIO         */
/* ========================= */

.profile-hero {
  padding: 2.4rem 0 1.4rem;
  background: linear-gradient(180deg, #ffffff 0, #f9fafb 40%, #f3f4f6 100%);
  border-bottom: 1px solid #e5e7eb;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}

.profile-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-initial {
  font-size: 1.5rem;
  font-weight: 600;
  color: #374151;
}

.profile-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

/* Layout principal del perfil */

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.6rem;
}

/* Datos personales */

.profile-info {
  border-radius: var(--radius-md);
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 0.9rem 1rem;
}

.profile-info-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.profile-info-row:last-child {
  border-bottom: none;
}

.profile-info-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.profile-info-value {
  font-size: 0.9rem;
}

.profile-muted {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Preferencias */

.profile-preferences {
  margin-top: 0.6rem;
}

.profile-preferences-list {
  list-style: disc;
  padding-left: 1.3rem;
  margin: 0.2rem 0 0;
}

.profile-preferences-list li {
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}

/* Servicios recientes */

.profile-recent {
  margin-bottom: 1rem;
}

/* Responsive perfil */

@media (max-width: 900px) {
  .profile-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .profile-stats-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-info-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ========================= */
/* AUTH (LOGIN / REGISTRO)   */
/* ========================= */

.auth-body {
  background: radial-gradient(circle at top, #eef2ff 0, #f9fafb 45%, #f3f4f6 100%);
}

.auth-main {
  padding: 3rem 0 3.5rem;
}

.auth-container {
  max-width: 720px;
}

.auth-card {
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  padding: 1.8rem 1.8rem 2rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.auth-header h1 {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
  color: #0f172a;
}

.auth-header p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.auth-tabs {
  margin-top: 1.2rem;
  display: inline-flex;
  border-radius: 999px;
  padding: 0.18rem;
  background: #f3f4ff;
  border: 1px solid #e5e7eb;
}

.auth-tab {
  font-size: 0.88rem;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  color: #4b5563;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.auth-tab.active {
  background: linear-gradient(135deg, #312e81, #4c1d95);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(76, 29, 149, 0.35);
}

.auth-panel {
  margin-top: 1.4rem;
}

.auth-form .field-group {
  margin-bottom: 0.9rem;
}

.auth-form .field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.auth-form label {
  font-size: 0.86rem;
  color: #4b5563;
  margin-bottom: 0.15rem;
  display: block;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  outline: none;
  background: #f9fafb;
  transition: border 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-form input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.25);
  background: #ffffff;
}

.auth-radio-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth-radio {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: #374151;
}

.auth-radio input[type="radio"] {
  accent-color: #4f46e5;
}

.auth-alert {
  border-radius: 0.9rem;
  border: 1px solid #fecaca;
  background: #fef2f2;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.9rem;
}

.auth-alert p {
  margin: 0.1rem 0;
  font-size: 0.85rem;
  color: #991b1b;
}

.auth-switch-text {
  margin-top: 0.7rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.auth-switch-text a {
  color: #4f46e5;
  text-decoration: none;
}

.auth-switch-text a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .auth-card {
    padding: 1.4rem 1.3rem 1.6rem;
    border-radius: 1.1rem;
  }

  .auth-form .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-tabs {
    width: 100%;
    justify-content: space-between;
  }

  .auth-tab {
    flex: 1;
    text-align: center;
  }
}

/* ============================= */
/* LAYOUT PERFILES / DASHBOARD   */
/* ============================= */

.user-layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
  margin-top: 2.5rem;
}

.user-sidebar {
  position: sticky;
  top: 6rem;
  align-self: flex-start;
}

.user-main {
  min-width: 0;
}

.user-card {
  background: #ffffff;
  border-radius: 1.4rem;
  padding: 1.4rem 1.3rem 1.5rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.3);
  margin-bottom: 1rem;
}

.user-avatar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0.8rem;
}

.user-avatar img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
}

.user-avatar-placeholder {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background: radial-gradient(circle at 30% 0, #e0e7ff, #3730a3);
  color: #f9fafb;
  box-shadow: 0 6px 20px rgba(55, 48, 163, 0.35);
}

.user-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.2rem;
}

.user-email {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0 0 0.2rem;
}

.user-meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0.12rem 0;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  font-size: 0.85rem;
  color: #111827;
}

.user-chip-tag {
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: rgba(76, 29, 149, 0.08);
  color: #4c1d95;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Secciones dentro del main */
.user-main h2 {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
  color: #111827;
}

.user-section {
  margin-top: 1.6rem;
}

.user-section h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: #111827;
}

/* Jobs list */
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.4rem;
}

.jobs-list-compact .job-card {
  padding: 0.85rem 0.95rem;
}

.job-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1rem 1.1rem 1.05rem;
  border: 1px solid rgba(209, 213, 219, 0.8);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.job-card-cancelled {
  background: #fef2f2;
  border-color: #fecaca;
}

.job-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
}

.job-card-header h4 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: #111827;
}

.job-category {
  margin: 0;
  font-size: 0.85rem;
  color: #4b5563;
}

.job-description {
  margin: 0.45rem 0 0.4rem;
  font-size: 0.88rem;
  color: #374151;
}

.job-meta {
  margin: 0.1rem 0;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Badges de estado */
.job-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.job-status-open,
.job-status-awaiting_payment {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.job-status-scheduled {
  background: rgba(234, 179, 8, 0.12);
  color: #92400e;
}

.job-status-in_progress {
  background: rgba(56, 189, 248, 0.12);
  color: #0369a1;
}

.job-status-completed {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

.job-status-cancelled {
  background: rgba(248, 113, 113, 0.16);
  color: #b91c1c;
}

/* Mensajes vacíos */
.empty-state {
  font-size: 0.9rem;
  color: #6b7280;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: #f9fafb;
  border: 1px dashed #e5e7eb;
}

/* Responsive */
@media (max-width: 900px) {
  .user-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .user-sidebar {
    position: static;
  }
}

/* Rating stars en dashboard */
.rating-stars {
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #facc15;
}
.rating-stars span {
  display: inline-block;
}

/* Grid para portafolio */
.portfolio-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.8rem;
}

.portfolio-item {
  background: #ffffff;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.portfolio-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.portfolio-item figcaption {
  padding: 0.4rem 0.55rem;
  font-size: 0.8rem;
  color: #4b5563;
}

/* Lista de documentos */
.docs-list {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.doc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border-radius: 0.8rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.doc-type {
  font-size: 0.88rem;
  font-weight: 500;
  color: #111827;
}

.doc-status {
  font-size: 0.8rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #312e81;
}

.doc-date {
  font-size: 0.76rem;
  color: #6b7280;
}



.profile-card,
.user-card,
.user-card-wide,
.reputation-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    padding: 20px 24px;
}

/* === Logo Lofse === */
.logo-img {
  display: block;
  height: 36px;
  width: auto;
}

/* Header un poco más pequeño */
.logo-img-header {
  height: 32px;
}

/* Footer un poquito más grande */
.logo-img-footer {
  height: 40px;
}

/* --- Logo con texto --- */
.logo-flex {
  display: flex;
  align-items: center;
  gap: 10px; /* Espacio entre icono y texto */
  text-decoration: none;
}

/* Texto elegante del logo */
.logo-text {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #0A2E4E; /* Azul imperial */
  letter-spacing: 0.3px;
}

