:root {
  --client-primary: #1a56db;
  --client-primary-2: #2563eb;
  --client-success: #059669;
  --client-danger: #dc2626;
  --client-warning: #f59e0b;
  --client-text: #0f172a;
  --client-muted: #64748b;
  --client-soft: #f8fafc;
  --client-page: #f1f5f9;
  --client-border: #e2e8f0;
  --client-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: #e5e7eb;
  color: var(--client-text);
  font-family: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.app-shell {
  width: min(100%, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  position: relative;
  background: var(--client-soft);
  color: var(--client-text);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.22);
}

.client-main {
  height: calc(100dvh - 64px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 20px 178px;
  scroll-behavior: smooth;
}

.client-main::-webkit-scrollbar,
.provider-carousel::-webkit-scrollbar,
.category-grid::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.client-header {
  min-height: 64px;
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #fff;
  background:
    radial-gradient(circle at 14% 0%, rgba(16, 185, 129, 0.28), transparent 34%),
    linear-gradient(135deg, #020617 0%, #0f172a 58%, #111827 100%);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 38px rgba(2, 6, 23, 0.2);
}

.hamburger-button,
.icon-pill,
.input-icon-button,
.icon-button {
  border: 0;
  background: transparent;
  color: var(--client-text);
}

.hub-back-link {
  min-width: 44px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.hamburger-button {
  width: 36px;
  height: 36px;
  padding: 7px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.hamburger-button span {
  height: 2px;
  border-radius: 2px;
  background: var(--client-text);
}

.hamburger-button span:last-child {
  width: 15px;
}

.brand-lockup {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, #10b981, #2563eb);
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.24);
}

.brand-lockup strong {
  color: #fff;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-lockup span {
  color: #86efac;
}

.header-actions,
.session-row,
.search-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-pill {
  width: 34px;
  height: 34px;
  display: none;
  place-items: center;
  position: relative;
  border-radius: 50%;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.1);
}

.icon-pill b {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--client-danger);
  color: #fff;
  font-size: 10px;
  line-height: 17px;
}

.profile-pill {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  background: linear-gradient(135deg, #db2777, #f472b6);
  box-shadow: 0 3px 10px rgba(219, 39, 119, 0.35);
}

.login-pill {
  min-width: 76px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, #10b981, #2563eb);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.24);
}

.user-session-card {
  min-width: 0;
  max-width: 184px;
  min-height: 42px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 4px 5px 4px 4px;
  border-radius: 999px;
  text-align: left;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.18);
}

.user-session-card img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.user-session-card:not(.has-avatar)::before {
  content: "M";
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, #10b981, #2563eb);
}

.user-session-card > div {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.user-session-card strong,
.user-session-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-session-card strong {
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.user-session-card span {
  color: #cbd5e1;
  font-size: 9px;
  font-weight: 700;
}

.session-menu-lines {
  width: 18px;
  display: grid;
  gap: 3px;
}

.session-menu-lines i {
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.session-row {
  display: none;
}

.session-chip,
.status-chip,
.inline-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 99px;
  color: var(--client-primary);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 11px;
  font-weight: 800;
}

.ghost-link {
  border: 0;
  background: transparent;
  color: var(--client-primary);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.hero-text-client {
  padding: 5px 0 0;
  display: grid;
  gap: 2px;
}

.hero-text-client p {
  margin: 0;
  color: var(--client-muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-text-client h1 {
  margin: 0;
  max-width: 300px;
  color: var(--client-text);
  font-size: 24px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
}

.status-banner {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.status-banner.is-error {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.status-banner.is-success {
  color: #166534;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.search-card,
.map-panel,
.activity-sheet,
.details-grid > article,
.flow-guide {
  margin-top: 16px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--client-shadow);
}

.search-card {
  padding: 15px;
}

.search-card-top {
  display: none;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.eyebrow,
.section-label {
  display: block;
  margin-bottom: 6px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.search-card h2,
.section-header h2,
.activity-sheet h2,
.details-grid h2 {
  margin: 0;
  color: var(--client-text);
  font-size: 15px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0;
}

.search-card p,
.section-header span {
  margin: 4px 0 0;
  color: var(--client-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.btn-primary,
.btn-secondary {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, var(--client-primary), #2563eb);
  box-shadow: 0 8px 24px rgba(26, 86, 219, 0.35);
}

.btn-secondary {
  min-height: 34px;
  padding: 0 10px;
  color: var(--client-primary);
  background: #eff6ff;
  border: 1px solid #dbeafe;
  box-shadow: none;
  font-size: 11px;
}

.btn-primary.is-loading,
.btn-secondary.is-loading {
  position: relative;
  opacity: 0.88;
  pointer-events: none;
}

.request-form {
  display: grid;
  gap: 10px;
}

.address-field {
  min-height: 54px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 16px;
  background: var(--client-soft);
  border: 1.5px solid var(--client-border);
}

.field-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--client-primary);
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.address-field input,
.compact-field input,
.compact-field select,
.chat-form input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--client-text);
  font-size: 13px;
  font-weight: 700;
}

.address-field input::placeholder,
.chat-form input::placeholder {
  color: #94a3b8;
}

.input-icon-button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #94a3b8;
  background: #fff;
}

.suggestions {
  display: grid;
  gap: 8px;
}

.suggestion-item {
  width: 100%;
  border: 1px solid var(--client-border);
  border-radius: 14px;
  padding: 11px 12px;
  text-align: left;
  color: var(--client-text);
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.suggestion-item strong,
.suggestion-item span {
  display: block;
}

.suggestion-item span,
.muted {
  color: var(--client-muted);
}

.category-section {
  min-width: 0;
}

.category-search-field {
  min-height: 56px;
  display: grid;
  gap: 4px;
  margin-bottom: 6px;
  padding: 9px 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--client-border);
}

.category-search-field:focus-within {
  border-color: var(--client-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.category-search-field span {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.category-search-field input {
  width: 100%;
  min-height: 30px;
  border: 0;
  outline: 0;
  color: var(--client-text);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.category-search-field input::placeholder {
  color: #94a3b8;
}

.intent-assist {
  min-height: 24px;
  margin: 0 0 9px;
  padding: 6px 9px;
  border-radius: 12px;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.category-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.category-guide-card {
  width: 220px;
  min-width: 220px;
  min-height: 82px;
  flex: 0 0 auto;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 12px;
  border: 2px solid rgba(5, 150, 105, 0.35);
  border-radius: 14px;
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
  color: #065f46;
  text-align: left;
}

.category-guide-card .guide-kicker,
.category-guide-card strong,
.category-guide-card small {
  display: block;
}

.category-guide-card .guide-kicker {
  color: #059669;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.category-guide-card strong {
  font-size: 13px;
  font-weight: 900;
}

.category-guide-card small {
  color: #047857;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.category-chip {
  width: 112px;
  min-width: 112px;
  min-height: 82px;
  flex: 0 0 auto;
  border: 2px solid var(--client-border);
  border-radius: 14px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: 8px 10px;
  color: var(--client-muted);
  background: #fff;
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.category-chip.is-popular {
  border-color: rgba(217, 119, 6, 0.28);
}

.category-popular-badge {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff7ed;
  color: #d97706;
  font-size: 11px;
  font-style: normal;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(217, 119, 6, 0.16);
}

.category-chip span {
  min-width: 30px;
  min-height: 24px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--client-primary);
  background: #eff6ff;
  font-size: 16px;
  font-weight: 900;
}

.category-chip strong {
  color: inherit;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
  text-align: center;
}

.category-chip small {
  width: 100%;
  display: -webkit-box;
  overflow: hidden;
  color: #94a3b8;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Estado seleccionado: muy visible: fondo lleno + borde grueso + badge */
.category-chip.is-selected {
  color: #fff;
  border-color: #10b981;
  background: linear-gradient(135deg, #059669, #16a34a);
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.28);
  transform: translateY(-2px);
  position: relative;
  z-index: 2;
}

.category-chip.is-selected::after {
  content: "Elegido";
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #065f46;
  background: #d1fae5;
  font-size: 8px;
  font-weight: 900;
}

.category-chip.is-selected span,
.category-chip.is-selected i,
.category-chip.is-selected small,
.category-chip.is-selected strong {
  color: #fff;
}

.category-chip.is-selected span[aria-hidden] {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

@keyframes address-required-flash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
  20%, 80% { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18); border-color: #ef4444; }
}
.address-required-flash,
.address-field:has(.address-required-flash) {
  animation: address-required-flash 0.45s ease-in-out 3;
  border-color: #ef4444 !important;
}
.category-chip:active,
.provider-card:active,
.provider-row:active,
.btn-primary:active {
  transform: scale(0.98);
}

.form-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.compact-field {
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  background: var(--client-soft);
  border: 1px solid var(--client-border);
}

.compact-field span {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.request-type-card {
  min-width: 0;
}

.request-type-toggle {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

.request-type-toggle button,
.duration-stepper button {
  border: 0;
  border-radius: 12px;
  color: var(--client-text);
  background: #fff;
  font-size: 11px;
  font-weight: 900;
}

.request-type-toggle button {
  min-height: 31px;
  padding: 0 8px;
}

.request-type-toggle button.is-active,
.request-type-toggle button[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(135deg, var(--client-success), #2563eb);
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.22);
}

.duration-stepper {
  min-height: 67px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 6px;
}

.duration-stepper button {
  width: 30px;
  height: 30px;
  color: var(--client-primary);
  background: #eff6ff;
  font-size: 17px;
  line-height: 1;
}

.duration-stepper strong {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  color: var(--client-text);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.search-button {
  width: 100%;
  min-height: 50px;
  font-size: 15px;
}

.search-button.is-loading::after {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.flow-guide {
  display: none !important;
}

.flow-guide article {
  padding: 11px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}

.flow-guide strong,
.flow-guide span {
  display: block;
}

.flow-guide strong {
  font-size: 12px;
}

.flow-guide span {
  color: var(--client-muted);
  font-size: 11px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.map-panel,
.activity-sheet,
.details-grid > article {
  padding: 14px;
}

.radar-map {
  height: 200px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: -200px;
  background: rgba(240, 244, 248, 0.34);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  z-index: 2;
}

.radar-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, #d1d9e6 1px, transparent 1px),
    linear-gradient(to bottom, #d1d9e6 1px, transparent 1px);
  background-size: 50px 35px;
  opacity: 0.36;
}

.radar-road {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 50%;
  height: 3px;
  background: rgba(100, 116, 139, 0.3);
}

.radar-road.is-cross {
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  right: auto;
}

.radar-park {
  position: absolute;
  border-radius: 7px;
  background: rgba(16, 185, 129, 0.18);
}

.radar-park.is-one {
  right: 8%;
  bottom: 20%;
  width: 60px;
  height: 50px;
}

.radar-park.is-two {
  left: 5%;
  bottom: 10%;
  width: 50px;
  height: 40px;
}

.radar-radius,
.radar-user {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.radar-radius {
  width: 160px;
  height: 160px;
  border: 1.5px dashed var(--client-primary);
  border-radius: 50%;
  background: rgba(26, 86, 219, 0.05);
}

.radar-user {
  width: 22px;
  height: 22px;
  z-index: 2;
  border-radius: 50%;
  background: var(--client-primary);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 20px rgba(26, 86, 219, 0.12);
}

.radar-user span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.radar-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 25px;
  height: 25px;
  z-index: 3;
  border: 2px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--pin);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
  pointer-events: auto;
}

.radar-pin.is-selected {
  width: 31px;
  height: 31px;
  box-shadow: 0 0 0 5px rgba(26, 86, 219, 0.16), 0 12px 26px rgba(15, 23, 42, 0.2);
}

.radar-pin span {
  font-size: 7px;
  font-weight: 900;
}

.radar-pin b {
  position: absolute;
  left: 18px;
  top: -15px;
  min-width: 24px;
  padding: 2px 5px;
  border-radius: 7px;
  color: #fff;
  background: var(--client-success);
  font-size: 6px;
  font-weight: 900;
}

.radar-pill {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-radius: 99px;
  color: #fff;
  background: rgba(15, 23, 42, 0.86);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.radar-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
}

.map-surface {
  width: 100%;
  height: 200px;
  min-height: 200px;
  border-radius: 20px;
  overflow: hidden;
  opacity: 1;
  pointer-events: auto;
}

.provider-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 8px;
}

.provider-card {
  flex: 0 0 162px;
  display: grid;
  gap: 7px;
  padding: 13px 12px;
  border: 2px solid transparent;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.provider-card.is-selected {
  transform: translateY(-4px);
  border-color: var(--client-primary);
  box-shadow: 0 8px 32px rgba(26, 86, 219, 0.2);
}

.provider-card header,
.provider-row-title,
.provider-card-meta,
.provider-row-rating {
  display: flex;
  align-items: center;
}

.provider-card header,
.provider-card-meta,
.provider-row-title {
  justify-content: space-between;
  gap: 8px;
}

.provider-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  background: linear-gradient(135deg, color-mix(in srgb, var(--avatar), white 12%), var(--avatar));
  border: 2px solid #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--avatar), transparent 65%);
  overflow: hidden;
}

.provider-avatar.has-photo {
  background: #e5e7eb;
}

.provider-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.provider-avatar.is-row {
  width: 48px;
  height: 48px;
}

.score-badge {
  padding: 4px 8px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--client-primary), #3b82f6);
  font-size: 10px;
  font-weight: 900;
}

.provider-card > strong,
.provider-row-main strong {
  color: var(--client-text);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
}

.provider-card > small,
.provider-row-main > span {
  color: var(--client-muted);
  font-size: 11px;
  font-weight: 700;
}

.stars {
  color: var(--client-warning);
  font-size: 11px;
  font-weight: 800;
}

.stars span {
  margin-left: 3px;
  color: #94a3b8;
  font-size: 10px;
}

.provider-card-meta span {
  display: grid;
  gap: 1px;
  color: #94a3b8;
  font-size: 9px;
  min-width: 0;
}

.provider-card-meta b,
.provider-row-end strong {
  color: var(--client-success);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
}

.provider-card-meta span:first-child b {
  color: var(--client-text);
}

.availability-badge {
  width: fit-content;
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.availability-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.availability-badge.is-online {
  color: var(--client-success);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.availability-badge.is-online i {
  background: var(--client-success);
}

.availability-badge.is-busy {
  color: var(--client-danger);
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.availability-badge.is-busy i {
  background: var(--client-danger);
}

.provider-card-action {
  min-height: 32px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--client-primary);
  font-size: 11px;
  font-weight: 900;
}

.providers-section {
  margin-top: 14px;
}

.sort-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1.5px solid var(--client-border);
  color: var(--client-muted);
  background: #fff;
  font-size: 11px;
  font-weight: 900;
}

.provider-list {
  display: grid;
  gap: 8px;
}

.provider-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.provider-row.is-selected {
  border-color: var(--client-primary);
  box-shadow: 0 4px 20px rgba(26, 86, 219, 0.15);
}

.provider-row-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.provider-row-title .availability-badge {
  display: inline-flex;
}

.provider-row-rating {
  gap: 8px;
  flex-wrap: wrap;
}

.provider-row-rating i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #cbd5e1;
}

.provider-row-rating small,
.provider-row-end span,
.provider-row-end small {
  color: var(--client-muted);
  font-size: 10px;
  font-weight: 700;
}

.provider-row-end {
  text-align: right;
  display: grid;
  gap: 2px;
}

.row-chevron {
  width: 20px;
  border: 0;
  color: #cbd5e1;
  background: transparent;
  font-size: 24px;
  line-height: 1;
}

.activity-sheet {
  display: grid;
  gap: 12px;
}

.summary-card,
.notification-card,
.client-empty-state {
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--client-border);
  display: grid;
  gap: 8px;
}

.summary-card strong,
.notification-card strong,
.client-empty-state strong {
  color: var(--client-text);
  font-size: 13px;
  font-weight: 900;
}

.summary-card p,
.notification-card p,
.client-empty-state span {
  margin: 0;
  color: var(--client-muted);
  font-size: 12px;
}

.sort-chip strong {
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
}

.provider-sort-sheet {
  gap: 14px;
}

.provider-sort-options {
  display: grid;
  gap: 10px;
}

.provider-sort-options button {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  border-radius: 8px;
  padding: 14px 16px;
  min-height: 52px;
  font-weight: 800;
  color: #111827;
  text-align: left;
}

.provider-sort-options button.is-selected {
  border-color: rgba(34, 197, 94, 0.65);
  background: rgba(34, 197, 94, 0.1);
  color: #14532d;
}

.service-pin-card {
  align-items: center;
  text-align: center;
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.service-pin-code {
  display: block;
  margin: 4px 0 6px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 6px;
  color: #111827;
}

.request-flow-card {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ecfdf5, #f8fafc 70%);
  border: 1px solid rgba(16, 185, 129, 0.24);
  display: grid;
  gap: 12px;
}

.request-flow-head {
  display: grid;
  gap: 4px;
}

.request-flow-head strong {
  color: var(--client-text);
  font-size: 14px;
  font-weight: 950;
}

.request-flow-head span {
  color: #475569;
  font-size: 12px;
  line-height: 1.4;
}

.request-flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.request-flow-step {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
}

.request-flow-step i {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: #dbe4ee;
}

.request-flow-step.is-done {
  color: #047857;
}

.request-flow-step.is-done i {
  background: #10b981;
}

.request-flow-step.is-active {
  color: #0f172a;
}

.request-flow-step.is-active i {
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.summary-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.metric {
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}

.metric span,
.metric strong {
  display: block;
}

.metric span {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
}

.metric strong {
  overflow-wrap: anywhere;
  color: var(--client-text);
  font-size: 12px;
  font-weight: 900;
}

.payment-details-card {
  padding: 0;
  overflow: hidden;
}

.payment-details-card summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.payment-details-card summary::-webkit-details-marker {
  display: none;
}

.payment-details-card summary span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.payment-details-card summary small {
  color: var(--client-muted);
  font-size: 10px;
  font-weight: 800;
}

.payment-details-card summary b {
  color: #047857;
  font-size: 15px;
  font-weight: 950;
  white-space: nowrap;
}

.payment-details-card .payment-metrics,
.payment-details-card .payment-note,
.payment-details-card .chip-row {
  margin: 0 12px 12px;
}

.payment-details-card .payment-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-details-card .payment-note {
  color: #64748b;
  font-size: 11px;
  line-height: 1.4;
}

.search-progress-card {
  background: linear-gradient(135deg, #eff6ff, #fff);
}

.provider-spotlight-card {
  background: linear-gradient(135deg, #f8fafc, #fff);
}

.timeline {
  display: grid;
  gap: 8px;
}

.timeline-step {
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--client-border);
}

.timeline-step strong,
.timeline-step span {
  display: block;
}

.timeline-step strong {
  color: var(--client-text);
  font-size: 12px;
}

.timeline-step span {
  color: var(--client-muted);
  font-size: 10px;
}

.timeline-step.is-active {
  background: #eff6ff;
  border-color: #93c5fd;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-row button {
  flex: 1 1 130px;
}

.history-service-card {
  padding: 13px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--client-border);
  display: grid;
  gap: 10px;
}

.history-service-card > div:first-child {
  display: grid;
  gap: 3px;
}

.history-service-card strong {
  color: var(--client-text);
  font-size: 13px;
  font-weight: 950;
}

.history-service-card span,
.history-service-card small {
  color: var(--client-muted);
  font-size: 11px;
}

.history-service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.history-service-meta span,
.history-review-pill {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 900;
}

.history-service-meta b {
  color: #059669;
  font-size: 12px;
  font-weight: 950;
}

.review-sheet {
  gap: 14px;
}

.review-form {
  display: grid;
  gap: 14px;
}

.review-stars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.review-stars button {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid #dbe4ee;
  background: #fff;
  color: #cbd5e1;
  font-size: 24px;
  font-weight: 950;
}

.review-stars button.is-selected {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.35);
  background: #fffbeb;
}

.review-comment-field {
  display: grid;
  gap: 7px;
}

.review-comment-field span,
#reviewStatusText {
  color: var(--client-muted);
  font-size: 12px;
  font-weight: 800;
}

.review-comment-field textarea {
  resize: vertical;
  min-height: 96px;
  border-radius: 16px;
  border: 1px solid var(--client-border);
  padding: 12px;
  font: inherit;
  color: var(--client-text);
  background: #fff;
}

.details-grid {
  display: grid;
  gap: 10px;
}

.details-grid > article {
  display: grid;
  gap: 8px;
}

.current-service-updates {
  order: 1;
}

.current-provider-detail {
  order: 2;
}

.current-payment-detail {
  order: 3;
}

.current-search-detail {
  order: 4;
}

.service-history-detail {
  order: 5;
  margin-top: 4px;
}

.service-history-detail h2 {
  color: #475569;
}

.current-payment-detail,
.current-search-detail,
.service-history-detail {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.card-list {
  display: grid;
  gap: 8px;
}

.drawer {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 150;
  width: min(100%, 430px);
  max-height: 78dvh;
  border-radius: 28px 28px 0 0;
  transform: translate(-50%, 105%);
  background: #fff;
  box-shadow: 0 -24px 70px rgba(15, 23, 42, 0.24);
  transition: transform 0.24s ease;
  overflow: hidden;
}

.drawer.is-open {
  transform: translate(-50%, 0);
}

.drawer-header {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--client-border);
}

.drawer-header h3 {
  margin: 0;
  color: var(--client-text);
  font-size: 17px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #f8fafc;
  font-size: 22px;
}

.drawer-body {
  max-height: calc(78dvh - 74px);
  padding: 16px;
  overflow: auto;
}

.account-drawer-body {
  display: grid;
  gap: 12px;
}

.account-profile-card,
.account-menu-card {
  border-radius: 22px;
  border: 1px solid var(--client-border);
  background: #f8fafc;
}

.account-profile-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.account-profile-card img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #dcfce7, #bfdbfe);
}

.account-profile-card div,
.account-menu-card {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.account-profile-card strong,
.account-profile-card span,
.account-menu-card strong,
.account-menu-card small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-profile-card strong {
  color: var(--client-text);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.account-profile-card span,
.account-menu-card small {
  color: var(--client-muted);
  font-size: 12px;
  font-weight: 700;
}

.account-menu-card {
  padding: 14px;
}

.account-menu-card strong {
  color: var(--client-text);
  font-size: 14px;
  font-weight: 900;
}

.account-menu-card small {
  line-height: 1.35;
}

.account-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.account-actions-grid button {
  min-height: 44px;
  border: 0;
  border-radius: 16px;
  padding: 0 12px;
  color: var(--client-primary);
  background: #eff6ff;
  font-size: 12px;
  font-weight: 900;
}

.account-actions-grid .danger-action {
  color: #b91c1c;
  background: #fef2f2;
}

.chat-body,
.chat-list {
  display: grid;
  gap: 10px;
}

.message-bubble {
  padding: 12px 14px;
  border-radius: 18px;
  background: #f1f5f9;
  display: grid;
  gap: 4px;
}

.message-bubble p {
  margin: 0;
}

.message-bubble.is-own {
  color: #fff;
  background: linear-gradient(135deg, var(--client-primary), #2563eb);
}

.message-bubble.is-own .muted {
  color: rgba(255, 255, 255, 0.78);
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.chat-form input {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--client-border);
  border-radius: 14px;
  background: #f8fafc;
}

.client-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(10px + var(--safe-bottom));
  z-index: 90;
  width: min(calc(100% - 24px), 406px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 7px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.client-bottom-nav button {
  min-height: 42px;
  border: 0;
  border-radius: 15px;
  color: var(--client-primary);
  background: #f1f5f9;
  font-size: 11px;
  font-weight: 900;
}

.client-bottom-nav button.is-active,
.client-bottom-nav button[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, var(--client-primary), #2563eb);
  box-shadow: 0 10px 24px rgba(26, 86, 219, 0.22);
}

.sticky-request-bar {
  position: fixed;
  left: 50%;
  bottom: calc(70px + var(--safe-bottom));
  z-index: 95;
  width: min(100%, 430px);
  padding: 8px 20px;
  background: transparent;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.sticky-request-bar.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.request-nearest {
  width: 100%;
  min-height: 48px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.3);
  font-size: 15px;
}

.request-nearest.has-provider {
  background: linear-gradient(135deg, var(--client-success), #10b981);
  box-shadow: 0 12px 32px rgba(5, 150, 105, 0.4);
}

.request-nearest:disabled {
  opacity: 1;
}

body[data-client-view="services"] #clientHero,
body[data-client-view="providers"] #clientHero,
body[data-client-view="activity"] #clientHero {
  display: none;
}

body[data-client-view="home"] .nearby-section,
body[data-client-view="home"] .providers-section,
body[data-client-view="home"] .activity-sheet,
body[data-client-view="home"] .details-grid {
  display: none;
}

body[data-client-view="services"] #clientHero,
body[data-client-view="services"] .search-card,
body[data-client-view="services"] .map-panel,
body[data-client-view="services"] .nearby-section,
body[data-client-view="services"] .providers-section {
  display: none;
}

body[data-client-view="providers"] #clientHero,
body[data-client-view="providers"] .search-card,
body[data-client-view="providers"] .activity-sheet,
body[data-client-view="providers"] .details-grid {
  display: none;
}

body[data-client-view="support"] .nearby-section,
body[data-client-view="support"] .providers-section,
body[data-client-view="support"] .activity-sheet,
body[data-client-view="support"] .details-grid {
  display: none;
}

.support-panel,
.support-form,
.support-thread {
  display: grid;
  gap: 10px;
}

.support-form textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid var(--client-border);
  border-radius: 16px;
  padding: 12px;
  color: var(--client-text);
  background: #f8fafc;
  outline: 0;
}

.support-form textarea:focus {
  border-color: rgba(26, 86, 219, 0.4);
  box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.1);
  background: #fff;
}

.support-message {
  padding: 12px;
  border-radius: 16px;
  background: #f1f5f9;
  display: grid;
  gap: 4px;
}

.support-message p {
  margin: 0;
  color: var(--client-text);
  font-size: 12px;
}

.support-message span {
  color: var(--client-muted);
  font-size: 10px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .app-shell {
    margin-block: 20px;
    border-radius: 48px;
    min-height: 844px;
    max-height: 844px;
  }

  .client-main {
    height: calc(844px - 64px);
  }
}

@media (max-width: 390px) {
  .client-main {
    padding-inline: 14px;
  }

  .hero-text-client h1 {
    font-size: 22px;
  }

  .search-card {
    padding: 15px;
  }

  .provider-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .row-chevron {
    display: none;
  }

  .summary-metrics {
    grid-template-columns: 1fr;
  }
}



/* === MIMI Servicios cliente - ajuste mobile/header + UX 2026 === */
.client-header {
  overflow: hidden;
}

.brand-lockup strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  min-width: 0;
  justify-content: flex-end;
}

.user-session-card {
  cursor: pointer;
  color: #fff;
}

.user-session-card[hidden] {
  display: none !important;
}

#btnUseCurrentServiceLocation {
  width: 36px;
  height: 36px;
  color: #1d4ed8;
  background: #ffffff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.section-label-strong {
  color: #0f766e;
  font-size: 12px;
  font-weight: 1000;
}

.category-search-field span {
  color: #64748b;
  letter-spacing: 0.2px;
}

.category-search-field input::placeholder {
  color: #64748b;
  opacity: 1;
}

.drawer:not(.is-open) {
  pointer-events: none;
}

.drawer.is-open {
  pointer-events: auto;
}

[data-close-drawer] {
  cursor: pointer;
  color: #0f172a;
}

@media (max-width: 480px) {
  .client-header {
    grid-template-columns: 52px minmax(0, 1fr) minmax(132px, auto);
    gap: 6px;
    padding: 9px 8px;
  }

  .brand-lockup {
    gap: 5px;
    overflow: hidden;
  }

  .brand-mark {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    flex: 0 0 auto;
  }

  .brand-lockup strong {
    max-width: 112px;
    font-size: 12px;
  }

  .user-session-card {
    max-width: 154px;
    min-height: 40px;
    grid-template-columns: 32px minmax(0, 1fr) 16px;
    gap: 6px;
  }

  .user-session-card img,
  .user-session-card:not(.has-avatar)::before {
    width: 32px;
    height: 32px;
  }

  .user-session-card strong {
    font-size: 10px;
  }

  .user-session-card span {
    font-size: 8px;
  }

  .session-menu-lines {
    width: 16px;
  }

  .hub-back-link {
    min-width: 46px;
    padding-inline: 10px;
  }
}

@media (max-width: 360px) {
  .client-header {
    grid-template-columns: 48px minmax(0, 88px) minmax(124px, auto);
  }

  .brand-lockup strong {
    max-width: 82px;
    font-size: 11px;
  }

  .user-session-card {
    max-width: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* Final client service intent and variable pricing polish */
.ai-intent-card {
  width: min(100%, 320px);
  min-width: 260px;
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 10%, rgba(34, 197, 94, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(3, 105, 161, 0.12), rgba(240, 253, 244, 0.96));
  color: #052e2b;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 7px;
  padding: 14px;
  text-align: left;
}

.ai-intent-card strong { font-size: 16px; line-height: 1.1; }
.ai-intent-card small { color: #0f766e; font-size: 11px; line-height: 1.35; }
.ai-intent-kicker {
  width: max-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(34, 197, 94, 0.18);
  color: #047857;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
}
.ai-intent-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ai-intent-meta b,
.ai-intent-meta i,
.category-chip i {
  width: max-content;
  border-radius: 999px;
  padding: 4px 7px;
  background: rgba(15, 23, 42, 0.07);
  color: #0f766e;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}
.duration-stepper-card[hidden] { display: none !important; }
.category-chip,
.category-guide-card,
.ai-intent-card,
.category-more-chip {
  cursor: pointer;
  touch-action: manipulation;
}

/* Final MIMIGo service picker polish */
.category-grid.is-expanded {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: visible;
  gap: 10px;
}

.category-grid.is-expanded .category-chip,
.category-grid.is-expanded .category-guide-card,
.category-grid.is-expanded .ai-intent-card {
  width: 100%;
  min-width: 0;
}

.category-chip,
.category-guide-card,
.ai-intent-card {
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.category-chip:focus-visible,
.category-guide-card:focus-visible,
.ai-intent-card:focus-visible,
.category-more-chip:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

#categoryIntentAssist {
  display: grid;
  gap: 8px;
}

.intent-assist-head {
  display: grid;
  gap: 3px;
}

#categoryIntentAssist strong,
.intent-assist-head strong {
  color: #0f766e;
  font-size: 13px;
  line-height: 1.2;
}

#categoryIntentAssist span,
#categoryIntentAssist p {
  color: #0f766e;
  font-size: 12px;
  line-height: 1.25;
}

#categoryIntentAssist p {
  margin: 0;
}

.intent-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.intent-steps span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: #0f766e;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.intent-steps span.is-done {
  background: #dcfce7;
  color: #166534;
}

.intent-steps span.is-active {
  background: #dbeafe;
  color: #1d4ed8;
}

.ai-intent-card {
  position: relative;
  grid-column: 1 / -1;
}

.ai-intent-action {
  width: max-content;
  border-radius: 999px;
  padding: 6px 9px;
  color: #fff;
  background: linear-gradient(135deg, #059669, #2563eb);
  font-size: 11px;
  font-weight: 900;
}

.provider-match-reason {
  margin: 0;
  color: #475569;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
}

.request-confirm-overlay {
  position: fixed;
  inset: 0;
  /* z-index alto: debe estar por encima del bottom-nav (90) y sticky-request-bar (95) */
  z-index: 200;
  display: grid;
  align-items: end;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  background: rgba(15, 23, 42, 0.42);
}

.request-confirm-overlay[hidden],
.request-progress-overlay[hidden] {
  display: none !important;
}

.request-confirm-sheet {
  width: min(100%, 520px);
  margin: 0 auto;
  display: grid;
  gap: 8px;
  max-height: calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border-radius: 22px 22px 16px 16px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.request-confirm-head {
  display: grid;
  gap: 3px;
}

.request-confirm-head .eyebrow {
  margin-bottom: 0;
  line-height: 1.2;
}

.request-confirm-sheet h2 {
  margin: 0;
  color: var(--client-text);
  font-size: 16px;
  line-height: 1.12;
  font-weight: 900;
}

.request-confirm-sheet p {
  margin: 0;
  color: var(--client-muted);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
}

.confirm-priority {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.confirm-priority div {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 15px;
  background: #f8fafc;
  border: 1px solid var(--client-border);
}

.confirm-priority div:last-child {
  min-width: 132px;
  color: #047857;
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border-color: #bbf7d0;
}

.confirm-priority span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.confirm-priority strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--client-text);
  font-size: 14px;
  line-height: 1.15;
  font-weight: 950;
}

.confirm-priority div:last-child strong {
  color: #047857;
  font-size: 16px;
  text-align: right;
}

.confirm-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.confirm-quantity-field {
  display: grid;
  gap: 6px;
  margin: 2px 0 4px;
  padding: 10px;
  border-radius: 15px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
}

.confirm-quantity-field > span {
  color: var(--client-text);
  font-size: 13px;
  font-weight: 900;
}

.confirm-quantity-field div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.confirm-quantity-field input {
  min-height: 40px;
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
  font-weight: 900;
  color: var(--client-text);
  background: #fff;
}

.confirm-quantity-field b {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 12px;
  color: #047857;
  background: #d1fae5;
  font-size: 12px;
  font-weight: 900;
}

.confirm-quantity-field small {
  color: #047857;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 750;
}

.confirm-summary div {
  display: grid;
  gap: 3px;
  padding: 7px 9px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--client-border);
}

.confirm-summary div:last-child {
  grid-column: 1 / -1;
  background: #fff;
}

.confirm-summary dt,
.confirm-summary dd {
  margin: 0;
}

.confirm-summary dt {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.confirm-summary dd {
  color: var(--client-text);
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 900;
}

.confirm-actions {
  position: sticky;
  bottom: -12px;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  margin: 0 -2px -4px;
  padding: 8px 2px max(2px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), #fff 46%);
}

.confirm-actions .btn-primary,
.confirm-actions .btn-secondary {
  min-height: 44px;
}

.request-progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: end center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.48);
}

.request-progress-sheet {
  width: min(100%, 440px);
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 24px 24px 18px 18px;
  color: var(--client-text);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.32);
}

.request-progress-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid #dbeafe;
  border-top-color: var(--client-primary);
  animation: request-progress-spin 0.85s linear infinite;
}

.request-progress-sheet h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: 0;
}

.request-progress-sheet p {
  margin: 0;
  color: var(--client-muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 750;
}

.request-progress-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.request-progress-steps span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #64748b;
  background: #f1f5f9;
  font-size: 11px;
  font-weight: 900;
}

.request-progress-steps span.is-active {
  color: #1d4ed8;
  background: #dbeafe;
}

.request-progress-steps span.is-done {
  color: #047857;
  background: #d1fae5;
}

@keyframes request-progress-spin {
  to { transform: rotate(360deg); }
}

.duration-stepper-card[aria-hidden="true"] {
  display: none !important;
}

@media (max-width: 430px) {
  .request-confirm-overlay,
  .request-progress-overlay {
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  }

  .request-confirm-sheet {
    gap: 8px;
    max-height: calc(100dvh - 22px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 11px;
    border-radius: 20px 20px 14px 14px;
  }

  .confirm-priority {
    grid-template-columns: 1fr;
  }

  .confirm-priority div:last-child {
    min-width: 0;
  }

  .confirm-priority div:last-child strong {
    text-align: left;
  }

  .confirm-summary {
    grid-template-columns: 1fr;
  }

  .confirm-summary dd {
    font-size: 11px;
  }

  .confirm-actions {
    grid-template-columns: 0.82fr 1.18fr;
  }

  .payment-details-card .payment-metrics {
    grid-template-columns: 1fr;
  }

  .request-progress-sheet {
    padding: 16px;
  }

  .category-grid.is-expanded {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 310px;
    overflow-y: auto;
    padding-right: 2px;
  }

  .category-grid.is-expanded .category-chip {
    min-height: 96px;
  }
}
.category-popular-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  border-radius: 999px;
  padding: 3px 6px;
  background: rgba(217, 119, 6, 0.13);
  color: #b45309;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

/* ============================================================
   CLIENTE — Bloque de dirección con "Usar mi ubicación" prominente
   ============================================================ */
.address-block {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.address-block-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  padding-left: 4px;
}

.address-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 12px 14px 40px;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid var(--client-border);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.address-field:focus-within {
  border-color: var(--client-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}
.address-field .field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--client-primary);
  pointer-events: none;
}
.address-field input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--client-text);
  min-width: 0;
}
.address-field input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}
.address-field .input-icon-button {
  width: 28px;
  height: 28px;
  border: 0;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  flex-shrink: 0;
}
.address-field .input-icon-button:hover { background: rgba(15, 23, 42, 0.12); }

/* Fix padding del input: removido el ícono izquierdo, ahora el placeholder
   no se encima con nada. El padding-right deja espacio para el pin de la derecha. */
.address-field {
  padding: 14px 50px 14px 16px !important;
}
.address-field input {
  padding: 0 !important;
}

/* Pin pequeño estilo WhatsApp — verde, redondito, a la derecha del input */
.address-locate-pin {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #10b981;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.12s, background 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}
.address-locate-pin:hover {
  background: #059669;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.5);
}
.address-locate-pin:active {
  transform: translateY(-50%) scale(0.92);
}
.address-locate-pin svg {
  color: #fff;
}
.address-locate-pin.is-loading {
  opacity: 0.7;
  pointer-events: none;
}
.address-locate-pin.is-loading svg {
  animation: locate-pulse 1.2s ease-in-out infinite;
}
@keyframes locate-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Si hay un botón clear (×) DENTRO del input, ubicarlo a la izquierda del pin */
.address-field .input-icon-button {
  position: absolute;
  right: 52px;
  top: 50%;
  transform: translateY(-50%);
}

/* ============================================================
   CLIENTE — Input IA estilo Rork / Base44 (presencia + brillo)
   ============================================================ */
.ai-prompt-card {
  position: relative;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
    radial-gradient(120% 100% at 100% 100%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
    #fafaff;
  border: 1.5px solid rgba(124, 58, 237, 0.18);
  border-radius: 18px;
  margin-top: 8px;
  margin-bottom: 4px;
  padding: 6px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.18s;
  overflow: hidden;
}
.ai-prompt-card::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 18px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.5) 0%, rgba(124, 58, 237, 0.5) 50%, rgba(236, 72, 153, 0.4) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ai-prompt-card:focus-within {
  border-color: transparent;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.16), 0 4px 12px rgba(124, 58, 237, 0.12);
}
.ai-prompt-card:focus-within::before { opacity: 1; }

.ai-prompt-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 14px;
  backdrop-filter: blur(6px);
}

/* Ícono con brillo pulsante sutil — señal de "es la IA, escribí acá" */
.ai-prompt-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #db2777 100%);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
  animation: ai-icon-pulse 2.8s ease-in-out infinite;
}
.ai-prompt-icon::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  background: inherit;
  opacity: 0.4;
  filter: blur(8px);
  z-index: -1;
  animation: ai-icon-glow 2.8s ease-in-out infinite;
}
@keyframes ai-icon-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes ai-icon-glow {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.6; }
}

.ai-prompt-input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--client-text);
  min-width: 0;
  padding: 6px 0;
  min-height: 28px;
  -webkit-appearance: none;
  letter-spacing: -0.005em;
}
.ai-prompt-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}
.ai-prompt-input::-webkit-search-cancel-button { -webkit-appearance: none; }

.ai-prompt-clear {
  width: 26px;
  height: 26px;
  border: 0;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.ai-prompt-clear:hover { background: rgba(15, 23, 42, 0.16); }

/* Hint debajo de la card: sutil, sin caja, no compite */
.category-section > .intent-assist {
  margin: 8px 6px 12px;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
  font-weight: 500;
}

/* ============================================================
   MODAL Teléfono — pedido al primer login del cliente
   ============================================================ */
.phone-collect-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  align-items: end;
  padding: 16px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  animation: phone-collect-fade 0.2s ease;
}
.phone-collect-overlay[hidden] { display: none !important; }

@keyframes phone-collect-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.phone-collect-sheet {
  width: min(100%, 460px);
  margin: 0 auto;
  display: grid;
  gap: 12px;
  padding: 22px 20px 20px;
  border-radius: 22px 22px 16px 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
  animation: phone-collect-slide 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes phone-collect-slide {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.phone-collect-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}
.phone-collect-sheet h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--client-text);
  letter-spacing: -0.01em;
}
.phone-collect-sheet > p {
  margin: 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

.phone-collect-field {
  display: grid;
  gap: 4px;
}
.phone-collect-field > span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}
.phone-collect-field input {
  padding: 14px 14px;
  border: 1.5px solid var(--client-border);
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  color: var(--client-text);
  transition: border-color 0.18s, box-shadow 0.18s;
  -webkit-appearance: none;
}
.phone-collect-field input:focus {
  outline: none;
  border-color: var(--client-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}
.phone-collect-field input.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}
.phone-collect-field small {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
  margin-top: 2px;
}

.phone-collect-status {
  min-height: 16px;
  font-size: 12px;
  color: #ef4444;
  font-weight: 600;
}
.phone-collect-status.is-success {
  color: #059669;
}

.phone-collect-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}
.phone-collect-actions .btn-link {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 12px;
}
.phone-collect-actions .btn-link:hover { color: var(--client-text); }
.phone-collect-actions .btn-primary {
  flex: 1;
  min-height: 48px;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.phone-collect-actions .btn-primary[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   MIMI Servicios Cliente — UI polish seguro 2026-05-09
   Objetivo: icono de ubicación visible, selección de rubros con
   transparencia/colores variables, tipeo lento en IA y banner efímero.
   ============================================================ */
.status-banner.is-info {
  transition: opacity .25s ease, transform .25s ease;
}

.address-block-label.ai-question-type {
  color: #2563eb;
  letter-spacing: .04em;
  min-height: 16px;
}

.address-block-label.ai-question-type::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -2px;
  background: #2563eb;
  animation: ai-label-caret 1s steps(1) infinite;
}

@keyframes ai-label-caret {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

.ai-prompt-input-wrap {
  position: relative;
}

.ai-prompt-ghost {
  position: absolute;
  left: 56px;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  pointer-events: none;
  z-index: 1;
}

.ai-prompt-input {
  position: relative;
  z-index: 2;
}

.ai-prompt-input-wrap.has-user-text .ai-prompt-ghost {
  opacity: 0;
}

.ai-prompt-input-wrap:not(.has-user-text) .ai-prompt-input {
  color: transparent;
  caret-color: var(--client-primary);
}

.category-chip {
  --category-accent: #2563eb;
  --category-accent-soft: rgba(37, 99, 235, .14);
  --category-accent-border: rgba(37, 99, 235, .38);
  --category-accent-text: #1d4ed8;
}

.category-chip.is-selected {
  color: var(--category-accent-text) !important;
  border-color: var(--category-accent-border) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.55)),
    var(--category-accent-soft) !important;
  box-shadow: 0 14px 28px color-mix(in srgb, var(--category-accent) 22%, transparent) !important;
  backdrop-filter: blur(10px);
}

.category-chip.is-selected::after {
  color: #fff !important;
  background: var(--category-accent) !important;
}

.category-chip.is-selected span,
.category-chip.is-selected i,
.category-chip.is-selected small,
.category-chip.is-selected strong {
  color: var(--category-accent-text) !important;
}

.category-chip.is-selected span[aria-hidden] {
  color: #fff !important;
  background: var(--category-accent) !important;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--category-accent) 32%, transparent);
}

.address-locate-pin {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(34, 197, 94, .34), 0 0 0 6px rgba(34, 197, 94, .10) !important;
  z-index: 4;
}

.address-locate-pin svg {
  display: block !important;
  width: 20px;
  height: 20px;
  color: #fff !important;
  fill: currentColor !important;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.16));
}

@supports not (color: color-mix(in srgb, #000 50%, transparent)) {
  .category-chip.is-selected {
    box-shadow: 0 14px 28px rgba(37, 99, 235, .18) !important;
  }
}


/* ============================================================
   FIX UI 2026-05-09 B — dirección larga + pin persistente + badge
   ============================================================ */
.address-field {
  position: relative !important;
  display: block !important;
  min-height: 52px !important;
  padding: 12px 92px 12px 16px !important;
}

.address-field input {
  width: 100% !important;
  min-height: 38px !important;
  padding: 0 !important;
  padding-right: 0 !important;
  font-size: clamp(12px, 3.35vw, 13.5px) !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

.address-field .input-icon-button {
  position: absolute !important;
  right: 52px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 6 !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .10) !important;
}

.address-locate-pin {
  position: absolute !important;
  right: 9px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 7 !important;
  opacity: 1 !important;
}

.address-locate-pin:disabled {
  opacity: 1 !important;
}

.address-locate-pin.is-loading {
  opacity: 1 !important;
  pointer-events: none !important;
}

.address-locate-pin svg {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.category-chip.is-selected::after {
  left: 6px !important;
  right: auto !important;
  top: 6px !important;
  z-index: 5 !important;
  font-size: 7.5px !important;
  padding: 3px 6px !important;
}

.category-chip.is-selected span[aria-hidden] {
  margin-top: 10px !important;
}

.ai-prompt-ghost,
.ai-prompt-input-wrap input::placeholder {
  white-space: normal !important;
  line-height: 1.28 !important;
}

/* ============================================================
   Live service navigation HUD 2026-05-10
   ============================================================ */
.map-panel {
  position: relative;
}

.client-live-navigation {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 6;
  display: grid;
  gap: 9px;
  padding: 13px 14px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.88)),
    rgba(255,255,255,.9);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .18);
  backdrop-filter: blur(14px);
}

.client-live-navigation[hidden] {
  display: none !important;
}

.client-live-navigation div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.client-live-navigation span {
  color: #64748b;
  font-size: .72rem;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.client-live-navigation strong {
  color: #06110a;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.client-live-navigation p {
  margin: 0;
  color: #334155;
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.35;
}

@media (max-width: 430px) {
  .client-live-navigation {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 11px 12px;
    border-radius: 16px;
  }

  .client-live-navigation strong {
    font-size: .98rem;
  }

  .client-live-navigation p {
    font-size: .76rem;
  }
}
/* Brand assets 2026: MIMI GO client wordmark */
.brand-lockup-image {
  min-width: 0;
}

.brand-lockup-image img {
  display: block;
  width: clamp(86px, 22vw, 124px);
  height: auto;
  max-height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.08));
}

@media (max-width: 480px) {
  .brand-lockup-image img {
    width: clamp(74px, 24vw, 104px);
    max-height: 28px;
  }
}

/* Branding v2: premium client header */
.client-header {
  background:
    radial-gradient(circle at 16% 0%, rgba(34, 197, 94, .32), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(37, 99, 235, .22), transparent 30%),
    linear-gradient(135deg, #020617 0%, #07111f 56%, #07170f 100%);
}

.client-header::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, .42), transparent);
  pointer-events: none;
}

/* Enterprise mobile polish 2026-05-11: tighter client home */
@media (max-width: 430px) {
  body[data-client-view="home"] .client-main {
    padding-inline: 14px !important;
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body[data-client-view="home"] .hero-text-client {
    margin-bottom: 14px !important;
  }

  body[data-client-view="home"] .hero-text-client h1 {
    max-width: 330px !important;
    font-size: 22px !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
  }

  body[data-client-view="home"] .search-card {
    border-radius: 22px !important;
    padding: 14px !important;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .1) !important;
  }

  body[data-client-view="home"] .address-block-label {
    margin-bottom: 8px !important;
    font-size: 11px !important;
    letter-spacing: .055em !important;
  }

  body[data-client-view="home"] .address-field {
    min-height: 58px !important;
    border-radius: 16px !important;
    padding: 10px 82px 10px 15px !important;
  }

  body[data-client-view="home"] .ai-prompt-card {
    margin-top: 10px !important;
    border-radius: 17px !important;
    padding: 5px !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.96)),
      radial-gradient(circle at 8% 10%, rgba(124,58,237,.1), transparent 38%) !important;
  }

  body[data-client-view="home"] .ai-prompt-input-wrap {
    min-height: 56px !important;
    padding: 10px 12px !important;
    gap: 10px !important;
    border-radius: 14px !important;
  }

  body[data-client-view="home"] .ai-prompt-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 11px !important;
  }

  body[data-client-view="home"] .ai-prompt-input {
    min-height: 28px !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
  }

  body[data-client-view="home"] #categoryIntentAssist {
    margin: 8px 0 10px !important;
  }

  body[data-client-view="home"] .intent-assist-head {
    gap: 4px !important;
  }

  body[data-client-view="home"] #categoryIntentAssist strong {
    font-size: 13px !important;
    line-height: 1.15 !important;
  }

  body[data-client-view="home"] #categoryIntentAssist p {
    margin-top: 2px !important;
    font-size: 12px !important;
    line-height: 1.22 !important;
  }

  body[data-client-view="home"] .intent-steps {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-top: 8px !important;
  }

  body[data-client-view="home"] .intent-steps span {
    min-height: 30px !important;
    padding: 6px 7px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    line-height: 1.05 !important;
    text-align: center !important;
  }

  body[data-client-view="home"] .category-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    overflow: clip !important;
    padding: 0 !important;
    isolation: isolate !important;
  }

  body[data-client-view="home"] .ai-intent-card {
    width: 100% !important;
    min-width: 0 !important;
    grid-column: 1 / -1 !important;
  }

  body[data-client-view="home"] .category-guide-card {
    width: auto !important;
    min-width: 0 !important;
    min-height: 102px !important;
    padding: 10px 8px !important;
    border-radius: 14px !important;
    align-content: center !important;
    overflow: hidden !important;
  }

  body[data-client-view="home"] .category-chip {
    width: auto !important;
    min-width: 0 !important;
    min-height: 102px !important;
    padding: 10px 7px 8px !important;
    border-radius: 14px !important;
    gap: 4px !important;
    text-align: center !important;
  }

  body[data-client-view="home"] .category-chip span[aria-hidden] {
    width: 28px !important;
    height: 28px !important;
    margin: 0 auto 2px !important;
    font-size: 13px !important;
  }

  body[data-client-view="home"] .category-chip strong {
    font-size: 11px !important;
    line-height: 1.1 !important;
  }

  body[data-client-view="home"] .category-chip small {
    max-height: 25px !important;
    overflow: hidden !important;
    font-size: 9px !important;
    line-height: 1.18 !important;
  }

  body[data-client-view="home"] .category-chip i {
    margin-top: auto !important;
    padding: 4px 7px !important;
    font-size: 9px !important;
  }

  body[data-client-view="home"] .category-guide-card strong,
  body[data-client-view="home"] .category-guide-card small,
  body[data-client-view="home"] .category-chip strong,
  body[data-client-view="home"] .category-chip small {
    overflow-wrap: anywhere !important;
  }

  body[data-client-view="home"] .category-popular-badge {
    right: 6px !important;
    top: 6px !important;
    font-size: 7px !important;
    padding: 3px 5px !important;
  }

  body[data-client-view="home"] .search-controls {
    gap: 8px !important;
    margin-top: 12px !important;
  }

  body[data-client-view="home"] .search-control-card {
    min-height: 96px !important;
    border-radius: 16px !important;
    padding: 10px !important;
  }
}

/* Auth handoff: explain the native Android/Chrome external-service prompt before it appears. */
body.auth-consent-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

.auth-consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  align-items: end;
  padding: max(14px, env(safe-area-inset-top, 0px)) 14px max(14px, env(safe-area-inset-bottom, 0px));
  background: rgba(2, 6, 23, .46);
  backdrop-filter: blur(8px);
}

.auth-consent-overlay[hidden] {
  display: none !important;
}

.auth-consent-sheet {
  width: min(100%, 390px);
  margin: 0 auto;
  display: grid;
  gap: 11px;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 0%, rgba(34, 197, 94, .12), transparent 34%),
    #ffffff;
  border: 1px solid rgba(226, 232, 240, .96);
  box-shadow: 0 24px 70px rgba(2, 6, 23, .28);
  color: #0f172a;
}

.auth-consent-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #052e16;
  background: linear-gradient(135deg, #dcfce7, #22c55e);
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(34, 197, 94, .26);
}

.auth-consent-sheet h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.02;
  letter-spacing: 0;
}

.auth-consent-sheet p,
.auth-consent-sheet small {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.auth-consent-domain {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.auth-consent-domain span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-consent-domain strong {
  color: #047857;
  font-size: 14px;
  font-weight: 900;
}

.auth-consent-actions {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 10px;
}

.auth-consent-actions button {
  min-height: 48px;
  border-radius: 16px;
}

@media (max-width: 390px) {
  .auth-consent-sheet {
    padding: 16px;
    border-radius: 21px;
  }

  .auth-consent-sheet h2 {
    font-size: 22px;
  }

  .auth-consent-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  body[data-client-view="home"] .hero-text-client h1 {
    font-size: 21px !important;
  }

  body[data-client-view="home"] .category-chip {
    min-height: 96px !important;
  }

  body[data-client-view="home"] .intent-steps span {
    font-size: 10px !important;
    padding-inline: 5px !important;
  }
}

.hub-brand-button {
  min-width: 82px;
  gap: 7px;
  justify-content: flex-start;
  padding: 5px 9px 5px 5px;
  color: #ecfeff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .06)),
    rgba(2, 6, 23, .42);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 12px 24px rgba(2, 6, 23, .28);
}

.hub-brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #020617;
  font-size: 13px;
  font-weight: 950;
  background: linear-gradient(135deg, #ffffff, #bbf7d0 72%, #22c55e);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 8px 18px rgba(34, 197, 94, .26);
}

.hub-brand-button span:last-child {
  font-size: 12px;
  letter-spacing: 0;
}

.brand-lockup-image {
  justify-content: center;
}

.brand-lockup-image img {
  width: clamp(94px, 24vw, 136px);
  max-height: 36px;
  filter: drop-shadow(0 8px 18px rgba(16, 185, 129, .12));
}

@media (max-width: 390px) {
  .hub-brand-button {
    min-width: 54px;
    padding-right: 5px;
  }

  .hub-brand-button span:last-child {
    display: none;
  }

  .brand-lockup-image img {
    width: clamp(88px, 29vw, 112px);
  }
}
