/* ===== HomeZy — estilos globales (rediseño "de oficio") =====
   Misma base de accesibilidad que la versión anterior (público 30-80,
   WCAG 2.1, base 18px, objetivos táctiles de 44-48px), con nueva
   personalidad visual: papel cálido, tinta, azul de mono de trabajo,
   bordes honestos y sombras duras en vez de difuminados.
   Tipografía: Bricolage Grotesque (titulares) + Hanken Grotesk (texto). */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Hanken+Grotesk:wght@400;500;600;700;800&display=swap");

:root {
  --primary: #2a4ed0;
  --primary-dark: #1e3aa8;
  --primary-light: #edf1fe;
  --accent: #de9b26;
  --text: #201d16;
  --text-muted: #6b6557;
  --bg: #f7f4ec;
  --card: #ffffff;
  --border: #e3dccb;
  --ink: #201d16;
  --danger: #b3402a;
  --danger-bg: #fbede9;
  --success: #2c6e3f;
  --success-bg: #e7f3e9;
  --warn-bg: #fbf0d7;
  --warn-text: #8a6116;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 4px 4px 0 rgba(32, 29, 22, .08);
  --shadow-lg: 8px 8px 0 rgba(32, 29, 22, .08);
  --shadow-pop: 0 12px 32px rgba(32, 29, 22, .16);
  /* Plano: la marca ya no usa degradados, pero el nombre de la variable
     se conserva porque muchos componentes la referencian */
  --gradient: #2a4ed0;
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 112.5%; overflow-x: hidden; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

body {
  font-family: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100vw;
}

h1, h2, h3 { font-family: var(--font-display); }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

p a, .request-meta a, .empty a, .form-footer a, .form-intro a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field select, .filters select, .search-bar select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6557' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 1.15rem;
  padding-right: 2.7rem;
  cursor: pointer;
}
.field select::-ms-expand, .filters select::-ms-expand, .search-bar select::-ms-expand {
  display: none;
}

/* ===== Autocompletado de direcciones ===== */
.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pop);
  max-height: 260px;
  overflow-y: auto;
  z-index: 120;
  display: none;
}
.autocomplete-list.show { display: block; }

.autocomplete-list, .custom-select-panel {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.autocomplete-list::-webkit-scrollbar, .custom-select-panel::-webkit-scrollbar {
  display: none;
}
.autocomplete-item {
  padding: .65rem 1rem;
  cursor: pointer;
  font-size: .95rem;
  line-height: 1.4;
}
.autocomplete-item + .autocomplete-item { border-top: 1px solid var(--border); }
.autocomplete-item:hover, .autocomplete-item.active { background: var(--primary-light); }
.autocomplete-hint { padding: .65rem 1rem; color: var(--text-muted); font-size: .9rem; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== Animaciones ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Cabecera ===== */
.site-header {
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 1rem;
}

/* Logotipo: casita a línea + palabra en minúsculas */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.5px;
  text-transform: lowercase;
}
.logo::before {
  content: "";
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
  margin-right: .55rem;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%232a4ed0'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3%2011.2%2012%203.5l9%207.7%20M5.5%209.3V20.5h13V9.3%20M10%2020.5v-6h4v6'/%3E%3C/svg%3E") no-repeat center / contain;
}
.logo:hover { text-decoration: none; }
.logo span {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: inherit;
}

.nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.nav a:not(.btn) { color: var(--text); font-weight: 700; font-size: 1rem; padding: .35rem 0; white-space: nowrap; }
.nav a:not(.btn):hover { color: var(--primary); text-decoration: none; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; text-decoration: none; }
.nav .nav-user { color: var(--text-muted); font-weight: 600; display: inline-flex; align-items: center; gap: .45rem; }
.nav .nav-user .avatar { width: 30px; height: 30px; font-size: .72rem; border-width: 1px; }

/* Hamburger */
.hamburger { display: none; }

@media (max-width: 640px) {
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 61;
  }
  .hamburger svg { width: 26px; height: 26px; stroke: var(--text); }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 80vw);
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 74px 1.25rem 1.5rem;
    background: var(--bg);
    border-left: 2px solid var(--ink);
    box-shadow: -8px 0 24px rgba(0,0,0,.12);
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 60;
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }

  .nav a:not(.btn),
  .nav button,
  .nav .nav-user {
    padding: .85rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
    width: 100%;
    text-align: left;
  }
  .nav a.btn { margin-top: .5rem; text-align: center; }
  .nav .nav-user { padding: .85rem 0; }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 59;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }
  .nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7rem 1.6rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
  background: var(--card);
  color: var(--text);
  border: 2px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }

.btn-light { background: var(--bg); color: var(--text); font-weight: 800; }
.btn-light:hover { background: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: .45rem 1.1rem; font-size: .93rem; min-height: 44px; }

/* ===== Héroe ===== */
.hero {
  position: relative;
  background: var(--bg);
  color: var(--text);
  padding: 5rem 0 5.5rem;
  text-align: center;
}
.hero::before, .hero::after { content: none; }

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  max-width: 780px;
  margin: 0 auto 1.2rem;
  text-wrap: balance;
  animation: fadeUp .7s ease .1s both;
}
.hero h1 .highlight {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: inherit;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2.4rem;
  text-wrap: pretty;
  animation: fadeUp .7s ease .2s both;
}

.search-bar {
  display: flex;
  gap: .55rem;
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  padding: .65rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  flex-wrap: wrap;
  animation: fadeUp .7s ease .3s both;
  position: relative;
  z-index: 5;
}
.search-bar select,
.search-bar input {
  flex: 1;
  min-width: 170px;
  border: 1.5px solid var(--border);
  padding: .75rem 1.1rem;
  font-size: 1rem;
  font-family: inherit;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
}
.search-bar select:focus, .search-bar input:focus { outline: 3px solid var(--primary); }
.search-bar .btn { border-radius: var(--radius-sm); }

.hero-chips {
  display: flex;
  justify-content: center;
  gap: .55rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  animation: fadeUp .7s ease .4s both;
}
.hero-chips .chip-label { color: var(--text-muted); font-size: .92rem; align-self: center; }
.chip {
  background: var(--card);
  border: 1.5px solid var(--ink);
  color: var(--text);
  border-radius: 999px;
  padding: .45rem 1.15rem;
  font-size: .92rem;
  font-weight: 700;
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

/* Línea de confianza bajo el buscador (sustituye a las cifras) */
.hero-trust {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: .6rem 2.2rem;
  flex-wrap: wrap;
  margin-top: 2.4rem;
  animation: fadeUp .7s ease .5s both;
}
.hero-trust li {
  color: var(--text-muted);
  font-size: .92rem;
  font-weight: 600;
}
.hero-trust li::before {
  content: "✓";
  color: var(--success);
  font-weight: 800;
  margin-right: .45rem;
}

/* Cifras del héroe (si alguna página las sigue usando) */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2.6rem;
  flex-wrap: wrap;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -.5px;
}
.hero-stat .label { color: var(--text-muted); font-size: .9rem; }

/* Las tarjetas flotantes decorativas desaparecen del nuevo diseño */
.float-card { display: none; }

/* ===== Secciones ===== */
.section { padding: 4.5rem 0; }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 2.5rem; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--text-muted);
  background: none;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 0;
  margin-bottom: .6rem;
}
.section-head h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -1px; }
.section-head p { color: var(--text-muted); margin-top: .5rem; }

.section h2.plain { font-size: 1.7rem; font-weight: 800; letter-spacing: -.5px; margin-bottom: 1.5rem; }
.section-sub { color: var(--text-muted); margin-top: -1rem; margin-bottom: 1.5rem; }

/* ===== Tarjetas de categoría ===== */
.category-grid {
  display: grid;
  /* 5 oficios por fila (con 10 -> 5 arriba y 5 abajo) */
  grid-template-columns: repeat(5, 1fr);
  gap: .9rem;
}
.category-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  color: var(--text);
  display: block;
}
.category-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
}
/* Icono a línea en el azul de la marca: sin fondos pastel */
.category-card .icon {
  width: auto;
  height: 40px;
  margin: 0 auto .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border-radius: 0;
  background: none;
  transition: transform .15s;
}
.category-card:hover .icon { transform: scale(1.08); }
/* "Electrodomésticos" y otros nombres largos parten de línea con guion
   en vez de salirse de la tarjeta (la página está en lang="es"). */
.category-card .name { font-weight: 700; font-size: 1rem; overflow-wrap: break-word; hyphens: auto; }
.category-card .count { font-size: .85rem; color: var(--text-muted); }

/* ===== Tarjetas de profesional ===== */
.pro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.1rem;
}
.pro-card {
  position: relative;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.pro-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.pro-card-head { display: flex; align-items: flex-start; gap: .85rem; }
.pro-id { min-width: 0; flex: 1; }
.pro-id h3 { line-height: 1.25; }
.pro-place {
  display: flex;
  align-items: center;
  gap: .35rem;
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 600;
}
.pro-place svg { flex-shrink: 0; color: var(--primary); }
.pro-distance { color: var(--primary-dark); font-weight: 700; white-space: nowrap; }

/* Precio en grande, sin píldora: una cifra honesta */
.pro-price {
  flex-shrink: 0;
  align-self: flex-start;
  background: none;
  color: var(--primary);
  font-family: var(--font-display);
  border-radius: 0;
  padding: 0;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}
.pro-price small { font-size: .78rem; font-weight: 700; }

.pro-tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.pro-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: .22rem .75rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.pro-tag svg { flex-shrink: 0; }
.pro-tag-cat {
  background: var(--primary-light);
  border-color: #c4d2f7;
  color: var(--primary-dark);
  font-weight: 700;
}

.pro-rating { display: flex; align-items: center; gap: .45rem; font-size: .92rem; }
.pro-rating .count { color: var(--text-muted); font-size: .88rem; font-weight: 500; }
.pro-new {
  background: var(--success-bg);
  color: var(--success);
  border-radius: 999px;
  padding: .2rem .7rem;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}

.pro-cta { gap: .5rem; }
.pro-cta svg { transition: transform .2s; }
.pro-card:hover .pro-cta svg { transform: translateX(4px); }

/* Avatar uniforme: iniciales en azul sobre fondo claro, redondo */
.avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 1.5px solid var(--primary);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.05rem;
  flex-shrink: 0;
}
.avatar.lg { width: 80px; height: 80px; font-size: 1.6rem; }
/* Foto de perfil: rellena el círculo conservando el aro del borde */
.avatar.photo { background: none; overflow: hidden; }
.avatar.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Variantes av-0..av-5: todas iguales en el nuevo diseño (una sola voz) */

.pro-card h3 { font-size: 1.15rem; font-weight: 800; }
.pro-meta { font-size: .9rem; color: var(--text-muted); }
.pro-headline {
  font-weight: 500;
  font-size: .98rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pro-rate { font-weight: 800; color: var(--primary-dark); }
.pro-card .btn { margin-top: auto; }

.stars { color: var(--accent); letter-spacing: 1.5px; }
.stars .muted { color: #e6dfd0; }
.rating-line { display: flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 600; }
.rating-line span:last-child { color: var(--text-muted); font-weight: 500; }

.badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: .22rem .85rem;
  font-size: .85rem;
  font-weight: 700;
}

/* ===== Banda CTA ===== */
.cta-band {
  background: var(--primary);
  border-radius: 22px;
  color: #fff;
  padding: 3.5rem 2.5rem;
  text-align: center;
}
.cta-band::before { content: none; }
.cta-band h2 { font-size: 2rem; font-weight: 800; letter-spacing: -1px; margin-bottom: .6rem; }
.cta-band p { color: #dce4fb; max-width: 520px; margin: 0 auto 1.8rem; }

/* ===== Filtros ===== */
.filters {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem;
}
.filters select, .filters input {
  min-height: 52px;
  padding: .6rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
.filters input { flex: 1; min-width: 150px; }
.filters select:focus, .filters input:focus { outline: 3px solid var(--primary); border-color: var(--primary); }

/* Cabecera de páginas interiores: papel, tinta y aire */
.page-hero {
  background: var(--bg);
  color: var(--text);
  padding: 2.75rem 0 .25rem;
  margin-bottom: 0;
  position: relative;
}
.page-hero::before { content: none; }
.page-hero h1 { font-size: 2.4rem; font-weight: 800; letter-spacing: -1px; }
.page-hero p { color: var(--text-muted); }

.page-body { position: relative; z-index: 2; padding: 1.5rem 0 4rem; }

/* ===== Formularios ===== */
.form-card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  max-width: 460px;
  margin: 3.5rem auto;
  animation: fadeUp .5s ease both;
}
.form-card.wide { max-width: 580px; }
.form-card h1 { font-size: 1.8rem; font-weight: 800; letter-spacing: -.5px; margin-bottom: .4rem; }
.form-card .form-intro { color: var(--text-muted); font-size: .95rem; margin-bottom: 1.5rem; }

.form-section {
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin: 1.75rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1.5px solid var(--border);
}
.form-section:first-of-type { margin-top: .5rem; padding-top: 0; border-top: none; }

.field { margin-bottom: 1.1rem; position: relative; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.field label small { color: var(--text-muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #c9d6f8;
}
.field textarea { resize: vertical; min-height: 96px; }

.form-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1.5px solid #ecc9c0;
  border-radius: var(--radius-sm);
  padding: .65rem 1rem;
  margin-bottom: 1rem;
  font-size: .95rem;
  display: none;
}
.form-error.show { display: block; }

.form-footer { text-align: center; margin-top: 1.25rem; font-size: .95rem; color: var(--text-muted); }
.form-footer code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .1rem .4rem;
  font-size: .82rem;
}

.role-switch { display: flex; gap: .6rem; margin-bottom: 1.4rem; }
.role-switch button {
  flex: 1;
  min-height: 56px;
  padding: .75rem;
  border: 2px solid var(--ink);
  background: var(--card);
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text);
  transition: background .15s, color .15s;
}
.role-switch button.active {
  border-color: var(--ink);
  color: #fff;
  background: var(--primary);
}

/* ===== Detalle del profesional ===== */
.pro-detail {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  margin: 2.5rem 0;
  animation: fadeUp .5s ease both;
}
.pro-detail-top { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.pro-detail-id { min-width: 0; display: flex; flex-direction: column; gap: .55rem; }
.pro-detail h1 { font-size: 2rem; font-weight: 800; letter-spacing: -1px; line-height: 1.2; }
.pro-detail-cta {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .6rem;
}
.pro-detail-cta .pro-price { font-size: 1.7rem; }

.pro-headline.detail {
  display: block;
  -webkit-line-clamp: unset;
  margin-top: 1.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.pro-detail .description { margin: .9rem 0 1.4rem; white-space: pre-line; color: var(--text-muted); }

.reviews-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.3rem;
  font-family: var(--font-display);
  margin: 1.6rem 0 .9rem;
  padding-top: 1.4rem;
  border-top: 1.5px solid var(--border);
}
.reviews { display: grid; gap: .8rem; }
.review {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.2rem;
}
.review .avatar {
  width: 42px; height: 42px;
  font-size: .85rem;
  background: #fff;
  border-color: var(--ink);
  color: var(--text);
}
.review-head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.review-id { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.review-head .who { font-weight: 700; }
.review-head .when { color: var(--text-muted); font-size: .85rem; }
.review p { margin-top: .6rem; color: var(--text); }

/* ===== Dashboard / solicitudes ===== */
.request-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.request-card:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.request-card.earnings {
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-lg);
}
.request-card.earnings:hover { border-color: var(--ink); box-shadow: var(--shadow-lg); }
.request-card.earnings strong { display: block; margin-bottom: .35rem; }

.earnings-grid { display: flex; gap: 2.2rem; flex-wrap: wrap; margin-bottom: .6rem; }
.earning { display: flex; flex-direction: column; }
.earning-value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}
.earning-label { font-size: .85rem; color: var(--text-muted); font-weight: 600; }

.job-top { display: flex; align-items: center; gap: .9rem; }
.job-who { flex: 1; min-width: 0; }
.job-who h3 { font-size: 1.1rem; font-weight: 800; line-height: 1.25; }
.job-title {
  display: block;
  color: var(--text-muted);
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.job-desc {
  margin-top: .75rem;
  color: var(--text-muted);
  font-size: .95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}
.job-desc.open { -webkit-line-clamp: unset; line-clamp: unset; }
.job-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; }
.job-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: .25rem .8rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.job-chip svg { flex-shrink: 0; }
.job-chip a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.job-chip.pay-paid { background: var(--success-bg); border-color: #bcdcc3; color: var(--success); }
.job-chip.pay-pending { background: var(--warn-bg); border-color: #e3cb8a; color: var(--warn-text); }
.request-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; flex-wrap: wrap; }
.request-head h3 { font-size: 1.1rem; font-weight: 800; }
.request-meta { color: var(--text-muted); font-size: .92rem; margin-bottom: .4rem; }
.request-actions { display: flex; gap: .5rem; margin-top: .8rem; flex-wrap: wrap; align-items: center; }

.status {
  padding: .25rem .9rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 800;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.status-pending   { background: var(--warn-bg); color: var(--warn-text); }
.status-accepted  { background: var(--primary-light); color: var(--primary-dark); }
.status-completed { background: var(--success-bg); color: var(--success); }
.status-rejected  { background: var(--danger-bg); color: var(--danger); }
.status-cancelled { background: #eceadf; color: var(--text-muted); }

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(32, 29, 22, .55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow-pop);
  padding: 2rem;
  width: 100%;
  max-width: 490px;
  animation: fadeUp .3s ease both;
}
.modal.modal-sm { max-width: 420px; }
.confirm-message { color: var(--text-muted); font-size: .98rem; line-height: 1.55; overflow-wrap: anywhere; }
.modal h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 1.1rem; }
.modal h2 + .form-intro { margin-top: -.7rem; }
.modal .form-intro { color: var(--text-muted); font-size: .95rem; margin-bottom: 1.3rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.3rem; }

/* Desglose en vivo del importe del trabajo (card de completar) */
.amount-summary { margin-top: 1rem; }
.amount-summary:empty { display: none; }
.amount-row {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: .95rem; color: var(--text-muted); padding: .5rem 0;
}
.amount-row + .amount-row { border-top: 1px solid var(--border); }
.amount-row.total { color: var(--text); font-weight: 800; font-size: 1.1rem; padding-top: .7rem; }
.amount-row.total span:last-child { color: var(--primary); }

/* Tarjeta de importe (presupuestos e importes en las cards del panel) */
.amount-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  margin-top: .8rem;
  padding: .8rem 1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
}
.amount-card-info { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.amount-card-label {
  font-size: .7rem; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-muted);
}
.amount-card-value {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.4rem; line-height: 1.1; color: var(--text);
}
.amount-card-sub { font-size: .8rem; color: var(--text-muted); }
.amount-pill {
  font-size: .76rem; font-weight: 700; white-space: nowrap;
  padding: .3rem .75rem; border-radius: 999px;
}
.amount-pill--pending { background: var(--primary-light); color: var(--primary); }
.amount-pill--ok      { background: var(--success-bg);   color: var(--success); }
.amount-pill--warn    { background: var(--warn-bg);      color: var(--warn-text); }

.star-input { display: flex; gap: .3rem; font-size: 2rem; cursor: pointer; }
.star-input span { color: #e6dfd0; transition: color .1s, transform .1s; }
.star-input span:hover { transform: scale(1.15); }
.star-input span.on { color: var(--accent); }

/* ===== Varios ===== */
.empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3.5rem 1rem;
  background: var(--card);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
}
.empty .icon { font-size: 2.8rem; display: block; margin-bottom: .6rem; }

.toast {
  position: fixed;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--bg);
  padding: .75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  z-index: 200;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--danger); }

/* ===== Cómo funciona: números grandes, sin tarjetas ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.step {
  text-align: center;
  padding: 1.5rem 1rem;
  background: none;
  border: none;
}
.step .num {
  width: auto; height: auto;
  margin: 0 auto .4rem;
  border-radius: 0;
  background: none;
  color: var(--primary);
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.9rem;
  line-height: 1;
}
.step h3 { margin-bottom: .3rem; font-size: 1.2rem; font-weight: 800; }
.step p { color: var(--text-muted); font-size: .95rem; text-wrap: pretty; }

/* ===== Pie de página ===== */
.site-footer {
  background: var(--ink);
  color: #b8b2a4;
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}
main, .page-body, section:last-of-type { margin-bottom: 3rem; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid #3a362c;
}
.footer-grid .logo { color: #f7f4ec; }
.footer-grid p { max-width: 280px; font-size: .95rem; margin-top: .5rem; }
.footer-col h4 {
  color: #f7f4ec;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: .8rem;
}
.footer-col a { display: block; color: #b8b2a4; font-size: .95rem; margin-bottom: .5rem; }
.footer-col a:hover { color: #f7f4ec; text-decoration: underline; }
.footer-bottom { text-align: center; font-size: .9rem; padding-top: 1.6rem; margin-top: 1.5rem; }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ===== Avisos del panel ===== */
.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.25rem;
  border: 1.5px solid;
  border-radius: var(--radius-sm);
  padding: .9rem 1.2rem;
  margin-bottom: 1rem;
  font-size: .95rem;
}
.notice p { margin: 0; flex: 1 1 260px; line-height: 1.5; }
.notice-warning { background: var(--warn-bg); border-color: #d9a93f; color: var(--warn-text); }
.notice-warning a:not(.btn) { color: inherit; font-weight: 700; text-decoration: underline; }
.notice-info { background: var(--primary-light); border-color: #c4d2f7; color: var(--primary-dark); }

/* ===== Acceso con Google ===== */
.social-login { margin-bottom: 1.4rem; }
.google-btn-wrap { display: flex; justify-content: center; }
.social-divider {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: 1.2rem;
  color: var(--text-muted);
  font-size: .9rem;
}
.social-divider::before,
.social-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===== Cobros con Stripe ===== */
.connect-box {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.connect-box p { margin: .6rem 0 .9rem; font-size: .95rem; color: var(--text-muted); }

/* ===== Dropdown personalizado ===== */
.custom-select { position: relative; }

.custom-select select {
  position: absolute;
  width: 1px;
  min-height: 0;
  height: 1px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  width: 100%;
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.custom-select-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-select-value.placeholder { color: var(--text-muted); }
.custom-select-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform .2s ease;
}
.custom-select.open .custom-select-chevron { transform: rotate(180deg); }

.custom-select-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 230px;
  margin: 0;
  padding: .4rem;
  list-style: none;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-pop);
  max-height: 300px;
  overflow-y: auto;
  z-index: 120;
  display: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 400;
  text-align: left;
}
.custom-select.open .custom-select-panel {
  display: block;
  animation: dropdownIn .16s ease;
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.custom-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .6rem .85rem;
  border-radius: 9px;
  cursor: pointer;
  line-height: 1.4;
}
.custom-select-option + .custom-select-option { margin-top: 2px; }
.custom-select-option:hover { background: var(--bg); }
.custom-select-option.active { background: var(--primary-light); }
.custom-select-option .check {
  flex-shrink: 0;
  color: var(--primary);
  visibility: hidden;
}
.custom-select-option[aria-selected="true"] {
  color: var(--primary-dark);
  font-weight: 700;
}
.custom-select-option[aria-selected="true"] .check { visibility: visible; }

.search-bar .custom-select { flex: 1; min-width: 170px; }
.search-bar .custom-select-trigger {
  height: 100%;
  min-height: 52px;
  padding: .75rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}
.search-bar .custom-select-trigger:focus { outline: 3px solid var(--primary); }

.filters .custom-select { min-width: 200px; }
.filters .custom-select-trigger {
  min-height: 52px;
  padding: .6rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}
.filters .custom-select-trigger:focus {
  outline: 3px solid var(--primary);
  border-color: var(--primary);
}

.field .custom-select-trigger {
  min-height: 52px;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field .custom-select-trigger:focus,
.field .custom-select.open .custom-select-trigger {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #c9d6f8;
}

/* ===== Móvil ===== */
@media (max-width: 640px) {
  .container { padding: 0 1rem; }

  .site-header .container {
    height: auto;
    padding: .6rem 1rem;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: .25rem;
  }
  .nav { gap: .35rem 1rem; justify-content: center; }
  .nav .nav-user { display: none; }

  .hero { padding: 3rem 0 3.5rem; }
  .hero p { font-size: 1.05rem; }
  .hero-trust { gap: .5rem 1.4rem; margin-top: 2rem; }
  .hero-stats { gap: 1.5rem; margin-top: 2.4rem; }

  .search-bar { border-radius: 16px; padding: .7rem; gap: .6rem; }
  .search-bar select:not([data-enhanced]), .search-bar input, .search-bar .btn, .search-bar .custom-select { width: 100%; flex: none; min-width: 0; }

  .section { padding: 2.75rem 0; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .pro-grid { grid-template-columns: 1fr; }

  .filters { flex-direction: column; align-items: stretch; }
  .filters select:not([data-enhanced]), .filters input, .filters .custom-select { width: 100%; min-width: 0; }

  .request-actions .btn { flex: 1 1 auto; }
  .job-top { flex-wrap: wrap; }
  .earnings-grid { gap: 1.25rem; }
  .modal { padding: 1.5rem; max-height: 92vh; overflow-y: auto; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }

  .form-card, .form-card.wide { padding: 1.5rem; margin: 1.5rem auto; max-width: calc(100vw - 2rem); }
  .pro-detail { padding: 1.5rem; margin: 1.5rem 0; }
  .pro-detail-top { gap: 1rem; }
  .pro-detail-cta {
    margin-left: 0;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cta-band { padding: 2.5rem 1.25rem; border-radius: 18px; }

  .footer-grid { flex-direction: column; gap: 1.75rem; }
  .site-footer { padding: 2.5rem 0 1.5rem; }

  .toast { width: calc(100vw - 2rem); text-align: center; }
}

/* ===== Páginas legales ===== */
.legal {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2.75rem;
  margin: 2.5rem auto;
  max-width: 860px;
}
.legal h1 { font-size: 1.9rem; margin-bottom: .25rem; }
.legal-updated { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }
.legal p, .legal li { color: var(--text); }
.legal p { margin-bottom: .6rem; }
.legal ul { padding-left: 1.4rem; margin-bottom: .6rem; }
.legal li { margin-bottom: .35rem; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal table { width: 100%; border-collapse: collapse; margin: .75rem 0 1rem; font-size: .92rem; }
.legal th, .legal td { border: 1px solid var(--border); padding: .5rem .7rem; text-align: left; }
.legal th { background: var(--bg); }

/* Casilla de aceptación legal en el registro */
.consent {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin: 1.1rem 0 1.25rem;
  font-size: .95rem;
  line-height: 1.5;
  cursor: pointer;
}
.consent input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-height: 0;
  margin-top: .15rem;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.consent a { text-decoration: underline; text-underline-offset: 2px; }

/* ===== Campana de notificaciones ===== */
.nav-bell { position: relative; display: inline-flex; }
.bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background .15s;
}
.bell-btn:hover { background: rgba(32, 29, 22, .08); }
.bell-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
}
.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  /* Anclado a la derecha bajo la campana (que está a la derecha del header):
     así nunca se sale por los lados, aunque el mensaje sea largo. */
  right: 0;
  left: auto;
  transform: none;
  /* El ancho se ajusta al mensaje más largo, con un tope para no salirse */
  width: max-content;
  min-width: 320px;
  max-width: min(580px, calc(100vw - 2.5rem));
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-pop);
  z-index: 130;
  color: var(--text);
  text-align: left;
  overflow: hidden;
}
.notif-head { padding: .9rem 1.3rem .75rem; border-bottom: 1px solid var(--border); }
.notif-head strong { font-size: .98rem; font-weight: 800; }
.notif-cta { margin: .7rem 1.3rem .2rem; }
.notif-list {
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: .35rem .55rem .55rem;
}
.notif-list::-webkit-scrollbar { display: none; }

/* Cabecera de grupo por fecha (Hoy, Ayer…) */
.notif-group {
  font-size: .68rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-muted);
  padding: .75rem .85rem .3rem;
}

.notif-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .7rem;
  align-items: start;
  padding: .65rem .8rem;
  margin: 0 .5rem;
  border-radius: 12px;
  color: var(--text);
  font-size: .85rem;
  line-height: 1.45;
}
.notif-item:hover { background: var(--bg); text-decoration: none; }

.notif-icon {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(32, 29, 22, .05);
}
.notif-blue  { background: var(--primary-light); color: var(--primary); }
.notif-green { background: var(--success-bg);   color: var(--success); }
.notif-red   { background: var(--danger-bg);    color: var(--danger); }
.notif-amber { background: #fbf1dd;             color: #b07d18; }

.notif-body { min-width: 0; }
.notif-item strong {
  display: block; font-size: .88rem; margin-bottom: .1rem;
  overflow-wrap: anywhere; word-break: break-word;
}
.notif-text {
  color: var(--text-muted); display: block; margin-bottom: .2rem;
  /* Los mensajes largos saltan de línea en vez de salirse de la card */
  overflow-wrap: anywhere; word-break: break-word; white-space: normal;
  font-size: .78rem; line-height: 1.4;
}
.notif-item time { color: var(--text-muted); font-size: .76rem; }

/* No leído: fondo tenue + punto sobre el icono */
.notif-item.unread { background: var(--primary-light); }
.notif-item.unread:hover { background: #dfe7fc; }
.notif-item.unread .notif-icon::after {
  content: ""; position: absolute; top: -3px; right: -3px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); border: 2px solid var(--card);
}

.notif-empty { padding: 2.2rem 1.4rem; color: var(--text-muted); text-align: center; }
.notif-empty svg { color: var(--border); margin-bottom: .5rem; }
.notif-empty p { font-weight: 700; color: var(--text); font-size: .92rem; margin: 0 0 .25rem; }
.notif-empty span { font-size: .82rem; }

/* ===== Panel de administración ===== */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .9rem;
  margin-bottom: 1.6rem;
}
.admin-stat {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
}
.admin-stat-value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}
.admin-stat-label { font-size: .88rem; color: var(--text-muted); font-weight: 600; }
.admin-stat-sub { font-size: .82rem; color: var(--text-muted); }

.admin-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.admin-tab {
  border: 1.5px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  padding: .5rem 1.2rem;
  font-size: .92rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.admin-tab:hover { background: var(--bg); }
.admin-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.admin-table-wrap {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 2.5rem;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th {
  text-align: left;
  padding: .75rem 1rem;
  background: var(--bg);
  color: var(--text-muted);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
.admin-table td { padding: .7rem 1rem; border-top: 1px solid var(--border); vertical-align: top; }
.admin-table tbody tr:hover { background: var(--bg); }
.admin-empty { padding: 1.6rem 1rem; color: var(--text-muted); text-align: center; }
.admin-tag {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  padding: .1rem .55rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.admin-tag.warn { background: var(--warn-bg); color: var(--warn-text); }
.admin-tag.off { background: #eceadf; color: var(--text-muted); }

@media (max-width: 720px) {
  .legal { padding: 1.5rem; margin: 1.5rem auto; }
  .notif-panel { position: fixed; top: 70px; left: 1.25rem; right: 1.25rem; transform: none; width: auto; min-width: 0; max-width: none; }
}

/* Baja de cuenta */
/* Campo de la foto de perfil: previsualización + acciones en fila */
.avatar-field { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.4rem; }
.avatar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.avatar-actions .field-hint { flex-basis: 100%; margin: 0; }
.field-hint { font-size: .82rem; color: var(--text-muted); }

/* Selector de oficios en chips (un profesional puede elegir varios) */
.chip-select { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 40px; padding: .45rem .85rem;
  border: 1.5px solid var(--border); border-radius: 999px;
  background: var(--card); color: var(--text);
  font: inherit; font-size: .9rem; font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--ink); }
.chip svg { color: var(--text-muted); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip[aria-pressed="true"] svg { color: #fff; }

.account-actions { text-align: center; margin: 2rem 0 1rem; }
.link-danger {
  background: none;
  border: none;
  color: var(--danger);
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.link-danger:hover { color: #7a2a1b; }

/* ===== Listado de profesionales en filas =====
   Solo en la página /professionals (#pro-grid): cada profesional ocupa una
   fila completa, más fácil de comparar y escanear. La portada (#top-pros)
   mantiene las tarjetas. Sin cambios de HTML/JS: display:contents "disuelve"
   .pro-card-head para que avatar, nombre y precio sean hijos directos de la
   rejilla de la tarjeta. */
@media (min-width: 641px) {
  #pro-grid { grid-template-columns: 1fr; gap: .9rem; }
  #pro-grid .pro-card-head { display: contents; }
  #pro-grid .pro-card {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto auto;
    grid-template-areas:
      "avatar id       price btn"
      "avatar tags     price btn"
      "avatar rating   price btn"
      "avatar headline price btn";
    column-gap: 1.2rem;
    row-gap: .35rem;
    align-items: start;
    padding: 1.3rem 1.6rem;
  }
  #pro-grid .avatar { grid-area: avatar; width: 60px; height: 60px; }
  #pro-grid .pro-id { grid-area: id; align-self: center; }
  #pro-grid .pro-tags { grid-area: tags; }
  #pro-grid .pro-rating { grid-area: rating; flex-wrap: nowrap; white-space: nowrap; }
  #pro-grid .pro-headline { grid-area: headline; -webkit-line-clamp: 1; }
  #pro-grid .pro-price { grid-area: price; align-self: center; font-size: 1.35rem; }
  #pro-grid .pro-cta { grid-area: btn; align-self: center; margin-top: 0; white-space: nowrap; }
}

/* Fotos del problema: miniaturas en las cards y previsualización en el formulario */
.req-photos, .photo-previews {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .6rem;
}
.req-photo img, .photo-previews img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  display: block;
}
.req-photo { display: inline-block; line-height: 0; }
.req-photo img { transition: transform .12s ease; }
.req-photo:hover img { transform: scale(1.04); }

/* Aviso de sobrecoste en una solicitud: el importe final supera el presupuesto */
.request-meta.overage {
  margin-top: .5rem;
  padding: .6rem .8rem;
  background: var(--warn-bg);
  color: var(--warn-text);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* ===== Dock de navegación flotante (solo móvil) =====
   Píldora fija abajo que aparece al hacer scroll mientras la cabecera de
   arriba se oculta. Estado controlado por <body class="dock-active">. */
.mobile-dock { display: none; }

@media (max-width: 640px) {
  .mobile-dock {
    display: flex;
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    gap: 2px;
    padding: 4px;
    background: #201d16;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(32, 29, 22, .35);
    transition: background .3s ease, box-shadow .3s ease;
    max-width: calc(100vw - 1.5rem);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-dock::-webkit-scrollbar { display: none; }

  .mobile-dock a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    color: #b8b2a4;
    background: transparent;
    transition: background .15s ease, color .15s ease;
  }
  .mobile-dock a:hover { text-decoration: none; }
  .mobile-dock a.active { background: var(--primary); color: #fff; }

  /* Tema claro cuando el dock llega al footer */
  .mobile-dock.dock-light {
    background: #f0ece4;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
    transition: background .3s ease, box-shadow .3s ease;
  }
  .mobile-dock.dock-light a { color: #5a5548; }
  .mobile-dock.dock-light a.active { background: var(--primary); color: #fff; }

  /* En móvil: el dock reemplaza al hamburger y al nav */
  .hamburger, .nav-overlay { display: none !important; }
  .nav { display: none !important; }

  /* Reserva hueco al final para que el dock no tape el contenido/footer */
  body { padding-bottom: 76px; }
}
