/* ===== v140 Portal del Cliente: acciones públicas conectadas ===== */
.customer-favorite-btn-v140 {
  white-space: nowrap;
}
.customer-favorite-btn-v140.is-saved {
  opacity: .92;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}
.customer-detail-actions-v140 {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 86%, var(--accent) 6%);
}
.customer-detail-actions-v140 strong {
  display: block;
  font-size: .98rem;
}
.customer-detail-actions-v140 p {
  margin: 0;
  color: var(--text-soft);
  font-size: .9rem;
  line-height: 1.35;
}
.customer-detail-actions-row-v140 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.customer-action-status-v140 {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  max-width: min(390px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-md);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.customer-action-status-v140.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.customer-action-status-v140[data-status="success"] {
  border-color: color-mix(in srgb, #22c55e 55%, var(--line));
}
.customer-action-status-v140[data-status="warning"] {
  border-color: color-mix(in srgb, #f59e0b 55%, var(--line));
}
.customer-action-status-v140[data-status="error"] {
  border-color: color-mix(in srgb, #ef4444 60%, var(--line));
}
@media (max-width: 760px) {
  .customer-detail-actions-row-v140 .btn,
  .customer-favorite-btn-v140 {
    width: 100%;
  }
}


/* ===== v219 · flujo correcto para solicitudes del comprador ===== */
.customer-request-helper-v219 {
  display: block;
  color: var(--text-soft);
  line-height: 1.35;
}
.customer-detail-actions-row-v140 .btn[disabled],
.customer-detail-actions-row-v140 .btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .68;
}
.customer-detail-actions-row-v140 .btn.is-complete {
  border-color: color-mix(in srgb, #22c55e 58%, var(--line));
  background: color-mix(in srgb, #22c55e 10%, var(--surface));
  color: var(--text-strong);
}
.customer-detail-actions-row-v140 .btn.is-blocked {
  border-style: dashed;
}


/* ===== v239 · interacción comprador-vendedor más clara ===== */
.customer-detail-actions-v239 {
  gap: 12px;
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}
.customer-action-path-v239 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.customer-action-path-v239 span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, var(--accent) 4%);
  color: var(--text-soft);
  font-size: .82rem;
  line-height: 1.22;
}
.customer-action-path-v239 b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  color: var(--text-strong);
  flex: 0 0 auto;
}
.customer-next-links-v239 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.customer-next-links-v239[hidden] { display: none !important; }
@media (max-width: 720px) {
  .customer-action-path-v239 { grid-template-columns: 1fr; }
}

/* ===== V244 · mensaje directo habilitado por respuesta real del vendedor ===== */
.customer-inline-message-v244 {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent, #2cc9b5) 28%, var(--border, rgba(148, 163, 184, .32)) 72%);
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent, #2cc9b5) 7%, var(--surface, #fff) 93%);
}
.customer-inline-message-v244[hidden] { display: none !important; }
.customer-inline-message-v244 label { display: grid; gap: 6px; }
.customer-inline-message-v244 span { font-weight: 800; }
.customer-inline-message-v244 textarea {
  width: 100%;
  resize: vertical;
  min-height: 96px;
  border-radius: 14px;
  border: 1px solid var(--border, rgba(148, 163, 184, .32));
  background: var(--surface, #fff);
  color: var(--text, #0f172a);
  padding: 11px 12px;
  line-height: 1.5;
}
.customer-inline-message-actions-v244 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}


/* V244.1 - campo de mensaje comprador visible cuando el chat se habilita */
.customer-inline-message-v244 {
  border-color: rgba(20, 184, 166, 0.38);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}
.customer-inline-message-v244 textarea:focus {
  outline: 2px solid rgba(20, 184, 166, 0.34);
  outline-offset: 2px;
}


/* V244.2 - acciones del comprador con estados bloqueados mas visibles */
.customer-action-locked-v244,
.customer-action-waiting-v244 {
  outline: 2px dashed rgba(245, 158, 11, .45);
  outline-offset: 2px;
}

/* ===== V248.59: ficha comprador sin datos crudos del vendedor; misma política visual que panel vendedor ===== */
.detail-contact-policy-v24859 {
  border: 1px solid color-mix(in srgb, #f59e0b 32%, var(--border, #e5e7eb));
  border-radius: 20px;
  padding: 13px 14px;
  background: color-mix(in srgb, #f59e0b 10%, var(--surface, #ffffff));
  display: grid;
  gap: 4px;
  color: var(--text, #334155);
}

.detail-contact-policy-v24859 strong {
  color: var(--heading, #111827);
  font-weight: 950;
}

.detail-contact-policy-v24859 span {
  color: var(--text-soft, #64748b);
  line-height: 1.45;
  font-size: .92rem;
}

.detail-contact-policy-v24859.is-open {
  border-color: color-mix(in srgb, #16a34a 38%, var(--border, #e5e7eb));
  background: color-mix(in srgb, #16a34a 10%, var(--surface, #ffffff));
}

.detail-contact-summary-v30 [data-detail-contact-channels] {
  display: grid;
  gap: 8px;
}

/* ===== V248.60 · Ficha del comprador con panel lateral de chat y contacto como contraparte del vendedor ===== */
.detail-contact-card-v24860 {
  gap: 14px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  scrollbar-width: thin;
}

.detail-contact-card-v24860 h2 {
  margin-bottom: 0;
}

.customer-detail-actions-v24860 {
  border-color: color-mix(in srgb, var(--accent, #b98a5c) 34%, var(--border, #e5e7eb));
  background: color-mix(in srgb, var(--surface, #fff) 86%, var(--accent, #b98a5c) 8%);
}

.customer-detail-actions-row-v24860 .btn {
  min-height: 38px;
}

.customer-detail-side-panel-v24860 {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent, #b98a5c) 28%, var(--border, #e5e7eb));
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface, #fff) 92%, var(--accent, #b98a5c) 5%);
  box-shadow: 0 16px 38px rgba(15, 23, 42, .07);
}

.customer-detail-side-placeholder-v24860 {
  display: grid;
  gap: 4px;
  color: var(--text-soft, #64748b);
}

.customer-detail-side-placeholder-v24860 strong,
.customer-detail-side-head-v24860 h3,
.customer-detail-thread-title-v24860 strong,
.customer-detail-visit-box-v24860 strong,
.customer-detail-contact-box-v24860 strong {
  color: var(--heading, #111827);
}

.customer-detail-side-head-v24860 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.customer-detail-side-head-v24860 h3 {
  margin: 2px 0 0;
  font-size: 1rem;
  line-height: 1.18;
}

.customer-detail-stage-v24860 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #f59e0b 36%, var(--border, #e5e7eb));
  background: color-mix(in srgb, #f59e0b 12%, var(--surface, #fff));
  color: var(--heading, #111827);
  font-size: .74rem;
  font-weight: 950;
  line-height: 1.15;
  flex: 0 0 auto;
  max-width: 150px;
}

.customer-detail-stage-v24860.is-seller-replied,
.customer-detail-stage-v24860.is-visit-requested {
  border-color: color-mix(in srgb, var(--accent, #b98a5c) 44%, var(--border, #e5e7eb));
  background: color-mix(in srgb, var(--accent, #b98a5c) 14%, var(--surface, #fff));
}

.customer-detail-stage-v24860.is-contact-enabled {
  border-color: color-mix(in srgb, #16a34a 40%, var(--border, #e5e7eb));
  background: color-mix(in srgb, #16a34a 12%, var(--surface, #fff));
}

.customer-detail-thread-box-v24860,
.customer-detail-visit-box-v24860,
.customer-detail-contact-box-v24860 {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface, #ffffff);
}

.customer-detail-thread-title-v24860 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.customer-detail-thread-title-v24860 span {
  color: var(--text-soft, #64748b);
  font-size: .78rem;
  font-weight: 800;
}

.customer-detail-thread-scroll-v24860 {
  display: grid;
  gap: 9px;
  max-height: 250px;
  overflow: auto;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 70%, transparent);
  background: color-mix(in srgb, var(--surface-alt, #f8fafc) 82%, transparent);
  scrollbar-width: thin;
}

.customer-detail-thread-bubble-v24860 {
  display: grid;
  gap: 5px;
  max-width: 92%;
  padding: 9px 10px;
  border-radius: 16px;
  border: 1px solid var(--border, #e5e7eb);
  background: #ffffff;
  color: var(--text, #334155);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
}

.customer-detail-thread-bubble-v24860.is-customer {
  justify-self: end;
  border-color: color-mix(in srgb, var(--accent, #b98a5c) 35%, var(--border, #e5e7eb));
  background: color-mix(in srgb, var(--accent, #b98a5c) 9%, #ffffff);
}

.customer-detail-thread-bubble-v24860.is-seller {
  justify-self: start;
  border-color: color-mix(in srgb, #64748b 24%, var(--border, #e5e7eb));
}

.customer-detail-thread-meta-v24860 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--heading, #111827);
  font-size: .8rem;
}

.customer-detail-thread-meta-v24860 small {
  color: var(--text-soft, #64748b);
  font-weight: 700;
}

.customer-detail-thread-bubble-v24860 p,
.customer-detail-visit-box-v24860 p,
.customer-detail-contact-box-v24860 p {
  margin: 0;
  color: var(--text-soft, #64748b);
  line-height: 1.4;
  font-size: .88rem;
}

.customer-detail-thread-empty-v24860,
.customer-detail-thread-locked-v24860 {
  display: grid;
  gap: 4px;
  padding: 11px;
  border-radius: 15px;
  border: 1px dashed color-mix(in srgb, #f59e0b 42%, var(--border, #e5e7eb));
  background: color-mix(in srgb, #f59e0b 7%, var(--surface, #fff));
  color: var(--text-soft, #64748b);
}

.customer-detail-thread-reply-v24860 {
  display: grid;
  gap: 9px;
}

.customer-detail-thread-reply-v24860 label {
  display: grid;
  gap: 6px;
}

.customer-detail-thread-reply-v24860 label span {
  font-weight: 900;
  color: var(--heading, #111827);
}

.customer-detail-thread-reply-v24860 textarea {
  width: 100%;
  min-height: 94px;
  resize: vertical;
  border-radius: 15px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface, #fff);
  color: var(--text, #334155);
  padding: 10px 11px;
  line-height: 1.45;
}

.customer-detail-visit-actions-v24860,
.customer-detail-contact-grid-v24860 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.customer-detail-contact-box-v24860 {
  border-color: color-mix(in srgb, #f59e0b 35%, var(--border, #e5e7eb));
  background: color-mix(in srgb, #f59e0b 7%, var(--surface, #fff));
}

.customer-detail-contact-box-v24860.is-open {
  border-color: color-mix(in srgb, #16a34a 40%, var(--border, #e5e7eb));
  background: color-mix(in srgb, #16a34a 8%, var(--surface, #fff));
}

.customer-detail-contact-btn-v24860 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid var(--border, #e5e7eb);
  background: #ffffff;
  color: var(--heading, #111827);
  font-weight: 900;
  font-size: .82rem;
  text-decoration: none;
  cursor: pointer;
}

.customer-detail-contact-btn-v24860.is-whatsapp:not(.is-disabled) {
  border-color: rgba(34, 197, 94, .52);
  background: #22c55e;
  color: #ffffff;
}

.customer-detail-contact-btn-v24860.is-disabled,
.customer-detail-contact-btn-v24860[disabled] {
  opacity: .62;
  cursor: not-allowed;
  border-style: dashed;
}

.detail-contact-direct-v24860:not(:has(a:not([hidden]))) {
  display: none;
}

.detail-contact-summary-v24860 {
  font-size: .9rem;
}

.detail-lead-form-v24860 {
  padding-top: 4px;
}

@media (min-width: 1181px) {
  .detail-shell-v30 {
    grid-template-columns: minmax(0, 1.18fr) minmax(380px, .82fr);
  }
}

@media (max-width: 1180px) {
  .detail-contact-card-v24860 {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 720px) {
  .customer-detail-side-head-v24860,
  .customer-detail-thread-title-v24860 {
    flex-direction: column;
    align-items: stretch;
  }
  .customer-detail-stage-v24860 {
    max-width: none;
  }
  .customer-detail-visit-actions-v24860,
  .customer-detail-contact-grid-v24860 {
    grid-template-columns: 1fr;
  }
}
.customer-detail-wa-icon-v24860 {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
}
.customer-detail-wa-icon-v24860 svg { display: block; }

/* V248.62 · ficha comprador: solo favorito + solicitud inicial, chat visible y checks de entrega */
.customer-detail-actions-v24862 {
  gap: 10px;
}

.customer-detail-actions-row-v24862 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-detail-actions-row-v24862 .btn {
  width: 100%;
}

.detail-lead-note-v24862 {
  font-size: .86rem;
}

.customer-detail-thread-meta-right-v24862 {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  text-align: right;
}

.customer-detail-delivery-v24862 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  font-size: .82rem;
  font-weight: 950;
  letter-spacing: -2px;
  color: #94a3b8;
  line-height: 1;
}

.customer-detail-delivery-v24862.is-delivered {
  color: #64748b;
}

.customer-detail-delivery-v24862.is-read {
  color: #2563eb;
}

.customer-detail-thread-bubble-v24860.is-customer .customer-detail-thread-meta-v24860 {
  align-items: flex-start;
}

@media (max-width: 720px) {
  .customer-detail-actions-row-v24862 {
    grid-template-columns: 1fr;
  }
}

/* V248.65 · Ficha comprador: eliminar doble scroll en panel lateral.
   Regla UX: la ficha usa el scroll normal de la página. El panel derecho y la
   conversación no deben crear barras internas paralelas que confundan al usuario. */
.detail-contact-card-v24860 {
  max-height: none !important;
  overflow: visible !important;
  scrollbar-width: auto;
}

.customer-detail-thread-scroll-v24860 {
  max-height: none !important;
  overflow: visible !important;
  scrollbar-width: auto;
}


/* V248.66 · Ficha comprador: aprovechar ancho disponible y dejar scroll solo en el chat.
   Regla UX: no hay scroll interno del panel completo; solo la conversación puede
   desplazarse para no hacer eterna la ficha. El auto-scroll JS posiciona en el
   primer mensaje no visto o, si todo está visto, al último mensaje. */
@media (min-width: 1181px) {
  .container.detail-shell-v30 {
    width: min(1680px, calc(100% - 36px));
  }

  .detail-shell-v30 {
    grid-template-columns: minmax(720px, 1fr) minmax(350px, 390px) !important;
    gap: 16px;
  }

  .detail-contact-card-v24860 {
    position: sticky;
    top: 92px;
    align-self: start;
  }
}

.detail-contact-card-v24860 {
  max-height: none !important;
  overflow: visible !important;
  scrollbar-width: auto;
}

.customer-detail-thread-scroll-v24860 {
  max-height: clamp(260px, 44vh, 520px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

.customer-detail-thread-bubble-v24860.is-unread-for-customer {
  border-color: color-mix(in srgb, #2563eb 42%, var(--border, #e5e7eb));
  box-shadow: 0 12px 26px rgba(37, 99, 235, .12);
}

.customer-detail-thread-bubble-v24860.is-unread-for-customer::before {
  content: "Nuevo";
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, #2563eb 12%, var(--surface, #fff));
  color: #2563eb;
  font-size: .68rem;
  font-weight: 950;
}

@media (max-width: 1180px) {
  .customer-detail-thread-scroll-v24860 {
    max-height: min(58vh, 520px) !important;
  }
}

/* V248.67 · Ficha comprador: agregar panel izquierdo del portal y corregir loop de scroll del chat.
   Regla UX: el panel izquierdo de Mi cuenta queda visible en desktop; el panel derecho conserva el chat.
   Solo el chat tiene scroll interno; no debe auto-desplazarse en bucle durante los refrescos. */
.customer-detail-left-nav-v24867 {
  display: grid;
  gap: 8px;
  padding: 12px;
  align-self: start;
  border-radius: 22px;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e5e7eb);
  box-shadow: var(--shadow-sm, 0 10px 28px rgba(15, 23, 42, .08));
}

.customer-detail-left-nav-v24867 a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--text-soft, #5b6472);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 900;
  line-height: 1.18;
}

.customer-detail-left-nav-v24867 a:hover,
.customer-detail-left-nav-v24867 a:focus-visible {
  color: var(--text-strong, #111827);
  border-color: color-mix(in srgb, var(--accent, #b98a5c) 24%, var(--line, #e5e7eb));
  background: color-mix(in srgb, var(--accent, #b98a5c) 6%, var(--surface, #fff));
  outline: none;
}

.customer-detail-left-nav-v24867 a.is-active {
  color: var(--text-strong, #111827);
  border-color: color-mix(in srgb, var(--accent, #b98a5c) 38%, var(--line, #e5e7eb));
  background: color-mix(in srgb, var(--accent, #b98a5c) 10%, var(--surface, #fff));
}

.customer-detail-nav-count-v24867 {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #ffb357;
  color: #111827;
  font-size: .74rem;
  font-weight: 950;
}
.customer-detail-nav-count-v24867[hidden] { display: none !important; }

@media (min-width: 1181px) {
  .container.detail-shell-v30.detail-shell-v24867 {
    width: min(1760px, calc(100% - 28px));
  }

  .detail-shell-v30.detail-shell-v24867 {
    display: grid;
    grid-template-columns: minmax(178px, 210px) minmax(560px, 1fr) minmax(330px, 390px) !important;
    gap: 14px;
    align-items: start;
  }

  .customer-detail-left-nav-v24867,
  .detail-shell-v24867 .detail-contact-card-v24860 {
    position: sticky;
    top: 92px;
  }
}

@media (max-width: 1180px) {
  .detail-shell-v30.detail-shell-v24867 {
    display: grid;
    gap: 16px;
  }
  .customer-detail-left-nav-v24867 {
    position: sticky;
    top: 0;
    z-index: 20;
    grid-template-columns: repeat(9, max-content);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    border-radius: 18px;
  }
  .customer-detail-left-nav-v24867 a {
    min-height: 38px;
    white-space: nowrap;
  }
}

.customer-detail-thread-scroll-v24860 {
  scroll-behavior: auto !important;
}


/* V248.70 · Favorito atenuado + mejor aprovechamiento del ancho en ficha comprador.
   Regla: si la propiedad ya está en favoritos, el botón queda atenuado igual que
   Información solicitada. Además, en desktop se da más ancho al panel derecho para
   que el chat quede realmente visible, reduciendo marcos internos redundantes. */
.customer-detail-actions-row-v24862 .btn.is-saved,
.customer-detail-actions-row-v24862 .btn.is-complete[data-customer-favorite] {
  border-color: color-mix(in srgb, #22c55e 58%, var(--line, #e5e7eb)) !important;
  background: color-mix(in srgb, #22c55e 10%, var(--surface, #ffffff)) !important;
  color: var(--text-soft, #64748b) !important;
  opacity: .72;
  cursor: not-allowed;
}

@media (min-width: 1280px) {
  .container.detail-shell-v30.detail-shell-v24867 {
    width: min(1880px, calc(100% - 20px));
  }

  .detail-shell-v30.detail-shell-v24867 {
    grid-template-columns: minmax(178px, 210px) minmax(520px, 1fr) minmax(420px, 500px) !important;
    gap: 12px;
  }
}

@media (min-width: 1181px) and (max-width: 1279px) {
  .container.detail-shell-v30.detail-shell-v24867 {
    width: min(100%, calc(100% - 20px));
  }

  .detail-shell-v30.detail-shell-v24867 {
    grid-template-columns: minmax(170px, 190px) minmax(500px, 1fr) minmax(360px, 410px) !important;
    gap: 10px;
  }
}

.detail-shell-v24867 .detail-contact-card-v24860 {
  padding: 16px;
}

.detail-shell-v24867 .customer-detail-actions-v24860,
.detail-shell-v24867 .customer-detail-side-panel-v24860,
.detail-shell-v24867 .customer-detail-thread-box-v24860,
.detail-shell-v24867 .customer-detail-visit-box-v24860,
.detail-shell-v24867 .customer-detail-contact-box-v24860 {
  box-shadow: none;
}

.detail-shell-v24867 .customer-detail-side-panel-v24860 {
  padding: 10px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface, #ffffff) 94%, var(--accent, #b98a5c) 3%);
}

.detail-shell-v24867 .customer-detail-thread-box-v24860,
.detail-shell-v24867 .customer-detail-visit-box-v24860,
.detail-shell-v24867 .customer-detail-contact-box-v24860 {
  padding: 10px;
  border-radius: 15px;
}

.detail-shell-v24867 .customer-detail-thread-scroll-v24860 {
  max-height: clamp(340px, 48vh, 620px) !important;
  scroll-behavior: auto !important;
}

@media (max-width: 1180px) {
  .detail-shell-v24867 .customer-detail-thread-scroll-v24860 {
    max-height: min(58vh, 560px) !important;
  }
}

/* V248.71 · Acciones rápidas del comprador debajo del precio.
   Objetivo: quitar protagonismo al bloque del chat, aprovechar el espacio bajo el precio
   y dejar el panel derecho concentrado en conversación, visita y contacto protegido. */
.detail-heading-side-v24871 {
  justify-self: end;
  display: grid;
  gap: 9px;
  width: min(245px, 100%);
}

.detail-heading-side-v24871 .detail-price-card-v57 {
  justify-self: stretch;
  min-width: 0;
}

.customer-detail-actions-v24871 {
  gap: 6px;
  padding: 8px;
  border-radius: 16px;
  box-shadow: none;
  background: color-mix(in srgb, var(--surface, #ffffff) 92%, var(--accent, #b98a5c) 4%);
}

.customer-detail-actions-row-v24871 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.customer-detail-actions-v24871 .btn {
  width: 100%;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: .82rem;
  line-height: 1.05;
}

.customer-detail-actions-v24871 .customer-request-helper-v219 {
  font-size: .72rem;
  line-height: 1.22;
  margin-top: 1px;
}

.detail-contact-card-v24860 > .customer-detail-actions-v24871 {
  display: none !important;
}

@media (max-width: 760px) {
  .detail-heading-side-v24871 {
    justify-self: stretch;
    width: 100%;
  }

  .customer-detail-actions-row-v24871 {
    grid-template-columns: 1fr;
  }
}

/* V248.72 · Estado online/offline y acciones atenuadas por etapa en ficha comprador. */
.customer-detail-contact-heading-v24872 {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-detail-presence-badge-v24872 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: .72rem;
  font-weight: 950;
  line-height: 1;
  vertical-align: middle;
}

.customer-detail-presence-badge-v24872 i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 14%, transparent);
}

.customer-detail-presence-badge-v24872.is-online {
  color: #15803d;
  background: color-mix(in srgb, #22c55e 13%, #ffffff);
}

.customer-detail-presence-badge-v24872.is-offline {
  color: #dc2626;
  background: color-mix(in srgb, #ef4444 10%, #ffffff);
}

.customer-detail-visit-actions-v24860 .btn.is-complete,
.customer-detail-visit-actions-v24860 .btn[disabled].is-complete {
  border-color: color-mix(in srgb, #22c55e 58%, var(--line, #e5e7eb)) !important;
  background: color-mix(in srgb, #22c55e 10%, var(--surface, #ffffff)) !important;
  color: var(--text-soft, #64748b) !important;
  opacity: .74;
  cursor: not-allowed;
}

.customer-detail-visit-actions-v24860 .btn.is-blocked,
.customer-detail-visit-actions-v24860 .btn[disabled].is-blocked {
  opacity: .62;
  cursor: not-allowed;
  border-style: dashed;
}

.customer-detail-contact-btn-v24860.is-internal:not(.is-disabled) {
  border-color: color-mix(in srgb, var(--accent, #b98a5c) 52%, var(--border, #e5e7eb));
  background: color-mix(in srgb, var(--accent, #b98a5c) 12%, #ffffff);
}


/* V248.73: estado visible de marcado interno comprador -> vendedor, sin toast repetitivo. */
.customer-detail-contact-btn-v24860.is-dialing-v24873 {
  opacity: 0.88;
  cursor: progress;
}
.customer-detail-contact-btn-v24860.is-dialing-v24873 span:last-child {
  font-weight: 800;
}

/* V248.74 · Comprador marcando llamada interna con animación profesional */
.buyer-outbound-call-overlay-v24874 {
  position: fixed;
  inset: 0;
  z-index: 9997;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(8px);
}

.buyer-outbound-call-modal-v24874 {
  position: relative;
  width: min(460px, 94vw);
  border-radius: 28px;
  padding: 30px 26px 24px;
  background: linear-gradient(145deg, #ffffff, #f3faf7);
  color: #111827;
  border: 1px solid rgba(34, 197, 94, .24);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
  text-align: center;
}

.buyer-outbound-call-close-v24874 {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.buyer-outbound-call-avatar-v24874 {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 36px;
  box-shadow: 0 18px 42px rgba(22, 163, 74, .32);
}

.buyer-outbound-call-avatar-v24874 i {
  position: absolute;
  inset: -10px;
  border: 2px solid rgba(22, 163, 74, .36);
  border-radius: inherit;
  animation: buyerOutboundCallPulseV24874 1.65s ease-out infinite;
}
.buyer-outbound-call-avatar-v24874 i:nth-child(2) { animation-delay: .32s; }
.buyer-outbound-call-avatar-v24874 i:nth-child(3) { animation-delay: .64s; }

@keyframes buyerOutboundCallPulseV24874 {
  from { opacity: .85; transform: scale(.72); }
  to { opacity: 0; transform: scale(1.34); }
}

.buyer-outbound-call-copy-v24874 .kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--accent, #b98a5c);
}

.buyer-outbound-call-copy-v24874 h3 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.07;
}

.buyer-outbound-call-copy-v24874 p {
  margin: 0 0 12px;
  color: #64748b;
  line-height: 1.45;
}

.buyer-outbound-call-badges-v24874 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 18px;
}

.buyer-outbound-call-badges-v24874 span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 900;
  font-size: .86rem;
}

.buyer-outbound-call-wave-v24874 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-height: 64px;
  border: 1px solid rgba(185, 138, 92, .28);
  border-radius: 18px;
  background: #fff;
  margin: 0 0 18px;
}

.buyer-outbound-call-wave-v24874 i {
  width: 4px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #22c55e, #0ea5e9);
  animation: buyerOutboundWaveV24874 .88s ease-in-out infinite;
}
.buyer-outbound-call-wave-v24874 i:nth-child(2n) { animation-delay: .08s; }
.buyer-outbound-call-wave-v24874 i:nth-child(3n) { animation-delay: .16s; }
.buyer-outbound-call-wave-v24874 i:nth-child(4n) { animation-delay: .24s; }

@keyframes buyerOutboundWaveV24874 {
  0%, 100% { transform: scaleY(.55); opacity: .72; }
  50% { transform: scaleY(1.55); opacity: 1; }
}

.buyer-outbound-call-overlay-v24874[data-state="error"] .buyer-outbound-call-avatar-v24874 {
  background: #dc2626;
  box-shadow: 0 18px 42px rgba(220, 38, 38, .28);
}
.buyer-outbound-call-overlay-v24874[data-state="error"] .buyer-outbound-call-avatar-v24874 i {
  border-color: rgba(220, 38, 38, .28);
  animation: none;
}
.buyer-outbound-call-overlay-v24874[data-state="error"] .buyer-outbound-call-wave-v24874 {
  display: none;
}

/* V248.75: no depender de prefers-color-scheme. El modal respeta el tema real de la web. */
:root[data-theme="dark"] .buyer-outbound-call-modal-v24874,
html[data-theme="dark"] .buyer-outbound-call-modal-v24874,
body.dark .buyer-outbound-call-modal-v24874,
body.theme-dark .buyer-outbound-call-modal-v24874 {
  background: linear-gradient(145deg, #07111f, #10243a);
  color: #f8fafc;
  border-color: rgba(74, 222, 128, .22);
}
:root[data-theme="dark"] .buyer-outbound-call-close-v24874,
html[data-theme="dark"] .buyer-outbound-call-close-v24874,
body.dark .buyer-outbound-call-close-v24874,
body.theme-dark .buyer-outbound-call-close-v24874 { color: #f8fafc; }
:root[data-theme="dark"] .buyer-outbound-call-copy-v24874 p,
html[data-theme="dark"] .buyer-outbound-call-copy-v24874 p,
body.dark .buyer-outbound-call-copy-v24874 p,
body.theme-dark .buyer-outbound-call-copy-v24874 p { color: #cbd5e1; }
:root[data-theme="dark"] .buyer-outbound-call-badges-v24874 span,
:root[data-theme="dark"] .buyer-outbound-call-wave-v24874,
html[data-theme="dark"] .buyer-outbound-call-badges-v24874 span,
html[data-theme="dark"] .buyer-outbound-call-wave-v24874,
body.dark .buyer-outbound-call-badges-v24874 span,
body.dark .buyer-outbound-call-wave-v24874,
body.theme-dark .buyer-outbound-call-badges-v24874 span,
body.theme-dark .buyer-outbound-call-wave-v24874 { background: rgba(15, 23, 42, .88); color: #e2e8f0; }

/* V248.90 · Ficha completa comprador: ajustes visuales seguros desde V248.78.
   Sin tocar WebRTC/realtime. El chat del panel derecho conserva su scroll interno;
   el panel completo no genera doble scroll. */
.detail-shell-v24867 .detail-contact-card-v24860 {
  border-radius: 24px;
}
.detail-shell-v24867 .customer-detail-side-panel-v24860 {
  display: grid;
  gap: 10px;
}
.detail-shell-v24867 .customer-detail-side-head-v24860 h3 {
  margin-block: 2px 0;
  line-height: 1.15;
}
.detail-shell-v24867 .customer-detail-thread-box-v24860 {
  order: 1;
}
.detail-shell-v24867 .customer-detail-visit-box-v24860,
.detail-shell-v24867 .customer-detail-contact-box-v24860 {
  order: 2;
}
.detail-shell-v24867 .customer-detail-thread-scroll-v24860 {
  max-height: min(52vh, 620px) !important;
  overflow-y: auto !important;
  scroll-behavior: auto !important;
}
.detail-shell-v24867 .customer-detail-thread-bubble-v24860.is-seller {
  background: #fff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, .08);
}
.detail-shell-v24867 .customer-detail-thread-bubble-v24860.is-customer {
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: #fff;
}
.detail-heading-side-v24871 .customer-detail-actions-v24871 {
  padding: 0;
  background: transparent;
  border: 0;
}
.detail-heading-side-v24871 .customer-detail-actions-row-v24871 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}
.detail-heading-side-v24871 .customer-detail-actions-row-v24871 .btn {
  min-height: 38px;
  font-size: .84rem;
  padding: 8px 10px;
}
.detail-heading-side-v24871 .customer-request-helper-v219 {
  display: block;
  font-size: .74rem;
  line-height: 1.28;
  color: var(--text-soft, #64748b);
}
@media (min-width: 1440px) {
  .detail-shell-v30.detail-shell-v24867 {
    grid-template-columns: minmax(178px, 210px) minmax(600px, 1fr) minmax(430px, 520px) !important;
  }
}
html[data-theme='dark'] .detail-shell-v24867 .customer-detail-thread-bubble-v24860.is-seller,
body.theme-dark .detail-shell-v24867 .customer-detail-thread-bubble-v24860.is-seller,
.dark .detail-shell-v24867 .customer-detail-thread-bubble-v24860.is-seller {
  background: #111827;
  color: #f8fafc;
  border-color: rgba(255,255,255,.12);
}

/* ===== V249.28 · Ficha completa comprador: balance centro/panel derecho y título más premium =====
   Diagnóstico visual: el panel derecho de contacto/chat estaba tomando demasiado ancho en desktop,
   estrechando el contenido central y haciendo que el título del inmueble se viera excesivamente grande.
   Ajuste seguro: solo CSS, sin tocar lógica de chat, llamadas, favoritos, visitas ni BD. */
@media (min-width: 1181px) {
  .container.detail-shell-v30.detail-shell-v24867 {
    width: min(1560px, calc(100% - 28px)) !important;
  }

  .detail-shell-v30.detail-shell-v24867 {
    grid-template-columns: minmax(178px, 210px) minmax(620px, 1fr) minmax(330px, 410px) !important;
    gap: 14px !important;
  }

  .detail-shell-v24867 .detail-contact-card-v24860 {
    width: 100%;
    max-width: 410px;
    justify-self: stretch;
  }

  .detail-heading-v57 h1 {
    font-size: clamp(2rem, 3vw, 3.15rem) !important;
    line-height: 1.04;
    letter-spacing: -0.045em;
    max-width: 16ch;
  }
}

@media (min-width: 1440px) {
  .container.detail-shell-v30.detail-shell-v24867 {
    width: min(1620px, calc(100% - 36px)) !important;
  }

  .detail-shell-v30.detail-shell-v24867 {
    grid-template-columns: minmax(178px, 210px) minmax(660px, 1fr) minmax(340px, 420px) !important;
    gap: 16px !important;
  }

  .detail-shell-v24867 .detail-contact-card-v24860 {
    max-width: 420px;
  }
}

@media (min-width: 1181px) and (max-width: 1320px) {
  .detail-shell-v30.detail-shell-v24867 {
    grid-template-columns: minmax(168px, 198px) minmax(560px, 1fr) minmax(318px, 380px) !important;
    gap: 12px !important;
  }

  .detail-shell-v24867 .detail-contact-card-v24860 {
    max-width: 380px;
  }

  .detail-heading-v57 h1 {
    font-size: clamp(1.9rem, 2.8vw, 2.75rem) !important;
    max-width: 17ch;
  }
}

/* ===== V249.29 · Ficha comprador: recuperar ancho del título y compactar precio/acciones =====
   Corrección directa sobre V249.28: el título quedó demasiado comprimido por el
   max-width corto y por el peso visual del bloque de precio/acciones. Esta capa
   no toca lógica, BD, chat, llamadas, WhatsApp ni visitas; solo reequilibra CSS
   dentro de la ficha completa del inmueble del comprador. */
@media (min-width: 1181px) {
  .container.detail-shell-v30.detail-shell-v24867 {
    width: min(1680px, calc(100% - 28px)) !important;
  }

  .detail-shell-v30.detail-shell-v24867 {
    grid-template-columns: minmax(178px, 210px) minmax(640px, 1fr) minmax(320px, 390px) !important;
    gap: 14px !important;
  }

  .detail-shell-v24867 .detail-contact-card-v24860 {
    max-width: 390px !important;
  }

  .detail-heading-v57 {
    grid-template-columns: minmax(0, 1fr) clamp(196px, 17vw, 220px) !important;
    gap: 14px !important;
    align-items: start;
  }

  .detail-heading-side-v24871 {
    width: clamp(196px, 17vw, 220px) !important;
    gap: 7px !important;
  }

  .detail-heading-v57 h1 {
    max-width: 100% !important;
    font-size: clamp(2.05rem, 2.25vw, 2.65rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    text-wrap: balance;
  }

  .detail-heading-v57 p {
    max-width: 740px !important;
  }

  .detail-heading-side-v24871 .detail-price-card-v57 {
    padding: 11px 13px !important;
    border-radius: 18px !important;
    min-width: 0 !important;
    box-shadow: none !important;
  }

  .detail-heading-side-v24871 .detail-price-card-v57 span {
    font-size: .68rem !important;
    letter-spacing: .12em !important;
    margin-bottom: 4px !important;
  }

  .detail-heading-side-v24871 .detail-price-card-v57 strong {
    font-size: clamp(1.08rem, 1.45vw, 1.38rem) !important;
    line-height: 1.08 !important;
  }

  .detail-heading-side-v24871 .customer-detail-actions-row-v24871 {
    gap: 6px !important;
  }

  .detail-heading-side-v24871 .customer-detail-actions-row-v24871 .btn,
  .customer-detail-actions-v24871 .btn {
    min-height: 32px !important;
    padding: 6px 9px !important;
    font-size: .78rem !important;
    line-height: 1.05 !important;
    border-radius: 999px !important;
  }

  .detail-heading-side-v24871 .customer-request-helper-v219,
  .customer-detail-actions-v24871 .customer-request-helper-v219 {
    font-size: .68rem !important;
    line-height: 1.22 !important;
  }
}

@media (min-width: 1440px) {
  .container.detail-shell-v30.detail-shell-v24867 {
    width: min(1760px, calc(100% - 36px)) !important;
  }

  .detail-shell-v30.detail-shell-v24867 {
    grid-template-columns: minmax(178px, 210px) minmax(720px, 1fr) minmax(330px, 400px) !important;
    gap: 16px !important;
  }

  .detail-shell-v24867 .detail-contact-card-v24860 {
    max-width: 400px !important;
  }

  .detail-heading-v57 {
    grid-template-columns: minmax(0, 1fr) clamp(205px, 15vw, 226px) !important;
  }

  .detail-heading-side-v24871 {
    width: clamp(205px, 15vw, 226px) !important;
  }

  .detail-heading-v57 h1 {
    font-size: clamp(2.15rem, 2.15vw, 2.8rem) !important;
  }
}

@media (min-width: 1181px) and (max-width: 1320px) {
  .detail-shell-v30.detail-shell-v24867 {
    grid-template-columns: minmax(168px, 196px) minmax(540px, 1fr) minmax(304px, 360px) !important;
    gap: 12px !important;
  }

  .detail-shell-v24867 .detail-contact-card-v24860 {
    max-width: 360px !important;
  }

  .detail-heading-v57 {
    grid-template-columns: minmax(0, 1fr) clamp(188px, 16vw, 206px) !important;
    gap: 12px !important;
  }

  .detail-heading-side-v24871 {
    width: clamp(188px, 16vw, 206px) !important;
  }

  .detail-heading-v57 h1 {
    max-width: 100% !important;
    font-size: clamp(1.95rem, 2.15vw, 2.35rem) !important;
    line-height: 1.09 !important;
  }

  .detail-heading-side-v24871 .detail-price-card-v57 strong {
    font-size: clamp(1.02rem, 1.35vw, 1.22rem) !important;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .detail-heading-v57 h1 {
    max-width: 100% !important;
    font-size: clamp(2rem, 4.2vw, 2.8rem) !important;
    line-height: 1.08 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }
}

/* V249.83 · Ficha completa comprador: contraste modo oscuro y agenda bloqueada hasta respuesta del vendedor. */
.customer-detail-visit-actions-v24860 .customer-detail-agenda-disabled-v24983[disabled],
.customer-detail-visit-actions-v24860 .customer-detail-agenda-disabled-v24983.is-blocked {
  opacity: 1 !important;
  cursor: not-allowed !important;
  border-style: dashed !important;
  pointer-events: none;
}

html[data-theme='dark'] .customer-detail-contact-box-v24860,
body.theme-dark .customer-detail-contact-box-v24860,
.dark .customer-detail-contact-box-v24860 {
  background: rgba(17, 24, 39, .92) !important;
  border-color: rgba(245, 158, 11, .42) !important;
  color: #f8fafc !important;
}

html[data-theme='dark'] .customer-detail-contact-box-v24860.is-open,
body.theme-dark .customer-detail-contact-box-v24860.is-open,
.dark .customer-detail-contact-box-v24860.is-open {
  background: rgba(6, 78, 59, .32) !important;
  border-color: rgba(34, 197, 94, .48) !important;
}

html[data-theme='dark'] .customer-detail-contact-box-v24860 strong,
body.theme-dark .customer-detail-contact-box-v24860 strong,
.dark .customer-detail-contact-box-v24860 strong {
  color: #f8fafc !important;
}

html[data-theme='dark'] .customer-detail-contact-btn-v24860,
body.theme-dark .customer-detail-contact-btn-v24860,
.dark .customer-detail-contact-btn-v24860 {
  background: rgba(15, 23, 42, .96) !important;
  color: #f8fafc !important;
  border-color: rgba(226, 232, 240, .34) !important;
}

html[data-theme='dark'] .customer-detail-contact-btn-v24860.is-disabled,
html[data-theme='dark'] .customer-detail-contact-btn-v24860[disabled],
body.theme-dark .customer-detail-contact-btn-v24860.is-disabled,
body.theme-dark .customer-detail-contact-btn-v24860[disabled],
.dark .customer-detail-contact-btn-v24860.is-disabled,
.dark .customer-detail-contact-btn-v24860[disabled] {
  opacity: 1 !important;
  background: rgba(30, 41, 59, .98) !important;
  color: #cbd5e1 !important;
  border-color: rgba(148, 163, 184, .38) !important;
}

html[data-theme='dark'] .customer-detail-contact-btn-v24860 span,
body.theme-dark .customer-detail-contact-btn-v24860 span,
.dark .customer-detail-contact-btn-v24860 span,
html[data-theme='dark'] .customer-detail-contact-btn-v24860 svg,
body.theme-dark .customer-detail-contact-btn-v24860 svg,
.dark .customer-detail-contact-btn-v24860 svg {
  color: inherit !important;
}

html[data-theme='dark'] .customer-detail-visit-actions-v24860 .btn.is-blocked,
html[data-theme='dark'] .customer-detail-visit-actions-v24860 .btn[disabled].is-blocked,
html[data-theme='dark'] .customer-detail-visit-actions-v24860 .customer-detail-agenda-disabled-v24983[disabled],
body.theme-dark .customer-detail-visit-actions-v24860 .btn.is-blocked,
body.theme-dark .customer-detail-visit-actions-v24860 .btn[disabled].is-blocked,
body.theme-dark .customer-detail-visit-actions-v24860 .customer-detail-agenda-disabled-v24983[disabled],
.dark .customer-detail-visit-actions-v24860 .btn.is-blocked,
.dark .customer-detail-visit-actions-v24860 .btn[disabled].is-blocked,
.dark .customer-detail-visit-actions-v24860 .customer-detail-agenda-disabled-v24983[disabled] {
  opacity: 1 !important;
  background: rgba(30, 41, 59, .98) !important;
  color: #cbd5e1 !important;
  border-color: rgba(148, 163, 184, .42) !important;
}


/* V249.84 · Ficha comprador: botones premium por estado y WhatsApp con color de marca.
   No cambia backend, emails ni reglas de notificación. Solo mejora UX/contraste y aclara el flujo. */
.customer-detail-visit-actions-v24860 {
  gap: 10px;
}

.customer-detail-visit-actions-v24860 .btn,
.customer-detail-actions-row-v24871 .btn,
.customer-detail-contact-btn-v24860 {
  position: relative;
  min-height: 46px;
  border-radius: 18px;
  font-weight: 950;
  letter-spacing: .005em;
  line-height: 1.15;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, color .16s ease, opacity .16s ease;
}

.customer-detail-visit-actions-v24860 .btn:not([disabled]):not([aria-disabled='true']),
.customer-detail-actions-row-v24871 .btn:not([disabled]):not([aria-disabled='true']) {
  border-color: color-mix(in srgb, var(--accent, #b98a5c) 62%, var(--border, #e5e7eb));
  box-shadow: 0 12px 28px rgba(15, 23, 42, .10), inset 0 1px 0 rgba(255,255,255,.24);
}

.customer-detail-visit-actions-v24860 .btn:not([disabled]):not([aria-disabled='true']):hover,
.customer-detail-actions-row-v24871 .btn:not([disabled]):not([aria-disabled='true']):hover,
.customer-detail-contact-btn-v24860:not([disabled]):not(.is-disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .14), inset 0 1px 0 rgba(255,255,255,.24);
}

.customer-detail-visit-actions-v24860 .btn[disabled],
.customer-detail-visit-actions-v24860 .btn[aria-disabled='true'],
.customer-detail-actions-row-v24871 .btn[disabled],
.customer-detail-actions-row-v24871 .btn[aria-disabled='true'] {
  opacity: 1 !important;
  cursor: not-allowed !important;
  border-style: solid !important;
  border-color: color-mix(in srgb, var(--border, #cbd5e1) 74%, transparent) !important;
  background: color-mix(in srgb, var(--surface, #ffffff) 84%, #94a3b8 10%) !important;
  color: color-mix(in srgb, var(--text-soft, #64748b) 88%, var(--heading, #111827)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2) !important;
}

.customer-detail-visit-actions-v24860 .btn.is-complete,
.customer-detail-actions-row-v24871 .btn.is-complete {
  border-color: color-mix(in srgb, #16a34a 42%, var(--border, #e5e7eb)) !important;
  background: linear-gradient(135deg, color-mix(in srgb, #16a34a 12%, var(--surface, #ffffff)), color-mix(in srgb, #b98a5c 7%, var(--surface, #ffffff))) !important;
  color: var(--heading, #111827) !important;
}

.customer-detail-visit-actions-v24860 .customer-detail-visit-primary-v24984:not([disabled]):not([aria-disabled='true']) {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent, #b98a5c) 92%, #ffffff 8%), #8f6841) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, .18) !important;
}

.customer-detail-visit-actions-v24860 .customer-detail-agenda-link-v24984:not([disabled]):not([aria-disabled='true']) {
  background: color-mix(in srgb, var(--surface, #ffffff) 92%, var(--accent, #b98a5c) 7%) !important;
  color: var(--heading, #111827) !important;
}

.customer-detail-contact-grid-v24860 {
  gap: 10px;
}

.customer-detail-contact-btn-v24860 {
  min-height: 50px;
  padding: 10px 12px;
  border-radius: 17px;
  border-color: rgba(185, 138, 92, .22);
  background: linear-gradient(145deg, #ffffff, color-mix(in srgb, #ffffff 90%, var(--accent, #b98a5c) 6%));
  color: #182235;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08), inset 0 1px 0 rgba(255,255,255,.7);
}

.customer-detail-contact-btn-v24860 > span:first-child,
.customer-detail-contact-btn-v24860 .customer-detail-wa-icon-v24860 {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, #b98a5c) 12%, #ffffff);
  flex: 0 0 auto;
}

.customer-detail-contact-btn-v24860.is-whatsapp {
  border-color: color-mix(in srgb, #25D366 62%, rgba(15,23,42,.12)) !important;
}

.customer-detail-contact-btn-v24860.is-whatsapp:not(.is-disabled) {
  background: linear-gradient(135deg, #25D366, #128C7E) !important;
  color: #ffffff !important;
  border-color: rgba(37, 211, 102, .78) !important;
  box-shadow: 0 14px 30px rgba(37, 211, 102, .24), inset 0 1px 0 rgba(255,255,255,.28) !important;
}

.customer-detail-contact-btn-v24860.is-whatsapp .customer-detail-wa-icon-v24860 {
  background: rgba(255,255,255,.18);
  color: currentColor;
}

.customer-detail-contact-btn-v24860.is-disabled,
.customer-detail-contact-btn-v24860[disabled] {
  opacity: 1 !important;
  cursor: not-allowed !important;
  border-style: solid !important;
  background: color-mix(in srgb, var(--surface, #ffffff) 86%, #94a3b8 9%) !important;
  color: color-mix(in srgb, var(--text-soft, #64748b) 92%, var(--heading, #111827)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24) !important;
}

.customer-detail-contact-btn-v24860.is-whatsapp.is-disabled,
.customer-detail-contact-btn-v24860.is-whatsapp[disabled] {
  background: color-mix(in srgb, #25D366 13%, var(--surface, #ffffff) 87%) !important;
  border-color: color-mix(in srgb, #25D366 48%, var(--border, #cbd5e1)) !important;
  color: color-mix(in srgb, #128C7E 62%, var(--text-soft, #64748b)) !important;
}

html[data-theme='dark'] .customer-detail-visit-actions-v24860 .btn[disabled],
html[data-theme='dark'] .customer-detail-visit-actions-v24860 .btn[aria-disabled='true'],
html[data-theme='dark'] .customer-detail-actions-row-v24871 .btn[disabled],
html[data-theme='dark'] .customer-detail-actions-row-v24871 .btn[aria-disabled='true'],
body.theme-dark .customer-detail-visit-actions-v24860 .btn[disabled],
body.theme-dark .customer-detail-visit-actions-v24860 .btn[aria-disabled='true'],
body.theme-dark .customer-detail-actions-row-v24871 .btn[disabled],
body.theme-dark .customer-detail-actions-row-v24871 .btn[aria-disabled='true'],
body.dark .customer-detail-visit-actions-v24860 .btn[disabled],
body.dark .customer-detail-visit-actions-v24860 .btn[aria-disabled='true'],
body.dark .customer-detail-actions-row-v24871 .btn[disabled],
body.dark .customer-detail-actions-row-v24871 .btn[aria-disabled='true'],
.dark .customer-detail-visit-actions-v24860 .btn[disabled],
.dark .customer-detail-visit-actions-v24860 .btn[aria-disabled='true'],
.dark .customer-detail-actions-row-v24871 .btn[disabled],
.dark .customer-detail-actions-row-v24871 .btn[aria-disabled='true'] {
  background: rgba(30, 41, 59, .72) !important;
  color: rgba(203, 213, 225, .86) !important;
  border-color: rgba(148, 163, 184, .34) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06) !important;
}

html[data-theme='dark'] .customer-detail-visit-actions-v24860 .customer-detail-visit-primary-v24984:not([disabled]):not([aria-disabled='true']),
body.theme-dark .customer-detail-visit-actions-v24860 .customer-detail-visit-primary-v24984:not([disabled]):not([aria-disabled='true']),
body.dark .customer-detail-visit-actions-v24860 .customer-detail-visit-primary-v24984:not([disabled]):not([aria-disabled='true']),
.dark .customer-detail-visit-actions-v24860 .customer-detail-visit-primary-v24984:not([disabled]):not([aria-disabled='true']) {
  background: linear-gradient(135deg, #c99a68, #8f6841) !important;
  color: #fff7ed !important;
  border-color: rgba(251, 191, 36, .24) !important;
}

html[data-theme='dark'] .customer-detail-contact-btn-v24860,
body.theme-dark .customer-detail-contact-btn-v24860,
body.dark .customer-detail-contact-btn-v24860,
.dark .customer-detail-contact-btn-v24860 {
  background: linear-gradient(145deg, rgba(30, 41, 59, .96), rgba(15, 23, 42, .96)) !important;
  color: #f8fafc !important;
  border-color: rgba(226, 232, 240, .18) !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.06) !important;
}

html[data-theme='dark'] .customer-detail-contact-btn-v24860.is-whatsapp:not(.is-disabled),
body.theme-dark .customer-detail-contact-btn-v24860.is-whatsapp:not(.is-disabled),
body.dark .customer-detail-contact-btn-v24860.is-whatsapp:not(.is-disabled),
.dark .customer-detail-contact-btn-v24860.is-whatsapp:not(.is-disabled) {
  background: linear-gradient(135deg, #25D366, #128C7E) !important;
  color: #ffffff !important;
  border-color: rgba(37, 211, 102, .80) !important;
  box-shadow: 0 14px 32px rgba(37, 211, 102, .18), inset 0 1px 0 rgba(255,255,255,.20) !important;
}

html[data-theme='dark'] .customer-detail-contact-btn-v24860.is-disabled,
html[data-theme='dark'] .customer-detail-contact-btn-v24860[disabled],
body.theme-dark .customer-detail-contact-btn-v24860.is-disabled,
body.theme-dark .customer-detail-contact-btn-v24860[disabled],
body.dark .customer-detail-contact-btn-v24860.is-disabled,
body.dark .customer-detail-contact-btn-v24860[disabled],
.dark .customer-detail-contact-btn-v24860.is-disabled,
.dark .customer-detail-contact-btn-v24860[disabled] {
  background: rgba(30, 41, 59, .72) !important;
  color: rgba(203, 213, 225, .86) !important;
  border-color: rgba(148, 163, 184, .34) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06) !important;
}

html[data-theme='dark'] .customer-detail-contact-btn-v24860.is-whatsapp.is-disabled,
html[data-theme='dark'] .customer-detail-contact-btn-v24860.is-whatsapp[disabled],
body.theme-dark .customer-detail-contact-btn-v24860.is-whatsapp.is-disabled,
body.theme-dark .customer-detail-contact-btn-v24860.is-whatsapp[disabled],
body.dark .customer-detail-contact-btn-v24860.is-whatsapp.is-disabled,
body.dark .customer-detail-contact-btn-v24860.is-whatsapp[disabled],
.dark .customer-detail-contact-btn-v24860.is-whatsapp.is-disabled,
.dark .customer-detail-contact-btn-v24860.is-whatsapp[disabled] {
  background: rgba(18, 140, 126, .20) !important;
  color: #b7f7d4 !important;
  border-color: rgba(37, 211, 102, .38) !important;
}

@media (max-width: 520px) {
  .customer-detail-visit-actions-v24860,
  .customer-detail-contact-grid-v24860 {
    grid-template-columns: 1fr;
  }
}


/* ===== V249.85 · Ficha comprador: solicitud de visita, iconos legibles y WhatsApp marca exacta =====
   Ajuste posterior a V249.84 según prueba visual real del comprador:
   - El botón de visita inicia como "Solicitar visita" atenuado, no como "Ver agenda".
   - Solo cuando ya existe visita agendada se muestra "Ver visita agendada".
   - Los iconos son SVG de alto contraste y no dependen de emojis del sistema.
   - WhatsApp activo usa exactamente #25D366; protegido usa versión atenuada. */
.customer-detail-visit-actions-v24860 .customer-detail-agenda-link-v24984.is-scheduled:not([disabled]):not([aria-disabled='true']) {
  background: linear-gradient(135deg, color-mix(in srgb, #16a34a 88%, #ffffff 12%), #15803d) !important;
  color: #ffffff !important;
  border-color: rgba(34, 197, 94, .72) !important;
  box-shadow: 0 14px 30px rgba(22, 163, 74, .22), inset 0 1px 0 rgba(255,255,255,.22) !important;
}

.customer-detail-visit-actions-v24860 .customer-detail-agenda-link-v24984[disabled],
.customer-detail-visit-actions-v24860 .customer-detail-agenda-link-v24984[aria-disabled='true'] {
  background: color-mix(in srgb, var(--surface, #ffffff) 85%, #64748b 10%) !important;
  color: color-mix(in srgb, var(--text-soft, #64748b) 92%, var(--heading, #111827)) !important;
  border-color: color-mix(in srgb, var(--border, #cbd5e1) 82%, #94a3b8 18%) !important;
}

.customer-detail-contact-btn-v24860 .customer-detail-icon-v24985,
.customer-detail-contact-btn-v24860 .customer-detail-wa-icon-v24860.customer-detail-icon-v24985 {
  display: inline-grid !important;
  place-items: center !important;
  width: 25px !important;
  height: 25px !important;
  min-width: 25px !important;
  border-radius: 999px !important;
  background: rgba(185, 138, 92, .14) !important;
  color: #8f6841 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35) !important;
}

.customer-detail-contact-btn-v24860.is-whatsapp {
  border-color: color-mix(in srgb, #25D366 62%, rgba(15,23,42,.12)) !important;
}

.customer-detail-contact-btn-v24860.is-whatsapp:not(.is-disabled),
.customer-detail-contact-btn-v24860.is-whatsapp:not([disabled]) {
  background: #25D366 !important;
  color: #ffffff !important;
  border-color: #25D366 !important;
  box-shadow: 0 14px 30px rgba(37, 211, 102, .26), inset 0 1px 0 rgba(255,255,255,.26) !important;
}

.customer-detail-contact-btn-v24860.is-whatsapp:not(.is-disabled) .customer-detail-wa-icon-v24860,
.customer-detail-contact-btn-v24860.is-whatsapp:not([disabled]) .customer-detail-wa-icon-v24860 {
  background: rgba(255,255,255,.24) !important;
  color: #ffffff !important;
}

.customer-detail-contact-btn-v24860.is-whatsapp.is-disabled,
.customer-detail-contact-btn-v24860.is-whatsapp[disabled] {
  background: color-mix(in srgb, #25D366 15%, var(--surface, #ffffff) 85%) !important;
  border-color: color-mix(in srgb, #25D366 44%, var(--border, #cbd5e1)) !important;
  color: color-mix(in srgb, #128C7E 68%, var(--text-soft, #64748b)) !important;
}

.customer-detail-contact-btn-v24860.is-whatsapp.is-disabled .customer-detail-wa-icon-v24860,
.customer-detail-contact-btn-v24860.is-whatsapp[disabled] .customer-detail-wa-icon-v24860 {
  background: color-mix(in srgb, #25D366 22%, #ffffff 78%) !important;
  color: #128C7E !important;
}

html[data-theme='dark'] .customer-detail-visit-actions-v24860 .customer-detail-agenda-link-v24984[disabled],
html[data-theme='dark'] .customer-detail-visit-actions-v24860 .customer-detail-agenda-link-v24984[aria-disabled='true'],
body.theme-dark .customer-detail-visit-actions-v24860 .customer-detail-agenda-link-v24984[disabled],
body.theme-dark .customer-detail-visit-actions-v24860 .customer-detail-agenda-link-v24984[aria-disabled='true'],
body.dark .customer-detail-visit-actions-v24860 .customer-detail-agenda-link-v24984[disabled],
body.dark .customer-detail-visit-actions-v24860 .customer-detail-agenda-link-v24984[aria-disabled='true'],
.dark .customer-detail-visit-actions-v24860 .customer-detail-agenda-link-v24984[disabled],
.dark .customer-detail-visit-actions-v24860 .customer-detail-agenda-link-v24984[aria-disabled='true'] {
  background: rgba(30, 41, 59, .62) !important;
  color: rgba(226, 232, 240, .82) !important;
  border-color: rgba(148, 163, 184, .32) !important;
}

html[data-theme='dark'] .customer-detail-contact-btn-v24860 .customer-detail-icon-v24985,
html[data-theme='dark'] .customer-detail-contact-btn-v24860 .customer-detail-wa-icon-v24860.customer-detail-icon-v24985,
body.theme-dark .customer-detail-contact-btn-v24860 .customer-detail-icon-v24985,
body.theme-dark .customer-detail-contact-btn-v24860 .customer-detail-wa-icon-v24860.customer-detail-icon-v24985,
body.dark .customer-detail-contact-btn-v24860 .customer-detail-icon-v24985,
body.dark .customer-detail-contact-btn-v24860 .customer-detail-wa-icon-v24860.customer-detail-icon-v24985,
.dark .customer-detail-contact-btn-v24860 .customer-detail-icon-v24985,
.dark .customer-detail-contact-btn-v24860 .customer-detail-wa-icon-v24860.customer-detail-icon-v24985 {
  background: rgba(248, 250, 252, .13) !important;
  color: #f8fafc !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08) !important;
}

html[data-theme='dark'] .customer-detail-contact-btn-v24860.is-whatsapp:not(.is-disabled),
html[data-theme='dark'] .customer-detail-contact-btn-v24860.is-whatsapp:not([disabled]),
body.theme-dark .customer-detail-contact-btn-v24860.is-whatsapp:not(.is-disabled),
body.theme-dark .customer-detail-contact-btn-v24860.is-whatsapp:not([disabled]),
body.dark .customer-detail-contact-btn-v24860.is-whatsapp:not(.is-disabled),
body.dark .customer-detail-contact-btn-v24860.is-whatsapp:not([disabled]),
.dark .customer-detail-contact-btn-v24860.is-whatsapp:not(.is-disabled),
.dark .customer-detail-contact-btn-v24860.is-whatsapp:not([disabled]) {
  background: #25D366 !important;
  color: #ffffff !important;
  border-color: #25D366 !important;
}

html[data-theme='dark'] .customer-detail-contact-btn-v24860.is-whatsapp.is-disabled,
html[data-theme='dark'] .customer-detail-contact-btn-v24860.is-whatsapp[disabled],
body.theme-dark .customer-detail-contact-btn-v24860.is-whatsapp.is-disabled,
body.theme-dark .customer-detail-contact-btn-v24860.is-whatsapp[disabled],
body.dark .customer-detail-contact-btn-v24860.is-whatsapp.is-disabled,
body.dark .customer-detail-contact-btn-v24860.is-whatsapp[disabled],
.dark .customer-detail-contact-btn-v24860.is-whatsapp.is-disabled,
.dark .customer-detail-contact-btn-v24860.is-whatsapp[disabled] {
  background: rgba(37, 211, 102, .14) !important;
  color: rgba(210, 255, 229, .88) !important;
  border-color: rgba(37, 211, 102, .34) !important;
}

html[data-theme='dark'] .customer-detail-contact-btn-v24860.is-whatsapp.is-disabled .customer-detail-wa-icon-v24860,
html[data-theme='dark'] .customer-detail-contact-btn-v24860.is-whatsapp[disabled] .customer-detail-wa-icon-v24860,
body.theme-dark .customer-detail-contact-btn-v24860.is-whatsapp.is-disabled .customer-detail-wa-icon-v24860,
body.theme-dark .customer-detail-contact-btn-v24860.is-whatsapp[disabled] .customer-detail-wa-icon-v24860,
body.dark .customer-detail-contact-btn-v24860.is-whatsapp.is-disabled .customer-detail-wa-icon-v24860,
body.dark .customer-detail-contact-btn-v24860.is-whatsapp[disabled] .customer-detail-wa-icon-v24860,
.dark .customer-detail-contact-btn-v24860.is-whatsapp.is-disabled .customer-detail-wa-icon-v24860,
.dark .customer-detail-contact-btn-v24860.is-whatsapp[disabled] .customer-detail-wa-icon-v24860 {
  background: rgba(37, 211, 102, .20) !important;
  color: #25D366 !important;
}


/* ===== V249.86 · Ficha comprador: WhatsApp nítido y estados premium =====
   Corrige icono de WhatsApp borroso y evita que los botones protegidos hereden estilo activo. */
.customer-detail-contact-btn-v24860 .customer-detail-icon-v24985 svg,
.customer-detail-contact-btn-v24860 .customer-detail-wa-icon-v24860.customer-detail-icon-v24985 svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
  transform: translateZ(0) !important;
}

.customer-detail-contact-btn-v24860.is-whatsapp:not(.is-disabled):not([disabled]) {
  background: #25D366 !important;
  color: #ffffff !important;
  border-color: #25D366 !important;
  box-shadow: 0 16px 34px rgba(37, 211, 102, .30), inset 0 1px 0 rgba(255,255,255,.28) !important;
}

.customer-detail-contact-btn-v24860.is-whatsapp:not(.is-disabled):not([disabled]) .customer-detail-wa-icon-v24860.customer-detail-icon-v24985 {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  background: rgba(255,255,255,.96) !important;
  color: #25D366 !important;
  box-shadow: 0 6px 16px rgba(0,0,0,.10), inset 0 1px 0 rgba(255,255,255,.65) !important;
}

.customer-detail-contact-btn-v24860.is-whatsapp:not(.is-disabled):not([disabled]) .customer-detail-wa-icon-v24860.customer-detail-icon-v24985 svg {
  width: 19px !important;
  height: 19px !important;
  fill: currentColor !important;
}

.customer-detail-contact-btn-v24860.is-whatsapp.is-disabled,
.customer-detail-contact-btn-v24860.is-whatsapp[disabled] {
  background: color-mix(in srgb, #25D366 14%, var(--surface, #ffffff) 86%) !important;
  border-color: color-mix(in srgb, #25D366 38%, var(--border, #cbd5e1) 62%) !important;
  color: color-mix(in srgb, #128C7E 66%, var(--text-soft, #64748b) 34%) !important;
  box-shadow: none !important;
}

.customer-detail-contact-btn-v24860.is-whatsapp.is-disabled .customer-detail-wa-icon-v24860.customer-detail-icon-v24985,
.customer-detail-contact-btn-v24860.is-whatsapp[disabled] .customer-detail-wa-icon-v24860.customer-detail-icon-v24985 {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  background: rgba(37, 211, 102, .18) !important;
  color: #25D366 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24) !important;
}

html[data-theme='dark'] .customer-detail-contact-btn-v24860.is-whatsapp.is-disabled,
html[data-theme='dark'] .customer-detail-contact-btn-v24860.is-whatsapp[disabled],
body.theme-dark .customer-detail-contact-btn-v24860.is-whatsapp.is-disabled,
body.theme-dark .customer-detail-contact-btn-v24860.is-whatsapp[disabled],
body.dark .customer-detail-contact-btn-v24860.is-whatsapp.is-disabled,
body.dark .customer-detail-contact-btn-v24860.is-whatsapp[disabled],
.dark .customer-detail-contact-btn-v24860.is-whatsapp.is-disabled,
.dark .customer-detail-contact-btn-v24860.is-whatsapp[disabled] {
  background: rgba(37, 211, 102, .16) !important;
  border-color: rgba(37, 211, 102, .42) !important;
  color: rgba(220, 255, 235, .90) !important;
  box-shadow: none !important;
}

html[data-theme='dark'] .customer-detail-contact-btn-v24860.is-whatsapp.is-disabled .customer-detail-wa-icon-v24860.customer-detail-icon-v24985,
html[data-theme='dark'] .customer-detail-contact-btn-v24860.is-whatsapp[disabled] .customer-detail-wa-icon-v24860.customer-detail-icon-v24985,
body.theme-dark .customer-detail-contact-btn-v24860.is-whatsapp.is-disabled .customer-detail-wa-icon-v24860.customer-detail-icon-v24985,
body.theme-dark .customer-detail-contact-btn-v24860.is-whatsapp[disabled] .customer-detail-wa-icon-v24860.customer-detail-icon-v24985,
body.dark .customer-detail-contact-btn-v24860.is-whatsapp.is-disabled .customer-detail-wa-icon-v24860.customer-detail-icon-v24985,
body.dark .customer-detail-contact-btn-v24860.is-whatsapp[disabled] .customer-detail-wa-icon-v24860.customer-detail-icon-v24985,
.dark .customer-detail-contact-btn-v24860.is-whatsapp.is-disabled .customer-detail-wa-icon-v24860.customer-detail-icon-v24985,
.dark .customer-detail-contact-btn-v24860.is-whatsapp[disabled] .customer-detail-wa-icon-v24860.customer-detail-icon-v24985 {
  background: rgba(37, 211, 102, .22) !important;
  color: #25D366 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10) !important;
}

html[data-theme='dark'] .customer-detail-contact-btn-v24860.is-whatsapp:not(.is-disabled):not([disabled]),
body.theme-dark .customer-detail-contact-btn-v24860.is-whatsapp:not(.is-disabled):not([disabled]),
body.dark .customer-detail-contact-btn-v24860.is-whatsapp:not(.is-disabled):not([disabled]),
.dark .customer-detail-contact-btn-v24860.is-whatsapp:not(.is-disabled):not([disabled]) {
  background: #25D366 !important;
  color: #ffffff !important;
  border-color: #25D366 !important;
}

html[data-theme='dark'] .customer-detail-contact-btn-v24860.is-whatsapp:not(.is-disabled):not([disabled]) .customer-detail-wa-icon-v24860.customer-detail-icon-v24985,
body.theme-dark .customer-detail-contact-btn-v24860.is-whatsapp:not(.is-disabled):not([disabled]) .customer-detail-wa-icon-v24860.customer-detail-icon-v24985,
body.dark .customer-detail-contact-btn-v24860.is-whatsapp:not(.is-disabled):not([disabled]) .customer-detail-wa-icon-v24860.customer-detail-icon-v24985,
.dark .customer-detail-contact-btn-v24860.is-whatsapp:not(.is-disabled):not([disabled]) .customer-detail-wa-icon-v24860.customer-detail-icon-v24985 {
  background: #ffffff !important;
  color: #25D366 !important;
}

/* ===== V249.87 · Ficha completa comprador: contraste real del menú izquierdo en modo oscuro =====
   Corrección específica para .customer-detail-left-nav-v24867 en property-detail.html.
   V249.86 corrigió el sidebar del portal, pero esta ficha usa otra clase; por eso Resumen/hover seguían ilegibles.
   No toca lógica, backend, emails, chat ni flujo de visitas. */
:root[data-theme="dark"] .customer-detail-left-nav-v24867,
html[data-theme="dark"] .customer-detail-left-nav-v24867,
body.theme-dark .customer-detail-left-nav-v24867,
body.dark .customer-detail-left-nav-v24867,
.dark .customer-detail-left-nav-v24867 {
  background: rgba(15, 23, 42, .96) !important;
  border-color: rgba(148, 163, 184, .24) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255,255,255,.06) !important;
}

:root[data-theme="dark"] .customer-detail-left-nav-v24867 a,
html[data-theme="dark"] .customer-detail-left-nav-v24867 a,
body.theme-dark .customer-detail-left-nav-v24867 a,
body.dark .customer-detail-left-nav-v24867 a,
.dark .customer-detail-left-nav-v24867 a {
  color: #dbeafe !important;
  background: transparent !important;
  border-color: transparent !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

:root[data-theme="dark"] .customer-detail-left-nav-v24867 a span,
html[data-theme="dark"] .customer-detail-left-nav-v24867 a span,
body.theme-dark .customer-detail-left-nav-v24867 a span,
body.dark .customer-detail-left-nav-v24867 a span,
.dark .customer-detail-left-nav-v24867 a span {
  color: inherit !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

:root[data-theme="dark"] .customer-detail-left-nav-v24867 a:hover,
:root[data-theme="dark"] .customer-detail-left-nav-v24867 a:focus-visible,
html[data-theme="dark"] .customer-detail-left-nav-v24867 a:hover,
html[data-theme="dark"] .customer-detail-left-nav-v24867 a:focus-visible,
body.theme-dark .customer-detail-left-nav-v24867 a:hover,
body.theme-dark .customer-detail-left-nav-v24867 a:focus-visible,
body.dark .customer-detail-left-nav-v24867 a:hover,
body.dark .customer-detail-left-nav-v24867 a:focus-visible,
.dark .customer-detail-left-nav-v24867 a:hover,
.dark .customer-detail-left-nav-v24867 a:focus-visible {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(214, 167, 107, .26), rgba(30, 41, 59, .96)) !important;
  border-color: rgba(214, 167, 107, .58) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255,255,255,.10) !important;
  outline: none !important;
}

:root[data-theme="dark"] .customer-detail-left-nav-v24867 a.is-active,
:root[data-theme="dark"] .customer-detail-left-nav-v24867 a.is-active:hover,
:root[data-theme="dark"] .customer-detail-left-nav-v24867 a.is-active:focus-visible,
html[data-theme="dark"] .customer-detail-left-nav-v24867 a.is-active,
html[data-theme="dark"] .customer-detail-left-nav-v24867 a.is-active:hover,
html[data-theme="dark"] .customer-detail-left-nav-v24867 a.is-active:focus-visible,
body.theme-dark .customer-detail-left-nav-v24867 a.is-active,
body.theme-dark .customer-detail-left-nav-v24867 a.is-active:hover,
body.theme-dark .customer-detail-left-nav-v24867 a.is-active:focus-visible,
body.dark .customer-detail-left-nav-v24867 a.is-active,
body.dark .customer-detail-left-nav-v24867 a.is-active:hover,
body.dark .customer-detail-left-nav-v24867 a.is-active:focus-visible,
.dark .customer-detail-left-nav-v24867 a.is-active,
.dark .customer-detail-left-nav-v24867 a.is-active:hover,
.dark .customer-detail-left-nav-v24867 a.is-active:focus-visible {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(214, 167, 107, .34), rgba(30, 41, 59, .98)) !important;
  border-color: rgba(214, 167, 107, .78) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255,255,255,.12) !important;
}

:root[data-theme="dark"] .customer-detail-left-nav-v24867 a.is-active span,
:root[data-theme="dark"] .customer-detail-left-nav-v24867 a:hover span,
:root[data-theme="dark"] .customer-detail-left-nav-v24867 a:focus-visible span,
html[data-theme="dark"] .customer-detail-left-nav-v24867 a.is-active span,
html[data-theme="dark"] .customer-detail-left-nav-v24867 a:hover span,
html[data-theme="dark"] .customer-detail-left-nav-v24867 a:focus-visible span,
body.theme-dark .customer-detail-left-nav-v24867 a.is-active span,
body.theme-dark .customer-detail-left-nav-v24867 a:hover span,
body.theme-dark .customer-detail-left-nav-v24867 a:focus-visible span,
body.dark .customer-detail-left-nav-v24867 a.is-active span,
body.dark .customer-detail-left-nav-v24867 a:hover span,
body.dark .customer-detail-left-nav-v24867 a:focus-visible span,
.dark .customer-detail-left-nav-v24867 a.is-active span,
.dark .customer-detail-left-nav-v24867 a:hover span,
.dark .customer-detail-left-nav-v24867 a:focus-visible span {
  color: #ffffff !important;
  opacity: 1 !important;
  font-weight: 950 !important;
}

