/* ==============================
   MIS PEDIDOS — Estilos
   ============================== */

/* ── Página general ─────────────────────────────────── */
.mp-page {
  min-height: 100vh;
  background: #f7f9fc;
  padding: 40px 5% 80px;
}

/* ── Hero de sección ─────────────────────────────────── */
.mp-hero {
  text-align: center;
  margin-bottom: 40px;
}

.mp-hero-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #0a1f44, #0d2556);
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(10,31,68,.2);
}

.mp-hero-icon svg {
  width: 30px;
  height: 30px;
  stroke: #00c2ff;
}

.mp-hero h1 {
  font-size: clamp(22px, 3.5vw, 30px);
  color: #0a1f44;
  margin-bottom: 8px;
}

.mp-hero p {
  font-size: 15px;
  color: #777;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Formulario de búsqueda ──────────────────────────── */
.mp-search-wrap {
  max-width: 520px;
  margin: 0 auto 48px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(10,31,68,.08);
  padding: 28px 32px;
}

.mp-search-wrap label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #0a1f44;
  margin-bottom: 10px;
}

.mp-search-row {
  display: flex;
  gap: 10px;
}

.mp-search-input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid #dde3ee;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: #1a2a44;
  outline: none;
  transition: border-color .2s;
}

.mp-search-input:focus {
  border-color: #00c2ff;
}

.mp-search-input.error {
  border-color: #e74c3c;
}

.mp-search-btn {
  padding: 12px 22px;
  background: linear-gradient(135deg, #0a1f44, #0d2556);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
}

.mp-search-btn:hover  { opacity: .88; transform: translateY(-1px); }
.mp-search-btn:active { transform: translateY(0); }
.mp-search-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.mp-search-btn svg {
  width: 16px;
  height: 16px;
  stroke: white;
  flex-shrink: 0;
}

/* ── Área de resultados ──────────────────────────────── */
.mp-results {
  max-width: 760px;
  margin: 0 auto;
}

/* ── Estado vacío / error / cargando ─────────────────── */
.mp-estado {
  text-align: center;
  padding: 48px 24px;
}

.mp-estado-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.mp-estado h2 {
  font-size: 20px;
  color: #0a1f44;
  margin-bottom: 8px;
}

.mp-estado p {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
}

/* ── Spinner ─────────────────────────────────────────── */
.mp-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #edf0f5;
  border-top-color: #00c2ff;
  border-radius: 50%;
  animation: mpSpin .7s linear infinite;
  margin: 0 auto 16px;
}

@keyframes mpSpin { to { transform: rotate(360deg); } }

/* ── Cabecera de resultados ──────────────────────────── */
.mp-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.mp-results-count {
  font-size: 13px;
  font-weight: 700;
  color: #0a1f44;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mp-results-email {
  font-size: 13px;
  color: #888;
  font-style: italic;
}

/* ── Tarjeta de pedido ───────────────────────────────── */
.mp-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(10,31,68,.07);
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid #edf0f5;
  animation: mpFadeUp .35s ease both;
}

@keyframes mpFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* header de la tarjeta */
.mp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid #edf0f5;
  flex-wrap: wrap;
  gap: 10px;
  background: #f7f9fc;
}

.mp-card-ref {
  font-size: 13px;
  font-weight: 700;
  color: #0a1f44;
  font-family: 'Courier New', monospace;
}

.mp-card-fecha {
  font-size: 12px;
  color: #aaa;
}

/* badge de estado */
.mp-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 50px;
}

.mp-badge--approved {
  background: rgba(39,174,96,.12);
  color: #1e8449;
  border: 1px solid rgba(39,174,96,.25);
}

.mp-badge--pending {
  background: rgba(243,156,18,.12);
  color: #b7770d;
  border: 1px solid rgba(243,156,18,.25);
}

.mp-badge--declined,
.mp-badge--error {
  background: rgba(231,76,60,.1);
  color: #c0392b;
  border: 1px solid rgba(231,76,60,.2);
}

/* body de la tarjeta — items */
.mp-card-body {
  padding: 18px 22px;
}

.mp-card-items {
  list-style: none;
  margin-bottom: 16px;
}

.mp-card-items li {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #555;
  padding: 6px 0;
  border-bottom: 1px solid #f2f4f8;
}

.mp-card-items li:last-child { border-bottom: none; }

.mp-card-items .item-nombre { color: #1a2a44; font-weight: 500; }
.mp-card-items .item-qty    { color: #aaa; font-size: 12px; }
.mp-card-items .item-precio { font-weight: 600; color: #0a1f44; }

/* footer de la tarjeta */
.mp-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-top: 2px solid #edf0f5;
  flex-wrap: wrap;
  gap: 12px;
}

.mp-card-total {
  font-size: 18px;
  font-weight: 800;
  color: #0a1f44;
}

.mp-card-total span {
  font-size: 12px;
  font-weight: 500;
  color: #aaa;
  margin-right: 6px;
}

.mp-btn-verificar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  text-decoration: none;
  border: none;
  background: rgba(0,194,255,.1);
  color: #007bb5;
  border: 1px solid rgba(0,194,255,.25);
  transition: background .2s, color .2s;
}

.mp-btn-verificar:hover {
  background: rgba(0,194,255,.2);
  color: #005f8e;
}

.mp-btn-verificar svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 600px) {
  .mp-page { padding: 28px 4% 60px; }
  .mp-search-wrap { padding: 22px 18px; }
  .mp-search-row { flex-direction: column; }
  .mp-search-btn { justify-content: center; }
  .mp-card-head { flex-direction: column; align-items: flex-start; }
}
