/* =====================================================
   TRABAJOS CERCA — Estilos globales
   ===================================================== */

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

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f8fafc;
  color: #1e293b;
}

/* HEADER */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 30px;
  background: #2563eb;
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.logo img { height: 44px; object-fit: contain; }
.logo a   { display: flex; align-items: center; }

nav { display: flex; gap: 4px; align-items: center; }

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

nav a:hover { background: rgba(255,255,255,0.18); }

/* HERO */

.hero {
  min-height: 55vh;
  background: linear-gradient(rgba(0,0,0,0.52), rgba(0,0,0,0.52)), url("hero.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 40px 20px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  margin: 0 0 12px;
  font-weight: 800;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  margin: 0;
}

/* ── BUSCADORES GRID (inicio) ── */
.buscadores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: -52px auto 48px;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}
.buscador-card {
  background: white;
  border-radius: 18px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  border: 2px solid transparent;
  user-select: none;
}
.buscador-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 36px rgba(0,0,0,0.16);
  border-color: #2563eb;
}
.buscador-card .bc-ico { font-size: 42px; margin-bottom: 12px; display: block; }
.buscador-card h3 { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: #1e293b; }
.buscador-card p  { margin: 0; font-size: 12px; color: #64748b; line-height: 1.5; }

.search-box {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.search-box input {
  padding: 14px 18px;
  border-radius: 10px;
  border: none;
  font-size: 16px;
  width: 260px;
  outline: none;
}

.search-box button {
  padding: 14px 24px;
  background: #f97316;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.search-box button:hover { background: #ea6c0d; transform: scale(1.04); }

/* SECCIONES */

section { padding: 60px 30px; }

section h2 {
  text-align: center;
  font-size: 28px;
  margin: 0 0 36px;
}

/* GRID CATEGORÍAS */

.grid-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.cat-card {
  background: white;
  border-radius: 12px;
  padding: 24px 14px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: #1e293b;
  display: block;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.13);
  color: #2563eb;
}

.cat-card .ico { font-size: 36px; display: block; margin-bottom: 8px; }
.cat-card span { font-size: 13px; font-weight: 600; }

/* CÓMO FUNCIONA */

.como-funciona { background: #eff6ff; }

.pasos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  max-width: 860px;
  margin: 0 auto;
}

.paso {
  background: white;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.paso .num {
  width: 44px; height: 44px;
  background: #2563eb;
  color: white;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.paso h3 { margin: 0 0 8px; font-size: 16px; }
.paso p  { margin: 0; font-size: 14px; color: #64748b; }

/* FOOTER */

footer {
  background: #1e293b;
  color: #94a3b8;
  text-align: center;
  padding: 28px 20px;
  font-size: 14px;
}

footer a { color: #60a5fa; text-decoration: none; }

/* CONTAINER */

.container {
  max-width: 560px;
  margin: 44px auto;
  background: white;
  padding: 36px;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
}

.container h2 {
  margin: 0 0 24px;
  font-size: 22px;
  text-align: center;
}

/* INPUTS */

input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #f8fafc;
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
  display: block;
}

input:focus, select:focus, textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
  background: white;
}

input[readonly] { background: #f1f5f9; color: #64748b; }

textarea { resize: vertical; min-height: 90px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
}

/* BOTONES */

.btn {
  display: block;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
}

.btn:active { transform: scale(0.98); }
.btn:hover  { text-decoration: none; }

.btn-primary { background: #2563eb; color: white; }
.btn-primary:hover { background: #1d4ed8; }

.btn-google {
  width: 100%; padding: 13px 20px; border-radius: 12px;
  border: 2px solid #e2e8f0; background: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 700; color: #1e293b;
  transition: border-color .15s, box-shadow .15s, background .15s;
  margin-bottom: 4px;
}
.btn-google:hover { border-color: #4285F4; box-shadow: 0 2px 12px rgba(66,133,244,.2); background: #f8faff; }

/* ── Sección empresa ── */
.campo-empresa-box {
  background: #faf5ff; border: 1.5px solid #e9d5ff;
  border-radius: 14px; padding: 16px 18px; margin-bottom: 14px;
}
.label-opcional {
  font-size: 11px; color: #94a3b8; font-weight: 400; margin-left: 4px;
}

/* ── Radio buttons personalizados ── */
.radio-group { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.radio-opt {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 14px; color: #374151; font-weight: 500;
  padding: 8px 12px; border-radius: 10px; border: 1.5px solid #e2e8f0;
  transition: border-color .15s, background .15s;
}
.radio-opt:hover { border-color: #7c3aed; background: #faf5ff; }
.radio-opt input[type="radio"] { display: none; }
.radio-custom {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #cbd5e1; flex-shrink: 0;
  transition: border-color .15s, background .15s;
  display: flex; align-items: center; justify-content: center;
}
.radio-opt input[type="radio"]:checked ~ * { color: #7c3aed; }
.radio-opt:has(input:checked) {
  border-color: #7c3aed; background: #faf5ff; color: #7c3aed;
}
.radio-opt:has(input:checked) .radio-custom {
  border-color: #7c3aed; background: #7c3aed;
  box-shadow: inset 0 0 0 3px white;
}

/* ── Checkboxes personalizados ── */
.check-fila { margin-bottom: 12px; }
.check-opt {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; font-size: 13.5px; color: #374151; font-weight: 500;
  line-height: 1.5;
}
.check-opt input[type="checkbox"] { display: none; }
.check-custom {
  width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0;
  border: 2px solid #cbd5e1; margin-top: 1px;
  transition: border-color .15s, background .15s;
  display: flex; align-items: center; justify-content: center;
}
.check-opt:has(input:checked) .check-custom {
  background: #7c3aed; border-color: #7c3aed;
}
.check-opt:has(input:checked) .check-custom::after {
  content: "✓"; color: white; font-size: 12px; font-weight: 900;
}
.check-terminos-fila {
  background: #fffbeb; border: 1.5px solid #fde68a;
  border-radius: 12px; padding: 12px 14px; margin-bottom: 16px;
}
.link-terminos {
  color: #7c3aed; font-weight: 700; text-decoration: underline;
}

/* ── Modal Términos ── */
.tyc-seccion { margin-bottom: 20px; }
.tyc-seccion h3 {
  font-size: 14px; font-weight: 800; color: #1e293b;
  margin-bottom: 8px; padding-bottom: 6px;
  border-bottom: 2px solid #f1f5f9;
}
.tyc-seccion p { font-size: 13px; color: #475569; line-height: 1.7; margin-bottom: 8px; }
.tyc-seccion ul {
  margin: 6px 0 8px 18px; display: flex; flex-direction: column; gap: 4px;
}
.tyc-seccion ul li { font-size: 13px; color: #475569; line-height: 1.6; }

.btn-success { background: #16a34a; color: white; }
.btn-success:hover { background: #15803d; }

.btn-orange { background: #f97316; color: white; }
.btn-orange:hover { background: #ea6c0d; }

.btn-outline {
  background: white;
  color: #2563eb;
  border: 2px solid #2563eb;
}
.btn-outline:hover { background: #eff6ff; }

.btn-sm {
  width: auto;
  padding: 8px 16px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* TIPO CARDS (registro) */

.tipo-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.tipo-card {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 14px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  background: white;
  user-select: none;
}

.tipo-card:hover { border-color: #93c5fd; }

.tipo-card.active {
  border-color: #2563eb;
  background: #eff6ff;
}

.tipo-card .tipo-ico { font-size: 34px; margin-bottom: 8px; }
.tipo-card h3 { margin: 0 0 5px; font-size: 15px; }
.tipo-card p  { margin: 0; font-size: 12px; color: #64748b; }

/* DASHBOARD */

.dash-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e2e8f0;
}

.dash-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #2563eb;
  flex-shrink: 0;
}

.dash-avatar-placeholder {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #2563eb;
  flex-shrink: 0;
}

.dash-info h3 { margin: 0 0 4px; font-size: 20px; }
.dash-info p  { margin: 0 0 4px; color: #64748b; font-size: 14px; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}

.badge-pro  { background: #fff7ed; color: #c2410c; }
.badge-work { background: #f0fdf4; color: #166534; }

.dash-actions { display: flex; flex-direction: column; gap: 10px; }

/* CARD */

.card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  margin-bottom: 16px;
}

.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p  { margin: 0 0 6px; color: #475569; font-size: 14px; }
.card-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }

/* FILTROS BUSCADOR */

.filtros {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 22px;
}

/* PERFIL PÚBLICO */

.pub-header {
  text-align: center;
  padding: 28px 20px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 22px;
}

.pub-header img {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #2563eb;
  margin-bottom: 12px;
}

.pub-header h2 { margin: 0 0 4px; }
.pub-header p  { margin: 0 0 4px; color: #64748b; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: white;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  margin-top: 14px;
  transition: background 0.2s;
}

.btn-whatsapp:hover { background: #1ebe5b; color: white; }

/* SECCIONES CV */

.cv-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cv-section h3 {
  margin: 0 0 16px;
  font-size: 16px;
  color: #2563eb;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cv-item {
  background: #f8fafc;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
  position: relative;
}

.cv-item-remove {
  position: absolute;
  top: 10px; right: 12px;
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 20px;
  width: auto;
  padding: 0;
  line-height: 1;
  margin: 0;
}

.cv-item-remove:hover { color: #b91c1c; }

/* TAGS */

.tags-input {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  min-height: 52px;
  background: #f8fafc;
  margin-bottom: 14px;
  cursor: text;
  transition: border 0.2s;
}

.tags-input:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
  background: white;
}

.tag {
  background: #dbeafe;
  color: #1d4ed8;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tag button {
  background: none;
  border: none;
  color: #1d4ed8;
  cursor: pointer;
  font-size: 15px;
  padding: 0;
  width: auto;
  margin: 0;
  line-height: 1;
}

.tags-input input {
  border: none;
  outline: none;
  background: none;
  padding: 0;
  margin: 0;
  min-width: 120px;
  flex: 1;
  box-shadow: none;
  margin-bottom: 0;
}

/* MAPA */

#mapa, #mapPerfil, #mapServicio, #mapaPub {
  height: 300px;
  border-radius: 10px;
  margin-top: 14px;
  border: 1px solid #e2e8f0;
}

/* ALERTAS */

.alerta {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.alerta-ok  { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alerta-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* SEPARADOR */

.sep {
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  margin: 18px 0;
  position: relative;
}

.sep::before, .sep::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 44%;
  height: 1px;
  background: #e2e8f0;
}

.sep::before { left: 0; }
.sep::after  { right: 0; }

/* UTILIDADES */

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

.text-center { text-align: center; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-0  { margin-bottom: 0 !important; }

.estrellas { color: #f59e0b; font-size: 18px; }

.fotos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.fotos-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.fotos-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

/* MODAL */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.activo { display: flex; }

.modal-box {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.22s ease;
}

@keyframes slideUp {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin: 12px 12px 0 0;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  line-height: 1;
  flex-shrink: 0;
}

.modal-close:hover { background: #e2e8f0; }

.modal-content { padding: 22px; }

.modal-map { height: 230px; border-radius: 10px; margin-top: 14px; }

/* TAGS DE SERVICIOS EN MODAL */

.servicios-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.servicio-tag {
  background: #fff7ed;
  color: #c2410c;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* CHECKBOXES SERVICIOS EN PERFIL */

.checks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
  margin: 10px 0 6px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 14px;
  user-select: none;
}

.check-item:hover { border-color: #93c5fd; background: #f8fafc; }

.check-item input[type="checkbox"] {
  width: 16px; height: 16px;
  margin: 0; padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #f97316;
}

.check-item.marcado {
  border-color: #f97316;
  background: #fff7ed;
}

/* ESTRELLAS INTERACTIVAS */

/* ── REVIEWS ── */
.review-item {
  border-left: 3px solid #f59e0b;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #fffbeb;
  border-radius: 0 8px 8px 0;
}
.review-item .rev-stars { display:flex; gap:2px; margin-bottom:4px; }
.review-item .rev-stars i { font-size:12px; }
.review-item .rev-stars i.lit { color:#f59e0b; }
.review-item p { margin:0; font-size:13px; color:#475569; line-height:1.5; font-style:italic; }

.rating-avg-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fffbeb;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.rating-avg-box .avg-num { font-size:28px; font-weight:800; color:#92400e; line-height:1; }
.rating-avg-box .avg-stars { display:flex; gap:3px; }
.rating-avg-box .avg-stars i { font-size:16px; }
.rating-avg-box .avg-stars i.lit { color:#f59e0b; }
.rating-avg-box .avg-count { font-size:12px; color:#b45309; margin-top:2px; }

.form-review {
  background: #eff6ff;
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
}
.form-review h4 { margin:0 0 10px; font-size:14px; color:#1e40af; }

/* inline stars for cards */
.card-stars { display:flex; align-items:center; gap:3px; margin-top:4px; }
.card-stars i { font-size:12px; color:#d1d5db; }
.card-stars i.lit { color:#f59e0b; }
.card-stars span { font-size:11px; color:#64748b; margin-left:3px; }

.stars-input { display: flex; gap: 4px; margin: 10px 0 14px; }

.stars-input i {
  font-size: 36px;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.12s, transform 0.1s;
}

.stars-input i:hover { transform: scale(1.15); }
.stars-input i.lit   { color: #f59e0b; }

/* ESTRELLAS LECTURA */
.stars-show { color: #f59e0b; font-size: 16px; letter-spacing: 1px; }

/* TOGGLE DISPONIBLE */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
}

.toggle {
  position: relative;
  width: 50px; height: 26px;
  flex-shrink: 0;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 26px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  left: 3px; top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle input:checked + .toggle-slider { background: #16a34a; }
.toggle input:checked + .toggle-slider::before { transform: translateX(24px); }

/* COMPLETITUD DE PERFIL */
.progreso-barra {
  height: 8px;
  background: #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin: 6px 0 4px;
}

.progreso-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #16a34a);
  border-radius: 8px;
  transition: width 0.5s ease;
}

/* ── GRID 2 COLUMNAS (responsive) ── */

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── RESPONSIVE ── */

@media (max-width: 640px) {

  /* Header */
  .topbar { padding: 10px 14px; min-height: 54px; }
  .logo img { height: 36px; }
  .logo-nombre { font-size: 14px !important; }
  .logo-sub    { display: none !important; }
  nav a { padding: 8px 10px; }
  nav a span { display: none; }
  nav a i { font-size: 17px; }

  /* Hero */
  .hero { min-height: 46vh; padding: 30px 16px; }
  .hero p { font-size: 15px; }
  .buscadores-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: -32px; padding: 0 16px; }
  .buscador-card { padding: 20px 12px; }
  .buscador-card .bc-ico { font-size: 32px; margin-bottom: 8px; }
  .buscador-card h3 { font-size: 13px; }

  /* Search box hero: stack inputs vertically, full width */
  .search-box { flex-direction: column; align-items: stretch; width: 100%; max-width: 380px; margin: 0 auto; }
  .search-box input { width: 100%; }
  .search-box button { width: 100%; }

  /* Secciones */
  section { padding: 36px 16px; }
  section h2 { font-size: 22px; margin-bottom: 24px; }

  /* Grilla categorías: 3 columnas en mobile */
  .grid-cats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat-card { padding: 16px 8px; }
  .cat-card .ico { font-size: 26px; }
  .cat-card span { font-size: 11px; }

  /* Container formularios */
  .container {
    margin: 0;
    padding: 20px 16px;
    border-radius: 0;
    box-shadow: none;
    min-height: calc(100vh - 54px);
  }

  /* Grid 2 columnas → 1 columna en mobile */
  .grid-2col { grid-template-columns: 1fr; }
  .tipo-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tipo-card { padding: 16px 10px; }
  .tipo-card .tipo-ico { font-size: 26px; }

  /* Filtros buscador */
  .filtros { grid-template-columns: 1fr; }

  /* Dash header */
  .dash-header { flex-direction: column; align-items: center; text-align: center; }
  .dash-actions { gap: 8px; }

  /* Checks grid → 1 columna en pantallas chicas */
  .checks-grid { grid-template-columns: 1fr 1fr; }

  /* Estrellas más chicas */
  .stars-input i { font-size: 28px; }

  /* Modal full screen en mobile */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-box {
    border-radius: 20px 20px 0 0;
    max-height: 92dvh;
    width: 100%;
    animation: slideUpMobile 0.25s ease;
  }

  @keyframes slideUpMobile {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }

  /* CV sections */
  .cv-section { padding: 18px 14px; }

  /* Botones: mínimo 48px de alto para touch */
  .btn { min-height: 48px; display: flex; align-items: center; justify-content: center; }
  .btn-sm { min-height: 36px; }

  /* WhatsApp button */
  .btn-whatsapp { width: 100%; justify-content: center; }

  /* Fotos grid → 2 columnas */
  .fotos-grid { grid-template-columns: repeat(2, 1fr); }

  /* Mapa altura reducida */
  #mapa, #mapPerfil, #mapServicio, #mapaPub { height: 220px; }
}

/* ── Sistema de puntaje 1-10 ── */

.rating-10 {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.rating-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: white;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  font-family: inherit;
}

.rating-num:hover { transform: scale(1.15); }
.rating-num.r-bad   { color: #dc2626; border-color: #fca5a5; }
.rating-num.r-ok    { color: #d97706; border-color: #fcd34d; }
.rating-num.r-good  { color: #16a34a; border-color: #86efac; }
.rating-num.selected.r-bad  { background: #dc2626; color: white; border-color: #dc2626; }
.rating-num.selected.r-ok   { background: #d97706; color: white; border-color: #d97706; }
.rating-num.selected.r-good { background: #16a34a; color: white; border-color: #16a34a; }

.puntos-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
}

.puntos-total-box {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 2px solid #fde68a;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  margin-bottom: 14px;
}

.puntos-total-num {
  font-size: 42px;
  font-weight: 900;
  color: #92400e;
  line-height: 1;
}

.puntos-total-label {
  font-size: 13px;
  color: #b45309;
  margin-top: 2px;
}

.btn-calificar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
  margin-bottom: 10px;
}
.btn-calificar:hover { background: #1d4ed8; }

.guia-banner {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .2s;
}
.guia-banner:hover { background: #dbeafe; }

/* ── Ciudad select (dropdown cuando hay provincia elegida) ── */

.ciudad-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: white;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 17px;
  padding-right: 36px;
  cursor: pointer;
  margin-bottom: 0;
}

.ciudad-select:hover { border-color: #2563eb; }

/* ── Category select dropdown ── */

.cats-chips {
  display: flex;
}

.cat-select {
  width: 100%;
  max-width: 420px;
  padding: 11px 42px 11px 16px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  font-size: 14px;
  font-family: inherit;
  color: #334155;
  background-color: white;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  transition: border-color .18s, box-shadow .18s;
  font-weight: 500;
}

.cat-select:hover {
  border-color: #2563eb;
}

.cat-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* Dentro del panel de filtros, el select de categoría ocupa todo el ancho */
.filtros .cat-select {
  max-width: 100%;
}

/* ── Portfolio ── */

.foto-upload-box {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s, color .2s;
}
.foto-upload-box:hover { border-color: #2563eb; color: #2563eb; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.portfolio-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.portfolio-fotos {
  display: flex;
  gap: 2px;
  height: 130px;
  background: #f1f5f9;
}

.portfolio-fotos img {
  flex: 1;
  object-fit: cover;
  cursor: pointer;
  transition: opacity .2s;
}
.portfolio-fotos img:hover { opacity: .88; }

.portfolio-info {
  padding: 10px 12px;
}

.portfolio-info strong {
  font-size: 14px;
  display: block;
  margin-bottom: 3px;
}

.portfolio-info p {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.plan-card {
  border-radius: 14px;
  padding: 20px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
  color: white;
}

.plan-price {
  font-size: 26px;
  font-weight: 800;
  color: #1e293b;
  margin: 10px 0 2px;
}

.plan-period {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 14px;
}

.plan-features {
  font-size: 13px;
  color: #475569;
  padding-left: 18px;
  margin: 0 0 16px;
  flex: 1;
}

.plan-features li { margin-bottom: 4px; }

/* ── Safe area iOS (notch / home indicator) ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .topbar { padding-top: max(10px, env(safe-area-inset-top)); }
  .modal-box { padding-bottom: env(safe-area-inset-bottom); }
  footer { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
}
