/* ============================================================
   SolucionApp — Diseño ultra moderno
   Mobile-first · Glassmorphism · Modo oscuro automático
   ============================================================ */

:root {
  --brand-1: #0f766e;
  --brand-2: #0d9488;
  --brand-3: #06b6d4;
  --brand-grad: linear-gradient(135deg, #0f766e, #0d9488 45%, #06b6d4);
  --accent: #f59e0b;

  --bg: #f3f7f7;
  --surface: #ffffff;
  --surface-2: #eef4f4;
  --glass: rgba(255, 255, 255, 0.72);
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --line: #e2e8f0;
  --ok: #16a34a;
  --danger: #dc2626;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .05);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, .10);
  --shadow-brand: 0 8px 24px rgba(13, 148, 136, .35);
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --font-display: 'Sora', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #101a2c;
    --surface-2: #17233a;
    --glass: rgba(16, 26, 44, 0.75);
    --ink: #e2e8f0;
    --ink-2: #94a3b8;
    --ink-3: #64748b;
    --line: #1e293b;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .35);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 16px; }
[hidden] { display: none !important; }

/* ---------- Fondo decorativo ---------- */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 300px at 85% -5%, rgba(6, 182, 212, .16), transparent 60%),
    radial-gradient(500px 280px at -10% 20%, rgba(13, 148, 136, .14), transparent 60%);
  pointer-events: none;
}

/* ============================================================
   Cabecera
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top));
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--brand-grad); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  border-radius: 12px; box-shadow: var(--shadow-brand);
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.3px; }
.brand-name b { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  position: relative;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink-2); transition: .2s;
}
.icon-btn:hover { color: var(--brand-2); border-color: var(--brand-2); }
.icon-btn svg { width: 20px; height: 20px; }
.badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 999px;
}
.avatar-mini {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--brand-grad) center/cover; color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; overflow: hidden;
}
.avatar-mini img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Layout general
   ============================================================ */
.app {
  max-width: 720px; margin: 0 auto;
  padding: 20px 16px calc(96px + env(safe-area-inset-bottom));
  animation: fadeUp .35s ease both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.page-title { font-size: 24px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 4px; }
.page-sub { color: var(--ink-2); font-size: 14.5px; margin-bottom: 20px; }
.section-title { font-size: 17px; font-weight: 700; margin: 26px 0 12px; display: flex; align-items: center; justify-content: space-between; }
.section-title a { font-size: 13px; color: var(--brand-2); font-weight: 600; }

/* ============================================================
   Hero (inicio)
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--brand-grad);
  border-radius: 24px; padding: 28px 22px;
  color: #fff; box-shadow: var(--shadow-brand);
  margin-bottom: 20px;
}
.hero::after {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.hero::before {
  content: ''; position: absolute; right: 30px; bottom: -80px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.hero h1 { font-size: 25px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 8px; position: relative; z-index: 1; }
.hero p { opacity: .92; font-size: 14.5px; max-width: 42ch; position: relative; z-index: 1; }
.hero .hero-search {
  position: relative; z-index: 1; margin-top: 18px;
  display: flex; gap: 8px;
}
.hero-search input {
  flex: 1; border: 0; border-radius: 14px; padding: 13px 16px;
  background: rgba(255, 255, 255, .95); color: #0f172a; outline: none;
}
.hero-search button {
  border: 0; border-radius: 14px; padding: 0 18px;
  background: #0f172a; color: #fff; font-weight: 600;
}

/* ---------- Accesos principales ---------- */
.main-actions { display: grid; gap: 12px; }
.action-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s;
}
.action-card:active { transform: scale(.98); }
.action-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.action-ico {
  width: 54px; height: 54px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 16px; font-size: 26px;
}
.action-ico.teal { background: linear-gradient(135deg, #99f6e4, #5eead4); }
.action-ico.blue { background: linear-gradient(135deg, #bfdbfe, #93c5fd); }
.action-ico.amber { background: linear-gradient(135deg, #fde68a, #fcd34d); }
.action-card h3 { font-size: 16.5px; font-weight: 700; }
.action-card p { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.action-arrow { margin-left: auto; color: var(--ink-3); flex-shrink: 0; }

/* ---------- Grid de categorias ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cat-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 6px;
  transition: .18s; text-align: center;
}
.cat-item:hover { border-color: var(--brand-2); transform: translateY(-2px); }
.cat-item .cat-emoji { font-size: 26px; }
.cat-item span:last-child { font-size: 11.5px; font-weight: 600; color: var(--ink-2); line-height: 1.2; }

/* ============================================================
   Botones
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; font-weight: 700; font-size: 15px;
  padding: 13px 22px; transition: .18s; text-align: center;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--brand-2); border: 1.5px solid var(--brand-2); }
.btn-soft { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: #fee2e2; color: var(--danger); }
.btn-sm { padding: 9px 14px; font-size: 13.5px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ============================================================
   Formularios
   ============================================================ */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  outline: none; transition: border .18s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-2); }
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: var(--surface-2); padding: 5px; border-radius: var(--r-md);
  margin-bottom: 16px;
}
.seg button {
  border: 0; border-radius: 10px; padding: 11px;
  background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14px;
  transition: .18s;
}
.seg button.on { background: var(--surface); color: var(--brand-2); box-shadow: var(--shadow-sm); }

/* ---------- Card generica ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px;
  box-shadow: var(--shadow-sm); margin-bottom: 14px;
}
.card-title { font-weight: 700; font-size: 16px; margin-bottom: 12px; }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin-bottom: 10px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink-2); border-radius: 999px; padding: 8px 14px;
  font-size: 13px; font-weight: 600; white-space: nowrap; transition: .15s;
}
.chip.on { background: var(--brand-grad); color: #fff; border-color: transparent; }

/* ---------- Ubicacion ---------- */
.geo-box {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, rgba(13, 148, 136, .08), rgba(6, 182, 212, .08));
  border: 1.5px dashed var(--brand-2); border-radius: var(--r-md);
  padding: 14px; margin-bottom: 16px;
}
.geo-box .geo-ico { font-size: 22px; }
.geo-box .geo-info { flex: 1; }
.geo-box .geo-info strong { display: block; font-size: 14px; }
.geo-box .geo-info span { font-size: 12.5px; color: var(--ink-2); }
.geo-box.ok { border-style: solid; border-color: var(--ok); }

/* ============================================================
   Lista de profesionales / resultados
   ============================================================ */
.pro-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 16px;
  box-shadow: var(--shadow-sm); margin-bottom: 12px;
  transition: .18s;
}
.pro-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pro-avatar {
  width: 58px; height: 58px; flex-shrink: 0; border-radius: 16px;
  background: var(--brand-grad); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 21px;
  overflow: hidden;
}
.pro-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pro-info { flex: 1; min-width: 0; }
.pro-name { font-weight: 700; font-size: 15.5px; display: flex; align-items: center; gap: 6px; }
.check {
  width: 17px; height: 17px; border-radius: 50%; flex-shrink: 0;
  background: #3b82f6; color: #fff; display: inline-grid; place-items: center;
  font-size: 10px; font-weight: 800;
}
.pro-meta { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pro-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
.pro-desc { font-size: 13px; color: var(--ink-2); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pro-tags { font-size: 12px; color: var(--brand-2); font-weight: 600; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.rating { color: var(--accent); font-weight: 700; font-size: 13px; }
.dist-pill {
  background: var(--surface-2); border-radius: 999px; padding: 3px 10px;
  font-size: 11.5px; font-weight: 700; color: var(--brand-2); white-space: nowrap;
}

/* ---------- Perfil publico ---------- */
.profile-head { text-align: center; padding: 10px 0 6px; }
.profile-avatar {
  width: 110px; height: 110px; margin: 0 auto 14px; border-radius: 34px;
  background: var(--brand-grad); color: #fff;
  display: grid; place-items: center; font-size: 40px; font-weight: 800;
  overflow: hidden; box-shadow: var(--shadow-brand);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; }
.profile-sub { color: var(--ink-2); font-size: 14px; margin-top: 6px; max-width: 46ch; margin-inline: auto; }
.contact-row { display: flex; justify-content: center; gap: 14px; margin: 18px 0; }
.contact-btn {
  width: 58px; height: 58px; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-brand);
  transition: .18s; border: 0; font-size: 22px;
}
.contact-btn:hover { transform: translateY(-3px); }
.contact-btn svg { width: 24px; height: 24px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery-grid a, .gallery-grid .gal-item { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.gal-del {
  position: absolute; top: 6px; right: 6px;
  width: 26px; height: 26px; border-radius: 8px; border: 0;
  background: rgba(15, 23, 42, .7); color: #fff; font-size: 13px;
}

/* ---------- Reviews ---------- */
.review { border-top: 1px solid var(--line); padding: 12px 0; }
.review:first-child { border-top: 0; }
.review-head { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; }
.review p { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.stars-input { display: flex; gap: 6px; font-size: 30px; justify-content: center; margin: 10px 0; }
.stars-input button { background: none; border: 0; filter: grayscale(1); opacity: .45; transition: .15s; }
.stars-input button.on { filter: none; opacity: 1; transform: scale(1.1); }

/* ---------- Solicitudes / Ofertas ---------- */
.job-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 18px;
  box-shadow: var(--shadow-sm); margin-bottom: 12px;
}
.job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.job-title { font-weight: 700; font-size: 15.5px; }
.job-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tag {
  background: var(--surface-2); color: var(--ink-2);
  border-radius: 8px; padding: 4px 10px; font-size: 12px; font-weight: 600;
}
.tag.teal { background: rgba(13, 148, 136, .12); color: var(--brand-2); }
.job-desc { font-size: 13.5px; color: var(--ink-2); margin-top: 10px; }
.estado {
  border-radius: 999px; padding: 4px 12px; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px; white-space: nowrap;
}
.estado.abierta     { background: rgba(22, 163, 74, .13); color: var(--ok); }
.estado.en_proceso  { background: rgba(245, 158, 11, .15); color: #b45309; }
.estado.completada  { background: rgba(59, 130, 246, .13); color: #2563eb; }
.estado.cancelada   { background: rgba(220, 38, 38, .12); color: var(--danger); }

/* ============================================================
   Navegacion inferior
   ============================================================ */
.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-around; align-items: center;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--ink-3); font-size: 10.5px; font-weight: 600;
  padding: 4px 10px; border-radius: 12px; transition: .18s;
  min-width: 58px;
}
.bottomnav a svg { width: 22px; height: 22px; }
.bottomnav a.on { color: var(--brand-2); }
.nav-fab {
  margin-top: -30px;
  width: 58px; height: 58px; min-width: 58px !important; border-radius: 20px;
  background: var(--brand-grad); color: #fff !important;
  display: grid !important; place-items: center;
  box-shadow: var(--shadow-brand);
  border: 4px solid var(--bg);
}
.nav-fab svg { width: 26px; height: 26px; }

/* ============================================================
   Toasts, modal, banners
   ============================================================ */
.toasts {
  position: fixed; top: calc(70px + env(safe-area-inset-top)); left: 50%;
  transform: translateX(-50%); z-index: 200;
  display: flex; flex-direction: column; gap: 8px; width: min(92vw, 400px);
}
.toast {
  background: var(--ink); color: var(--bg);
  border-radius: 14px; padding: 13px 16px;
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-md);
  animation: fadeUp .25s ease both;
  display: flex; align-items: center; gap: 10px;
}
.toast.err { background: var(--danger); color: #fff; }
.toast.ok { background: var(--ok); color: #fff; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(2, 6, 23, .55);
  backdrop-filter: blur(4px);
  display: grid; place-items: end center;
  animation: fadeIn .2s ease both;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.modal {
  width: min(100vw, 720px);
  max-height: 88dvh; overflow-y: auto;
  background: var(--bg); border-radius: 24px 24px 0 0;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  animation: slideUp .28s cubic-bezier(.2, .9, .3, 1) both;
}
@keyframes slideUp { from { transform: translateY(60px); opacity: .5 } to { transform: none; opacity: 1 } }
.modal-grab { width: 44px; height: 5px; border-radius: 99px; background: var(--line); margin: 0 auto 18px; }

.install-banner {
  position: fixed; left: 12px; right: 12px;
  bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 100;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow-md);
  max-width: 500px; margin: 0 auto;
}
.install-banner img { border-radius: 12px; }
.install-text { flex: 1; display: flex; flex-direction: column; }
.install-text strong { font-size: 14px; }
.install-text span { font-size: 12px; color: var(--ink-2); }

/* ---------- Estado vacio / skeleton ---------- */
.empty {
  text-align: center; padding: 44px 20px; color: var(--ink-2);
}
.empty .empty-ico { font-size: 44px; margin-bottom: 12px; }
.empty h3 { font-size: 16px; margin-bottom: 6px; color: var(--ink); }
.empty p { font-size: 13.5px; }
.skeleton {
  border-radius: var(--r-lg); height: 92px; margin-bottom: 12px;
  background: linear-gradient(100deg, var(--surface) 40%, var(--surface-2) 50%, var(--surface) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { to { background-position: -200% 0 } }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 440px; margin: 0 auto; }
.auth-logo { text-align: center; margin: 18px 0 26px; }
.auth-logo .brand-mark { width: 64px; height: 64px; font-size: 32px; border-radius: 20px; margin: 0 auto 12px; }
.auth-alt { text-align: center; font-size: 14px; color: var(--ink-2); margin-top: 18px; }
.auth-alt a { color: var(--brand-2); font-weight: 700; }

/* ---------- Pasos del registro ---------- */
.steps { display: flex; gap: 6px; margin-bottom: 22px; }
.steps span { flex: 1; height: 5px; border-radius: 99px; background: var(--line); transition: .3s; }
.steps span.on { background: var(--brand-grad); }

/* ---------- Notificaciones ---------- */
.notif-item {
  display: flex; gap: 12px; padding: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); margin-bottom: 10px;
}
.notif-item.unread { border-left: 4px solid var(--brand-2); }
.notif-item .n-body { flex: 1; }
.notif-item strong { font-size: 14px; }
.notif-item p { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.notif-item time { font-size: 11.5px; color: var(--ink-3); }

/* ---------- Admin ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px; text-align: center;
}
.stat-card b { font-size: 22px; font-family: var(--font-display); display: block; }
.stat-card span { font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
.admin-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 8px;
  flex-wrap: wrap;
}
.admin-row .a-info { flex: 1; min-width: 160px; }
.admin-row .a-info strong { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.admin-row .a-info span { font-size: 12px; color: var(--ink-2); display: block; }
.admin-row .a-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-rol {
  font-size: 10.5px; font-weight: 800; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px; letter-spacing: .4px;
}
.pill-rol.admin { background: #ede9fe; color: #7c3aed; }
.pill-rol.profesional { background: rgba(13, 148, 136, .13); color: var(--brand-2); }
.pill-rol.cliente { background: var(--surface-2); color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
  .main-actions { grid-template-columns: repeat(3, 1fr); }
  .action-card { flex-direction: column; text-align: center; align-items: center; padding: 22px 16px; }
  .action-arrow { display: none; }
  .hero h1 { font-size: 30px; }
  .modal { border-radius: 24px; margin-bottom: 5dvh; }
  .modal-backdrop { place-items: center; }
}
