:root {
  --bg: #06070a;
  --surface: #101218;
  --surface-2: #171a22;
  --surface-3: #1d2029;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.17);
  --text: #f7f8fb;
  --muted: #979ca9;
  --muted-2: #676d79;
  --red: #ef172b;
  --red-bright: #ff334b;
  --red-deep: #940b18;
  --green: #34d17b;
  --yellow: #f5c451;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.48);
  --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; text-decoration: none; }

svg {
  width: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[hidden] { display: none !important; }

.portal-background {
  position: fixed;
  z-index: -3;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(239, 23, 43, 0.13), transparent 28%),
    radial-gradient(circle at 78% 16%, rgba(239, 23, 43, 0.08), transparent 25%),
    linear-gradient(145deg, #050609 0%, #0b0c11 48%, #06070a 100%);
}

.portal-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}

.mesh {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.15;
}

.mesh-one { right: -140px; top: -160px; background: var(--red); }
.mesh-two { left: -180px; top: 55%; background: #3c4156; }

.portal-header {
  width: min(var(--max), calc(100% - 44px));
  min-height: 82px;
  margin: 16px auto 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  z-index: 30;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(9, 10, 14, 0.78);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px);
}

.portal-brand,
.portal-brand-copy,
.portal-nav,
.secure-pill {
  display: flex;
  align-items: center;
}

.portal-brand { gap: 12px; }

.portal-brand-mark {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  color: #fff;
  font-weight: 950;
  letter-spacing: -0.07em;
  background: linear-gradient(145deg, var(--red-bright), var(--red-deep));
  box-shadow: 0 12px 38px rgba(239, 23, 43, 0.32), inset 0 1px 1px rgba(255, 255, 255, 0.28);
}

.portal-brand-copy {
  flex-direction: column;
  align-items: flex-start;
}

.portal-brand-copy b { font-size: 1.15rem; letter-spacing: 0.03em; }
.portal-brand-copy b span { color: var(--red-bright); }
.portal-brand-copy small { margin-top: 2px; color: var(--muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

.portal-nav { gap: 22px; }
.portal-nav > a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.88rem; font-weight: 700; transition: color 0.2s ease; }
.portal-nav > a:hover { color: #fff; }

.secure-pill {
  gap: 7px;
  padding: 10px 13px;
  border: 1px solid rgba(52, 209, 123, 0.24);
  border-radius: 999px;
  color: #8ee9b5;
  background: rgba(52, 209, 123, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
}

.portal-hero {
  width: min(var(--max), calc(100% - 44px));
  min-height: 760px;
  margin: 0 auto;
  padding: 82px 0 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, 0.92fr);
  gap: clamp(42px, 7vw, 94px);
  align-items: center;
}

.portal-intro { min-width: 0; }

.portal-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #ff7b8d;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portal-eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 0 7px rgba(239, 23, 43, 0.1), 0 0 24px rgba(239, 23, 43, 0.72);
}

.portal-intro h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.1rem, 6.8vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.portal-intro h1 em {
  color: var(--red-bright);
  font-style: normal;
  text-shadow: 0 0 45px rgba(239, 23, 43, 0.26);
}

.portal-lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.72;
}

.portal-benefits {
  max-width: 690px;
  margin-top: 32px;
  display: grid;
  gap: 10px;
}

.portal-benefits > div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 18px;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.portal-benefits > div:hover {
  transform: translateX(6px);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.benefit-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(239, 23, 43, 0.26);
  border-radius: 14px;
  color: #ff7184;
  background: linear-gradient(145deg, rgba(239, 23, 43, 0.16), rgba(239, 23, 43, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.portal-benefits p { margin: 0; }
.portal-benefits b { display: block; font-size: 0.93rem; }
.portal-benefits small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.45; }

.wallet-scene {
  position: relative;
  width: min(570px, 100%);
  height: 292px;
  margin: 34px 0 0 24px;
  perspective: 1100px;
  transform-style: preserve-3d;
}

.wallet-card-3d {
  position: absolute;
  z-index: 3;
  inset: 24px auto auto 46px;
  width: 390px;
  height: 228px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  background:
    linear-gradient(118deg, transparent 8%, rgba(255, 255, 255, 0.1) 28%, transparent 45%),
    radial-gradient(circle at 88% 12%, rgba(255, 73, 94, 0.44), transparent 33%),
    linear-gradient(145deg, #3b0b12 0%, #16080c 42%, #090a0e 100%);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.5), 0 0 70px rgba(239, 23, 43, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.22);
  transform: rotateY(-17deg) rotateX(9deg) rotateZ(-4deg);
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

.wallet-card-3d::before {
  content: "X";
  position: absolute;
  right: -8px;
  bottom: -46px;
  color: rgba(239, 23, 43, 0.18);
  font-size: 12rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.16em;
}

.wallet-card-top,
.wallet-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.wallet-mini-logo {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(145deg, var(--red-bright), var(--red-deep));
  box-shadow: 0 10px 28px rgba(239, 23, 43, 0.3);
}

.wallet-contactless { color: rgba(255, 255, 255, 0.7); font-size: 1.35rem; transform: rotate(-90deg); }
.wallet-card-3d > p { position: relative; z-index: 2; margin: 28px 0 7px; color: rgba(255, 255, 255, 0.55); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.2em; }
.wallet-card-3d > strong { position: relative; z-index: 2; font-size: 1.8rem; letter-spacing: 0.08em; }
.wallet-card-bottom { margin-top: 27px; color: rgba(255, 255, 255, 0.54); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em; }

.orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(239, 23, 43, 0.25);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.orbit-one { width: 510px; height: 180px; left: -14px; top: 48px; }
.orbit-two { width: 460px; height: 128px; left: 26px; top: 74px; border-color: rgba(255, 255, 255, 0.1); }

.wallet-chip {
  position: absolute;
  z-index: 5;
  min-width: 102px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(21, 23, 30, 0.82);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.wallet-chip span,
.wallet-chip small { display: block; }
.wallet-chip span { font-size: 1.05rem; font-weight: 900; }
.wallet-chip small { margin-top: 2px; color: var(--muted); font-size: 0.66rem; }
.chip-a { top: 0; right: 10px; }
.chip-b { bottom: 11px; left: 0; }

.access-panel {
  position: relative;
  min-height: 610px;
  padding: clamp(25px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.025)),
    rgba(10, 11, 15, 0.9);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(24px);
}

.access-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg, transparent 28%, rgba(255, 255, 255, 0.04), transparent 57%);
}

.access-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  right: -110px;
  top: -110px;
  border-radius: 50%;
  background: var(--red);
  filter: blur(80px);
  opacity: 0.18;
}

.panel-heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
}

.panel-icon {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(239, 23, 43, 0.35);
  border-radius: 17px;
  color: #ff7688;
  background: rgba(239, 23, 43, 0.12);
  box-shadow: 0 15px 36px rgba(239, 23, 43, 0.14);
}

.panel-heading p { margin: 0 0 5px; color: #ff7184; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.panel-heading h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.15rem); letter-spacing: -0.055em; }
.panel-copy { margin: 22px 0 30px; color: var(--muted); font-size: 0.93rem; line-height: 1.65; }

#driverLoginForm label {
  display: block;
  margin: 20px 0 9px;
  color: #d9dbe2;
  font-size: 0.79rem;
  font-weight: 800;
}

.phone-field,
.password-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-field:focus-within,
.password-field:focus-within {
  border-color: rgba(239, 23, 43, 0.7);
  box-shadow: 0 0 0 4px rgba(239, 23, 43, 0.1), 0 12px 35px rgba(0, 0, 0, 0.2);
}

.phone-field > span {
  flex: 0 0 auto;
  padding: 0 14px;
  border-right: 1px solid var(--line);
  color: #dadce3;
  font-size: 0.85rem;
  font-weight: 800;
}

.phone-field input,
.password-field input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

.phone-field input,
.password-field input { min-height: 56px; padding: 0 15px; }
.phone-field input::placeholder,
.password-field input::placeholder { color: #585e69; }

.password-field button {
  margin-right: 8px;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  color: #b8bbc4;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.field-help { display: block; margin-top: 7px; color: var(--muted-2); font-size: 0.7rem; line-height: 1.45; }

.portal-button {
  width: 100%;
  min-height: 57px;
  margin-top: 27px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 0;
  border-radius: 17px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.portal-button svg { transition: transform 0.2s ease; }
.portal-button:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.06); }
.portal-button:hover:not(:disabled) svg { transform: translateX(3px); }
.portal-button:disabled { cursor: wait; opacity: 0.64; }

.portal-button-primary {
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  box-shadow: 0 18px 42px rgba(239, 23, 43, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.form-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

.form-status.is-error { color: #ff7c8d; }
.form-status.is-success { color: #82e8ae; }

.access-footer {
  margin-top: 26px;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.access-footer p { margin: 0; color: var(--muted); font-size: 0.72rem; line-height: 1.5; }
.access-footer p b { color: #fff; }
.access-footer a { flex: 0 0 auto; color: #ff7184; font-size: 0.73rem; font-weight: 800; }

.preview-button {
  width: 100%;
  margin-top: 12px;
  padding: 11px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.wallet-view { position: relative; }

.wallet-userbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.driver-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(239, 23, 43, 0.45);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(239, 23, 43, 0.28), rgba(255, 255, 255, 0.04));
  font-weight: 950;
}

.wallet-userbar small { color: #65d999; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; }
.wallet-userbar h2 { margin: 3px 0 1px; font-size: 1.05rem; }
.wallet-userbar p { margin: 0; color: var(--muted); font-size: 0.71rem; }
.wallet-userbar button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: rgba(255, 255, 255, 0.04); font-size: 0.7rem; font-weight: 800; cursor: pointer; }

.balance-panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(239, 23, 43, 0.32);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 53, 76, 0.3), transparent 38%),
    linear-gradient(145deg, #2c0b12, #111218 60%);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.balance-panel small { color: #b4b7c0; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.balance-panel strong { display: block; margin-top: 6px; font-size: 2.25rem; letter-spacing: -0.055em; }
.balance-panel p { margin: 9px 0 0; color: #a4a8b2; font-size: 0.7rem; }
.balance-panel p span { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 12px currentColor; }
.balance-panel p.is-active { color: #78e5a7; }
.balance-panel p.is-active span { background: var(--green); }

.balance-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 17px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.25rem;
}

.wallet-metrics {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.wallet-metrics div {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.wallet-metrics small { display: block; overflow: hidden; color: var(--muted); font-size: 0.6rem; text-overflow: ellipsis; white-space: nowrap; }
.wallet-metrics strong { display: block; margin-top: 6px; font-size: 0.9rem; }

.recharge-heading {
  margin-top: 23px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.recharge-heading p { margin: 0 0 4px; color: #ff7184; font-size: 0.64rem; font-weight: 900; letter-spacing: 0.11em; text-transform: uppercase; }
.recharge-heading h3 { margin: 0; font-size: 1rem; }
.recharge-heading > span { color: var(--muted); font-size: 0.62rem; }

.recharge-options {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.recharge-option {
  padding: 13px 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #c5c8d0;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.79rem;
  font-weight: 850;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.recharge-option:hover { transform: translateY(-2px); border-color: rgba(239, 23, 43, 0.4); }
.recharge-option.is-selected { border-color: rgba(239, 23, 43, 0.78); color: #fff; background: linear-gradient(145deg, rgba(239, 23, 43, 0.25), rgba(239, 23, 43, 0.07)); box-shadow: 0 10px 28px rgba(239, 23, 43, 0.12); }

.custom-amount { margin-top: 12px; }

.custom-amount label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #8f93a0;
  letter-spacing: 0.02em;
  margin-bottom: 7px;
}

.custom-amount-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.custom-amount-field:focus-within {
  border-color: rgba(239, 23, 43, 0.78);
  background: rgba(239, 23, 43, 0.07);
}

.custom-amount-field span {
  font-size: 0.95rem;
  font-weight: 850;
  color: #8f93a0;
}

.custom-amount-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.custom-amount-field input::placeholder { color: #5b5f6b; font-weight: 700; }

.custom-amount-hint {
  margin: 7px 2px 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #8f93a0;
}

.custom-amount-hint.is-error { color: #ff8a92; }

.deposito { margin-top: 14px; }

.deposito-titulo {
  margin: 0 0 9px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #8f93a0;
  letter-spacing: 0.02em;
}

.deposito-campos { display: grid; gap: 9px; grid-template-columns: 1fr 1fr; }
.deposito-campos label:first-child { grid-column: 1 / -1; }

.deposito-campos label { display: block; }

.deposito-campos label > span {
  display: block;
  margin-bottom: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #8f93a0;
}

.deposito-campos label > span i { font-style: normal; color: #5b5f6b; font-weight: 600; }

.deposito-campos input {
  width: 100%;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  outline: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.deposito-campos input::placeholder { color: #5b5f6b; font-weight: 600; }
.deposito-campos input:focus { border-color: rgba(239, 23, 43, 0.78); background: rgba(239, 23, 43, 0.07); }
/* El selector de fecha nativo es claro sobre fondo oscuro: se invierte. */
.deposito-campos input[type="date"] { color-scheme: dark; }

.deposito-ayuda { margin: 8px 2px 0; font-size: 0.7rem; font-weight: 600; color: #8f93a0; }

.solicitudes { margin-top: 14px; }

.solicitudes-titulo {
  margin: 0 0 8px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #8f93a0;
}

.solicitud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 11px 14px;
  margin-bottom: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.028);
}

.solicitud b { display: block; color: #fff; font-size: 0.92rem; font-weight: 800; }
.solicitud small { display: block; margin-top: 2px; color: #8f93a0; font-size: 0.7rem; font-weight: 600; }

.solicitud-estado {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.estado-pending   { color: #fbbf24; background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.3); }
.estado-approved  { color: #7ee5aa; background: rgba(52, 209, 123, 0.12); border-color: rgba(52, 209, 123, 0.3); }
.estado-rejected  { color: #ff7a85; background: rgba(239, 23, 43, 0.12); border-color: rgba(239, 23, 43, 0.32); }
.estado-cancelled { color: #9aa0ac; background: rgba(255, 255, 255, 0.05); border-color: var(--line); }

.solicitud-motivo {
  flex-basis: 100%;
  margin: 2px 0 0;
  font-size: 0.7rem;
  line-height: 1.5;
  color: #ff9aa3;
}

@media (max-width: 480px) {
  .deposito-campos { grid-template-columns: 1fr; }
}

.payment-summary {
  margin-top: 14px;
  padding: 15px 17px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(0, 0, 0, 0.2);
}

.payment-summary div { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 0.69rem; }
.payment-summary b { color: #d5d7dd; }
.payment-summary .summary-total { margin-top: 3px; padding-top: 10px; border-top: 1px solid var(--line); color: #fff; font-weight: 800; }
.summary-total strong { color: #fff; font-size: 1rem; }

.wallet-view .portal-button { margin-top: 13px; min-height: 53px; }

.checkout-trust {
  margin-top: 13px;
  display: flex;
  justify-content: center;
  gap: 15px;
  color: var(--muted);
  font-size: 0.62rem;
}

.checkout-trust span { display: flex; align-items: center; gap: 5px; }
.checkout-trust svg { color: #78e5a7; }

.commission-section,
.process-section,
.portal-footer {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

.commission-section {
  padding: clamp(38px, 7vw, 76px);
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: clamp(35px, 7vw, 96px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 38px;
  background:
    radial-gradient(circle at 12% 20%, rgba(239, 23, 43, 0.11), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow);
}

.commission-copy h2,
.process-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.5vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.commission-copy > p:not(.portal-eyebrow) { margin: 22px 0 0; color: var(--muted); line-height: 1.7; }
.commission-copy > p b { color: var(--red-bright); }
.commission-copy ul { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.commission-copy li { display: flex; align-items: center; gap: 10px; color: #d6d8de; font-size: 0.87rem; }
.commission-copy li::before { content: "✓"; width: 23px; height: 23px; display: inline-grid; place-items: center; border-radius: 50%; color: #7ee5aa; background: rgba(52, 209, 123, 0.1); font-size: 0.72rem; font-weight: 900; }

.live-map {
  padding: clamp(18px, 2.6vw, 24px);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(22, 24, 31, 0.96), rgba(9, 10, 14, 0.96));
  box-shadow: 0 26px 65px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.live-map-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.live-map-top span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.live-map-top b {
  padding: 6px 13px;
  border: 1px solid rgba(52, 209, 123, 0.28);
  border-radius: 999px;
  color: #7ee5aa;
  background: rgba(52, 209, 123, 0.1);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d17b;
  box-shadow: 0 0 0 0 rgba(52, 209, 123, 0.55);
  animation: liveDotPulse 2s ease-out infinite;
}

@keyframes liveDotPulse {
  70% { box-shadow: 0 0 0 9px rgba(52, 209, 123, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 209, 123, 0); }
}

.live-map-canvas {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(120% 85% at 50% 100%, rgba(239, 23, 43, 0.13), transparent 62%),
    linear-gradient(180deg, #07070b 0%, #0b0c12 58%, #101119 100%);
  aspect-ratio: 4 / 3;
}

.live-map-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.live-map-legend {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.live-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.legend-dot { width: 9px; height: 9px; border-radius: 50%; }
.legend-pickup { background: #34d399; box-shadow: 0 0 9px rgba(52, 211, 153, 0.65); }
.legend-drop { background: #ef172b; box-shadow: 0 0 9px rgba(239, 23, 43, 0.65); }
.legend-car { background: rgba(255, 255, 255, 0.82); }

.live-map > small {
  display: block;
  margin-top: 13px;
  color: var(--muted-2);
  font-size: 0.65rem;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}

.process-section { padding: 120px 0; }
.process-heading { max-width: 760px; margin-bottom: 45px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.process-grid article {
  position: relative;
  min-height: 235px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 27px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018));
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.process-grid article:hover { transform: translateY(-8px) rotateX(2deg); border-color: rgba(239, 23, 43, 0.4); }
.process-grid article > span { color: rgba(239, 23, 43, 0.62); font-size: 2.6rem; font-weight: 950; letter-spacing: -0.08em; }
.process-grid h3 { margin: 38px 0 9px; font-size: 1.1rem; }
.process-grid p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.58; }

.portal-footer {
  margin-bottom: 28px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 22px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.028);
}

.portal-footer > div { display: flex; align-items: center; gap: 12px; }
.portal-footer .portal-brand-mark { width: 42px; height: 42px; border-radius: 14px; }
.portal-footer div p { margin: 0; }
.portal-footer div b,
.portal-footer div small { display: block; }
.portal-footer div small { margin-top: 3px; color: var(--muted); font-size: 0.67rem; }
.portal-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 19px; }
.portal-footer nav a { color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.portal-footer nav a:hover { color: #fff; }
.portal-footer > p { grid-column: 1 / -1; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 0.7rem; }

@media (prefers-reduced-motion: no-preference) {
  .wallet-card-3d { animation: walletFloat 5.5s ease-in-out infinite; }
  .wallet-chip { animation: chipFloat 4.5s ease-in-out infinite; }
  .chip-b { animation-delay: -2s; }
  .orbit-one { animation: orbitPulse 4s ease-in-out infinite; }
}

@keyframes walletFloat {
  0%, 100% { transform: rotateY(-17deg) rotateX(9deg) rotateZ(-4deg) translateY(0); }
  50% { transform: rotateY(-14deg) rotateX(7deg) rotateZ(-3deg) translateY(-9px); }
}

@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes orbitPulse {
  0%, 100% { opacity: 0.45; transform: rotate(-12deg) scale(0.98); }
  50% { opacity: 1; transform: rotate(-12deg) scale(1.02); }
}

@media (max-width: 1060px) {
  .portal-hero { grid-template-columns: 1fr; padding-top: 64px; }
  .portal-intro { max-width: 850px; margin: 0 auto; }
  .access-panel { width: min(620px, 100%); margin: 0 auto; }
  .wallet-scene { margin-left: auto; margin-right: auto; }
  .commission-section { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .portal-header,
  .portal-hero,
  .commission-section,
  .process-section,
  .portal-footer { width: min(100% - 26px, var(--max)); }

  .portal-header { min-height: 70px; margin-top: 10px; border-radius: 20px; }
  .portal-brand-mark { width: 43px; height: 43px; }
  .portal-brand-copy small,
  .portal-nav > a { display: none; }
  .secure-pill { padding: 9px 10px; font-size: 0.7rem; }
  .portal-hero { padding: 54px 0 72px; gap: 48px; }
  .portal-intro h1 { font-size: clamp(3.25rem, 16vw, 5rem); }
  .portal-lead { font-size: 0.96rem; }
  .wallet-scene { height: 244px; margin-top: 28px; }
  .wallet-card-3d { left: 5%; width: 80%; height: 190px; padding: 21px; border-radius: 25px; }
  .wallet-card-3d > p { margin-top: 20px; }
  .wallet-card-3d > strong { font-size: 1.4rem; }
  .wallet-card-bottom { margin-top: 20px; }
  .orbit-one { width: 94%; height: 145px; left: 0; }
  .orbit-two { width: 86%; height: 105px; left: 4%; }
  .wallet-chip { min-width: 92px; padding: 10px 12px; }
  .chip-a { right: 0; }
  .access-panel { min-height: auto; padding: 25px 20px; border-radius: 28px; }
  .wallet-metrics { grid-template-columns: 1fr 1fr; }
  .wallet-metrics div:nth-child(3) { grid-column: 1 / -1; }
  .recharge-options { grid-template-columns: repeat(2, 1fr); }
  .commission-section { padding: 38px 22px; border-radius: 28px; }
  .process-section { padding: 82px 0; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid article { min-height: 200px; }
  .portal-footer { grid-template-columns: 1fr; }
  .portal-footer nav { justify-content: flex-start; }
}

@media (max-width: 430px) {
  .secure-pill { font-size: 0; gap: 0; }
  .secure-pill svg { font-size: 1rem; }
  .portal-benefits > div { padding-left: 0; padding-right: 0; }
  .wallet-chip { display: none; }
  .wallet-card-3d { width: 91%; left: 0; }
  .wallet-userbar { grid-template-columns: auto 1fr; }
  .wallet-userbar button { grid-column: 1 / -1; width: 100%; }
  .balance-panel { padding: 20px; }
  .balance-panel strong { font-size: 1.9rem; }
  .checkout-trust { flex-direction: column; align-items: center; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
