/* MobiBC Marketplace — mobile-first, OfferUp-like (teal / ink / soft gray) */

:root {
  --mp-teal: #0f766e;
  --mp-teal-dark: #0d5f59;
  --mp-teal-soft: #ccfbf1;
  --mp-ink: #0f172a;
  --mp-ink-soft: #334155;
  --mp-muted: #64748b;
  --mp-line: #e2e8f0;
  --mp-surface: #f1f5f9;
  --mp-surface-2: #f8fafc;
  --mp-white: #ffffff;
  --mp-danger: #b91c1c;
  --mp-warn: #c2410c;
  --mp-ok: #15803d;
  --mp-radius: 12px;
  --mp-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --mp-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

.mp-page {
  margin: 0;
  background: var(--mp-surface);
  color: var(--mp-ink);
  font-family: var(--mp-font);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.mp-root {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 12px 40px;
  font-family: var(--mp-font);
  color: var(--mp-ink);
  background: transparent;
}

.mp-root.mp-detail-page,
.mp-root.mp-list-page {
  max-width: none;
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

html.mobibc-cinema .mp-root,
html.mobibc-cinema .mp-root.mp-detail-page,
html.mobibc-cinema .mp-root.mp-list-page {
  max-width: none;
  width: 100%;
}

.mp-root a {
  color: inherit;
  text-decoration: none;
}

.mp-root img {
  max-width: 100%;
  display: block;
}

.mp-empty {
  grid-column: 1 / -1;
  margin: 28px 0;
  padding: 28px 16px;
  text-align: center;
  color: var(--mp-muted);
  background: var(--mp-white);
  border: 1px dashed var(--mp-line);
  border-radius: var(--mp-radius);
}

/* —— Top bar —— */
.mp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 8px 0 12px;
  border-bottom: 1px solid var(--mp-line);
}

.mp-topbar h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.mp-back,
.mp-inbox-link {
  color: var(--mp-teal) !important;
  font-weight: 600;
  font-size: 0.95rem;
}

.mp-back:hover,
.mp-inbox-link:hover {
  text-decoration: underline;
}

.mp-topbar--list {
  flex-wrap: wrap;
}

.mp-topbar__brand {
  font-weight: 800;
  color: var(--mp-teal-dark);
}

/* Detalle / listado / inbox: solo enlaces Volver (auth en rail/footer / ☰) */
.mp-topbar--detail,
.mp-topbar--inbox,
.mp-topbar--list.mp-topbar--back-only {
  position: relative;
  flex-wrap: wrap;
  z-index: 40;
  padding: 4px 0 12px;
}

.mp-topbar--list.mp-topbar--with-menu {
  position: relative;
  z-index: 40;
}

.mp-topbar--detail .mp-back,
.mp-topbar--inbox .mp-back,
.mp-topbar--list .mp-back {
  display: inline-flex;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none !important;
  padding: 10px 4px;
  min-height: 44px;
  color: var(--mp-teal-dark) !important;
}

.mp-topbar__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 2px solid var(--mp-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--mp-ink);
}

.mp-topbar__menu-btn:hover,
.mp-topbar__menu-btn[aria-expanded="true"] {
  border-color: var(--mp-teal);
  background: var(--mp-teal-soft);
}

.mp-topbar__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
}

.mp-topbar__burger span {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
}

.mp-auth-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

/* .mp-btn { display:inline-flex } pisa el [hidden] nativo → forzar ocultar */
.mp-auth-nav [hidden],
.mp-auth-nav .is-mp-auth-hidden {
  display: none !important;
}

.mp-auth-user {
  font-weight: 700;
  color: var(--mp-ink-soft);
  font-size: 0.92rem;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .mp-topbar--with-menu .mp-topbar__menu-btn {
    display: inline-flex;
    margin-left: auto;
  }

  .mp-topbar--with-menu .mp-auth-nav {
    display: none;
    position: absolute;
    top: calc(100% - 4px);
    right: 0;
    left: auto;
    margin: 0;
    min-width: min(280px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--mp-line);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    z-index: 50;
  }

  .mp-topbar--with-menu .mp-auth-nav.is-open {
    display: flex;
  }

  .mp-topbar--with-menu .mp-auth-nav .mp-btn,
  .mp-topbar--with-menu .mp-auth-nav .mp-inbox-link--nav {
    width: 100%;
    justify-content: flex-start;
    box-sizing: border-box;
  }

  .mp-topbar--with-menu .mp-auth-user {
    max-width: none;
    padding: 8px 4px;
    font-size: 1rem;
  }

  .mp-topbar--inbox h1 {
    flex: 1;
    min-width: 0;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (min-width: 768px) {
  .mp-topbar--with-menu .mp-topbar__menu-btn {
    display: none !important;
  }

  .mp-topbar--with-menu .mp-auth-nav {
    display: flex !important;
    position: static;
    min-width: 0;
    flex-direction: row;
    box-shadow: none;
    border: 0;
    padding: 0;
    background: transparent;
  }
}

/* No aplicar a .mba-btn (auth home/header — tamaño propio) */
.mp-btn--sm:not(.mba-btn) {
  padding: 7px 12px !important;
  font-size: 0.88rem !important;
}

.mp-auth-box label {
  display: block;
  margin: 10px 0;
  font-weight: 700;
}

/* display:block del label pisaba [hidden] → Entrar mostraba Nombre/Teléfono */
.mp-auth-box label[hidden],
.mp-auth-box [hidden],
.mp-auth-box .is-mp-auth-hidden {
  display: none !important;
}

.mp-auth-box input {
  width: 100%;
  margin-top: 4px;
  border: 1px solid var(--mp-line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  box-sizing: border-box;
}

.mp-auth-tabs {
  display: flex;
  gap: 8px;
  margin: 10px 0 14px;
}

.mp-auth-tabs button {
  flex: 1;
  border: 2px solid var(--mp-line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
}

.mp-auth-tabs button.is-active {
  background: var(--mp-teal);
  border-color: var(--mp-teal);
  color: #fff;
}

.mp-auth-lead {
  color: var(--mp-muted);
  font-size: 0.92rem;
  margin: 0 0 8px;
}

/* —— Toolbar / filters —— */
.mp-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  background: var(--mp-white);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow);
}

.mp-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mp-tabs::-webkit-scrollbar {
  display: none;
}

.mp-tab {
  flex: 0 0 auto;
  border: 1px solid var(--mp-line);
  background: var(--mp-surface-2);
  color: var(--mp-ink-soft);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mp-tab:hover {
  border-color: #99f6e4;
  color: var(--mp-teal-dark);
}

.mp-tab.is-active {
  background: var(--mp-teal);
  border-color: var(--mp-teal);
  color: #fff;
}

.mp-search {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.mp-search input[type="search"],
.mp-search select,
.mp-bid-custom input,
.mp-modal__box input,
.mp-modal__box textarea,
.mp-thread input {
  width: 100%;
  border: 1px solid var(--mp-line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--mp-ink);
  background: var(--mp-surface-2);
}

.mp-search input:focus,
.mp-search select:focus,
.mp-bid-custom input:focus,
.mp-modal__box input:focus,
.mp-modal__box textarea:focus,
.mp-thread input:focus {
  outline: 2px solid #99f6e4;
  border-color: var(--mp-teal);
}

.mp-search button {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--mp-teal);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.mp-search button:hover {
  background: var(--mp-teal-dark);
}

.mp-filters-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  font-size: 0.875rem;
  color: var(--mp-ink-soft);
}

.mp-filters-quick label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.mp-filters-quick input {
  accent-color: var(--mp-teal);
}

/* —— Grid / cards —— */
.mp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.mp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--mp-white);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  overflow: hidden;
  box-shadow: var(--mp-shadow);
}

.mp-card--servicio {
  border-color: #99f6e4;
}

.mp-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--mp-surface);
  overflow: hidden;
}

.mp-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-card__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  color: var(--mp-muted);
  background: linear-gradient(145deg, #e2e8f0, #f8fafc 55%, #e2e8f0);
  font-size: 0.9rem;
  font-weight: 600;
}

.mp-badge {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: #fff;
  background: var(--mp-ink);
}

.mp-badge + .mp-badge {
  top: 34px;
}

.mp-badge--servicio {
  background: var(--mp-teal);
}

.mp-badge--subasta {
  background: #1d4ed8;
}

.mp-badge--blink {
  animation: mp-blink 1.1s ease-in-out infinite;
}

@keyframes mp-blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(1.04);
  }
}

.mp-card--subasta {
  outline: 2px solid rgba(37, 99, 235, 0.35);
}

.mp-card__timer {
  position: absolute;
  z-index: 2;
  left: 8px;
  bottom: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.mp-card__ends {
  margin: 4px 0 0;
  color: #1d4ed8;
  font-size: 0.88rem;
  font-weight: 700;
}

.mp-price__now--live {
  color: #1d4ed8;
}

.mp-price__now--flash {
  animation: mpPriceFlash 0.7s ease;
}

@keyframes mpPriceFlash {
  0% {
    background: rgba(45, 212, 191, 0.55);
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.5);
  }
  100% {
    background: transparent;
    box-shadow: 0 0 0 8px rgba(13, 148, 136, 0);
  }
}

.mp-badge--off {
  left: auto;
  right: 8px;
  background: var(--mp-warn);
}

.mp-badge--sold {
  background: var(--mp-danger);
  position: static;
  margin-right: 6px;
  vertical-align: middle;
}

.mp-detail__info > .mp-badge {
  position: static;
  margin: 0 4px 8px 0;
}

.mp-fav {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--mp-ink-soft);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  font-size: 1.15rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, color 0.12s ease, background 0.12s ease;
}

.mp-fav:hover {
  transform: scale(1.05);
  color: var(--mp-teal);
}

.mp-fav.is-saved {
  color: #be123c;
  background: #fff1f2;
}

.mp-fav--lg {
  position: static;
  width: auto;
  height: auto;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  gap: 6px;
  background: var(--mp-surface);
  border: 1px solid var(--mp-line);
  box-shadow: none;
}

.mp-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  flex: 1;
}

.mp-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.mp-card__title a:hover {
  color: var(--mp-teal);
}

.mp-card__meta,
.mp-card__seller {
  margin: 0;
  font-size: 0.8rem;
  color: var(--mp-muted);
}

.mp-card__seller {
  color: var(--mp-ink-soft);
  font-weight: 600;
}

.mp-verified {
  color: var(--mp-teal);
  font-weight: 800;
}

.mp-card__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.mp-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  font-weight: 800;
  color: var(--mp-ink);
}

.mp-price--lg {
  font-size: 1.45rem;
  margin: 8px 0 12px;
}

.mp-price__old {
  font-size: 0.85em;
  font-weight: 600;
  color: var(--mp-muted);
  text-decoration: line-through;
}

.mp-price__now {
  color: var(--mp-ink);
}

.mp-price__pct {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--mp-warn);
  background: #ffedd5;
  padding: 2px 6px;
  border-radius: 6px;
}

/* —— Buttons —— */
.mp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid var(--mp-line);
  background: var(--mp-white);
  color: var(--mp-ink);
  border-radius: 12px;
  padding: 12px 16px;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  min-height: 48px;
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.mp-btn:hover {
  border-color: #99f6e4;
  color: var(--mp-teal-dark);
  background: var(--mp-surface-2);
}

.mp-btn--primary {
  background: var(--mp-teal);
  border-color: var(--mp-teal);
  color: #fff !important;
}

.mp-btn--primary:hover {
  background: var(--mp-teal-dark);
  border-color: var(--mp-teal-dark);
  color: #fff !important;
}

/* Enviar mensaje — contraste distinto a Pujar */
.mp-btn--msg {
  background: #1e5a8e;
  border-color: #1e5a8e;
  color: #fff !important;
}

.mp-btn--msg:hover {
  background: #164870;
  border-color: #164870;
  color: #fff !important;
}

.mp-btn--contact {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff !important;
  letter-spacing: 0.01em;
}

.mp-btn--contact:hover {
  background: #1e293b;
  border-color: #1e293b;
  color: #fff !important;
}

.mp-btn--offer {
  background: #fff7ed;
  border-color: #f59e0b;
  color: #c2410c !important;
}

.mp-btn--offer:hover {
  background: #ffedd5;
  border-color: #ea580c;
  color: #9a3412 !important;
}

.mp-btn--save.is-saved {
  color: #dc2626 !important;
  border-color: rgba(220, 38, 38, 0.45);
  background: #fef2f2;
}

.mp-btn--lg {
  padding: 14px 20px;
  font-size: 1.05rem;
  min-height: 52px;
}

.mp-btn--xl {
  padding: 16px 22px;
  font-size: 1.15rem;
  min-height: 56px;
  border-radius: 14px;
}

.mp-btn--card {
  padding: 12px 14px;
  font-size: 0.98rem;
  min-height: 48px;
}

.mp-btn--auth {
  padding: 10px 16px !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  min-height: 46px !important;
}

.mp-btn--admin {
  background: #1e293b;
  border-color: #1e293b;
  color: #fff !important;
}

.mp-btn--admin:hover {
  background: #334155;
  border-color: #334155;
  color: #fff !important;
}

.mp-auth-nav [data-mp-admin][hidden],
.mp-auth-nav [data-mp-admin].is-mp-auth-hidden,
.mba-nav [data-mp-admin][hidden],
.mba-nav [data-mp-admin].is-mp-auth-hidden {
  display: none !important;
}

.mp-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mp-card__actions .mp-btn {
  flex: 1;
}

.mp-inbox-link--nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  min-height: 46px;
  min-width: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid rgba(13, 148, 136, 0.35);
  background: #ecfdf5;
  color: var(--mp-teal-dark) !important;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none !important;
}

.mp-inbox-link--nav .fa-comments {
  font-size: 1.35rem;
  line-height: 1;
}

.mp-inbox-link--nav:hover {
  background: #ccfbf1;
  text-decoration: none !important;
}

.mp-inbox-link--nav.has-unread {
  border-color: #ef4444;
  background: #fef2f2;
  color: #991b1b !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.mobibc-msg-badge,
.mp-inbox-link--nav .mobibc-msg-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.45);
  pointer-events: none;
}

@media (max-width: 720px) {
  .mp-topbar--with-menu .mp-inbox-link__text {
    display: none;
  }
  .mp-topbar--with-menu .mp-auth-nav.is-open .mp-inbox-link__text {
    display: inline;
  }
  .mp-topbar--with-menu .mp-inbox-link--nav {
    padding: 10px 12px;
  }
  .mp-topbar--with-menu .mp-auth-nav.is-open .mp-inbox-link--nav {
    position: relative;
    justify-content: flex-start;
    gap: 10px;
  }
  .mp-topbar--with-menu .mp-auth-nav.is-open .mp-inbox-link--nav .mobibc-msg-badge {
    position: static;
    margin-left: auto;
  }
}

.mp-auth-nav {
  gap: 10px;
}

.mp-bid-login-cta {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.mp-bid-login-cta .mp-btn {
  width: 100%;
}

/* —— Detail —— */
.mp-detail {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.mp-gallery {
  position: relative;
  background: var(--mp-white);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  overflow: hidden;
  box-shadow: var(--mp-shadow);
}

.mp-gallery__main {
  aspect-ratio: 1 / 1;
  background: var(--mp-surface);
}

.mp-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f172a08;
}

.mp-gallery__thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--mp-surface-2);
  border-top: 1px solid var(--mp-line);
}

.mp-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: var(--mp-white);
  cursor: pointer;
}

.mp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-thumb.is-active {
  border-color: var(--mp-teal);
}

.mp-thumb__vid {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: var(--mp-ink);
  color: #fff;
  font-size: 1rem;
}

.mp-gal-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--mp-ink);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.mp-gal-prev {
  left: 10px;
}

.mp-gal-next {
  right: 10px;
}

.mp-detail__info {
  background: var(--mp-white);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  padding: 16px;
  box-shadow: var(--mp-shadow);
}

.mp-detail__title {
  margin: 4px 0 8px;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 800;
}

.mp-facts {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--mp-ink-soft);
}

.mp-facts li {
  padding: 8px 10px;
  background: var(--mp-surface-2);
  border-radius: 8px;
  border: 1px solid var(--mp-line);
}

.mp-ship {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: var(--mp-teal-soft);
  color: var(--mp-teal-dark);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.mp-cta,
.mp-share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.mp-cta--contact {
  display: block;
  margin: 16px 0 18px;
}

.mp-cta__hint {
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.35;
}

.mp-purchase__sec-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.mp-purchase__sec-actions .mp-btn {
  flex: 1;
  min-width: 140px;
}

.mp-purchase__history-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 12px;
}

.mp-purchase__history-bar .mp-auction-panel__history {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
  flex: 1;
  min-width: 0;
}

.mp-purchase__history-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.mp-purchase__history-actions .mp-btn {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.mp-auction-panel__history summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  color: #1e293b;
  list-style: none;
  padding: 8px 0;
  border-radius: 8px;
}

.mp-auction-panel__history summary:hover {
  color: var(--mp-teal-dark);
}

.mp-auction-panel__history summary::-webkit-details-marker { display: none; }

.mp-auction-panel__history summary::before {
  content: '▸ ';
  color: #64748b;
}

.mp-auction-panel__history[open] summary::before {
  content: '▾ ';
}

.mp-seller-box__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.mp-seller-box__actions .mp-btn {
  flex: 1;
  min-width: 140px;
}

.mp-contact-sheet {
  z-index: 10220;
  align-items: flex-end;
}

.mp-contact-sheet__box {
  width: min(440px, 100%);
  border-radius: 18px 18px 12px 12px;
  padding: 22px 18px 18px;
}

.mp-contact-sheet__lead {
  margin: 0 0 14px;
  color: #475569;
  font-size: 1rem;
  line-height: 1.4;
}

.mp-contact-sheet__opts {
  display: grid;
  gap: 10px;
}

.mp-contact-sheet__opts .mp-btn--msg {
  order: -1;
}

.mp-seller-box {
  margin: 16px 0;
  padding: 14px;
  background: var(--mp-surface-2);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
}

.mp-seller-box h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.mp-seller-box p {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--mp-ink-soft);
}

.mp-report {
  display: inline-block;
  margin-top: 4px;
  border: 0;
  background: transparent;
  color: var(--mp-muted);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.mp-report:hover {
  color: var(--mp-danger);
}

.mp-section,
.mp-related {
  margin: 20px 0;
  padding: 16px;
  background: var(--mp-white);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow);
}

.mp-section h2,
.mp-related h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.mp-related__acc {
  margin: 0;
  border: 0;
  padding: 0;
}

.mp-related__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 14px 16px;
  border: 2px solid var(--mp-line);
  border-radius: 12px;
  background: var(--mp-surface-2);
  color: var(--mp-ink);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  min-height: 52px;
  user-select: none;
}

.mp-related__summary::-webkit-details-marker {
  display: none;
}

.mp-related__summary::after {
  content: '▸';
  color: #64748b;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.mp-related__acc[open] .mp-related__summary {
  border-color: var(--mp-teal);
  background: #ecfdf5;
  color: var(--mp-teal-dark);
  margin-bottom: 14px;
}

.mp-related__acc[open] .mp-related__summary::after {
  content: '▾';
  color: var(--mp-teal-dark);
}

.mp-related__summary:hover {
  border-color: #99f6e4;
}

.mp-related__grid {
  margin-top: 0;
}

.mp-related:has(.mp-related__acc) {
  padding: 12px;
}

.mp-prose {
  font-size: 0.95rem;
  color: var(--mp-ink-soft);
  word-break: break-word;
}

.mp-specs {
  margin: 0;
  display: grid;
  gap: 8px;
}

.mp-specs > div {
  display: grid;
  grid-template-columns: minmax(100px, 36%) 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--mp-line);
  font-size: 0.92rem;
}

.mp-specs dt {
  margin: 0;
  color: var(--mp-muted);
  font-weight: 600;
}

.mp-specs dd {
  margin: 0;
  color: var(--mp-ink);
}

.mp-variants {
  margin: 0;
  padding-left: 18px;
  color: var(--mp-ink-soft);
}

.mp-variants li {
  margin-bottom: 6px;
}

/* —— Auction —— */
.mp-buyer-price {
  margin: 14px 0 10px;
  padding: 16px;
  border-radius: 16px;
  border: 3px solid #0f766e;
  background: linear-gradient(180deg, #ecfdf5, #fff);
}

.mp-buyer-price__title {
  margin: 0 0 4px !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #0f766e !important;
}

.mp-buyer-price__sub {
  margin: 0 0 12px !important;
  color: #334155 !important;
  font-weight: 600 !important;
}

.mp-buyer-price__row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.mp-buyer-price__prefix {
  font-size: 2rem;
  font-weight: 800;
  color: #0f766e;
  line-height: 1;
}

.mp-buyer-price__input {
  width: 100%;
  min-height: 56px;
  border: 2px solid #0f766e;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: inherit;
  color: #0f172a;
  background: #fff;
}

.mp-buyer-price__go {
  width: 100%;
  margin: 4px 0 8px;
  min-height: 52px;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
}

.mp-auction #mpBidMin,
.mp-auction #mpBuyNow {
  width: 100%;
  margin-bottom: 8px;
}

.mp-btn--buy {
  background: #f59e0b !important;
  border-color: #f59e0b !important;
  color: #111 !important;
  font-weight: 800 !important;
}

.mp-auction p {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.mp-auction__status {
  font-weight: 700;
  color: var(--mp-teal-dark);
}

.mp-auction__status.is-leading {
  color: var(--mp-ok);
}

.mp-auction__status.is-outbid {
  color: var(--mp-warn);
}

.mp-auction__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
}

.mp-auction__price-line {
  margin: 6px 0;
  font-size: 1.1rem;
}

.mp-auction__clock {
  animation: mp-blink 1.1s ease-in-out infinite;
  color: #1d4ed8;
}

.mp-auction__help {
  margin: 8px 0 12px;
  color: var(--mp-muted);
  font-size: 0.92rem;
}

.mp-bid-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.mp-bid-chips .mp-precio-chip {
  border: 2px solid var(--mp-teal, #0f766e);
  background: #fff;
  color: var(--mp-teal-dark, #115e59);
  font-weight: 800;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
}

.mp-bid-chips .mp-precio-chip:hover {
  background: var(--mp-teal, #0f766e);
  color: #fff;
}

.mp-bid-custom label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--mp-ink-soft);
}

.mp-bid-custom__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.mp-bid-custom__row input {
  min-width: 0;
}

.mp-auction__leader {
  margin: 4px 0 8px !important;
  font-size: 1rem !important;
  color: var(--mp-ink) !important;
}

.mp-bid-hist {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--mp-line);
}

.mp-bid-hist__title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 800;
}

.mp-bid-hist ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mp-bid-hist li {
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.92rem;
}

.mp-bid-hist li:last-child {
  border-bottom: 0;
}

.mp-bid-hist li.is-leader {
  font-weight: 700;
}

.mp-bid-hist li.is-you {
  color: var(--mp-teal-dark);
}

.mp-bid-login-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.mp-bid-anon {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
}

.mp-bid-when {
  color: var(--mp-muted);
  font-weight: 400;
}

/* —— Modal —— */
.mp-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  background: rgba(15, 23, 42, 0.45);
}

.mp-modal[hidden] {
  display: none !important;
}

.mp-modal__box {
  position: relative;
  width: min(480px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  background: var(--mp-white);
  border-radius: 16px 16px 12px 12px;
  padding: 18px 16px 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
}

.mp-modal__box h3 {
  margin: 0 40px 12px 0;
  font-size: 1.1rem;
}

.mp-modal__box label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mp-ink-soft);
}

.mp-modal__box label input,
.mp-modal__box label textarea {
  margin-top: 6px;
}

.mp-modal__x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--mp-surface);
  color: var(--mp-ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.mp-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.mp-quick button {
  border: 1px solid var(--mp-line);
  background: var(--mp-surface-2);
  color: var(--mp-ink-soft);
  border-radius: 999px;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.mp-quick button:hover {
  border-color: #99f6e4;
  color: var(--mp-teal-dark);
}

.mp-hint {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--mp-muted);
  min-height: 1.2em;
}

.mp-hint.is-ok {
  color: var(--mp-ok);
}

.mp-hint.is-err {
  color: var(--mp-danger);
}

/* —— Inbox / thread —— */
.mp-inbox {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-inbox-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: var(--mp-white);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
}

.mp-inbox-item:hover {
  border-color: #99f6e4;
}

.mp-inbox-item img,
.mp-inbox-item .mp-card__ph {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  min-height: 0;
  font-size: 0.65rem;
}

.mp-inbox-item strong,
.mp-inbox-item__peer {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.mp-inbox-item__listing {
  display: block;
  font-size: 0.78rem;
  color: var(--mp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.mp-inbox-item span,
.mp-inbox-item__preview {
  display: block;
  font-size: 0.8rem;
  color: var(--mp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-inbox-item .mp-unread {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--mp-teal);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mp-thread__head-text {
  flex: 1;
  min-width: 0;
}

.mp-thread__head-text h2 {
  margin: 0;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
}

.mp-thread__sub {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--mp-muted);
}

a.mp-thread__listing {
  color: var(--mp-teal-dark) !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a.mp-thread__listing:hover {
  color: var(--mp-teal) !important;
}

.mp-bubble__who {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 3px;
}

.mp-bubble--them .mp-bubble__who {
  color: var(--mp-teal-dark, #0f766e);
}

.mp-bubble__text {
  white-space: pre-wrap;
}

.mp-inbox-roles {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 0 4px;
}

/* Un solo panel a la vez: lista O chat */
.mp-inbox[hidden],
.mp-thread[hidden] {
  display: none !important;
}

.mp-root.is-thread-open .mp-topbar h1 {
  display: none;
}

.mp-thread {
  display: flex;
  flex-direction: column;
  min-height: min(70vh, 640px);
  background: var(--mp-white);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  overflow: hidden;
}

.mp-thread__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--mp-line);
  background: var(--mp-surface-2);
  position: sticky;
  top: 0;
  z-index: 2;
}

.mp-thread__media {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--mp-line);
  background: #e2e8f0;
  display: block;
}

.mp-thread__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp-thread__media--empty {
  display: none;
}

.mp-thread__peer {
  display: block;
  font-weight: 800;
}

.mp-thread__back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 2px solid var(--mp-line);
  background: #fff;
  color: var(--mp-ink);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

.mp-thread__back:hover {
  border-color: var(--mp-teal);
  background: #ecfdf5;
  color: var(--mp-teal-dark);
}

@media (max-width: 520px) {
  .mp-thread__head {
    flex-wrap: wrap;
  }

  .mp-thread__back {
    width: 100%;
    justify-content: flex-start;
  }

  .mp-thread__media {
    width: 56px;
    height: 56px;
  }
}

.mp-thread__head h2 {
  margin: 0;
  font-size: 0.95rem;
  flex: 1;
}

.mp-thread__msgs {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--mp-surface);
  min-height: 240px;
  max-height: none;
}

.mp-bubble {
  max-width: 85%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.4;
  word-break: break-word;
}

.mp-bubble--me {
  align-self: flex-end;
  background: var(--mp-teal);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.mp-bubble--them {
  align-self: flex-start;
  background: var(--mp-white);
  color: var(--mp-ink);
  border: 1px solid var(--mp-line);
  border-bottom-left-radius: 4px;
}

.mp-bubble--sys {
  align-self: center;
  max-width: 95%;
  background: transparent;
  color: var(--mp-muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 4px 8px;
}

.mp-thread__composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--mp-line);
  background: var(--mp-white);
}

/* —— Messenger modal (Facebook-like) —— */
.mp-modal__box.mp-messenger {
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 720px);
  padding: 0;
  overflow: hidden;
}

.mp-messenger > .mp-modal__x {
  top: 10px;
  right: 10px;
  z-index: 2;
}

.mp-messenger > h3 {
  margin: 0;
  padding: 14px 44px 6px 16px;
  font-size: 1.05rem;
}

.mp-messenger > .mp-auth-lead {
  margin: 0;
  padding: 0 16px 10px;
  color: var(--mp-muted);
  font-size: 0.88rem;
}

.mp-messenger__guest {
  padding: 12px 16px 20px;
}

.mp-messenger__guest p {
  margin: 0 0 12px;
}

#mpChatComposerWrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0 12px 12px;
}

.mp-messenger .mp-quick {
  padding: 4px 0 10px;
  max-height: 140px;
  overflow-y: auto;
}

.mp-messenger__thread {
  flex: 1;
  min-height: 180px;
  max-height: 42vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--mp-line);
  border-radius: 12px;
  background: #eef2f6;
  margin-bottom: 10px;
}

.mp-messenger__thread[hidden] {
  display: none !important;
}

.mp-messenger__thread .mp-thread__msgs {
  max-height: none;
  flex: 1;
  background: transparent;
}

.mp-messenger__bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.mp-messenger__bar textarea {
  resize: none;
  min-height: 42px;
  max-height: 120px;
  border-radius: 20px !important;
  padding: 10px 14px !important;
  margin: 0 !important;
  border: 1px solid var(--mp-line);
  font: inherit;
  width: 100%;
  box-sizing: border-box;
}

.mp-messenger__bar .mp-btn {
  border-radius: 20px;
  min-height: 42px;
  padding-left: 16px;
  padding-right: 16px;
}

.mp-messenger__footer {
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.8rem;
}

.mp-messenger__footer a {
  color: var(--mp-teal, #0d9488);
  text-decoration: none;
}

.mp-messenger__footer a:hover {
  text-decoration: underline;
}

.mp-messenger .mp-hint {
  margin: 6px 0 0;
}

/* —— Responsive —— */
@media (min-width: 560px) {
  .mp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mp-search {
    grid-template-columns: 1fr auto auto;
  }

  .mp-modal {
    align-items: center;
  }

  .mp-modal__box {
    border-radius: 16px;
  }

  .mp-gallery__main {
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 860px) {
  .mp-root {
    padding: 20px 20px 48px;
  }

  .mp-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .mp-detail {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }

  .mp-detail__title {
    font-size: 1.6rem;
  }

  .mp-related .mp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .mp-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .mp-related .mp-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mp-tab,
  .mp-btn,
  .mp-fav {
    transition: none;
  }
}

/* ═══════════════════════════════════════════
   Ficha subasta estilo FleaAds (detalle)
   ═══════════════════════════════════════════ */
.mp-page--auction {
  font-family: Inter, system-ui, sans-serif;
  background: #f8fafc;
}

.mp-detail--auction {
  gap: 28px;
}

@media (min-width: 900px) {
  .mp-detail--auction {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: start;
  }

  .mp-detail--auction .mp-buy-col {
    position: sticky;
    top: 72px;
  }
}

/* Galería */
.mp-dgallery {
  width: 100%;
}

.mp-dgallery__stage {
  position: relative;
}

.mp-dgallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.mp-dgallery__stack {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a08;
}

.mp-dgallery__media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mp-dgallery__media--image {
  cursor: zoom-in;
  background: #fff;
}

.mp-dgallery__media--video {
  background: #000;
  z-index: 2;
}

.mp-dgallery__media[hidden] {
  display: none !important;
}

.mp-dgallery__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #94a3b8;
  font-weight: 700;
}

.mp-dgallery__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  background: #ffedd5;
  color: #c2410c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 999px;
}

.mp-dgallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.mp-thumb--video {
  background: #111827;
  position: relative;
}

.mp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(2, 6, 23, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.mp-lightbox[hidden] {
  display: none !important;
}

.mp-lightbox__img {
  max-width: min(960px, 94vw);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
}

.mp-lightbox__x {
  position: absolute;
  top: 16px;
  right: 18px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.mp-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
}

.mp-lightbox__prev { left: 16px; }
.mp-lightbox__next { right: 16px; }

/* Panel de compra / subasta */
.mp-purchase {
  margin: 12px 0 18px;
}

.mp-auction-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 18px 16px 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.mp-auction-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mp-auc-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #f1f5f9;
  color: #64748b;
}

.mp-auc-status.is-live,
.mp-badge--subasta.is-live {
  background: #ffedd5;
  color: #c2410c;
  animation: mpAucBlink 1.4s ease-in-out infinite;
}

.mp-auc-status.is-ended,
.mp-badge--subasta.is-ended {
  animation: none;
  background: #f1f5f9;
  color: #64748b;
}

@keyframes mpAucBlink {
  0%, 100% { background: #ffedd5; }
  50% { background: #fdba74; }
}

.mp-auction-panel__hero {
  padding: 14px 16px;
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
  border: 1px solid rgba(234, 88, 12, 0.12);
  border-radius: 14px;
  margin-bottom: 12px;
}

.mp-auction-panel__label {
  font-size: 0.78rem;
  color: #92400e;
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.mp-auction-panel__price {
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 800;
  color: #c2410c;
  line-height: 1.1;
  border-radius: 8px;
  display: inline-block;
  padding: 2px 4px;
  transition: background-color 0.3s ease;
}

.mp-auction-panel__price.is-updated {
  animation: mpAucPricePulse 0.8s ease;
}

@keyframes mpAucPricePulse {
  0% { background: #fef3c7; transform: scale(1.02); }
  100% { background: transparent; transform: scale(1); }
}

.mp-auction-panel__meta {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: #78350f;
  font-weight: 600;
}

.mp-auction-panel__sep { margin: 0 6px; opacity: 0.55; }

.mp-auction-panel__timer {
  font-variant-numeric: tabular-nums;
  color: #c2410c;
}

.mp-auction-panel__timer.is-live {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  background: #ffedd5;
}

.mp-auction-panel__details {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.mp-auction-panel__line {
  margin: 0;
  font-size: 0.92rem;
  color: #334155;
}

.mp-auction-panel__line strong {
  color: #64748b;
  font-weight: 600;
}

.mp-auction-panel__line--min .mp-auction-panel__min {
  font-weight: 800;
  color: #c2410c;
  font-size: 1.05rem;
}

.mp-auction-panel__you {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f766e;
  min-height: 1.2em;
}

.mp-auction-panel__you.is-outbid { color: #b91c1c; }
.mp-auction-panel__you.is-leading { color: #0f766e; }

.mp-auction-panel__ends {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.mp-auction-panel__alert {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #dbeafe;
  color: #1e40af;
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mp-auction-panel__alert.is-visible {
  opacity: 1;
}

.mp-auction-panel__alert[hidden] {
  display: none !important;
}

.mp-buyer-price--auction {
  border: none;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.mp-bid-form__row {
  display: flex;
  gap: 8px;
  margin: 8px 0 10px;
}

.mp-bid-form__input {
  flex: 1;
  min-width: 0;
  border: 2px solid #fdba74;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: inherit;
}

.mp-btn--block {
  width: 100%;
  margin-top: 8px;
}

.mp-auction-panel__login {
  display: grid;
  gap: 8px;
  margin: 8px 0;
}

.mp-auction-panel__feedback {
  margin: 8px 0 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.mp-auction-panel__feedback.is-success { color: #0f766e; }
.mp-auction-panel__feedback.is-error { color: #b91c1c; }

.mp-auction-panel__history {
  margin-top: 0;
}

.mp-bids-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.95rem;
}

.mp-bids-table th,
.mp-bids-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #e2e8f0;
}

.mp-bids-table th {
  color: #64748b;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mp-bids-table tr.is-leader td {
  background: #fff7ed;
  font-weight: 700;
}

.mp-bids-table tr.is-you td {
  background: #ecfdf5;
}

.mp-auction-panel__ended {
  margin: 12px 0;
  padding: 12px;
  text-align: center;
  background: #f1f5f9;
  border-radius: 12px;
  color: #475569;
}

/* CTA móvil sticky */
.mp-detail-cta {
  display: none;
}

@media (max-width: 899px) {
  .mp-detail-cta {
    display: flex;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
  }

  .mp-detail-cta .mp-btn {
    flex: 1;
    min-height: 52px;
    font-size: 1.05rem;
    border-radius: 999px;
  }

  .mp-page--auction .mp-root {
    padding-bottom: 88px;
  }

  .mp-purchase__history-bar {
    flex-wrap: wrap;
  }

  .mp-purchase__history-actions {
    width: 100%;
  }

  .mp-purchase__history-actions .mp-btn {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .mp-bid-form__row {
    flex-direction: column;
  }

  .mp-bid-form__row .mp-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mp-auc-status.is-live,
  .mp-badge--subasta.is-live,
  .mp-auction-panel__price.is-updated {
    animation: none !important;
  }
}

