/* ==========================================================================
   ESTILOS DEL FLUJO DE COMPRA, RECARGA, RESULTADO Y PANEL ADMIN - RACING MOBILE
   Respeta la identidad oscura y tipografías Archivo / Work Sans
   ========================================================================== */

:root {
  --rm-red: #E51E26;
  --rm-red-hover: #c4151c;
  --rm-bg-dark: #0B0C0E;
  --rm-card-dark: #14161A;
  --rm-border-dark: rgba(255, 255, 255, 0.12);
  --rm-text-main: #FFFFFF;
  --rm-text-muted: rgba(255, 255, 255, 0.68);
  --rm-green: #18B96B;
  --rm-amber: #F59E0B;
}

.rm-flow-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.rm-flow-header {
  margin-bottom: 36px;
}

.rm-kicker {
  display: inline-block;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rm-red);
  margin-bottom: 10px;
}

.rm-title {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--rm-text-main);
  margin: 0 0 10px;
}

.rm-subtitle {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.05rem;
  color: var(--rm-text-muted);
  max-width: 680px;
  margin: 0;
}

/* Grid de 2 columnas en Checkout y Resultado */
.rm-checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .rm-checkout-grid {
    grid-template-columns: 1fr;
  }
}

.rm-card {
  background: var(--rm-card-dark);
  border: 1px solid var(--rm-border-dark);
  border-radius: 16px;
  padding: 28px;
  color: var(--rm-text-main);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.rm-card-highlight {
  border-color: rgba(229, 30, 38, 0.55);
  background: linear-gradient(165deg, rgba(229, 30, 38, 0.11) 0%, #14161A 65%);
}

.rm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.rm-badge-red {
  background: rgba(229, 30, 38, 0.2);
  color: #ff6b70;
  border: 1px solid rgba(229, 30, 38, 0.45);
}

.rm-badge-green {
  background: rgba(24, 185, 107, 0.18);
  color: #4ade80;
  border: 1px solid rgba(24, 185, 107, 0.4);
}

.rm-badge-amber {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.rm-price-big {
  font-family: 'Archivo', sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: #fff;
  margin: 14px 0 6px;
}

.rm-price-big small {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--rm-text-muted);
  margin-left: 6px;
}

.rm-spec-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  border-top: 1px solid var(--rm-border-dark);
}

.rm-spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.94rem;
}

.rm-spec-list li span:first-child {
  color: var(--rm-text-muted);
}

.rm-spec-list li strong {
  color: #fff;
  text-align: right;
}

/* Formularios del Flujo */
.rm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 640px) {
  .rm-form-grid {
    grid-template-columns: 1fr;
  }
}

.rm-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.rm-field label {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.rm-field input,
.rm-field select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 13px 14px;
  color: #fff;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.96rem;
  transition: border-color 0.2s ease;
}

.rm-field input:focus,
.rm-field select:focus {
  outline: none;
  border-color: var(--rm-red);
}

.rm-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.rm-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
}

.rm-radio-card:hover,
.rm-radio-card:has(input:checked) {
  border-color: var(--rm-red);
  background: rgba(229, 30, 38, 0.09);
}

.rm-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  background: var(--rm-red);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: 'Archivo', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.rm-btn-primary:hover {
  background: var(--rm-red-hover);
}

.rm-btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

.rm-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.rm-btn-outline:hover {
  border-color: #fff;
}

/* Estados de espera y alerta */
.rm-alert {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.rm-alert-error {
  background: rgba(229, 30, 38, 0.15);
  border: 1px solid rgba(229, 30, 38, 0.5);
  color: #fca5a5;
}

.rm-alert-wait {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
}

.rm-alert-success {
  background: rgba(24, 185, 107, 0.15);
  border: 1px solid rgba(24, 185, 107, 0.45);
  color: #86efac;
}

/* Tabla del Panel Privado Admin */
.rm-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rm-border-dark);
  border-radius: 14px;
  background: var(--rm-card-dark);
}

.rm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  color: #fff;
}

.rm-table th,
.rm-table td {
  padding: 13px 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.rm-table th {
  background: rgba(255, 255, 255, 0.04);
  font-family: 'Archivo', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rm-text-muted);
}

.rm-qr-box {
  display: inline-block;
  background: #fff;
  padding: 16px;
  border-radius: 14px;
  margin: 14px 0;
}

/* ==========================================================================
   CENTRADO DE LA PÁGINA DE RECARGA
   Se carga después de styles.css, por eso gana a sus overrides de text-align
   ========================================================================== */

/* Contenedor: apila cabecera y tarjeta, centrados horizontalmente */
.rm-flow-wrap.rm-flow-wrap--center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Cabecera centrada */
.rm-flow-wrap--center .rm-flow-header {
  width: 100%;
  max-width: 680px;
  text-align: center;
}

.rm-flow-wrap--center .rm-flow-header h1,
.rm-flow-wrap--center .rm-flow-header p {
  text-align: center;
}

.rm-flow-wrap--center .rm-flow-header .rm-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Grid de una sola columna, centrado, con ancho máximo para la tarjeta */
.rm-checkout-grid.rm-checkout-grid--single {
  grid-template-columns: minmax(0, 480px);
  justify-content: center;
  width: 100%;
}

/* Título de la tarjeta (antes estaba inline) */
.rm-card-title {
  font-family: 'Archivo', sans-serif;
  font-size: 1.35rem;
  margin: 0 0 12px;
  text-align: left;
}