
/* =====================================================
   🎨 TOKENS / VARIABLES (SIEMPRE ARRIBA)
===================================================== */

:root {
  --ui-primary: #ec6c04;
  --ui-primary-hover: #d95f00;
  --ui-brand-orange: #ec6c04;
  --ui-cta: #ec6c04;
  --ui-cta-hover: #d95f00;

  --ui-success: #16a34a;
  --ui-danger: #dc2626;

  /* Indicadores / badges semánticos (unificado, no semáforo Bootstrap) */
  --ui-status-ok: #16a34a;
  --ui-status-ok-bg: #dcfce7;
  --ui-status-ok-text: #166534;
  --ui-status-attention: #d97706;
  --ui-status-attention-bg: #fef3c7;
  --ui-status-attention-text: #92400e;
  --ui-status-urgent: #dc2626;
  --ui-status-urgent-bg: #fee2e2;
  --ui-status-urgent-text: #991b1b;
  --ui-status-info: #0891b2;
  --ui-status-info-bg: #e0f2fe;
  --ui-status-info-text: #0c4a6e;
  --ui-status-neutral: #6b7280;
  --ui-status-neutral-bg: #f3f4f6;
  --ui-status-neutral-text: #374151;

  --ui-link: #00A9A2;
  --ui-link-hover: #008f89;
  --bs-link-color: #00A9A2;
  --bs-link-hover-color: #008f89;
  --bs-link-color-rgb: 0, 169, 162;
  --bs-link-hover-color-rgb: 0, 143, 137;
  --ui-tab-active: #ec6c04;
  --ui-tab-inactive: #6b7280;

  --ui-bg: #f9fafb;
  --ui-card: #ffffff;
  --ui-border: #e5e7eb;

  --ui-radius: 12px;
  --ui-radius-lg: 16px;

  --ui-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --ui-shadow-md: 0 4px 10px rgba(0,0,0,0.08);

  /* Texto: principal oscuro; gris solo para secundario */
  --ui-text: #111827;
  --ui-text-body: #1f2937;
  --ui-text-soft: #4b5563;
  --ui-text-muted: #6b7280;
  --ui-text-faint: #9ca3af;
}

/* =====================================================
   🎨 UTILIDADES DE COLOR
===================================================== */

.ui-text-primary {
  color: var(--ui-primary);
}

.ui-text-success {
  color: var(--ui-success);
}

.ui-text-danger {
  color: var(--ui-danger);
}

.ui-text-muted {
  color: var(--ui-text-muted);
}

a:not(.btn):not(.nav-link):not(.ui-menu-item):not(.ui-btn-cta):not(.ui-btn-secondary):not(.ui-btn-outline):not(.ui-btn-success):not(.ui-tab):not(.sm-v-tab-link):not(.navbar-brand):not(.ui-marketing-nav-link):not(.ui-card-remate):not(.ui-card-remate *) {
  color: var(--ui-link);
}

a:not(.btn):not(.nav-link):not(.ui-menu-item):not(.ui-btn-cta):not(.ui-btn-secondary):not(.ui-btn-outline):not(.ui-btn-success):not(.ui-tab):not(.sm-v-tab-link):not(.navbar-brand):not(.ui-marketing-nav-link):not(.ui-card-remate):not(.ui-card-remate *):hover,
a:not(.btn):not(.nav-link):not(.ui-menu-item):not(.ui-btn-cta):not(.ui-btn-secondary):not(.ui-btn-outline):not(.ui-btn-success):not(.ui-tab):not(.sm-v-tab-link):not(.navbar-brand):not(.ui-marketing-nav-link):not(.ui-card-remate):not(.ui-card-remate *):focus {
  color: var(--ui-link-hover);
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--ui-brand-orange);
}

.form-check-input:checked {
  background-color: var(--ui-brand-orange) !important;
  border-color: var(--ui-brand-orange) !important;
}

.form-check-input:focus {
  border-color: var(--ui-brand-orange) !important;
  box-shadow: 0 0 0 0.2rem rgba(236, 108, 4, 0.18) !important;
}

/* =====================================================
   BASE UI
===================================================== */

body {
  font-family: 'Inter', sans-serif;
  background: #f8f9fa;
  margin: 0;
}

.ui-app {
  display: flex;
  min-height: 100vh;
}

/* CONTENIDO */
.ui-main {
  flex: 1;
  padding: 40px;
  min-width: 0; /* 🔥 evita overflow raro */
}

/* CARD */
.ui-card {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #eee;
}

/* =========================
   SECTION HEADER (encabezado de pantallas)
   ========================= */
.ui-section-header {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.ui-section-header__title {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.ui-section-header__subtitle {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
}

/* =========================
   EMPTY STATE (estado sin contenido)
   ========================= */
.ui-empty-state {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ui-empty-state + .ui-empty-state,
.ui-section-header + .ui-empty-state {
  margin-top: 12px;
}

.ui-empty-state__icon {
  color: var(--ui-link, #00A9A2);
  display: inline-flex;
  margin-bottom: 12px;
}

.ui-empty-state__icon svg,
.ui-empty-state__icon .sm-empty-icon--asset {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.sm-empty-icon {
  overflow: visible;
}

.sm-empty-icon--asset {
  color: transparent;
}

.ui-empty-state__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}

.ui-empty-state__text {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.45;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.ui-empty-state__extra {
  margin-bottom: 16px;
}

.ui-empty-state__cta,
a.ui-empty-state__cta {
  display: inline-block;
  background: #fff;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 8px 22px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ui-empty-state__cta:hover,
.ui-empty-state__cta:focus {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
  text-decoration: none;
}

@media (max-width: 575.98px) {
  .ui-empty-state {
    padding: 24px 16px;
  }
  .ui-empty-state__icon svg {
    width: 56px;
    height: 56px;
  }
}

/* Banner "Tu siguiente paso" (comprador) */
.sm-siguiente-paso {
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid transparent;
}
.sm-siguiente-paso--warning {
  background: var(--ui-status-attention-bg);
  border-color: #fcd34d;
  color: var(--ui-status-attention-text);
}
.sm-siguiente-paso--info {
  background: var(--ui-status-info-bg);
  border-color: #7dd3fc;
  color: var(--ui-status-info-text);
}
.sm-siguiente-paso--success {
  background: var(--ui-status-ok-bg);
  border-color: #86efac;
  color: var(--ui-status-ok-text);
}
.sm-siguiente-paso__icon {
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0.9;
}
.sm-siguiente-paso__text strong {
  font-weight: 600;
}

.sm-siguiente-paso__btn {
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 600;
}

.sm-siguiente-paso__actions {
  width: 100%;
}

@media (min-width: 768px) {
  .sm-siguiente-paso__actions {
    width: auto;
  }
}
.sm-flujo-pasos .badge {
  min-width: 1.5rem;
  text-align: center;
}

/* =========================
   HOME VENDEDOR - cards de acceso rápido
   ========================= */
.ui-vendedor-home-cards .ui-vendedor-home-card {
  text-align: left;
  min-height: 220px;
}

.ui-vendedor-home-card .ui-btn-cta,
.ui-vendedor-home-card .ui-btn-secondary {
  display: block;
  width: 100%;
}

.ui-vendedor-home-card__icon {
  color: var(--ui-link, #00A9A2);
  margin-bottom: 12px;
  display: inline-flex;
}

.ui-vendedor-home-card__icon svg,
.ui-vendedor-home-card__icon .sm-empty-icon--asset {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
}

.ui-vendedor-home-card__title {
  font-weight: 600;
  color: #0f172a;
}

.ui-vendedor-home-card__text {
  line-height: 1.45;
}

/* INPUTS */
.ui-input,
.ui-select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

/* =====================================================
   BOTONES
===================================================== */

.ui-btn-cta {
  background: #f97316;
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.ui-btn-primary {
  background: #f97316;
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
}

.ui-btn-danger {
  background: #ef4444;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
}

.ui-btn-success {
  background: #198754;
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
}

.ui-btn-outline {
  border: 1px solid #ddd;
  padding: 8px 14px;
  border-radius: 8px;
  background: white;
}

.ui-btn-group {
  display: flex;
  gap: 8px;
}

/* =====================================================
   SIDEBAR (UNIFICADO)
===================================================== */

.ui-sidebar {
  width: 260px;
  height: 100vh;
  position: sticky;
  top: 0;

  display: flex;
  flex-direction: column;

  padding: 20px 0;

  background: var(--ui-card);
  border-right: 1px solid var(--ui-border);

  overflow-y: auto;
  flex-shrink: 0;
}

/* HEADER */
.ui-sidebar-header {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--ui-border);
}

/* LOGO */
.ui-sidebar-logo {
  width: 140px;
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
}

/* USER */
.ui-user {
  font-size: 13px;
  color: var(--ui-text-body);
  line-height: 1.4;
  margin-bottom: 10px;
}

.ui-user small {
  font-size: 11px;
  color: var(--ui-text-faint);
  text-transform: uppercase;
}

/* MENU */
.ui-menu {
  padding: 15px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* SECCIONES */
.ui-menu-section {
  font-size: 11px;
  color: var(--ui-text-faint);
  margin: 18px 12px 6px;
  font-weight: 600;
  text-transform: uppercase;
}

/* ITEMS */
.ui-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--ui-radius);
  text-decoration: none;
  color: var(--ui-text-body);
  font-size: 14px;
  position: relative;
  transition: all 0.2s ease;
}

/* ICONOS */
.ui-menu-item i {
  font-size: 16px;
  color: var(--ui-text-faint);
}

/* HOVER */
.ui-menu-item:hover {
  background: #f9fafb;
}

/* ACTIVO */
.ui-menu-item.active {
  color: var(--ui-primary);
  font-weight: 500;
  background: #fff7ed;
}

/* ICONO ACTIVO */
.ui-menu-item.active i {
  color: var(--ui-primary);
}

/* BARRA IZQUIERDA */
.ui-menu-item.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 8px;
  height: 24px;
  width: 3px;
  background: var(--ui-primary);
  border-radius: 2px;
}

/* FLECHA DERECHA (UX PRO) */
.ui-menu-item::after {
  content: "›";
  margin-left: auto;
  color: #d1d5db;
  font-size: 14px;
}

/* EXCEPCIONES */
.ui-menu-item.ui-logout::after {
  display: none;
}

/* LOGOUT */
.ui-menu-item.ui-logout {
  margin-top: auto;
  color: var(--ui-danger);
}

.ui-menu-item.ui-logout i {
  color: var(--ui-danger);
}

.ui-menu-item.ui-logout:hover {
  background: #fef2f2;
}

/* =====================================================
   TABLAS
===================================================== */

.ui-table {
  width: 100%;
  border-collapse: collapse;
}

.ui-table thead th {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  border-bottom: 1px solid #eee;
  padding: 10px;
}

.ui-table tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid #f1f1f1;
}

.ui-table tbody tr:hover {
  background: #fafafa;
}

/* FORM TABLE */
.ui-table-form th {
  font-size: 12px;
  color: #999;
}

/* Contenedor con scroll: evita que la tabla crezca indefinidamente */
.ui-table-wrapper {
  --ui-table-scroll-max-h: min(52vh, 440px);
  max-height: var(--ui-table-scroll-max-h);
  overflow-y: auto;
  overflow-x: auto;
  display: block;
  text-align: left;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

/* Misma idea en listados “de página”; un poco más alto que el inline del remate */
.ui-table-wrapper.ui-table-wrapper--page {
  --ui-table-scroll-max-h: min(62vh, 560px);
}

.ui-vend-historial-table-wrap.ui-table-wrapper--page {
  --ui-table-scroll-max-h: min(58vh, 520px);
}

.ui-table-wrapper--page {
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
}

/* Cabecera visible al hacer scroll vertical */
.ui-table-wrapper .ui-table thead th,
.ui-table-wrapper .ui-table-form thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 0 1px 0 #eee;
}

.ui-table .form-control,
.ui-table .form-select {
  margin-bottom: 0;
}

/* =====================================================
   BADGES
===================================================== */

.ui-badge-success {
  background: var(--ui-status-ok);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.ui-badge-danger {
  background: var(--ui-status-urgent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.ui-badge-muted {
  background: var(--ui-status-neutral);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.ui-badge-adjudicado {
  background: var(--ui-status-ok-bg);
  color: var(--ui-status-ok-text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.ui-badge-outbid {
  background: var(--ui-status-attention-bg);
  color: var(--ui-status-attention-text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

/* Indicadores numéricos (sidebar, tabs) y estados en listados */
.ui-ind-badge {
  display: inline-block;
  padding: 0.2em 0.5em;
  font-size: 0.72em;
  font-weight: 600;
  line-height: 1.25;
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
  border: none;
}

/* Evita que .badge de Bootstrap pise colores semánticos */
.badge.ui-ind-badge {
  --bs-badge-padding-x: 0;
  --bs-badge-padding-y: 0;
}

.ui-ind-badge--ok {
  background-color: var(--ui-status-ok);
  color: #fff;
}

.ui-ind-badge--attention {
  background-color: var(--ui-status-attention);
  color: #fff;
}

.ui-ind-badge--urgent {
  background-color: var(--ui-status-urgent);
  color: #fff;
}

.ui-ind-badge--info {
  background-color: var(--ui-status-info);
  color: #fff;
}

.ui-ind-badge--neutral {
  background-color: var(--ui-status-neutral);
  color: #fff;
}

.ui-ind-badge--ok-soft {
  background-color: var(--ui-status-ok-bg);
  color: var(--ui-status-ok-text);
}

.ui-ind-badge--attention-soft {
  background-color: var(--ui-status-attention-bg);
  color: var(--ui-status-attention-text);
}

.ui-ind-badge--urgent-soft {
  background-color: var(--ui-status-urgent-bg);
  color: var(--ui-status-urgent-text);
}

.ui-ind-badge--info-soft {
  background-color: var(--ui-status-info-bg);
  color: var(--ui-status-info-text);
}

.ui-ind-badge--neutral-soft {
  background-color: var(--ui-status-neutral-bg);
  color: var(--ui-status-neutral-text);
}

.sm-sidebar-nav-badge,
.sm-remate-tab-badge,
.sm-insp-tab-badge,
.sm-chat-tab-badge {
  font-size: 0.65rem !important;
  padding: 0.15em 0.45em;
}

.sm-outcome-hero {
  padding: 28px 24px;
}

.sm-outcome-hero-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.sm-outcome-hero-icon--gavel {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Iconos resultado adjudicación (teal alineado a maquetas) */
.sm-outcome-svg-teal {
  color: #20c997;
  display: block;
  flex-shrink: 0;
}

/* Mazo de subasta (SVG) — sustituye bi-hammer en héroe perdedor */
.sm-outcome-svg-gavel {
  transform: rotate(-18deg);
  transform-origin: 50% 55%;
}

.ui-svg-gavel {
  display: block;
  flex-shrink: 0;
}

.ui-marketing-brand__gavel {
  display: block;
}

.ui-sidebar-icon-gavel {
  display: block;
}

.sm-commission-inset {
  background: #fff;
  border: 1px solid var(--ui-border) !important;
  box-shadow: var(--ui-shadow-sm);
}

/* =====================================================
   REMATES / STATS
===================================================== */

.ui-remate-stats {
  display: flex;
  gap: 20px;
  background: #f8f9fa;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid #eee;
}

.ui-stat {
  flex: 1;
}

.ui-stat-label {
  font-size: 12px;
  color: #6c757d;
}

.ui-stat-value {
  font-size: 14px;
  font-weight: 600;
}

.ui-stat-highlight .ui-stat-value {
  font-size: 20px;
}

/* =====================================================
   ALERTAS / ACCORDION
===================================================== */

.ui-alert {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.ui-alert-header {
  display: flex;
  justify-content: space-between;
  padding: 16px;
  background: #f8f9fa;
  cursor: pointer;
}

.ui-alert-body {
  padding: 16px;
  display: none;
  border-top: 1px solid #eee;
}

/* =====================================================
   UPLOAD
===================================================== */

.ui-upload-box {
  border: 1px dashed #ccc;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

/* =====================================================
   AUTH (LOGIN)
===================================================== */

.ui-auth {
  display: flex;
  min-height: 100vh;
}

.ui-auth-left {
  position: relative;
  flex: 1;
  background: url('../images/bg-login.jpg') center/cover;
  display: flex;
  align-items: center;
  padding: 60px;
  color: white;
}

.ui-auth-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 64, 0.75);
}

.ui-auth-content {
  position: relative;
  z-index: 2;
}

.ui-auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ui-auth-box {
  width: 400px;
}

.ui-btn-auth {
  background: #e5e5e5;
  border-radius: 20px;
  padding: 12px;
  font-weight: 600;
}

.ui-btn-auth.active {
  background: #f97316;
  color: white;
}

/* ---------- Login / auth: pantalla partida (marca + imagen | credenciales) ---------- */
.ui-auth-page {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, sans-serif;
}

.ui-auth-split {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

@media (min-width: 992px) {
  .ui-auth-split {
    flex-direction: row;
    align-items: stretch;
  }

  .ui-auth-page {
    --ui-auth-column-pad-top: 2.5rem;
    /* Altura hasta .ui-auth-role-switch (nav + logo + título del formulario) */
    --ui-auth-form-header-offset: 10rem;
  }

  .ui-auth-split__form {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: var(--ui-auth-column-pad-top);
  }
}

.ui-auth-split__form {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 2.5rem;
  background: #f8f9fa;
}

.ui-auth-split__form-inner {
  width: 100%;
  max-width: 420px;
}

.ui-auth-split__logo {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.ui-auth-role-switch a {
  color: var(--ui-text-soft);
  transition: background 0.15s ease, color 0.15s ease;
}

.ui-auth-role-switch a:hover {
  color: var(--ui-text);
  background: rgba(0, 0, 0, 0.04);
}

.ui-shell--comprador .ui-auth-role-switch a.active,
.ui-shell--vendedor .ui-auth-role-switch a.active {
  background: #fff7ed;
  color: #c2410c;
}

.ui-shell--admin .ui-auth-role-switch a.active {
  background: #fff7ed;
  color: #c2410c;
}

.ui-auth-links-row {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.ui-auth-split__visual {
  position: relative;
  flex: 1 1 50%;
  min-height: 240px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ui-auth-split__brand-logo {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  width: 140px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

@media (min-width: 992px) {
  .ui-auth-split__visual {
    min-height: 100vh;
  }
}

.ui-auth-split__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 64, 0.75);
  z-index: 1;
}

.ui-auth-split__visual-inner {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  max-width: 440px;
  color: #fff;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

@media (min-width: 992px) {
  .ui-auth-split__visual-inner {
    min-height: 100vh;
    padding: calc(var(--ui-auth-column-pad-top, 2.5rem) + var(--ui-auth-form-header-offset, 10rem)) 48px 60px;
  }
}

/* Login — móvil: panel marca compacto; priorizar formulario de credenciales */
@media (max-width: 991.98px) {
  .ui-auth-split__visual {
    flex: 0 0 auto;
    min-height: 0;
    max-height: 36vh;
    max-height: 36dvh;
  }

  .ui-auth-split__brand-logo {
    top: 12px;
    left: 12px;
    width: 108px;
    max-height: 34px;
  }

  .ui-auth-page .ui-auth-split__visual .ui-auth-split__visual-inner {
    min-height: 0;
    justify-content: flex-start;
    padding: 5.25rem 1rem 0.85rem;
  }

  .ui-auth-page .ui-auth-split__visual .ui-auth-split__flag {
    font-size: 0.75rem;
    height: 1.5em;
    margin-bottom: 0.35rem;
  }

  .ui-auth-page .ui-auth-split__visual .ui-auth-split__tagline {
    font-size: 0.8rem;
    padding: 4px 10px;
    margin-bottom: 0.35rem;
  }

  .ui-auth-page .ui-auth-split__visual .ui-auth-split__lead {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .ui-auth-split__form {
    flex: 1 1 auto;
    align-items: flex-start;
    padding: 1.15rem 1rem 1.5rem;
  }
}

/* Textos panel izquierdo login (base móvil) */
.ui-auth-page .ui-auth-split__visual .ui-auth-split__flag {
  display: block;
  align-self: flex-start;
  margin-left: 0;
  margin-right: auto;
  font-size: 0.875rem;
  height: 1.8em;
  width: auto;
  object-fit: contain;
  line-height: 1;
}

.ui-auth-page .ui-auth-split__visual .ui-auth-split__tagline {
  display: inline-block;
  background: #fff;
  color: #0a1640;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.ui-auth-page .ui-auth-split__visual .ui-auth-split__lead {
  font-size: 0.825rem;
  font-weight: 500;
  line-height: 1.45;
  opacity: 0.92;
  margin-bottom: 0;
}

.ui-auth-split__form .ui-password-field .form-control {
  border-right: 0;
}

.ui-auth-split__form .ui-password-field .ui-password-toggle {
  border-color: #dee2e6;
  color: #6b7280;
}

.ui-auth-split__form .ui-password-field .ui-password-toggle:hover,
.ui-auth-split__form .ui-password-field .ui-password-toggle:focus {
  color: #374151;
  background: #f9fafb;
}

.ui-auth-split__form .ui-password-hint {
  line-height: 1.4;
}

.ui-auth-split__form .ui-password-policy-list li {
  margin-bottom: 0.15rem;
}

/* =====================================================
   FORMULARIOS REMATE
===================================================== */

.ui-radio-group {
  display: flex;
  gap: 20px;
}

.ui-summary {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.ui-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ui-block {
  margin-bottom: 40px;
}

/* =========================
   BOTÓN AGREGAR ITEM
========================= */
.ui-btn-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  margin: 12px auto 0;

  background: #f3f4f6;
  color: var(--ui-text-body);

  border: none;
  padding: 8px 14px;
  border-radius: 999px;

  font-size: 13px;
  font-weight: 500;

  cursor: pointer;
  transition: background 0.2s;
}

.ui-btn-add:hover {
  background: #e5e7eb;
}

.ui-btn-add i {
  font-size: 12px;
}

/* =========================
   BOTÓN ELIMINAR ITEM
========================= */
.ui-btn-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  background: #fef2f2;
  color: #ef4444;

  border: 1px solid #fecaca;
  border-radius: 8px;

  cursor: pointer;
  transition: all 0.2s;
}

.ui-btn-remove:hover {
  background: #fee2e2;
  border-color: #ef4444;
}




/* =========================
   CONTENEDOR INDEX
========================= */
.ui-index .ui-card-remate {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: all 0.2s;
  height: 100%;
}

.ui-index .ui-card-remate:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* =========================
   IMAGEN
========================= */
.ui-index .ui-card-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* =========================
   BODY
========================= */
.ui-index .ui-card-body {
  padding: 16px;
}

/* =========================
   LOGO (mismo criterio que remates disponibles comprador)
========================= */
.ui-index .ui-card-logo {
  display: block;
  width: calc(100% + 32px);
  max-width: none;
  margin-left: -16px;
  margin-right: -16px;
  margin-bottom: 12px;
  height: 112px;
  object-fit: contain;
  object-position: center center;
  flex-shrink: 0;
}

/* =========================
   BADGE
========================= */
.ui-index .ui-badge {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
}

.ui-index .ui-badge-success {
  background: #e6f4ea;
  color: #1e7e34;
}

/* =========================
   TIEMPO
========================= */
.ui-index .ui-time {
  font-size: 13px;
  font-weight: 500;
}

/* =========================
   BOTÓN CTA (IMPORTANTE)
========================= */
.ui-index .ui-btn-cta {
  display: block;
  width: 100%;

  background: #f97316;
  color: #fff;

  padding: 10px;
  border-radius: 999px;

  text-align: center;
  text-decoration: none;
  font-weight: 600;

  transition: 0.2s;
}

.ui-index .ui-btn-cta:hover {
  background: #ea580c;
}



/* =========================
   CONTENEDOR AUCTION
========================= */
.ui-auction .ui-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* =========================
   HEADER
========================= */
.ui-auction .ui-remate-header {
  margin-bottom: 30px;
}

.ui-auction .ui-remate-header h2 {
  font-weight: 700;
  margin-bottom: 10px;
}

/* =========================
   STATS (CLAVE)
========================= */
.ui-auction .ui-remate-stats {
  display: flex;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.ui-auction .ui-stat {
  flex: 1;
  min-width: 220px;
  display: flex;
  gap: 10px;
}

.ui-auction .ui-stat-icon {
  font-size: 18px;
  color: #6c757d;
}

.ui-auction .ui-stat-label {
  font-size: 12px;
  color: var(--ui-text-soft);
}

.ui-auction .ui-stat-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ui-text);
}

.ui-auction .ui-stat-highlight .ui-stat-value {
  font-size: 20px;
  color: #dc3545;
}

/* =========================
   ALERT
========================= */
.ui-auction .ui-alert {
  margin-top: 25px;
}

.ui-auction .ui-alert-body.open {
  display: block;
}

/* =========================
   LOTE (MUY IMPORTANTE)
========================= */
.ui-auction .ui-lote {
  display: flex;
  gap: 30px;
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #eee;
  align-items: flex-start;
}

/* IMAGEN */
.ui-auction .ui-lote-img {
  width: 280px;
  max-width: 100%;
  flex: 0 0 280px;
  min-width: 0;
}
.ui-auction .ui-lote-img img {
  width: 100%;
  max-width: 280px;
  height: 230px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.ui-auction .ui-lote-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.ui-auction .ui-thumb-btn {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 10px;
  padding: 0;
  width: 52px;
  height: 52px;
  overflow: hidden;
  cursor: pointer;
}

.ui-auction .ui-thumb-btn img {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.ui-auction .ui-thumb-btn.active {
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
}

.ui-auction .ui-lote-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  max-width: 100%;
}
.ui-auction .ui-lote-docs-hint {
  margin-top: 10px;
  max-width: 100%;
  font-size: 0.75rem;
  line-height: 1.45;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* INFO */
.ui-auction .ui-lote-info {
  flex: 1;
  min-width: 0;
}

/* ACCIONES */
.ui-auction .ui-lote-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* =========================
   BOTONES
========================= */

/* outline */
.ui-auction .ui-btn-outline {
  border: 1px solid #ddd;
  padding: 8px 14px;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  font-size: 14px;
}

.ui-auction .ui-btn-outline:hover {
  background: #f5f5f5;
}

.ui-auction button.ui-btn-outline {
  cursor: pointer;
  font: inherit;
  color: inherit;
  line-height: inherit;
  appearance: none;
  -webkit-appearance: none;
}

/* CTA principal */
.ui-auction .ui-btn-cta {
  display: inline-block;  /* 👈 clave */
  background: #f97316;
  color: white;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
}

.ui-auction .ui-btn-cta:hover {
  background: #ea580c;
}

/* SUCCESS */
.ui-auction .ui-btn-success {
  display: inline-block;
  width: auto;

  background: #198754;
  color: #fff;

  padding: 10px 16px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
}

/* =========================
   LINK BACK
========================= */
.ui-auction .ui-link-back {
  display: inline-block;
  margin-bottom: 20px;
  text-decoration: none;
  color: #0d6efd;
}

/* Remate en curso (comprador): precios y simulador */
.sm-remate-detalle--subasta .sm-remate-precios-resumen {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 1rem 1.25rem;
  align-items: stretch;
}
@media (max-width: 767.98px) {
  .sm-remate-detalle--subasta .sm-remate-precios-resumen {
    grid-template-columns: 1fr;
  }
  .ui-auction .ui-stat {
    min-width: 0;
    flex: 1 1 100%;
  }
  .ui-auction .ui-lote {
    flex-direction: column;
    gap: 1.25rem;
  }
  .ui-auction .ui-lote-img {
    width: 100%;
    flex: 1 1 auto;
  }
}
.sm-remate-detalle--subasta .sm-remate-precio-base-box {
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  border: 2px solid #fd7e14;
  background: linear-gradient(135deg, #fff8f0 0%, #fff 55%);
  box-shadow: 0 2px 10px rgba(253, 126, 20, 0.12);
}
.sm-remate-detalle--subasta .sm-remate-precio-base-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c45a00;
  margin-bottom: 0.25rem;
}
.sm-remate-detalle--subasta .sm-remate-precio-base-value {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: #b45309;
}
.sm-remate-detalle--subasta .sm-remate-precio-base-hint {
  display: block;
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 0.35rem;
}
.sm-remate-detalle--subasta .sm-remate-precio-actual-box {
  padding: 0.5rem 0;
}
.sm-remate-detalle--subasta .sm-remate-precio-mi-oferta {
  padding: 0.5rem 0;
}

/* Remate detalle subasta — hero fijo, gráfico y postores (ex inline detalle.php) */
.sm-remate-fixed-hero {
  position: fixed;
  right: 0;
  z-index: 1045;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.07);
}

body.ui-body--marketing-nav .sm-remate-fixed-hero {
  top: 5.25rem;
  left: 0;
}

body.ui-body-no-topbar .sm-remate-fixed-hero.sm-remate-fixed-hero--en-cuenta {
  top: 0;
  left: 0;
}

@media (min-width: 768px) {
  body.ui-body-no-topbar .sm-remate-fixed-hero.sm-remate-fixed-hero--en-cuenta {
    left: 260px;
  }
}

@media (max-width: 767.98px) {
  body.ui-body-no-topbar .sm-remate-fixed-hero.sm-remate-fixed-hero--en-cuenta {
    top: 52px;
    left: 0;
  }
}

body.ui-body-no-topbar .sm-remate-fixed-hero:not(.sm-remate-fixed-hero--en-cuenta) {
  top: 0;
  left: 0;
}

.sm-remate-fixed-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 12px;
}

@media (min-width: 768px) {
  .sm-remate-fixed-hero-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.sm-remate-fixed-hero-spacer {
  display: block;
  min-height: 4.75rem;
}

@media (max-width: 575.98px) {
  .sm-remate-fixed-hero-spacer {
    min-height: 6.25rem;
  }
}

@keyframes smPostorCardPulse {
  0% {
    box-shadow:
      0 0 0 3px rgba(13, 110, 253, 0.95),
      0 0 0 6px rgba(255, 193, 7, 0.55),
      0 8px 24px rgba(13, 110, 253, 0.45);
    transform: scale(1.07);
    border-color: #0a58ca !important;
    background-color: #cfe2ff !important;
  }
  40% {
    box-shadow:
      0 0 0 8px rgba(13, 110, 253, 0.35),
      0 4px 16px rgba(13, 110, 253, 0.25);
    transform: scale(1.03);
    background-color: #e7f1ff !important;
  }
  100% {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transform: scale(1);
    border-color: inherit;
    background-color: #fff !important;
  }
}

.sm-postor-card--pulse {
  animation: smPostorCardPulse 1.25s cubic-bezier(0.22, 1, 0.36, 1) 1;
  position: relative;
  z-index: 3;
}

.sm-postores-ultimas-scroll {
  max-height: 7.75rem;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.sm-remate-chart-canvas {
  position: relative;
  height: 220px;
}

@media (min-width: 992px) {
  .sm-remate-chart-canvas {
    height: 248px;
  }
}

.sm-postor-card.border {
  border-width: 3px;
}

.sm-postor-card--lider {
  border-color: #198754 !important;
  background: linear-gradient(180deg, #cfe8dc 0%, #fff 55%) !important;
  box-shadow: 0 0 0 1px rgba(25, 135, 84, 0.45), 0 4px 14px rgba(25, 135, 84, 0.18);
}

.sm-postor-lider-badge {
  font-size: 0.58rem;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

/* Realizar oferta (remate en curso, comprador) */
.sm-oferta-card {
  border: 2px solid #f97316;
  background: linear-gradient(165deg, #fff7ed 0%, #fff 45%, #fff 100%);
  box-shadow:
    0 0 0 3px rgba(249, 115, 22, 0.1),
    0 12px 32px rgba(249, 115, 22, 0.16);
  padding: 1.25rem 1.35rem 1.35rem;
}
.sm-oferta-card__header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(249, 115, 22, 0.22);
}
.sm-oferta-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}
.sm-oferta-card__title {
  font-weight: 800;
  font-size: 1.15rem;
  color: #9a3412;
  line-height: 1.25;
}
.sm-oferta-card__subtitle {
  font-size: 0.8125rem;
  color: #78716c;
  margin-top: 0.2rem;
  line-height: 1.4;
}
.sm-oferta-card__label {
  font-weight: 700;
  color: #1c1917;
}
.sm-oferta-card__input-group .input-group-text {
  font-weight: 700;
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}
.sm-oferta-card__input-group .ui-input {
  font-size: 1.125rem;
  font-weight: 700;
  border-color: #fdba74;
  background: #fff;
}
.sm-oferta-card__input-group .ui-input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.18);
}
.sm-oferta-card__submit {
  font-size: 1.05rem;
  padding: 0.85rem 1.25rem;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.38);
}
.sm-oferta-card__submit:not(:disabled):hover {
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}

/* Modal confirmación de oferta */
.sm-oferta-modal__header {
  border-bottom-color: rgba(249, 115, 22, 0.2);
  background: linear-gradient(180deg, #fff7ed 0%, #fff 100%);
}
.sm-oferta-vinculante-box {
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 2px solid rgba(220, 38, 38, 0.35);
  background: linear-gradient(180deg, #fef2f2 0%, #fff 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.sm-oferta-vinculante-wrap.form-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
  min-height: 0;
}
.sm-oferta-vinculante-check.form-check-input {
  float: none;
  margin-left: 0;
  margin-top: 0.2em;
  position: relative;
  left: auto;
  flex-shrink: 0;
  width: 1.55em;
  height: 1.55em;
  border-radius: 6px;
  border-width: 2px;
  border-color: #dc2626;
  cursor: pointer;
}
.sm-oferta-vinculante-check.form-check-input:checked {
  background-color: #dc2626 !important;
  border-color: #dc2626 !important;
}
.sm-oferta-vinculante-check.form-check-input:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 0.25rem rgba(220, 38, 38, 0.22) !important;
}
.sm-oferta-vinculante-label.form-check-label {
  flex: 1;
  min-width: 0;
  padding-left: 0;
  cursor: pointer;
}
.sm-oferta-vinculante-label__title {
  display: block;
  font-weight: 800;
  font-size: 0.9375rem;
  color: #991b1b;
  line-height: 1.35;
  margin-bottom: 0.2rem;
}
.sm-oferta-vinculante-label__text {
  display: block;
  font-size: 0.875rem;
  color: #7f1d1d;
  line-height: 1.45;
}
#sm_btn_confirmar_oferta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

#modalSimuladorPrecios .sm-sim-total-box {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
}
#modalSimuladorPrecios .sm-sim-total-box--promedio {
  border-color: #0dcaf0;
  background: linear-gradient(180deg, #e7f6fd 0%, #fff 70%);
}
#modalSimuladorPrecios .sm-sim-total-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #495057;
  margin-bottom: 0.2rem;
}
#modalSimuladorPrecios .sm-sim-total-hint {
  font-size: 0.7rem;
  color: #6c757d;
  margin-bottom: 0.35rem;
}
#modalSimuladorPrecios .sm-sim-total-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #212529;
  margin: 0;
}

/* —— Fase 3: modales con tablas (simulador, vitrina) —— */
.ui-modal-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.ui-modal-table-wrap .ui-modal-data-table,
.ui-modal-table-wrap table {
  min-width: 640px;
  margin-bottom: 0;
}

#modalSimuladorPrecios .ui-modal-data-table {
  min-width: 720px;
}

#modalSimuladorPrecios .modal-dialog {
  margin: 0.75rem auto;
}

#modalSimuladorPrecios .modal-content {
  max-height: calc(100dvh - 1.5rem);
}

#modalSimuladorPrecios .modal-body {
  min-height: 0;
}

#smModalVitrinaLoteDetalle .modal-dialog {
  max-width: min(520px, calc(100vw - 1rem));
  margin: 0.75rem auto;
}

#smModalVitrinaLoteDetalle .modal-content {
  max-height: calc(100dvh - 1.5rem);
}

#smModalVitrinaLoteDetalle .ui-modal-table-wrap table {
  min-width: 560px;
}

.sm-lote-modal-resumen__note {
  font-size: 0.6875rem;
  line-height: 1.4;
  margin-bottom: 0.5rem !important;
}

#modalDetalle .sm-lote-modal-resumen__note {
  font-size: 0.6875rem;
  line-height: 1.4;
}

@media (max-width: 767.98px) {
  #modalSimuladorPrecios .modal-footer .btn,
  #smModalVitrinaLoteDetalle .modal-footer .btn {
    min-height: 44px;
  }
}

@media (max-width: 575.98px) {
  #modalSimuladorPrecios .modal-dialog,
  #smModalVitrinaLoteDetalle .modal-dialog {
    margin: 0;
    max-width: 100%;
    height: 100%;
  }

  #modalSimuladorPrecios .modal-content,
  #smModalVitrinaLoteDetalle .modal-content {
    max-height: 100dvh;
    height: 100%;
    border-radius: 0;
  }
}

.sm-doc-logistica-block .sm-doc-logistica-contactos-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sm-perfil-postventa-checklist {
  border-left: 4px solid var(--bs-warning, #ffc107);
  overflow: hidden;
}

.sm-perfil-postventa-checklist--ok {
  border-left-color: var(--bs-success, #198754);
}

.sm-perfil-postventa-checklist__toggle {
  background: #fff;
  box-shadow: none;
}

.sm-perfil-postventa-checklist__toggle:hover,
.sm-perfil-postventa-checklist__toggle:focus {
  background: #f9fafb;
  color: inherit;
}

.sm-perfil-postventa-checklist__toggle-title {
  line-height: 1.35;
  padding-right: 0.5rem;
}

.sm-perfil-postventa-checklist__chevron {
  transition: transform 0.2s ease;
  font-size: 1rem;
}

.sm-perfil-postventa-checklist__toggle:not(.collapsed) .sm-perfil-postventa-checklist__chevron {
  transform: rotate(180deg);
}

.sm-perfil-postventa-checklist__items li {
  align-items: flex-start;
}



/* =========================
   CONTENEDOR CHECKOUT
========================= */
.ui-checkout .ui-container {
  max-width: 800px;
  margin: 0 auto;
}

/* =========================
   TITULO
========================= */
.ui-checkout h2 {
  font-weight: 700;
}

/* =========================
   CARDS
========================= */
.ui-checkout .ui-card {
  margin-bottom: 20px;
}

/* =========================
   INFO BOX
========================= */
.ui-checkout .ui-info-box {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 10px;
  margin-top: 10px;
  font-size: 14px;
}

/* =========================
   CHECKBOX
========================= */
.ui-checkout .ui-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
}

.ui-checkout .ui-checkbox input {
  margin-top: 4px;
}

/* =========================
   PAYMENT (ACCORDION)
========================= */
.ui-checkout .ui-payment {
  border: 1px solid #eee;
  border-radius: 12px;
  margin-top: 15px;
  overflow: hidden;
  background: #fff;
}

/* HEADER */
.ui-checkout .ui-payment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 14px 16px;
  background: #f8f9fa;
  cursor: pointer;
  font-weight: 500;
}

/* ICON ROTATE */
.ui-checkout .ui-payment-header i {
  transition: transform 0.2s;
}

/* BODY */
.ui-checkout .ui-payment-body {
  padding: 16px;
  display: none;
}

/* ACTIVE */
.ui-checkout .ui-payment.active .ui-payment-body {
  display: block;
}

.ui-checkout .ui-payment.active .ui-payment-header i {
  transform: rotate(180deg);
}

/* =========================
   BOTÓN CTA
========================= */
.ui-checkout .ui-btn-cta {
  display: block;
  width: 100%;

  background: #f97316;
  color: #fff;

  padding: 12px;
  border-radius: 999px;

  text-align: center;
  font-weight: 600;
  border: none;
}

/* HOVER */
.ui-checkout .ui-btn-cta:hover {
  background: #ea580c;
}

/* DISABLED */
.ui-checkout .ui-btn-cta:disabled {
  background: #e5e5e5;
  color: #999;
  cursor: not-allowed;
}

/* =========================
   BOTONES BRANDED — Webpay / PayPal
========================= */
.ui-checkout .ui-pay-branded {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: auto;
  min-width: 9.5rem;
  max-width: 100%;
  min-height: 40px;
  padding: 0.45rem 0.875rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
  font-family: inherit;
  line-height: 1.2;
}

.ui-checkout .ui-checkout-pay-actions {
  align-items: flex-start;
}

.ui-checkout .ui-checkout-pais-form {
  max-width: 20rem;
}

.ui-checkout .ui-pay-branded:hover {
  filter: brightness(0.96);
}

.ui-checkout .ui-pay-branded:active {
  transform: scale(0.99);
}

.ui-checkout .ui-pay-branded:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/* Webpay Plus — rojo Transbank / Webpay */
.ui-checkout .ui-pay-branded--webpay {
  background: linear-gradient(180deg, #e31837 0%, #c41230 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.ui-checkout .ui-pay-branded__logo--webpay svg {
  display: block;
  width: 5.25rem;
  height: auto;
}

.ui-checkout .ui-pay-branded--webpay .ui-pay-branded__by {
  display: none;
}

/* PayPal — amarillo oficial */
.ui-checkout .ui-pay-branded--paypal {
  background: #ffc439;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ui-checkout .ui-pay-branded__logo--paypal svg {
  display: block;
  width: 4.5rem;
  height: auto;
}

.ui-checkout .ui-pay-branded__amount {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.92;
  white-space: nowrap;
}

.ui-checkout .ui-pay-branded--webpay .ui-pay-branded__amount {
  color: #fff;
}

.ui-checkout .ui-pay-branded--paypal .ui-pay-branded__amount {
  color: #2c2e2f;
}

.ui-checkout .ui-pay-simulate-btn {
  font-size: 0.875rem;
}

/* =========================
   PAYPAL DISABLED (legacy)
========================= */
.ui-checkout .ui-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* =========================
   LINK BACK
========================= */
.ui-checkout .ui-link-back {
  display: inline-block;
  margin-bottom: 20px;
  text-decoration: none;
  color: #0d6efd;
}



/* =========================
   SIDEBAR MENU FIX
========================= */
.ui-dashboard .ui-menu a {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 8px;

  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.ui-dashboard .ui-menu a:hover {
  background: #f5f5f5;
}

/* ACTIVO */
.ui-dashboard .ui-menu a.active {
  background: #fff3e6;
  color: #f97316;
  font-weight: 500;
}

/* LOGOUT */
.ui-dashboard .ui-logout {
  color: #ef4444;
}

/* =========================
   MAIN
========================= */
.ui-dashboard .ui-main {
  padding: 40px;
}

/* =========================
   CARDS DASHBOARD
========================= */
.ui-dashboard .ui-card {
  height: 100%;
  border-radius: 16px;
  border: 1px solid #eee;
  padding: 24px;
  transition: all 0.2s;
}

.ui-dashboard .ui-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* =========================
   ICONOS
========================= */
.ui-dashboard .ui-card-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

/* =========================
   BOTONES
========================= */

/* CTA principal */
.ui-dashboard .ui-btn-cta {
  display: inline-block;

  background: var(--ui-cta, #ec6c04);
  color: #fff;

  padding: 10px 16px;
  border-radius: 999px;

  text-decoration: none;
  font-weight: 600;
}

.ui-dashboard .ui-btn-cta:hover,
.ui-dashboard .ui-btn-cta:focus {
  background: var(--ui-cta-hover, #d95f00);
  color: #fff;
  text-decoration: none;
}

/* =========================
   GRID FIX (IMPORTANTE)
========================= */
.ui-dashboard .row {
  margin-left: 0;
  margin-right: 0;
}


/* =========================
   MAIN REMATES
========================= */
.ui-remates .ui-main {
  padding: 40px;
}

/* =========================
   HEADER
========================= */
.ui-remates h1.ui-page-title,
.ui-remates h2.ui-page-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #212529;
}

/* =========================
   TABS (CLAVE)
========================= */
.ui-remates .ui-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #eee;
}

.ui-remates .ui-tab {
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-weight: 500;
  color: #777;
  position: relative;
}

.ui-remates .ui-tab.active {
  color: #f97316;
}

.ui-remates .ui-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #f97316;
}

/* =========================
   CONTENIDO TABS
========================= */
.ui-remates .ui-tab-content {
  display: none;
}

.ui-remates .ui-tab-content.active {
  display: block;
}

/* =========================
   CARD REMATE
========================= */
.ui-remates .ui-remate-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 18px;
  height: 100%;
  transition: all 0.2s;
}

.ui-remates .ui-remate-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* CARD MUTED */
.ui-remates .ui-remate-card.muted {
  opacity: 0.7;
}

/* =========================
   BADGES
========================= */
.ui-remates .ui-badge-success {
  background: #16a34a;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.ui-remates .ui-badge-muted {
  background: #6c757d;
  color: #fff;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 12px;
}

/* =========================
   BOTONES
========================= */
.ui-remates .ui-btn-secondary {
  background: #6c757d;
  color: #fff;
  padding: 10px;
  border-radius: 999px;
  text-align: center;
  display: block;
  text-decoration: none;
}

.ui-remates .ui-btn-outline {
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  display: block;
  color: #333;
  text-decoration: none;
}

/* CTA superior */
.ui-remates .ui-btn-cta {
  background: #f97316;
  color: white;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
}

/* =========================
   GRID FIX
========================= */
.ui-remates .row {
  margin-left: 0;
  margin-right: 0;
}

/* Mis remates (cuenta vendedor): pestañas estilo Figma */
.ui-shell--vendedor .ui-vendedor-mis-remates__tabs .nav-link.ui-vend-tab {
  border: none;
  background: transparent;
  color: var(--ui-text-soft);
  font-weight: 500;
  padding: 10px 4px 12px;
  position: relative;
}

.ui-shell--vendedor .ui-vendedor-mis-remates__tabs .nav-link.ui-vend-tab:hover {
  color: var(--ui-text-body);
}

.ui-shell--vendedor .ui-vendedor-mis-remates__tabs .nav-link.ui-vend-tab.active {
  color: #f97316;
  background: transparent;
}

.ui-shell--vendedor .ui-vendedor-mis-remates__tabs .nav-link.ui-vend-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #f97316;
  border-radius: 1px;
}

/* Ficha vendedor (Mi cuenta) */
.ui-vendedor-ficha__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
}

.ui-vendedor-ficha__heading i {
  color: #f97316;
  font-size: 1.15rem;
}

.ui-vendedor-ficha__card {
  border-radius: var(--ui-radius-lg) !important;
}

.ui-vendedor-logo-box {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ui-vendedor-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ui-btn-agregar-contacto {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #f97316;
  color: #f97316 !important;
  background: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.ui-btn-agregar-contacto:hover {
  background: #fff7ed;
  color: #ea580c !important;
}


/* ========================= */
/* VENDEDOR */
/* ========================= */

.ui-vendedor {
  max-width: 700px;
  margin: 0 auto; 
  padding: 10px 10px 40px;
}

/* secciones */
.ui-vendedor .ui-section {
  margin-bottom: 30px;
}

/* headers */
.ui-vendedor .ui-section-header {
  font-weight: 600;
  margin-bottom: 10px;
}

/* cards */
.ui-vendedor .ui-card {
  padding: 20px;
  border-radius: 14px;
}

/* tabla */
.ui-vendedor .ui-table input {
  margin-bottom: 0;
}

.ui-logo-preview {
  width: 120px !important;
  height: auto !important;
  object-fit: contain;

  display: block;
  margin: 0 auto;
}

/* LISTA DOCUMENTOS */
.ui-list {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
}

.ui-list-item {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f1f1;
}

.ui-list-item:last-child {
  border-bottom: none;
}

.ui-list-left {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ui-list-right {
  flex-shrink: 0;
}

/* CHAT */
.ui-chat-box {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  height: 300px;
  overflow-y: auto;
  border: 1px solid #eee;
  margin-bottom: 10px;
}

.ui-chat-row {
  display: flex;
  margin-bottom: 10px;
}

.ui-chat-row.mine {
  justify-content: flex-end;
}

.ui-chat-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 70%;
  font-size: 14px;
  background: #f1f3f5;
}

.ui-chat-bubble.mine {
  background: #0d9488;
  color: white;
}

.ui-chat-time {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 4px;
  text-align: right;
}

/* INPUT CHAT */
.ui-chat-input {
  display: flex;
  gap: 10px;
}

.ui-chat-input textarea {
  flex: 1;
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 10px;
  resize: none;
}

/* =========================
   PAGE HEADER
========================= */

/* Page Header */
.ui-page-header {
  padding: 0 4px;
}

/* Títulos de página: mismo tamaño y negro en toda la app (prioridad sobre .h3/.h4 de Bootstrap) */
h1.ui-page-title,
h1.ui-page-title-comprador,
h1.ui-page-title-vendedor,
h2.ui-page-title,
.ui-shell--admin h1.ui-page-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #212529;
}

.ui-page-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--ui-text-body);
  margin: 0;
}

.ui-link {
  color: var(--ui-link);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.ui-link:hover {
  color: var(--ui-link-hover);
  text-decoration: underline;
}

.ui-link-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: var(--ui-link);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.ui-link-back:hover {
  color: var(--ui-link-hover);
}

/* =====================================================
   FORMULARIOS
===================================================== */

.ui-group {
  margin-bottom: 14px;
}

/* Etiquetas formulario (una sola definicion) */
.ui-label {
  font-size: 13px;
  color: var(--ui-text-body);
  margin-bottom: 6px;
  display: block;
}

.ui-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ui-radio-group {
  display: flex;
  gap: 15px;
}

.ui-radio-group input {
  accent-color: var(--ui-brand-orange);
}

/* =====================================================
   SUBSECCIONES / BLOQUES INTERNOS
===================================================== */

.ui-subsection {
  background: #f9fafb;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #f0f0f0;
}

.ui-subsection-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ui-text);
}

/* =====================================================
   SUMMARY (RESUMEN INFERIOR)
===================================================== */

.ui-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 30px;
}

/* Card */
.ui-summary-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;

  border: 1px solid #f1f1f1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Label */
.ui-summary-card small {
  display: block;
  font-size: 13px;
  color: var(--ui-text-body);
}

/* Unidad (KG / USD) */
.ui-summary-unit {
  font-size: 11px;
  color: var(--ui-text-faint);
  margin-bottom: 6px;
}

/* Valor principal */
.ui-summary-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

/* Colores dinámicos */
.ui-summary-success {
  color: var(--ui-success) !important;
}

.ui-summary-danger {
  color: var(--ui-danger) !important;
}

/* =========================
   SUBMIT / TERMINOS
========================= */

.ui-submit-box {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* fila términos */
.ui-terms {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* checkbox */
.ui-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.ui-checkbox input {
  accent-color: var(--ui-brand-orange);
}

/* botón alineado a la derecha */
.ui-submit-action {
  display: flex;
  justify-content: flex-end; /* 🔥 clave */
}

.ui-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.ui-upload-box {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.ui-upload-box input[type="file"] {
  width: 100%;
  font-size: 12px;
}

.ui-submit-action {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.ui-upload-danger { color: var(--ui-danger); }
.ui-upload-success { color: var(--ui-success); }

.ui-upload-title {
  font-size: 14px;
  font-weight: 600;
}

.ui-upload-hint {
  font-size: 12px;
  color: var(--ui-text-faint);
}

/* =========================
   TABS REMATES
========================= */

.ui-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--ui-border);
  margin-bottom: 20px;
}

.ui-tab {
  padding: 10px 5px;
  text-decoration: none;
  color: var(--ui-text-soft);
  font-weight: 500;
}

.ui-tab.active {
  color: var(--ui-primary);
  border-bottom: 2px solid var(--ui-primary);
}

.ui-item-row {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

.ui-item-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.ui-input-price {
  border: 2px solid #f97316;
  color: #f97316;
  font-weight: 600;
}

.ui-btn-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ui-link);
  text-decoration: none;
}

.ui-footer-actions {
  margin-top: 30px;
}

.ui-submit-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ui-tab-content {
  display: none;
}

.ui-tab-content.active {
  display: block;
}

.ui-tabs button.ui-tab {
  font: inherit;
  border: none;
  background: transparent;
  cursor: pointer;
}

.sm-postoferta-tabs .ui-tabs {
  flex-wrap: wrap;
  gap: 12px 18px;
}

/* —— Comprador adjudicado: pestañas del remate (alto contraste y flujo claro) —— */
.sm-comprador-remate-tabs.sm-c-tabs-enhanced {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.sm-c-tabs-intro {
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.sm-c-tabs-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.sm-c-tabs-lead {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #475569;
  max-width: 52rem;
}

.sm-c-tabs-lead strong {
  color: #0f172a;
  font-weight: 700;
}

.sm-comprador-remate-tabs .ui-tabs.sm-c-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  margin-bottom: 1.35rem;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  border-bottom: none;
}

.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab {
  flex: 1 1 0;
  min-width: min(100%, 168px);
  min-height: 3.35rem;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.55);
  color: #334155;
  font-weight: 600;
  text-align: left;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab:hover {
  background: #fff;
  border-color: #94a3b8;
  color: #0f172a;
}

.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab.active {
  background: #fff;
  color: var(--ui-primary, #2563eb);
  border-color: var(--ui-primary, #2563eb);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.18);
  transform: translateY(-1px);
}

.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab.active .sm-c-tab-step {
  background: var(--ui-primary, #2563eb);
  color: #fff;
  border-color: transparent;
}

.sm-c-tab-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  position: relative;
}

.sm-c-tab-step {
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  background: #fff;
  border: 2px solid #cbd5e1;
  color: #475569;
  line-height: 1;
}

.sm-c-tab-step--chat {
  font-size: 1rem;
  background: #f0fdfa;
  border-color: #5eead4;
  color: #0f766e;
}

.sm-c-tab-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.sm-c-tab-label {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sm-c-tab-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.25;
}

.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab.active .sm-c-tab-sub {
  color: #475569;
}

.sm-comprador-remate-tabs .sm-c-tabs-bar .sm-chat-tab-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  font-size: 0.65rem;
  padding: 0.28em 0.5em;
  font-weight: 700;
}

.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab.sm-tab-chat-highlight {
  background: rgba(240, 253, 250, 0.85);
  border-color: #99f6e4;
  color: #115e59;
}

.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab.sm-tab-chat-highlight:hover {
  background: #ecfdf5;
  border-color: #2dd4bf;
  color: #0f766e;
}

.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab.sm-tab-chat-highlight.active {
  background: linear-gradient(180deg, #f0fdfa 0%, #fff 100%);
  border-color: #0d9488;
  color: #0f766e;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.22);
}

.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab.sm-tab-chat-highlight.active .sm-c-tab-step--chat {
  background: #0d9488;
  border-color: #0d9488;
  color: #fff;
}

.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab.sm-c-tab-proceso.active {
  border-color: var(--ui-primary, #2563eb);
}

@media (max-width: 575.98px) {
  .sm-c-tabs-intro {
    padding: 0.85rem 1rem;
  }

  .sm-c-tabs-title {
    font-size: 1.05rem;
  }

  .sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .sm-c-tab-sub {
    font-size: 0.68rem;
  }

  .sm-v-tabs-enhanced .sm-v-tab-item {
    flex: 1 1 100% !important;
    min-width: 100% !important;
  }
}

/* —— Vendedor remateeditar: pestañas (misma lógica visual que comprador) —— */
.sm-v-tabs-enhanced {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.sm-v-tabs-enhanced .sm-v-tabs-scroll {
  padding: 12px;
  background: #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.sm-v-tabs-enhanced .sm-v-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  border: none;
  min-width: 0;
}

.sm-v-tabs-enhanced .sm-v-tab-item {
  flex: 1 1 0;
  min-width: min(100%, 145px);
}

.sm-v-tabs-enhanced .sm-v-tab-link {
  display: block;
  width: 100%;
  min-height: 3.35rem;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.55);
  color: #334155;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.sm-v-tabs-enhanced .sm-v-tab-link:hover {
  background: #fff;
  border-color: #94a3b8;
  color: #0f172a;
}

.sm-v-tabs-enhanced .sm-v-tab-link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

.sm-v-tabs-enhanced .sm-v-tab-link.active {
  background: #fff;
  color: var(--ui-primary, #2563eb);
  border-color: var(--ui-primary, #2563eb);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.18);
  transform: translateY(-1px);
}

.sm-v-tabs-enhanced .sm-v-tab-link.active .sm-c-tab-step:not(.sm-c-tab-step--chat) {
  background: var(--ui-primary, #2563eb);
  color: #fff;
  border-color: transparent;
}

.sm-v-tabs-enhanced .sm-v-tab-link .sm-c-tab-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
}

.sm-v-tabs-enhanced .sm-v-tab-link .sm-c-tab-label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.sm-v-tabs-enhanced .sm-v-tab-link.active .sm-c-tab-sub {
  color: #475569;
}

.sm-v-tabs-enhanced .sm-v-tab-link.sm-v-tab-adjudicacion.active {
  border-color: var(--ui-primary, #2563eb);
}

.sm-v-tabs-enhanced .sm-v-tab-link.sm-tab-chat-highlight {
  background: rgba(240, 253, 250, 0.85);
  border-color: #99f6e4;
  color: #115e59;
}

.sm-v-tabs-enhanced .sm-v-tab-link.sm-tab-chat-highlight:hover {
  background: #ecfdf5;
  border-color: #2dd4bf;
  color: #0f766e;
}

.sm-v-tabs-enhanced .sm-v-tab-link.sm-tab-chat-highlight.active {
  background: linear-gradient(180deg, #f0fdfa 0%, #fff 100%);
  border-color: #0d9488;
  color: #0f766e;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.22);
}

.sm-v-tabs-enhanced .sm-v-tab-link.sm-tab-chat-highlight.active .sm-c-tab-step--chat {
  background: #0d9488;
  border-color: #0d9488;
  color: #fff;
}

.sm-chat-tab-intro {
  border-radius: 12px;
  border: 1px solid #99f6e4;
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.sm-chat-tab-intro__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #134e4a;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sm-chat-tab-intro__title .bi {
  font-size: 1.15rem;
  color: #0d9488;
}

.sm-chat-tab-intro p {
  margin: 0;
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.45;
}

/* Encabezado dentro de ui-card (post-adjudicación, pasos) */
.ui-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin: -4px 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.ui-card-header strong {
  font-size: 15px;
  font-weight: 600;
}

.ui-card-subtitle {
  font-size: 13px;
  color: var(--ui-text-body);
  margin: 4px 0 0;
}


/* =========================
   TABS REMATES - KPI
========================= */

.ui-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.ui-kpi-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--ui-shadow-sm);
}

.ui-kpi-card small {
  color: var(--ui-text-body);
  font-size: 13px;
}

.ui-kpi-card h3 {
  margin: 6px 0;
}

.ui-text-danger {
  color: var(--ui-danger);
}

.ui-chart-card {
  padding: 10px;
}

.ui-chart-actions button {
  font-size: 12px;
}

/* badge fin remate */
.ui-badge-outline {
  background: transparent;
  border: 1px solid var(--ui-danger);
  color: var(--ui-danger);
  font-weight: 500;
}

/* chart */
.ui-chart-card canvas {
  margin-top: 10px;
}

/* countdown */
.ui-countdown {
  margin-top: 20px;
  text-align: center;
}

.ui-countdown-label {
  display: block;
  font-size: 12px;
  color: var(--ui-text-soft);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.ui-countdown-time {
  font-size: 28px;
  font-weight: 700;
  color: var(--ui-primary);
  background: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: var(--ui-shadow-sm);
}


/* =========================
   ADJUDICACION
========================= */

.ui-adjudicacion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ui-adj-box {
  background: #f9fafb;
  border-radius: 14px;
  padding: 20px;
}

.ui-adj-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ui-text-success {
  color: var(--ui-success);
}

.ui-process {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ui-step {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--ui-border);
}

.ui-step.completed {
  border-left: 4px solid var(--ui-success);
}

.ui-step.active {
  border-left: 4px solid var(--ui-primary);
}

.ui-step.pending {
  opacity: 0.7;
}

.ui-step-actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.ui-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.ui-doc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.ui-summary-box {
  background: #f8f9fb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;

  display: flex;
  flex-direction: column;
  align-items: center; /* 🔥 centra todo */
  text-align: center;  /* 🔥 centra texto */
}

.ui-summary-item {
  margin-bottom: 16px;
}

.ui-summary-item span {
  display: block;
  font-size: 13px;
  color: var(--ui-text-soft);
  margin-bottom: 4px;
}

.ui-summary-item strong {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: var(--ui-text);
}

.ui-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 12px 0;
}


/* =========================
   CHAT
========================= */
/* contenedor */
.ui-chat-box {
  background: #f9fafb;
  border-radius: 12px;
  padding: 15px;
  height: 300px;
  overflow-y: auto;
  margin-bottom: 10px;
}

/* filas */
.ui-chat-row {
  display: flex;
  margin-bottom: 10px;
}

.ui-chat-row.me {
  justify-content: flex-end;
}

.ui-chat-row.other {
  justify-content: flex-start;
}

/* burbuja */
.ui-chat-bubble {
  max-width: 70%;
  padding: 10px 12px;
  border-radius: 12px;
  background: #e5e7eb;
  font-size: 13px;
}

.ui-chat-row.me .ui-chat-bubble {
  background: #14b8a6;
  color: white;
}

/* texto */
.ui-chat-user {
  font-weight: 600;
  font-size: 12px;
}

.ui-chat-time {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 4px;
  text-align: right;
}

/* input */
.ui-chat-input {
  display: flex;
  gap: 10px;
}

.ui-chat-input textarea {
  flex: 1;
}


/* =========================
   UPLOAD PROFORMA (STEP)
========================= */

.ui-upload-centered {
  border: 2px dashed #e5e7eb;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fafafa;
}

.ui-upload-centered:hover {
  border-color: #3b82f6;
  background: #f0f7ff;
}

.ui-upload-input {
  display: none;
}

.ui-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ui-upload-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.ui-upload-title {
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 5px;
  color: #111827;
}

.ui-upload-content .ui-text-muted {
  font-size: 13px;
}

/* =========================
   BADGE ESTADO (STEP)
========================= */

.ui-badge-gray {
  background: var(--ui-status-neutral-bg);
  color: var(--ui-status-neutral-text);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
}

/* =========================
   STEP – CONFIRMACION PAGO
========================= */

.ui-upload-centered {
  border: 2px dashed #e5e7eb;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  background: #fafafa;
}

.ui-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ui-upload-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.ui-upload-title {
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 6px;
  color: #111827;
}

/* =========================
   BUTTON – SECONDARY (BALANCED)
========================= */

.ui-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #f3f4f6; /* 🔥 este es el sweet spot */
  color: #111827;      /* 🔥 más contraste */

  border: 1px solid #e5e7eb;
  border-radius: 12px;

  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;

  text-decoration: none;

  cursor: pointer;
  transition: all 0.2s ease;
}

/* hover */
.ui-btn-secondary:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

/* activo */
.ui-btn-secondary:active {
  transform: scale(0.97);
}

/* disabled */
.ui-btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =========================
   GRID – STEP LOGISTICA
========================= */

.ui-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* =========================
   CARD – SOFT (SUB BLOQUES)
========================= */

.ui-card-soft {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fafafa;
}

/* =========================
   FLEX UTILITIES
========================= */

.ui-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =========================
   BUTTON – DANGER SMALL
========================= */

.ui-btn-danger-sm {
  background: #fee2e2;
  color: #991b1b;
  border: none;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
}


/* contenedor */
.ui-sections {
  position: relative;
}

/* secciones ocultas */
.ui-section-page {
  display: none;
}

/* activa */
.ui-section-page.active {
  display: block;
}


/* =========================
   COMPROBANTE
========================= */

/* CENTRADO */
.ui-card-center {
  max-width: 600px;
  margin: 40px auto;
}

/* ICONOS */
.ui-success-icon {
  width: 70px;
  height: 70px;
  background: var(--ui-success);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

.ui-error-icon {
  width: 70px;
  height: 70px;
  background: var(--ui-danger);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

/* TEXTOS */
.ui-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* RESUMEN */
.ui-summary-box {
  background: #f9fafb;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  padding: 15px;
  margin: 20px 0;
}

.ui-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}

/* ACCIONES */
.ui-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

/* BOTONES */
.ui-btn-outline {
  border: 1px solid var(--ui-border);
  background: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
}

/* COLLAPSE */
.ui-collapse-header {
  cursor: pointer;
  padding: 12px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  margin-top: 15px;
}

.ui-collapse-body {
  display: none;
  margin-top: 10px;
}

.ui-collapse-body.open {
  display: block;
}

/* DETALLE */
.ui-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}

/* =====================================================
   UI SHELL POR ROL
   Fase 1: admin (panel, maestros, ABM) pulido aqui.
   Fase 2: comprador — ampliar seccion .ui-shell--comprador
   Fase 3: vendedor — ampliar seccion .ui-shell--vendedor
===================================================== */

.app-main {
  min-height: calc(100vh - 56px);
}

/* Barra pública (vitrina exterior): pill flotante como bluetraderchile.com */
.ui-body--marketing-nav {
  padding-top: 7.25rem;
  background: #fcfcfc;
}

.ui-body--marketing-nav .app-main {
  min-height: calc(100vh - 7.25rem);
}

.ui-marketing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  pointer-events: none;
  padding: 1rem 0.75rem 0;
}

.ui-marketing-navbar--pill {
  pointer-events: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ui-marketing-navbar__shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.45rem 0.55rem 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(252, 252, 252, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.ui-marketing-brand--logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 0.35rem;
  text-decoration: none;
}

.ui-marketing-brand__logo {
  display: block;
  width: auto;
  height: 2rem;
  max-width: 140px;
  object-fit: contain;
}

.ui-marketing-navbar__menu {
  gap: 0.15rem;
}

.ui-marketing-navbar__menu .nav-item {
  display: flex;
  align-items: center;
}

.ui-marketing-nav-link {
  color: rgba(26, 26, 28, 0.72) !important;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.55rem 0.8rem !important;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.ui-marketing-nav-link:hover,
.ui-marketing-nav-link:focus {
  color: #1a1a1c !important;
  background: rgba(15, 23, 42, 0.05);
}

.ui-marketing-nav-link.is-active {
  color: #1a1a1c !important;
  background: rgba(236, 108, 4, 0.1);
  box-shadow: none;
}

.ui-marketing-navbar__actions {
  margin-left: auto;
}

.ui-marketing-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ui-marketing-nav-btn--ghost {
  color: #1a1a1c !important;
  background: transparent;
  border: 1px solid transparent;
}

.ui-marketing-nav-btn--ghost:hover,
.ui-marketing-nav-btn--ghost:focus {
  background: rgba(15, 23, 42, 0.05);
  color: #1a1a1c !important;
}

.ui-marketing-nav-btn--primary {
  color: #fff !important;
  background: var(--ui-cta);
  border: 1px solid var(--ui-cta);
  box-shadow: 0 1px 2px rgba(234, 88, 12, 0.25);
}

.ui-marketing-nav-btn--primary:hover,
.ui-marketing-nav-btn--primary:focus {
  background: var(--ui-cta-hover) !important;
  border-color: var(--ui-cta-hover) !important;
  color: #fff !important;
}

.ui-marketing-nav-btn--primary + .ui-marketing-nav-btn--primary {
  margin-left: 0;
}

@media (min-width: 1200px) {
  .ui-marketing-nav-btn--primary {
    padding-inline: 0.95rem;
  }
}

.ui-marketing-navbar__toggler {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
}

.ui-marketing-navbar__toggler-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  border-radius: 999px;
  background: #334155;
}

.ui-marketing-navbar__collapse {
  flex-basis: 100%;
  flex-grow: 1;
}

.ui-marketing-navbar__lang .ui-lang-switcher {
  font-size: 0.8125rem;
}

@media (min-width: 1200px) {
  .ui-marketing-navbar__shell {
    flex-wrap: nowrap;
    padding-right: 0.65rem;
  }

  .ui-marketing-navbar__collapse {
    display: flex !important;
    flex-basis: auto;
    flex-grow: 1;
    align-items: center;
    justify-content: space-between;
  }

  .ui-marketing-navbar__toggler {
    display: none;
  }
}

@media (max-width: 1199.98px) {
  .ui-body--marketing-nav {
    padding-top: 5.5rem;
  }

  .ui-marketing-navbar__shell {
    border-radius: 1.25rem;
    padding: 0.65rem 0.75rem;
  }

  .ui-marketing-navbar__collapse {
    padding-top: 0.75rem;
  }

  .ui-marketing-navbar__menu {
    width: 100%;
    margin-bottom: 0.75rem !important;
  }

  .ui-marketing-navbar__menu .ui-marketing-nav-link {
    width: 100%;
    border-radius: 0.75rem;
    padding-top: 0.7rem !important;
    padding-bottom: 0.7rem !important;
    border-bottom: 1px solid #eef2f7;
  }

  .ui-marketing-navbar__menu .nav-item:last-child .ui-marketing-nav-link {
    border-bottom: 0;
  }

  .ui-marketing-navbar__actions {
    width: 100%;
    margin-left: 0;
  }

  .ui-marketing-navbar__actions .ui-marketing-nav-btn {
    flex: 1 1 auto;
  }

  .ui-marketing-navbar__lang {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.25rem;
  }
}

/* Legacy brand (login u otros usos del hexágono) */
.ui-marketing-brand {
  margin-right: 0;
}

.ui-marketing-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.85rem;
  flex-shrink: 0;
  background: linear-gradient(155deg, #fb923c 0%, #ea580c 55%, #c2410c 100%);
  color: #fff;
  clip-path: polygon(50% 0%, 100% 14%, 100% 58%, 50% 100%, 0 58%, 0 14%);
  box-shadow: 0 1px 2px rgba(234, 88, 12, 0.35);
}

.ui-marketing-brand__mark .ui-marketing-brand__gavel {
  transform: rotate(-14deg);
  transform-origin: center;
}

.ui-marketing-brand__name {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: #1e293b;
  line-height: 1;
}

.ui-marketing-brand__rule {
  display: inline-block;
  width: 1px;
  height: 2.25rem;
  background: #cbd5e1;
  flex-shrink: 0;
}

.ui-marketing-brand__tagline {
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.2;
  color: #64748b;
  letter-spacing: 0.01em;
}

.ui-marketing-nav-link {
  color: #334155 !important;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0.75rem !important;
}

.ui-marketing-nav-link:hover,
.ui-marketing-nav-link:focus {
  color: #0f172a !important;
}

.ui-marketing-nav-link.is-active {
  box-shadow: inset 0 -2px 0 #94a3b8;
}

.ui-marketing-navbar .dropdown-toggle::after {
  margin-left: 0.35em;
  vertical-align: 0.12em;
}

.ui-marketing-nav-link--icon {
  font-size: 1.05rem;
  padding-left: 0.65rem !important;
  padding-right: 0.65rem !important;
}

/* Cuenta comprador/vendedor: sin barra superior — area principal a altura completa */
.ui-body-no-topbar .app-main {
  min-height: 100vh;
  padding-top: 0.75rem;
}

.ui-body-no-topbar .ui-account-layout {
  min-height: 100vh;
}

.ui-body-no-topbar .ui-account-layout > .ui-sidebar {
  min-height: 100vh;
}

.app-topbar .nav-link,
.app-topbar .navbar-brand {
  color: rgba(255, 255, 255, 0.95) !important;
}

.app-topbar .nav-link:hover,
.app-topbar .navbar-brand:hover {
  color: #fff !important;
  opacity: 0.92;
}

.app-topbar .navbar-toggler {
  filter: brightness(0) invert(1);
}

/* Barra: identidad por rol (resto de la UI del rol se agrega por fases) */
.app-topbar--public {
  background: linear-gradient(105deg, #0f172a 0%, #1e3a8a 55%, #1d4ed8 100%);
}

.app-topbar--comprador {
  background: linear-gradient(105deg, #9a3412 0%, #ea580c 45%, #f97316 100%);
}

.app-topbar--vendedor {
  /* Mismo tono naranjo corporativo que comprador (cuenta / NEW) */
  background: linear-gradient(105deg, #9a3412 0%, #ea580c 45%, #f97316 100%);
}

.app-topbar--admin {
  /* Misma identidad que cuenta vendedor/comprador (sin sidebar) */
  background: linear-gradient(105deg, #9a3412 0%, #ea580c 45%, #f97316 100%);
}

/* Fondo sutil por rol */
.ui-shell--public.bg-light {
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 32%, #f8f9fa 100%) !important;
}

/* Contenido publico (home, detalle remate, checkout) */
.ui-shell--public .ui-publico-content .card {
  border-radius: var(--ui-radius-lg);
}

.ui-shell--public .ui-publico-content .table thead th {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
}

.ui-shell--comprador.bg-light,
.ui-shell--vendedor.bg-light,
.ui-shell--admin.bg-light {
  /* Mismo criterio que cuenta pública: gris suave, sin tinte crema/naranja */
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 36%, #f3f4f6 100%) !important;
}

/* ---------- Login (todos los roles del formulario) ---------- */
.ui-login-wrap {
  max-width: 440px;
}

h1.ui-login-title,
.ui-shell--admin .ui-login-title,
.ui-shell--vendedor .ui-login-title,
.ui-shell--comprador .ui-login-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #212529;
}

.ui-login-wrap .form-control {
  max-width: 100%;
}

.ui-login-wrap .btn-primary {
  border-radius: 10px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
}

/* ---------- Admin: paginas de gestion ---------- */
.ui-shell--admin .ui-admin-page .btn-sm {
  border-radius: 8px;
  font-weight: 500;
}

.ui-shell--admin .ui-admin-page .btn-primary {
  background: var(--ui-primary);
  border-color: var(--ui-primary);
  font-weight: 600;
}

.ui-shell--admin .ui-admin-page .btn-primary:hover {
  background: var(--ui-primary-hover);
  border-color: var(--ui-primary-hover);
}

.ui-shell--admin .ui-admin-page .btn-outline-primary {
  color: var(--ui-primary-hover);
  border-color: rgba(249, 115, 22, 0.45);
  font-weight: 600;
}

.ui-shell--admin .ui-admin-page .btn-outline-primary:hover {
  background: var(--ui-primary);
  border-color: var(--ui-primary);
  color: #fff;
}

.ui-shell--admin .ui-admin-page .card {
  border: none;
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow-md);
}

.ui-shell--admin .ui-admin-page .card.border-warning {
  border: 2px solid #fbbf24 !important;
  box-shadow: var(--ui-shadow-sm);
}

.ui-shell--admin .ui-admin-page .table {
  font-size: 0.8125rem;
  line-height: 1.35;
}

.ui-shell--admin .ui-admin-page .table > :not(caption) > * > * {
  padding: 0.35rem 0.45rem;
}

.ui-shell--admin .ui-admin-page .table thead th {
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  border-bottom-width: 1px;
}

.ui-shell--admin .ui-admin-page .table .btn-sm {
  font-size: 0.75rem;
  padding: 0.2rem 0.45rem;
  line-height: 1.3;
}

.ui-shell--admin .ui-admin-page .table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(249, 115, 22, 0.05);
}

.ui-shell--admin .ui-admin-page .list-group-item {
  border-radius: var(--ui-radius) !important;
  margin-bottom: 6px;
  border: 1px solid var(--ui-border);
  box-shadow: var(--ui-shadow-sm);
}

.ui-shell--admin .ui-admin-page .list-group {
  border-radius: var(--ui-radius-lg);
}

.ui-shell--admin .alert {
  border-radius: var(--ui-radius);
  border: none;
}

.ui-shell--admin .ui-admin-page .dt-container {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
}

.ui-shell--admin .ui-admin-page .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ui-shell--admin .ui-admin-page .ui-admin-datatable {
  min-width: 720px;
}

.ui-shell--admin .ui-admin-page .table-responsive > .table:not(.ui-admin-datatable) {
  min-width: 640px;
}

.ui-shell--admin .ui-admin-page .dt-container .dt-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ui-shell--admin .ui-admin-page .dt-container .dt-scroll-body {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

.ui-shell--admin .ui-admin-page .dt-container .dt-length,
.ui-shell--admin .ui-admin-page .dt-container .dt-search,
.ui-shell--admin .ui-admin-page .dt-container .dt-info,
.ui-shell--admin .ui-admin-page .dt-container .dt-paging {
  font-size: 0.8125rem;
}

.ui-shell--admin .ui-admin-page .dt-container .dt-length label,
.ui-shell--admin .ui-admin-page .dt-container .dt-search label {
  font-size: 0.8125rem;
  margin-bottom: 0;
}

.ui-shell--admin .ui-admin-page table.dataTable {
  margin-top: 0 !important;
  margin-bottom: 0.5rem !important;
  font-size: inherit;
}

.ui-shell--admin .ui-admin-page table.dataTable thead th,
.ui-shell--admin .ui-admin-page table.dataTable tbody td {
  padding: 0.35rem 0.45rem;
}

/* =====================================================
   CUENTA COMPRADOR / VENDEDOR — layout + sidebar
   Fase comprador: refinamiento de contenido bajo .ui-shell--comprador
===================================================== */

.ui-account-layout {
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - 56px);
  width: 100%;
}

.ui-sidebar {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  background: var(--ui-card);
  border-right: 1px solid var(--ui-border);
  overflow-y: auto;
}

.ui-sidebar-header {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--ui-border);
}

.ui-sidebar-brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 12px;
}

.ui-sidebar-brand-logo {
  display: block;
  margin-bottom: 12px;
  line-height: 0;
  text-decoration: none;
}

.ui-sidebar-brand-logo:hover {
  opacity: 0.92;
}

.ui-sidebar-brand-logo img {
  display: block;
  max-width: 100%;
  height: 44px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.ui-user {
  font-size: 13px;
  color: var(--ui-text-body);
  line-height: 1.4;
}

.ui-user small {
  font-size: 11px;
  color: var(--ui-text-faint);
  text-transform: uppercase;
}

.ui-menu {
  padding: 15px 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.ui-menu-section {
  font-size: 11px;
  color: var(--ui-text-faint);
  margin: 18px 12px 6px;
  font-weight: 600;
  text-transform: uppercase;
}

.ui-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--ui-radius);
  text-decoration: none;
  color: var(--ui-text-body);
  font-size: 14px;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
  border: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}

.ui-menu-item i {
  font-size: 16px;
  color: var(--ui-text-faint);
  flex-shrink: 0;
}

.ui-menu-item:hover {
  background: #f9fafb;
  color: var(--ui-text);
}

.ui-menu-item.active {
  color: var(--ui-primary);
  font-weight: 500;
  background: #fff7ed;
}

.ui-menu-item.active i {
  color: var(--ui-primary);
}

.ui-menu-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  height: 24px;
  width: 3px;
  background: var(--ui-primary);
  border-radius: 2px;
}

.ui-menu-item::after {
  content: "›";
  margin-left: auto;
  color: #d1d5db;
  font-size: 14px;
}

.ui-menu-item.ui-logout::after,
.ui-menu-item.ui-menu-item--disabled::after {
  display: none;
}

.ui-menu-item.ui-logout {
  margin-top: auto;
  color: var(--ui-danger);
}

.ui-menu-item.ui-logout i {
  color: var(--ui-danger);
}

.ui-menu-item.ui-menu-item--disabled {
  cursor: default;
  opacity: 0.55;
  color: var(--ui-text-faint);
}

.ui-menu-item.ui-menu-item--disabled:hover {
  background: transparent;
}

.ui-account-main {
  flex: 1;
  min-width: 0;
  padding: 24px 28px 48px;
}

.ui-shell--comprador .ui-account-main,
.ui-shell--comprador .ui-comprador-content,
.ui-shell--vendedor .ui-account-main,
.ui-shell--vendedor .ui-vendedor-content {
  color: var(--ui-text-body);
}

/* —— Fase 2 móvil: padding cuenta + inspecciones + tabs táctiles —— */
@media (max-width: 767.98px) {
  .ui-shell--comprador .ui-account-main .card.shadow-sm.border-0,
  .ui-shell--vendedor .ui-account-main .card.shadow-sm.border-0 {
    border-radius: 12px;
  }

  .nav-tabs .nav-link,
  .ui-tabs button.ui-tab,
  .sm-v-tabs-enhanced .sm-v-tab-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .ui-insp-list-tabs .nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }

  .ui-vend-remate-tabs-scroll .nav-tabs .nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Secciones colapsables en inspecciones (solo móvil; escritorio siempre expandido) */
.ui-insp-mobile-section {
  margin-bottom: 1rem;
}

.ui-insp-mobile-section > summary {
  list-style: none;
  cursor: default;
  pointer-events: none;
}

.ui-insp-mobile-section > summary::-webkit-details-marker {
  display: none;
}

@media (max-width: 767.98px) {
  .ui-insp-mobile-section {
    border: 1px solid #e8eaed;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  }

  .ui-insp-mobile-section > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 44px;
    padding: 12px 14px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
  }

  .ui-insp-mobile-section > summary::after {
    content: "";
    flex-shrink: 0;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    margin-top: -0.2rem;
  }

  .ui-insp-mobile-section[open] > summary::after {
    transform: rotate(-135deg);
    margin-top: 0.15rem;
  }

  .ui-insp-mobile-section__body {
    padding: 0 14px 14px;
  }

  .ui-insp-mobile-section__body > .card {
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
  }

  .ui-insp-mobile-section__body > .card > .card-body {
    padding: 0;
  }

  .ui-insp-mobile-section--flat > summary {
    border-bottom: 1px solid #eef0f3;
    border-radius: 12px 12px 0 0;
  }

  .ui-insp-mobile-section--flat:not([open]) > summary {
    border-bottom: none;
    border-radius: 12px;
  }

  .ui-insp-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 1rem -14px -14px;
    padding: 12px 14px max(12px, env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    border-top: 1px solid #e8eaed;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
  }

  .ui-insp-vend-card .ui-insp-form-actions {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    margin-bottom: -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media (min-width: 768px) {
  .ui-insp-mobile-section > summary {
    display: none;
  }

  .ui-insp-mobile-section {
    border: none;
    background: transparent;
    box-shadow: none;
    margin-bottom: 0;
  }

  .ui-insp-mobile-section__body {
    padding: 0;
  }
}

/* Pasos post-adjudicación vendedor: <details> nativo (Collapse de Bootstrap falla dentro de .tab-pane oculto al cargar). */
.sm-vend-adj details.sm-vend-adj-step {
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.04);
}

.sm-vend-adj summary.sm-vend-adj-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  margin: 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  background-color: #f8f9fa;
  border: none;
  width: 100%;
  text-align: left;
  color: #212529;
}

.sm-vend-adj summary.sm-vend-adj-summary::-webkit-details-marker {
  display: none;
}

.sm-vend-adj summary.sm-vend-adj-summary::marker {
  content: '';
  display: none;
}

.sm-vend-adj details.sm-vend-adj-step[open] > summary.sm-vend-adj-summary {
  background-color: #e9ecef;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.sm-vend-adj summary .sm-vend-adj-summary-title {
  flex: 1 1 auto;
  min-width: 140px;
}

.sm-vend-empresa-destacada {
  border-width: 2px;
  border-style: solid;
}
.sm-vend-empresa-destacada--adjudicada {
  border-color: #198754;
  background: linear-gradient(135deg, #e8f5e9 0%, #fff 52%);
  box-shadow: 0 4px 18px rgba(25, 135, 84, 0.14);
}
.sm-vend-empresa-destacada--lider {
  border-color: #0d6efd;
  background: linear-gradient(135deg, #e7f1ff 0%, #fff 52%);
}
.sm-vend-empresa-destacada__title {
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.sm-vend-empresa-destacada__nombre {
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 800;
  line-height: 1.2;
  color: #212529;
  margin: 0;
}
.sm-vend-empresa-destacada__email,
.sm-vend-empresa-destacada__telefono {
  font-size: 1rem;
  font-weight: 500;
  word-break: break-all;
}

.sm-vend-adj .sm-vend-adj-body {
  padding: 1rem 1.25rem;
  background: #fff;
}

/* Pestañas remate vendedor: scroll horizontal si no caben (evita pestañas inaccesibles). */
.ui-vend-remate-tabs-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.ui-vend-remate-tabs-scroll .nav-tabs {
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: min-content;
}
.ui-vend-remate-tabs-scroll .nav-tabs .nav-link {
  flex-shrink: 0;
  cursor: pointer;
}
.ui-vend-remate-tabs-scroll .nav-tabs a.nav-link {
  text-decoration: none;
}

/* Configuración remate vendedor: fechas + documentos (mock publicación / Figma) */
.ui-vend-remate-steps {
  margin-top: 0.25rem;
}
.ui-shell--vendedor .ui-vendedor-content .ui-vend-remate-section.card {
  position: relative;
  border: 1px solid #e8eaed !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 20px rgba(15, 23, 42, 0.04) !important;
  background: #fff;
  overflow: visible;
}
.ui-vend-remate-section .card-body {
  padding: 1.5rem 1.5rem 1.6rem;
}
.ui-vend-remate-section__head {
  padding-right: 2.75rem;
  margin-bottom: 1.35rem;
}
.ui-vend-remate-steps--no-section-status .ui-vend-remate-section__head {
  padding-right: 0;
}
.ui-vend-remate-section__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #212529;
  margin: 0 0 0.4rem;
  line-height: 1.3;
}
.ui-vend-estimated-tag {
  display: inline-block;
  font-size: 0.58em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a3412;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fdba74;
  border-radius: 999px;
  padding: 0.2em 0.65em;
  margin: 0 0.2em;
  vertical-align: middle;
  line-height: 1.35;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}
.ui-vend-remate-section__lead {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ui-text-body);
  margin: 0;
  max-width: 52rem;
}
.ui-vend-remate-section__status {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 1;
  pointer-events: none;
  line-height: 1;
}

.ui-vend-remate-section__check {
  display: none !important;
  font-size: 1.4rem;
  color: #22c55e;
  filter: drop-shadow(0 1px 2px rgba(34, 197, 94, 0.25));
}

.ui-vend-remate-section__status--complete .ui-vend-remate-section__check {
  display: block !important;
}

.ui-vend-remate-section__check[hidden],
.ui-vend-remate-section__status--pending .ui-vend-remate-section__check {
  display: none !important;
}

.ui-vend-remate-section__pending {
  display: none;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #111827;
  background: #f3f4f6;
  letter-spacing: 0.01em;
}

.ui-vend-remate-section__status--pending .ui-vend-remate-section__pending {
  display: inline-flex;
}

.ui-vend-remate-section__pending[hidden] {
  display: none !important;
}
.ui-vend-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ui-text-body);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}
.ui-vend-label-opt {
  font-weight: 500;
  color: var(--ui-text-faint);
}
.ui-vend-req {
  color: #ef4444;
  font-weight: 700;
}
.ui-shell--vendedor .ui-vendedor-content .ui-vend-control.form-control {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  color: #1f2937;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ui-shell--vendedor .ui-vendedor-content .ui-vend-control.form-control:hover {
  border-color: #d1d5db;
}
.ui-shell--vendedor .ui-vendedor-content .ui-vend-control.form-control:focus {
  border-color: var(--ui-link);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03), 0 0 0 3px rgba(0, 169, 162, 0.18);
}
.ui-shell--vendedor .ui-vendedor-content textarea.ui-vend-control.form-control {
  min-height: 120px;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  line-height: 1.45;
  resize: vertical;
}
.ui-shell--vendedor .ui-vendedor-content textarea.ui-vend-control.form-control::placeholder {
  color: var(--ui-text-faint);
}
.ui-vend-upload-grid {
  --bs-gutter-x: 1.25rem;
  --bs-gutter-y: 1.25rem;
}
.ui-vend-upload-cell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.ui-vend-dropzone {
  position: relative;
  flex: 1;
  min-height: 188px;
  border: 1.5px dashed #d8dce3;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfbfc 0%, #f4f5f7 100%);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.ui-vend-dropzone.drag {
  border-color: var(--ui-link);
  background: rgba(0, 169, 162, 0.07);
  box-shadow: 0 0 0 3px rgba(0, 169, 162, 0.12);
}
.ui-vend-dropzone.has-new-file {
  border-color: #4ade80;
  border-style: solid;
  background: rgba(74, 222, 128, 0.06);
}
.ui-vend-dropzone__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.ui-vend-dropzone__inner {
  position: relative;
  z-index: 0;
  pointer-events: none;
  padding: 1.2rem 0.9rem 1.1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 188px;
}
.ui-vend-dropzone__ico {
  font-size: 2.125rem;
  margin-bottom: 0.5rem;
  line-height: 1;
  opacity: 0.95;
}
.ui-vend-dropzone__ico--pdf {
  color: #dc2626;
}
.ui-vend-dropzone__ico--xls {
  color: #16a34a;
}
.ui-vend-dropzone__ico--img {
  color: var(--ui-text-faint);
}
.ui-vend-dropzone__title {
  font-weight: 600;
  font-size: 0.8125rem;
  margin-bottom: 0.45rem;
  color: var(--ui-text-body);
  letter-spacing: 0.01em;
}
.ui-vend-dropzone__line {
  font-size: 0.78rem;
  color: var(--ui-text-body);
  line-height: 1.4;
  max-width: 15rem;
  margin-left: auto;
  margin-right: auto;
}
.ui-vend-dropzone__fmt,
.ui-vend-dropzone__note {
  font-size: 0.72rem;
  color: var(--ui-text-faint);
  line-height: 1.35;
}
.ui-vend-dropzone__file {
  color: var(--ui-link);
  font-weight: 600;
  min-height: 0;
}
.ui-vend-dropzone__file:empty {
  display: none;
}
.ui-vend-file-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ui-link);
  text-decoration: none;
  line-height: 1.3;
}
.ui-vend-file-pill__ico {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.95;
}
.ui-vend-file-pill:hover {
  color: var(--ui-link-hover);
  text-decoration: underline;
}
.ui-vend-inline-link {
  color: var(--ui-link);
  font-weight: 600;
}
.ui-vend-inline-link:hover {
  color: var(--ui-link-hover);
}
.ui-vend-remate-footer-card .card-body {
  padding: 1.15rem 1.5rem;
}
.ui-vend-remate-footer {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.ui-vend-terms-box {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.35rem 1.5rem 1.4rem;
  background: linear-gradient(165deg, #fffbeb 0%, #fff 55%);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
  max-width: 100%;
}
@media (min-width: 768px) {
  .ui-vend-terms-box {
    padding: 1.5rem 1.65rem 1.55rem;
  }
}
.ui-vend-terms-box--locked {
  border-color: #fcd34d;
  background: linear-gradient(165deg, #fffbeb 0%, #fefce8 100%);
}
.ui-vend-terms-box:not(.ui-vend-terms-box--locked) {
  border-color: rgba(249, 115, 22, 0.45);
  background: linear-gradient(165deg, #fff 0%, #fff7ed 100%);
}
.ui-vend-terms-box .ui-vend-terms-hint {
  color: #4b5563;
  line-height: 1.45;
  margin-bottom: 0.85rem;
}
@media (min-width: 768px) {
  .ui-vend-terms-box .ui-vend-terms-hint {
    margin-bottom: 1rem;
  }
}
/* Evita el layout float + margin negativo de .form-check en Chrome al pisar padding-left */
.ui-vend-terms-check-frame {
  margin-top: 0.35rem;
}
.ui-vend-terms-wrap.form-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem 1rem;
  margin-top: 0;
  margin-bottom: 0;
  min-height: 0;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.65);
}
.ui-vend-terms-box--locked .ui-vend-terms-wrap.form-check {
  border-color: rgba(180, 83, 9, 0.22);
  background: rgba(255, 255, 255, 0.5);
}
.ui-vend-terms-box:not(.ui-vend-terms-box--locked) .ui-vend-terms-wrap.form-check {
  border-color: rgba(249, 115, 22, 0.28);
  background: rgba(255, 255, 255, 0.85);
}
.ui-vend-terms-wrap .form-check-label {
  flex: 1;
  min-width: 0;
  padding-left: 0;
}
.ui-vend-terms-label {
  font-size: 0.9375rem;
  color: #1f2937;
  line-height: 1.45;
  padding-top: 0.1rem;
}
.ui-shell--vendedor .ui-vendedor-content .ui-vend-terms-wrap .ui-vend-terms-check.form-check-input {
  float: none;
  margin-left: 0;
  margin-top: 0.2em;
  position: relative;
  left: auto;
  flex-shrink: 0;
  width: 1.35em;
  height: 1.35em;
  border-radius: 5px;
  border-width: 2px;
  border-color: #9ca3af;
}
.ui-shell--vendedor .ui-vendedor-content .ui-vend-terms-wrap .ui-vend-terms-check.form-check-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.ui-shell--vendedor .ui-vendedor-content .ui-vend-terms-wrap .ui-vend-terms-check.form-check-input:checked {
  background-color: var(--ui-brand-orange);
  border-color: var(--ui-brand-orange);
}
.ui-shell--vendedor .ui-vendedor-content .ui-vend-terms-wrap .ui-vend-terms-check.form-check-input:focus {
  border-color: var(--ui-brand-orange);
  box-shadow: 0 0 0 0.2rem rgba(236, 108, 4, 0.18);
}
.ui-shell--vendedor .ui-vendedor-content .ui-vend-submit-btn.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.ui-shell--vendedor .ui-vendedor-content .ui-vend-submit-btn.btn {
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.65rem 1.75rem;
  min-width: 11rem;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}
.ui-shell--vendedor .ui-vendedor-content .ui-vend-submit-btn.btn:hover {
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
  transform: translateY(-1px);
}
.ui-shell--vendedor .ui-vendedor-content .ui-vend-submit-btn.btn:active {
  transform: translateY(0);
}

.ui-vend-readonly-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ui-text-body);
}
/* ——— Remate vendedor: ítems del lote + totales (crear/editar) ——— */
.ui-vend-lote-subhead {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ui-text);
  margin: 1.5rem 0 1rem;
  letter-spacing: -0.01em;
}
.ui-vend-lote-items-table thead th {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ui-text-soft);
  border-bottom-width: 1px;
  padding: 0.3rem 0.2rem;
}
.ui-vend-lote-items-head .ui-vend-lote-subhead {
  margin: 0;
}
.ui-vend-lote-line-count {
  font-weight: 600;
  letter-spacing: 0.01em;
}
.ui-vend-lote-table-wrap {
  border: 1px solid #e8eaed;
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  background: #fff;
}
.ui-vend-lote-table-wrap .ui-vend-lote-items-table {
  margin-bottom: 0;
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.ui-vend-lote-items-table thead th.ui-vend-lote-col-num,
.ui-vend-lote-items-table tbody td:first-child {
  width: 1.75rem;
}
.ui-vend-lote-items-table thead th:nth-child(2),
.ui-vend-lote-items-table thead th:nth-child(3),
.ui-vend-lote-items-table thead th:nth-child(4) {
  width: 14%;
}
.ui-vend-lote-items-table thead th:nth-child(5) {
  width: 17%;
}
.ui-vend-lote-items-table thead th:nth-child(6),
.ui-vend-lote-items-table thead th:nth-child(7) {
  width: 11%;
}
.ui-vend-lote-items-table thead th.ui-vend-lote-col-action,
.ui-vend-lote-composer td.ui-vend-lote-col-action,
.ui-vend-lote-items-table tbody#lot-body td:last-child {
  width: 2.85rem;
  padding-left: 0.15rem !important;
  padding-right: 0.15rem !important;
}
.ui-vend-lote-items-table tbody td {
  padding: 0.25rem 0.2rem !important;
  overflow: hidden;
}
.ui-vend-lote-items-table tbody#lot-body td:last-child .btn-link {
  font-size: 0.6875rem;
  white-space: nowrap;
}
.ui-vend-lote-items-table tbody td:nth-child(2) .form-control,
.ui-vend-lote-items-table tbody td:nth-child(3) .form-control,
.ui-vend-lote-items-table tbody td:nth-child(4) .form-control,
.ui-vend-lote-items-table tbody td:nth-child(5) .form-control,
.ui-vend-lote-items-table tbody td:nth-child(5) .form-select,
.ui-vend-lote-composer .form-control,
.ui-vend-lote-composer .form-select {
  width: 100%;
  min-width: 0;
  font-size: 0.8125rem;
  padding: 0.2rem 0.35rem;
}
.ui-vend-lote-empty-cell {
  padding: 1rem !important;
  text-align: center;
  color: var(--ui-text-soft);
  font-size: 0.8125rem;
  line-height: 1.45;
  background: #fff;
  border-top: none;
}
.ui-vend-lote-composer {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: none;
}
.ui-vend-lote-composer td {
  vertical-align: middle;
  border-bottom: none;
}
.ui-vend-lote-section-split__row:hover {
  background: transparent;
}
.ui-vend-lote-section-split__cell {
  padding: 0 !important;
  border: none !important;
  background: #fff;
  vertical-align: middle;
}
.ui-vend-lote-section-split__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  background: linear-gradient(180deg, #f1f5f9 0%, #fff 100%);
  border-top: 2px solid #cbd5e1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.ui-vend-lote-section-split__line {
  flex: 1 1 auto;
  min-width: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cbd5e1 12%, #94a3b8 50%, #cbd5e1 88%, transparent);
}
.ui-vend-lote-section-split__label {
  flex: 0 0 auto;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
  white-space: nowrap;
}
.ui-vend-lote-items-table tbody#lot-body > tr:not(.ui-vend-lote-empty-row):first-child td {
  border-top: none;
}
.ui-vend-lote-items-table tbody#lot-body > tr.ui-vend-lote-empty-row td {
  border-top: none;
}
.ui-vend-lote-composer .form-control,
.ui-vend-lote-composer .form-select {
  background: #fff;
}
.ui-vend-lote-composer-hint kbd {
  font-size: 0.75em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: #eef0f3;
  border: 1px solid #d1d5db;
}
.ui-vend-lote-composer-error:not([hidden]) {
  display: block;
}
.ui-vend-lote-row-new {
  animation: ui-vend-lote-row-flash 1.2s ease-out;
}
@keyframes ui-vend-lote-row-flash {
  0% { background-color: rgba(34, 197, 94, 0.22); }
  100% { background-color: transparent; }
}
.ui-vend-btn-add-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  min-width: 1.65rem;
  padding: 0 !important;
  border-radius: 5px !important;
  font-size: 0 !important;
  line-height: 1 !important;
  border: 1px solid var(--ui-primary) !important;
  color: #fff !important;
  background: var(--ui-primary) !important;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.ui-vend-btn-add-line .bi {
  font-size: 0.8rem;
  line-height: 1;
}
.ui-vend-btn-add-line:hover:not(:disabled) {
  background: var(--ui-primary-hover) !important;
  border-color: var(--ui-primary-hover) !important;
  color: #fff !important;
  box-shadow: none;
  transform: none;
}
.ui-vend-btn-add-line:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: rgba(249, 115, 22, 0.35) !important;
  box-shadow: none;
  transform: none;
}
.ui-vend-btn-add-line:focus-visible {
  outline: 2px solid rgba(249, 115, 22, 0.55);
  outline-offset: 2px;
}
.ui-vend-lote-items-table td {
  vertical-align: middle;
}
.ui-vend-lote-items-table td .ui-vend-ig-lote {
  min-width: 0;
  width: 100%;
}
.ui-vend-lote-items-table .ui-vend-ig-lote .form-control {
  font-size: 0.8125rem;
  padding: 0.2rem 0.3rem;
}
.ui-vend-lote-items-table .ui-vend-ig-lote .input-group-text.ui-vend-ig-lote__suffix {
  min-width: 2.1rem;
  padding: 0.2rem 0.25rem;
  font-size: 0.6875rem;
}
/* Input grupo: número + unidad/moneda destacados */
.ui-shell--vendedor .ui-vend-ig-lote.input-group {
  flex-wrap: nowrap;
}
.ui-shell--vendedor .ui-vend-ig-lote .form-control {
  min-width: 0;
  border-radius: 10px 0 0 10px !important;
  font-weight: 600;
  color: #111827;
}
.ui-shell--vendedor .ui-vend-ig-lote .input-group-text.ui-vend-ig-lote__suffix {
  flex-shrink: 0;
  min-width: 3.5rem;
  justify-content: center;
  padding: 0.4rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #111827;
  background: linear-gradient(180deg, #eef0f3 0%, #e2e5ea 100%);
  border: 1px solid #cbd0d6;
  border-left: 0;
  border-radius: 0 10px 10px 0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.ui-shell--vendedor .ui-vend-lote-items-table .ui-vend-ig-lote .input-group-text.ui-vend-ig-lote__suffix {
  min-width: 2.1rem;
  padding: 0.2rem 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.ui-shell--vendedor .ui-vend-ig-lote .form-control:focus {
  z-index: 1;
}
.ui-vend-lote-add-toolbar .ui-vend-ig-lote {
  max-width: 100%;
}

.ui-vend-lote-add-toolbar {
  margin-bottom: 0.35rem;
}

.ui-vend-lote-items-table + .ui-vend-lote-add-item-wrap,
.ui-vend-lote-add-toolbar + .ui-vend-lote-add-item-wrap {
  margin-top: 1.35rem;
}

.ui-vend-lote-add-item-wrap {
  margin-top: 1.35rem;
  margin-bottom: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 100%);
  border: 1px dashed rgba(249, 115, 22, 0.4);
}

.ui-vend-btn-add-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px !important;
  padding: 0.65rem 1.75rem !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  border: none !important;
  color: #fff !important;
  background: var(--ui-primary) !important;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ui-vend-btn-add-item:hover {
  background: var(--ui-primary-hover) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.42);
  transform: translateY(-1px);
}

.ui-vend-btn-add-item:focus-visible {
  outline: 2px solid rgba(249, 115, 22, 0.55);
  outline-offset: 2px;
}
/* Tarjetas resumen: peso (verde) + precio (rojo) */
.ui-vend-lote-totals-wrap {
  margin-top: 1.25rem;
}
.ui-vend-lote-summary-card {
  height: 100%;
  border: 1px solid #e8eaed;
  border-radius: 14px;
  padding: 1.1rem 1.25rem 1.2rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.ui-vend-lote-summary-card__label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ui-text-body);
  letter-spacing: 0.01em;
}
.ui-vend-lote-summary-card__unit-hint {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ui-text-soft);
}
.ui-vend-lote-summary-card__unit-hint .ui-vend-metric-em {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #6ee7b7;
  color: #047857;
}
.ui-vend-lote-summary-card__unit-hint .ui-vend-metric-muted {
  font-weight: 600;
  color: var(--ui-text-faint);
  letter-spacing: 0.04em;
}
.ui-vend-lote-summary-card__unit-hint--money .ui-vend-currency-em {
  display: inline-block;
  padding: 0.12rem 0.55rem;
  border-radius: 6px;
  background: linear-gradient(180deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fca5a5;
  color: #b91c1c;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.ui-vend-lote-summary-card__value {
  margin-top: 0.45rem;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.ui-vend-lote-summary-card__value--weight {
  color: #15803d;
}
.ui-vend-lote-summary-card__value--price {
  color: #dc2626;
}

.ui-vend-readonly-value {
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ui-text-body);
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}
.ui-vend-readonly-value--multiline {
  min-height: 120px;
  white-space: pre-wrap;
}
.ui-vend-remate-fields--readonly-soft {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
}
.ui-vend-dropzone--readonly {
  cursor: default;
  pointer-events: none;
  border-style: dashed;
  opacity: 1;
}
.ui-vend-dropzone--readonly .ui-vend-dropzone__inner {
  min-height: 160px;
}
.ui-vend-file-pill--muted {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  color: var(--ui-text-faint);
  font-weight: 500;
}

.ui-shell--vendedor .ui-vendedor-content select.ui-vend-control.form-select {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background-color: #fff;
  min-height: 44px;
  padding: 0.5rem 2.25rem 0.5rem 0.85rem;
  font-size: 0.875rem;
  color: var(--ui-text-body);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ui-shell--vendedor .ui-vendedor-content select.ui-vend-control.form-select:hover {
  border-color: #d1d5db;
}
.ui-shell--vendedor .ui-vendedor-content select.ui-vend-control.form-select:focus {
  border-color: var(--ui-link);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03), 0 0 0 3px rgba(0, 169, 162, 0.18);
}

/* Sidebar cuenta comprador / vendedor — tono naranjo corporativo unificado (NEW) */
.ui-shell--comprador .ui-sidebar--comprador,
.ui-shell--vendedor .ui-sidebar--vendedor {
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 28%);
  border-right-color: #fed7aa;
}

.ui-shell--comprador .ui-sidebar--comprador .ui-menu-item.active,
.ui-shell--vendedor .ui-sidebar--vendedor .ui-menu-item.active {
  font-weight: 600;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.16) 0%, rgba(249, 115, 22, 0.06) 100%);
  color: #c2410c;
}

.ui-shell--comprador .ui-sidebar--comprador .ui-menu-item.active i,
.ui-shell--vendedor .ui-sidebar--vendedor .ui-menu-item.active i {
  color: #ea580c;
}

.ui-shell--comprador .ui-sidebar--comprador .ui-menu-item.active::before,
.ui-shell--vendedor .ui-sidebar--vendedor .ui-menu-item.active::before {
  background: #ea580c;
}

.ui-shell--comprador .ui-account-main .btn,
.ui-shell--vendedor .ui-account-main .btn {
  border-radius: 10px;
  font-weight: 500;
}

.ui-shell--comprador .ui-account-main .btn-primary,
.ui-shell--comprador .ui-account-main .btn.btn-primary,
.ui-shell--vendedor .ui-account-main .btn-primary,
.ui-shell--vendedor .ui-account-main .btn.btn-primary {
  background: var(--ui-primary);
  border-color: var(--ui-primary);
}

.ui-shell--comprador .ui-account-main .btn-primary:hover,
.ui-shell--comprador .ui-account-main .btn.btn-primary:hover,
.ui-shell--vendedor .ui-account-main .btn-primary:hover,
.ui-shell--vendedor .ui-account-main .btn.btn-primary:hover {
  background: var(--ui-primary-hover);
  border-color: var(--ui-primary-hover);
}

.ui-shell--comprador .ui-comprador-content .card,
.ui-shell--vendedor .ui-vendedor-content .card {
  border-radius: var(--ui-radius-lg);
}

.ui-shell--comprador .ui-comprador-content .list-group-item-action:hover,
.ui-shell--vendedor .ui-vendedor-content .list-group-item-action:hover {
  background-color: #eef2f6;
}

.ui-shell--comprador .ui-comprador-content .table thead th,
.ui-shell--vendedor .ui-vendedor-content .table thead th {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #78716c;
}

/* Inicio comprador (home): secciones ancla + tarjetas */
.ui-comprador-home section[id] {
  scroll-margin-top: 1.25rem;
}

/* Columnas del grid: permiten encoger el ancho para que fechas/texto no desborden la tarjeta */
.ui-comprador-home section .row > [class*='col-'] {
  min-width: 0;
}

.ui-comprador-home__card-mio {
  border-color: #e2e8f0 !important;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ui-mis-lote-docs {
  border: 1px solid #e8eaed;
  border-radius: 10px;
  background: #f8fafc;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.ui-mis-lote-docs__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.ui-mis-lote-docs__summary::-webkit-details-marker {
  display: none;
}

.ui-mis-lote-docs__summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  margin-top: -0.15rem;
}

.ui-mis-lote-docs[open] > .ui-mis-lote-docs__summary::after {
  transform: rotate(-135deg);
  margin-top: 0.1rem;
}

.ui-mis-lote-docs__body {
  padding: 0 12px 12px;
  min-width: 0;
  overflow: hidden;
}

.ui-mis-lote-docs__seller {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
}

.ui-mis-lote-docs__seller-name {
  flex: 1 1 0;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ui-mis-lote-docs__seller-label {
  font-size: 0.7rem;
}

.ui-mis-lote-docs__logo {
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.ui-comprador-home .vitrina-remate-meta .vitrina-remate-meta__fecha {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.vitrina-remate-meta__incoterm-note,
.vitrina-remate-meta__fechas-note {
  border-top: 1px dashed #cbd5e1;
  padding-top: 8px;
}

.vitrina-remate-meta__incoterm-note summary,
.vitrina-remate-meta__fechas-note summary {
  cursor: pointer;
  color: #0f766e;
  font-weight: 600;
  list-style: none;
}

.vitrina-remate-meta__incoterm-note summary::-webkit-details-marker,
.vitrina-remate-meta__fechas-note summary::-webkit-details-marker {
  display: none;
}

.vitrina-remate-meta__incoterm-note summary::before,
.vitrina-remate-meta__fechas-note summary::before {
  content: '+';
  margin-right: 6px;
  font-weight: 700;
}

.vitrina-remate-meta__incoterm-note[open] summary::before,
.vitrina-remate-meta__fechas-note[open] summary::before {
  content: '−';
}

.popover.sm-vitrina-pago-popover .popover-body {
  font-size: 0.8125rem;
  line-height: 1.38;
  max-width: min(310px, 92vw);
  text-align: left;
}

/* Tarjetas catálogo (mismo criterio que .ui-index: imagen acotada, no a pantalla completa) */
.ui-comprador-home .ui-comprador-home__card-pub.ui-card-remate {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ui-comprador-home .ui-comprador-home__card-pub.ui-card-remate:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.ui-comprador-home .ui-comprador-home__card-img {
  overflow: hidden;
  flex-shrink: 0;
  background: #f3f4f6;
}

.ui-comprador-home .ui-comprador-home__card-img img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
}

.ui-comprador-home .ui-comprador-home__card-pub .ui-card-body {
  padding: 16px;
  min-width: 0;
}

/* Logo vendedor: ancho completo de la tarjeta (compensa padding 16px del body; remates disponibles) */
.ui-comprador-home .ui-comprador-home__card-pub .ui-card-logo {
  display: block;
  width: calc(100% + 32px);
  max-width: none;
  margin-left: -16px;
  margin-right: -16px;
  margin-bottom: 12px;
  height: 112px;
  object-fit: contain;
  object-position: center center;
  flex-shrink: 0;
}

.ui-comprador-home__card-pub .ui-btn-cta {
  border-radius: 999px;
}

/* Inspecciones comprador: grid de tarjetas */
.ui-comprador-inspecciones .ui-comprador-inspecciones__card {
  border-radius: var(--ui-radius-lg, 12px);
  border: 1px solid #e7e5e4;
}

.ui-vend-inspecciones__card {
  border-radius: var(--ui-radius-lg, 12px);
  border: 1px solid #e7e5e4;
}

/* Cuenta: barra compacta + menú lateral tipo drawer en viewport pequeño */
.ui-account-mobile-bar {
  display: none;
}

.ui-account-sidebar-backdrop {
  display: none;
}

@media (max-width: 767.98px) {
  body.ui-account-nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .ui-account-mobile-bar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 1020;
    flex-shrink: 0;
    width: 100%;
    padding: 10px 14px;
    background: var(--ui-card);
    border-bottom: 1px solid var(--ui-border);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  }

  .ui-account-sidebar-backdrop.d-md-none {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1038;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
  }

  .ui-account-layout.ui-account-sidebar-open .ui-account-sidebar-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .ui-account-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .ui-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    width: min(288px, 88vw);
    max-width: 100%;
    z-index: 1040;
    transform: translate3d(-100%, 0, 0);
    transition: transform 0.22s ease;
    border-right: 1px solid var(--ui-border);
    border-bottom: none;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.12);
    padding-top: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ui-account-layout.ui-account-sidebar-open .ui-sidebar {
    transform: translate3d(0, 0, 0);
  }

  .ui-menu {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
    padding-bottom: 20px;
  }

  .ui-menu-item {
    flex: 0 0 auto;
  }

  .ui-menu-item.ui-logout {
    margin-top: auto;
  }

  .ui-account-main {
    flex: 1;
    min-width: 0;
    padding-top: 16px;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-bottom: max(48px, calc(env(safe-area-inset-bottom, 0px) + 40px));
  }
}

/* Login — textos panel izquierdo en escritorio (prioridad final vs. Bootstrap h2/p) */
@media (min-width: 992px) {
  .ui-auth-page .ui-auth-split__visual .ui-auth-split__visual-inner {
    max-width: min(92%, 480px);
    padding: calc(var(--ui-auth-column-pad-top, 2.5rem) + var(--ui-auth-form-header-offset, 10rem)) 24px 30px;
    justify-content: flex-start;
  }

  .ui-auth-page .ui-auth-split__visual .ui-auth-split__flag {
    font-size: 1.875rem;
    height: 1.8em;
    align-self: flex-start;
  }

  .ui-auth-page .ui-auth-split__visual h2.ui-auth-split__tagline {
    font-size: 1.875rem;
    font-weight: 500;
    padding: 11px 26px;
    border-radius: 16px;
    margin-bottom: 0.75rem;
  }

  .ui-auth-page .ui-auth-split__visual p.ui-auth-split__lead {
    font-size: 1.625rem;
  }
}

/* =====================================================
   TABS — componente único de plataforma
   Inactivo: texto gris. Activo: subrayado naranja #ec6c04.
===================================================== */
.nav-tabs,
.ui-tabs,
.ui-auth-role-switch,
.sm-v-tabs-enhanced .sm-v-tabs-bar,
.sm-comprador-remate-tabs .ui-tabs.sm-c-tabs-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: flex-end;
  list-style: none;
  padding: 0 !important;
  margin: 0 0 1rem !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ui-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-width: 0;
}

.ui-vend-remate-tabs-scroll,
.sm-v-tabs-enhanced .sm-v-tabs-scroll {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.nav-tabs .nav-item,
.sm-v-tabs-enhanced .sm-v-tab-item {
  flex: 0 0 auto !important;
  min-width: 0 !important;
}

.nav-tabs .nav-link,
.ui-auth-role-switch a,
.ui-tab,
.ui-remates .ui-tab,
.sm-v-tabs-enhanced .sm-v-tab-link,
.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab {
  flex: 0 0 auto !important;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0.75rem 0.05rem 0.65rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ui-tab-inactive) !important;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  transform: none !important;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus,
.ui-auth-role-switch a:hover,
.ui-auth-role-switch a:focus,
.ui-tab:hover,
.ui-tab:focus,
.ui-remates .ui-tab:hover,
.ui-remates .ui-tab:focus,
.sm-v-tabs-enhanced .sm-v-tab-link:hover,
.sm-v-tabs-enhanced .sm-v-tab-link:focus,
.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab:hover,
.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab:focus {
  color: var(--ui-text) !important;
  background: transparent !important;
  border-color: transparent !important;
}

.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab.sm-tab-chat-highlight,
.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab.sm-tab-chat-highlight:hover,
.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab.sm-tab-chat-highlight:focus,
.sm-v-tabs-enhanced .sm-v-tab-link.sm-tab-chat-highlight,
.sm-v-tabs-enhanced .sm-v-tab-link.sm-tab-chat-highlight:hover,
.sm-v-tabs-enhanced .sm-v-tab-link.sm-tab-chat-highlight:focus {
  color: var(--ui-tab-inactive) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link,
.ui-auth-role-switch a.active,
.ui-shell--comprador .ui-auth-role-switch a.active,
.ui-shell--vendedor .ui-auth-role-switch a.active,
.ui-shell--admin .ui-auth-role-switch a.active,
.ui-tab.active,
.ui-remates .ui-tab.active,
.sm-v-tabs-enhanced .sm-v-tab-link.active,
.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab.active,
.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab.sm-tab-chat-highlight.active,
.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab.sm-c-tab-proceso.active,
.sm-v-tabs-enhanced .sm-v-tab-link.sm-tab-chat-highlight.active,
.sm-v-tabs-enhanced .sm-v-tab-link.sm-v-tab-adjudicacion.active {
  color: var(--ui-text) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.nav-tabs .nav-link::after,
.ui-auth-role-switch a::after,
.ui-tab::after,
.ui-remates .ui-tab::after,
.sm-v-tabs-enhanced .sm-v-tab-link::after,
.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: transparent;
  transition: background 0.15s ease;
}

.nav-tabs .nav-link.active::after,
.nav-tabs .nav-item.show .nav-link::after,
.ui-auth-role-switch a.active::after,
.ui-shell--comprador .ui-auth-role-switch a.active::after,
.ui-shell--vendedor .ui-auth-role-switch a.active::after,
.ui-shell--admin .ui-auth-role-switch a.active::after,
.ui-tab.active::after,
.ui-remates .ui-tab.active::after,
.sm-v-tabs-enhanced .sm-v-tab-link.active::after,
.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab.active::after {
  background: var(--ui-tab-active) !important;
}

.sm-c-tab-inner,
.sm-v-tabs-enhanced .sm-v-tab-link .sm-c-tab-inner {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  width: auto !important;
}

.sm-c-tab-text {
  display: inline-flex !important;
  gap: 0 !important;
}

.sm-c-tab-label,
.sm-v-tabs-enhanced .sm-v-tab-link .sm-c-tab-label {
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: 0 !important;
}

.sm-c-tab-step,
.sm-c-tab-sub {
  display: none !important;
}

.sm-comprador-remate-tabs .sm-c-tabs-bar .sm-chat-tab-badge,
.sm-remate-tab-badge,
.sm-insp-tab-badge {
  position: static !important;
  top: auto !important;
  right: auto !important;
  vertical-align: middle;
  margin-left: 0.25rem;
}

@media (max-width: 575.98px) {
  .nav-tabs,
  .ui-tabs,
  .ui-auth-role-switch,
  .sm-v-tabs-enhanced .sm-v-tabs-bar,
  .sm-comprador-remate-tabs .ui-tabs.sm-c-tabs-bar {
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
}

/* =====================================================
   CTA — todos los botones principales son naranjos
===================================================== */
.btn-primary,
.btn.btn-primary,
.ui-btn-cta,
.ui-btn-primary,
.ui-comprador-home__btn-cta {
  --bs-btn-bg: var(--ui-cta);
  --bs-btn-border-color: var(--ui-cta);
  --bs-btn-hover-bg: var(--ui-cta-hover);
  --bs-btn-hover-border-color: var(--ui-cta-hover);
  --bs-btn-active-bg: var(--ui-cta-hover);
  --bs-btn-active-border-color: var(--ui-cta-hover);
  --bs-btn-disabled-bg: var(--ui-cta);
  --bs-btn-disabled-border-color: var(--ui-cta);
  background: var(--ui-cta) !important;
  background-color: var(--ui-cta) !important;
  border-color: var(--ui-cta) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn.btn-primary:hover,
.btn-primary:focus,
.btn.btn-primary:focus,
.ui-btn-cta:hover,
.ui-btn-cta:focus,
.ui-btn-primary:hover,
.ui-btn-primary:focus,
.ui-comprador-home__btn-cta:hover,
.ui-comprador-home__btn-cta:focus {
  background: var(--ui-cta-hover) !important;
  background-color: var(--ui-cta-hover) !important;
  border-color: var(--ui-cta-hover) !important;
  color: #fff !important;
}

.btn-primary:disabled,
.btn.btn-primary:disabled,
.ui-btn-cta:disabled,
.ui-btn-primary:disabled,
.ui-comprador-home__btn-cta:disabled {
  background: var(--ui-cta) !important;
  background-color: var(--ui-cta) !important;
  border-color: var(--ui-cta) !important;
  color: #fff !important;
  opacity: 0.65;
}

/* =====================================================
   TABS REMATE — excepción de flujo por etapas
   Comprador/vendedor conservan tabs en recuadros; chat destaca en turquesa.
===================================================== */
.sm-comprador-remate-tabs .ui-tabs.sm-c-tabs-bar,
.sm-v-tabs-enhanced .sm-v-tabs-bar {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  padding: 12px !important;
  margin-bottom: 1.35rem !important;
  border-radius: 14px !important;
  border: 1px solid #cbd5e1 !important;
  border-bottom: 1px solid #cbd5e1 !important;
  background: #e2e8f0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
}

.sm-v-tabs-enhanced .sm-v-tabs-scroll {
  padding: 12px !important;
  border: 1px solid #cbd5e1 !important;
  border-bottom: 0 !important;
  border-radius: 0.375rem 0.375rem 0 0 !important;
  background: #e2e8f0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
}

.sm-v-tabs-enhanced .sm-v-tab-item {
  flex: 1 1 0 !important;
  min-width: min(100%, 145px) !important;
}

.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab,
.sm-v-tabs-enhanced .sm-v-tab-link {
  flex: 1 1 0 !important;
  min-width: min(100%, 168px) !important;
  min-height: 3.35rem !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  border: 2px solid transparent !important;
  background: rgba(255, 255, 255, 0.55) !important;
  color: #334155 !important;
  font-weight: 600 !important;
  text-align: left !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
  transform: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease !important;
}

.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab::after,
.sm-v-tabs-enhanced .sm-v-tab-link::after {
  display: none !important;
}

.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab:hover,
.sm-v-tabs-enhanced .sm-v-tab-link:hover {
  background: #fff !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab:focus-visible,
.sm-v-tabs-enhanced .sm-v-tab-link:focus-visible {
  outline: 3px solid rgba(236, 108, 4, 0.28) !important;
  outline-offset: 2px !important;
}

.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab.active,
.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab.sm-c-tab-proceso.active,
.sm-v-tabs-enhanced .sm-v-tab-link.active,
.sm-v-tabs-enhanced .sm-v-tab-link.sm-v-tab-adjudicacion.active {
  background: #fff !important;
  color: var(--ui-cta, #ec6c04) !important;
  border-color: var(--ui-cta, #ec6c04) !important;
  box-shadow: 0 6px 20px rgba(236, 108, 4, 0.18) !important;
  transform: translateY(-1px) !important;
}

.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab.sm-tab-chat-highlight,
.sm-v-tabs-enhanced .sm-v-tab-link.sm-tab-chat-highlight {
  background: rgba(240, 253, 250, 0.85) !important;
  border-color: #99f6e4 !important;
  color: #115e59 !important;
}

.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab.sm-tab-chat-highlight:hover,
.sm-v-tabs-enhanced .sm-v-tab-link.sm-tab-chat-highlight:hover {
  background: #ecfdf5 !important;
  border-color: #2dd4bf !important;
  color: #0f766e !important;
}

.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab.sm-tab-chat-highlight.active,
.sm-v-tabs-enhanced .sm-v-tab-link.sm-tab-chat-highlight.active {
  background: linear-gradient(180deg, #f0fdfa 0%, #fff 100%) !important;
  border-color: var(--ui-link, #00a9a2) !important;
  color: #0f766e !important;
  box-shadow: 0 6px 20px rgba(0, 169, 162, 0.22) !important;
}

.sm-c-tab-inner,
.sm-v-tabs-enhanced .sm-v-tab-link .sm-c-tab-inner {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0.65rem !important;
  width: 100% !important;
}

.sm-c-tab-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.15rem !important;
  min-width: 0 !important;
}

.sm-c-tab-label,
.sm-v-tabs-enhanced .sm-v-tab-link .sm-c-tab-label {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0.35rem !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
}

.sm-c-tab-step {
  flex-shrink: 0 !important;
  width: 1.85rem !important;
  height: 1.85rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 10px !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  background: #fff !important;
  border: 2px solid #cbd5e1 !important;
  color: #475569 !important;
  line-height: 1 !important;
}

.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab.active .sm-c-tab-step,
.sm-v-tabs-enhanced .sm-v-tab-link.active .sm-c-tab-step:not(.sm-c-tab-step--chat) {
  background: var(--ui-cta, #ec6c04) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.sm-c-tab-step--chat {
  font-size: 1rem !important;
  background: #f0fdfa !important;
  border-color: #5eead4 !important;
  color: #0f766e !important;
}

.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab.sm-tab-chat-highlight.active .sm-c-tab-step--chat,
.sm-v-tabs-enhanced .sm-v-tab-link.sm-tab-chat-highlight.active .sm-c-tab-step--chat {
  background: var(--ui-link, #00a9a2) !important;
  border-color: var(--ui-link, #00a9a2) !important;
  color: #fff !important;
}

.sm-c-tab-sub {
  display: block !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  color: #64748b !important;
  line-height: 1.25 !important;
}

.sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab.active .sm-c-tab-sub,
.sm-v-tabs-enhanced .sm-v-tab-link.active .sm-c-tab-sub {
  color: #475569 !important;
}

@media (max-width: 575.98px) {
  .sm-comprador-remate-tabs .sm-c-tabs-bar button.ui-tab,
  .sm-v-tabs-enhanced .sm-v-tab-item {
    flex: 1 1 100% !important;
    min-width: 100% !important;
  }
}

/* Modal solicitud de producto (vitrina): cuerpo con scroll; pie fijo con check y enviar */
#modalSolicitudProducto .modal-solicitud-producto-dialog {
  max-width: 520px;
}

#modalSolicitudProducto .modal-content {
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  display: flex;
  flex-direction: column;
}

#modalSolicitudProducto .modal-solicitud-producto-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

#modalSolicitudProducto .modal-solicitud-producto-body {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(52vh, 420px);
}

#modalSolicitudProducto .modal-solicitud-producto-footer {
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid var(--bs-border-color, #dee2e6);
}

#modalSolicitudProducto .modal-solicitud-producto-privacidad .form-check-input {
  flex-shrink: 0;
}

/* Detalle remate: otros activos — tarjetas compactas tipo retail */
.sm-detalle-otros-remates__track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 0.65rem;
}

.sm-detalle-otros-remates__card {
  display: block;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  color: #1f2937;
  min-width: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sm-detalle-otros-remates__card:hover,
.sm-detalle-otros-remates__card:focus-visible {
  border-color: #fdba74;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  color: #1f2937;
}

.sm-detalle-otros-remates__card-img {
  height: 72px;
  overflow: hidden;
  background: #f3f4f6;
}

.sm-detalle-otros-remates__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sm-detalle-otros-remates__card-body {
  padding: 0.45rem 0.5rem 0.55rem;
}

.sm-detalle-otros-remates__title {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sm-detalle-otros-remates__meta {
  font-size: 0.6875rem;
  line-height: 1.35;
  color: #6b7280;
}

.sm-detalle-otros-remates__dot {
  margin: 0 0.15rem;
}

.sm-detalle-otros-remates__cierre {
  margin-top: 0.2rem;
  font-size: 0.625rem;
  line-height: 1.3;
  color: #b45309;
}

@media (min-width: 768px) {
  .sm-detalle-otros-remates__track {
    grid-template-columns: repeat(auto-fill, minmax(140px, 160px));
    justify-content: start;
  }
}

@media (max-width: 767.98px) {
  .sm-detalle-otros-remates__track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .sm-detalle-otros-remates__card {
    flex: 0 0 132px;
    scroll-snap-align: start;
  }
}

/* =====================================================
   Panel administración — sidebar, dashboard, tablas
   ===================================================== */

.ui-shell--admin .ui-sidebar--admin .ui-menu-item.active {
  color: #0a1640;
  font-weight: 600;
  background: #eef2ff;
}

.ui-shell--admin .ui-sidebar--admin .ui-menu-item.active i {
  color: #0a1640;
}

.ui-shell--admin .ui-sidebar--admin .ui-menu-item.active::before {
  background: #0a1640;
}

.ui-shell--admin .ui-account-main {
  padding: 1.25rem 1.25rem 2rem;
  max-width: 1280px;
}

.ui-admin-content {
  width: 100%;
}

.ui-admin-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: #94a3b8;
}

.ui-admin-page-title {
  letter-spacing: -0.02em;
  color: #0f172a;
}

.ui-admin-kpi {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  height: 100%;
  padding: 1rem 1rem;
  background: #fff;
  border-radius: var(--ui-radius-lg);
  border: 1px solid var(--ui-border);
  box-shadow: var(--ui-shadow-sm);
}

.ui-admin-kpi__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.ui-admin-kpi__icon--navy {
  background: #eef2ff;
  color: #0a1640;
}

.ui-admin-kpi__icon--orange {
  background: #fff7ed;
  color: #ea580c;
}

.ui-admin-kpi__icon--warn {
  background: var(--ui-status-attention-bg);
  color: var(--ui-status-attention);
}

.ui-admin-kpi__icon--success {
  background: var(--ui-status-ok-bg);
  color: var(--ui-status-ok-text);
}

.ui-admin-kpi__value {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}

.ui-admin-kpi__label {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.35;
  margin-top: 0.15rem;
}

.ui-admin-tile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow-sm);
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ui-admin-tile:hover {
  border-color: #cbd5e1;
  box-shadow: var(--ui-shadow-md);
  transform: translateY(-1px);
  color: inherit;
}

.ui-admin-tile--navy .ui-admin-tile__icon {
  background: #eef2ff;
  color: #0a1640;
}

.ui-admin-tile--orange .ui-admin-tile__icon {
  background: #fff7ed;
  color: #ea580c;
}

.ui-admin-tile--muted .ui-admin-tile__icon {
  background: #f1f5f9;
  color: #475569;
}

.ui-admin-tile__icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.ui-admin-tile__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ui-admin-tile__text strong {
  font-size: 0.92rem;
  color: #0f172a;
}

.ui-admin-tile__text small {
  font-size: 0.75rem;
  color: #64748b;
}

.ui-admin-tile__arrow {
  flex-shrink: 0;
  color: #94a3b8;
  font-size: 0.85rem;
}

.ui-admin-tile__badge {
  font-size: 0.65rem;
  padding: 0.12rem 0.4rem;
  vertical-align: middle;
}

.ui-admin-card {
  border-radius: var(--ui-radius-lg);
  overflow: hidden;
}

.ui-admin-card--config {
  max-width: 720px;
}

.ui-admin-input-narrow {
  max-width: 14rem;
}

.ui-admin-table thead th {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid var(--ui-border);
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

.ui-admin-table tbody td {
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  vertical-align: middle;
}

.ui-admin-table tbody tr:hover {
  background: #f8fafc;
}

.ui-admin-badge {
  font-weight: 500;
  font-size: 0.72rem;
  padding: 0.35em 0.6em;
}

.ui-shell--admin .ui-admin-page .dt-container {
  padding: 0.75rem 1rem 1rem;
}

@media (max-width: 767.98px) {
  .ui-shell--admin .ui-account-main {
    padding: 1rem max(16px, env(safe-area-inset-left, 0px)) max(1.5rem, calc(env(safe-area-inset-bottom, 0px) + 1rem)) max(16px, env(safe-area-inset-right, 0px));
  }

  .ui-admin-kpi__value {
    font-size: 1.15rem;
  }

  .ui-shell--admin .ui-admin-page .dt-container .dt-search,
  .ui-shell--admin .ui-admin-page .dt-container .dt-length {
    width: 100%;
  }

  .ui-shell--admin .ui-admin-page .dt-container .dt-search input,
  .ui-shell--admin .ui-admin-page .dt-container .dt-length select {
    width: 100%;
    max-width: 100%;
  }

  .ui-shell--admin .ui-admin-page .dt-container .dt-layout-row {
    gap: 0.5rem;
  }
}

@media (max-width: 991.98px) {
  .ui-admin-page .ui-admin-card--config {
    max-width: none;
  }

  .ui-admin-page .ui-admin-input-narrow {
    max-width: 100%;
  }

  .ui-admin-page .ui-admin-breadcrumb .breadcrumb {
    flex-wrap: wrap;
  }
}

/* ——— Selector de idioma (i18n) ——— */
.ui-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ui-lang-switcher__link {
  color: #64748b;
  text-decoration: none;
  padding: 0.15rem 0.25rem;
  border-radius: 0.25rem;
  line-height: 1.2;
}

.ui-lang-switcher__link:hover {
  color: #0a1640;
}

.ui-lang-switcher__link.is-active {
  color: #0a1640;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.ui-lang-switcher__sep {
  color: #cbd5e1;
  user-select: none;
}

.ui-marketing-navbar .ui-lang-switcher__link {
  color: #475569;
}

.ui-marketing-navbar .ui-lang-switcher__link.is-active,
.ui-marketing-navbar .ui-lang-switcher__link:hover {
  color: #0a1640;
}

.ui-sidebar .ui-lang-switcher__link {
  color: rgba(255, 255, 255, 0.65);
}

.ui-sidebar .ui-lang-switcher__link.is-active,
.ui-sidebar .ui-lang-switcher__link:hover {
  color: #fff;
}

.ui-sidebar .ui-lang-switcher__sep {
  color: rgba(255, 255, 255, 0.35);
}

/* Calificaciones post-remate (1–5 estrellas) */
.sm-rating-remate-card--highlight {
  border: 1px solid rgba(255, 193, 7, 0.45) !important;
  box-shadow: 0 0.25rem 1rem rgba(255, 193, 7, 0.12) !important;
}

.sm-rating-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 0.15rem;
}

.sm-rating-stars__item {
  cursor: pointer;
  margin: 0;
}

.sm-rating-stars__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.sm-rating-stars__icon {
  font-size: 1.65rem;
  color: #cbd5e1;
  transition: color 0.12s ease;
}

.sm-rating-stars__item:hover .sm-rating-stars__icon,
.sm-rating-stars__item:hover ~ .sm-rating-stars__item .sm-rating-stars__icon {
  color: #f59e0b;
}

.sm-rating-stars__input:checked ~ .sm-rating-stars__icon,
.sm-rating-stars__input:checked ~ .sm-rating-stars__item .sm-rating-stars__icon {
  color: #f59e0b;
}

.sm-rating-stars:has(.sm-rating-stars__input:checked) .sm-rating-stars__icon {
  color: #cbd5e1;
}

.sm-rating-stars .sm-rating-stars__item:has(~ .sm-rating-stars__item .sm-rating-stars__input:checked) .sm-rating-stars__icon,
.sm-rating-stars .sm-rating-stars__item .sm-rating-stars__input:checked ~ .sm-rating-stars__icon {
  color: #f59e0b;
}

.sm-vitrina-rating-corner {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
  font-size: 0.75rem;
  font-weight: 600;
  color: #92400e;
  line-height: 1;
}

.sm-vitrina-rating-corner .bi-star-fill {
  color: #f59e0b;
  font-size: 0.72rem;
}

/* =====================================================
   VITRINA — alineada al sitio marketing bluetraderchile.com
===================================================== */

.ui-vitrina-page {
  --ui-vitrina-hero-bg: linear-gradient(165deg, #fff7ed 0%, #ffffff 42%, #f8fafc 100%);
  font-family: 'Inter', system-ui, sans-serif;
}

.ui-body--marketing-nav .ui-vitrina-page {
  margin-top: -0.5rem;
}

.ui-vitrina-hero {
  background: var(--ui-vitrina-hero-bg);
  border-bottom: 1px solid #e2e8f0;
  padding: 2.5rem 0 2rem;
}

.ui-vitrina-hero--compact {
  background: #fff;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius-lg);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.25rem;
}

.ui-vitrina-hero--compact .ui-vitrina-hero__inner {
  max-width: none;
}

.ui-vitrina-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #fed7aa;
  box-shadow: 0 1px 2px rgba(234, 88, 12, 0.08);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #9a3412;
}

.ui-vitrina-hero__stars {
  letter-spacing: 0.04em;
  color: #f59e0b;
  font-size: 0.75rem;
}

.ui-vitrina-hero__title {
  margin: 0 0 0.85rem;
  max-width: 18ch;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.ui-vitrina-hero--compact .ui-vitrina-hero__title {
  max-width: none;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.ui-vitrina-hero__lead {
  margin: 0 0 1.25rem;
  max-width: 52rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: #475569;
}

.ui-vitrina-hero--compact .ui-vitrina-hero__lead {
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.ui-vitrina-hero__features {
  margin-bottom: 1.35rem !important;
}

.ui-vitrina-hero__feature {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
}

.ui-vitrina-hero__feature .bi {
  color: var(--ui-brand-orange);
  font-size: 0.95rem;
}

.ui-vitrina-hero__actions {
  margin-bottom: 1.25rem;
}

.ui-vitrina-hero__cta {
  padding: 0.65rem 1.35rem !important;
  font-size: 0.9375rem;
}

.ui-vitrina-hero__cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155 !important;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ui-vitrina-hero__cta-secondary:hover,
.ui-vitrina-hero__cta-secondary:focus {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a !important;
}

.ui-vitrina-hero__hint {
  margin: 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--ui-brand-orange);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 0 10px 10px 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #64748b;
}

.ui-vitrina-hero--compact .ui-vitrina-hero__hint {
  padding: 0.65rem 0.85rem;
}

.ui-vitrina-grid-section {
  padding-top: 1.75rem;
  padding-bottom: 2.5rem;
}

.ui-vitrina-grid-section__title {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.ui-vitrina-page .ui-vitrina-card {
  background: #fff;
  border-radius: var(--ui-radius-lg);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ui-vitrina-page .ui-vitrina-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
  border-color: #fdba74;
}

.ui-vitrina-page .ui-vitrina-card__img {
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}

.ui-vitrina-page .ui-vitrina-card__img img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.ui-vitrina-page .ui-vitrina-card:hover .ui-vitrina-card__img img {
  transform: scale(1.03);
}

.ui-vitrina-page .ui-vitrina-card .ui-card-body {
  padding: 1rem 1.05rem 1.1rem;
  min-width: 0;
}

.ui-vitrina-page .ui-vitrina-card__title {
  color: #0f172a;
}

.ui-vitrina-page .ui-vitrina-card__badge {
  background: #dcfce7;
  color: #166534;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ui-vitrina-page .ui-vitrina-card__cta {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

.ui-vitrina-page .vitrina-remate-meta__incoterm-note summary,
.ui-vitrina-page .vitrina-remate-meta__fechas-note summary {
  color: var(--ui-link);
}

.ui-vitrina-page .ui-empty-state {
  border-radius: var(--ui-radius-lg);
  border: 1px dashed #cbd5e1;
  background: #fff;
  padding: 2.5rem 1.5rem;
}

@media (max-width: 575.98px) {
  .ui-vitrina-hero {
    padding: 1.75rem 0 1.5rem;
  }

  .ui-vitrina-hero__title {
    max-width: none;
  }

  .ui-vitrina-hero__feature {
    width: 100%;
  }
}
