/* Homologación Mercado Pago — tipografía MP (Proxima Nova), no MGP Display.
   Overrides del tema oscuro del ticketshop. */

:root {
  --mp-yellow: #ffe600;
  --mp-blue: #3483fa;
  --mp-blue-dark: #2968c8;
  --mp-green: #00a650;
  --mp-red: #f23d4f;
  --mp-orange: #ff7733;
  --mp-bg: #ededed;
  --mp-surface: #ffffff;
  --mp-text: #1a1a1a;
  --mp-muted: #555555;
  --mp-border: #e6e6e6;
  /* Stack típico Mercado Pago / Mercado Libre */
  --mp-font: "Proxima Nova", -apple-system, "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
}

html:has(body.motogp-mp-status-page),
body.motogp-mp-status-page {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--mp-bg) !important;
  color: var(--mp-text) !important;
  font-family: var(--mp-font) !important;
  display: block !important;
}

/* Sin hueco arriba del header amarillo (layout SPA / preloader / main) */
body.motogp-mp-status-page #root,
body.motogp-mp-status-page #root > div,
body.motogp-mp-status-page main {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
  color: inherit !important;
  gap: 0 !important;
}

body.motogp-mp-status-page .site-preloader,
body.motogp-mp-status-page [class*="preloader"] {
  display: none !important;
}

.mp-homo {
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  background: var(--mp-bg);
  color: var(--mp-text) !important;
  font-family: var(--mp-font) !important;
  font-size: 16px;
  line-height: 1.5;
}

.mp-homo,
.mp-homo * {
  font-family: var(--mp-font) !important;
}

.mp-homo h1,
.mp-homo h2,
.mp-homo h3,
.mp-homo h4,
.mp-homo strong,
.mp-homo .mp-homo__brand,
.mp-homo .mp-homo__item h3,
.mp-homo .mp-homo__section-head h2 {
  color: var(--mp-text) !important;
  font-family: var(--mp-font) !important;
  -webkit-text-fill-color: var(--mp-text);
}

.mp-homo a {
  color: var(--mp-blue) !important;
  -webkit-text-fill-color: var(--mp-blue);
}

.mp-homo a.mp-homo__btn--primary,
.mp-homo a.mp-homo__btn.mp-homo__btn--primary {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.mp-homo__topbar {
  background: var(--mp-yellow);
  border-bottom: 1px solid #e6cf00;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--mp-text) !important;
}

.mp-homo__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--mp-text) !important;
}

.mp-homo__mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--mp-blue);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
}

.mp-homo__wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 1.1rem 3.5rem;
}

.mp-homo__hero,
.mp-homo__card,
.mp-homo__stat {
  background: var(--mp-surface);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  color: var(--mp-text) !important;
}

.mp-homo__hero { padding: 1.5rem 1.4rem; margin-bottom: 1rem; }
.mp-homo__card { padding: 1.2rem 1.25rem; margin: 1rem 0; }

.mp-homo__eyebrow {
  color: var(--mp-blue) !important;
  -webkit-text-fill-color: var(--mp-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}

.mp-homo h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1a1a1a !important;
  -webkit-text-fill-color: #1a1a1a;
}

.mp-homo__card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: #1a1a1a !important;
  -webkit-text-fill-color: #1a1a1a;
}

.mp-homo__meta {
  color: var(--mp-muted) !important;
  -webkit-text-fill-color: var(--mp-muted);
  margin: 0;
  font-size: 14px;
}

.mp-homo__stage { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.mp-homo__stage span {
  font-size: 12px;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #f5f5f5;
  color: var(--mp-muted) !important;
  border: 1px solid var(--mp-border);
}
.mp-homo__stage span.active {
  background: var(--mp-yellow);
  color: var(--mp-text) !important;
  border-color: #e6cf00;
  font-weight: 700;
}

.mp-homo__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
@media (max-width: 720px) {
  .mp-homo__grid { grid-template-columns: 1fr; }
}

.mp-homo__stat { padding: 1rem 1.1rem; }
.mp-homo__stat strong {
  display: block;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  color: var(--mp-text) !important;
}
.mp-homo__stat span {
  color: var(--mp-muted) !important;
  font-size: 13px;
}
.mp-homo__stat.done strong { color: var(--mp-green) !important; -webkit-text-fill-color: var(--mp-green); }
.mp-homo__stat.pending strong { color: var(--mp-orange) !important; -webkit-text-fill-color: var(--mp-orange); }
.mp-homo__stat.blocked strong { color: var(--mp-red) !important; -webkit-text-fill-color: var(--mp-red); }

.mp-homo__tickets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 720px) {
  .mp-homo__tickets { grid-template-columns: 1fr; }
}
.mp-homo__ticket {
  border: 1px solid var(--mp-border);
  border-radius: 10px;
  padding: 1rem;
  background: #fafafa;
  color: var(--mp-text) !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.mp-homo__ticket.priority {
  border-color: var(--mp-blue);
  background: #f0f6ff;
}
.mp-homo__ticket > strong,
.mp-homo__ticket-title {
  display: block !important;
  width: 100%;
  margin: 0;
  color: #1a1a1a !important;
  -webkit-text-fill-color: #1a1a1a;
}
.mp-homo__ticket > p {
  display: block;
  width: 100%;
}
.mp-homo__badge {
  display: block;
  width: fit-content;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin: 0;
}
.mp-homo__badge.now { background: var(--mp-blue); color: #fff !important; -webkit-text-fill-color: #fff; }
.mp-homo__badge.next { background: #e6e6e6; color: #555 !important; -webkit-text-fill-color: #555; }

.mp-homo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}
.mp-homo__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
}
.mp-homo__btn--primary { background: var(--mp-blue); color: #fff !important; -webkit-text-fill-color: #fff; }
.mp-homo__btn--primary:hover { background: var(--mp-blue-dark); }
.mp-homo__btn--secondary { background: var(--mp-yellow); color: var(--mp-text) !important; -webkit-text-fill-color: var(--mp-text); }
.mp-homo__btn--ghost {
  background: #f5f5f5;
  color: var(--mp-text) !important;
  -webkit-text-fill-color: var(--mp-text);
  border: 1px solid var(--mp-border);
}

.mp-homo__note {
  margin: 0.75rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  background: #fff8db;
  border: 1px solid #f0e0a0;
  font-size: 14px;
  color: var(--mp-text) !important;
}
.mp-homo__note.ok { background: #e8f8ef; border-color: #b6e6c8; }
.mp-homo__note.err { background: #fdecef; border-color: #f7c2c9; }

.mp-homo__ask {
  margin-top: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-left: 3px solid var(--mp-blue);
  background: #f7faff;
  font-size: 13px;
  color: var(--mp-text) !important;
}

.mp-homo__section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 0.6rem;
}
.mp-homo__section-head h2 {
  margin: 0;
  font-size: 1.05rem;
  color: #1a1a1a !important;
  -webkit-text-fill-color: #1a1a1a;
}
.mp-homo__section-head span {
  color: var(--mp-muted) !important;
  font-size: 13px;
}

.mp-homo__item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem 0;
  border-top: 1px solid var(--mp-border);
}
.mp-homo__item:first-of-type { border-top: 0; }
.mp-homo__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  margin-top: 2px;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}
.mp-homo__check.done { background: var(--mp-green); }
.mp-homo__check.pending { background: var(--mp-orange); }
.mp-homo__check.blocked { background: var(--mp-red); }
.mp-homo__item h3 {
  margin: 0 0 0.25rem;
  font-size: 15px;
  color: #1a1a1a !important;
  -webkit-text-fill-color: #1a1a1a;
}
.mp-homo__item p {
  margin: 0;
  color: var(--mp-muted) !important;
  -webkit-text-fill-color: var(--mp-muted);
  font-size: 13px;
}
.mp-homo__pill {
  font-size: 11px;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}
.mp-homo__pill.obl { background: #fdecef; color: var(--mp-red) !important; -webkit-text-fill-color: var(--mp-red); }
.mp-homo__pill.rec { background: #eef4ff; color: var(--mp-blue) !important; -webkit-text-fill-color: var(--mp-blue); }
.mp-homo__pill.opt { background: #f5f5f5; color: #555 !important; -webkit-text-fill-color: #555; }

.mp-homo__footer {
  display: none;
}

.mp-homo code {
  font-family: "Proxima Nova", -apple-system, "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif !important;
  font-size: 0.95em;
  background: #f5f5f5;
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  color: #1a1a1a !important;
}
