/* Registro repartidor — wizard visual (funcionalidad en registro-conductores.js) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --rd-zas: #00d4e8;
  --rd-zas-dark: #00b8cc;
  --rd-zas-soft: #e6fbff;
  --rd-navy: #0a1118;
  --rd-navy-2: #0f1a22;
  --rd-ink: #101820;
  --rd-muted: #5b6b76;
  --rd-line: #e3e9ef;
  --rd-bg: #f3f6f9;
  --rd-white: #fff;
  --rd-danger: #dc2626;
  --rd-shadow: 0 24px 70px rgba(10, 17, 24, 0.14);
  --rd-radius: 22px;
}

.rd-page {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--rd-bg);
  color: var(--rd-ink);
}

.rd-page button,
.rd-page input,
.rd-page select {
  font: inherit;
}

.rd-topbar {
  height: calc(64px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 5% 0;
  background: rgba(7, 23, 45, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.rd-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.rd-logo img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 16px rgba(8, 211, 227, 0.28);
}

.rd-logo em {
  font-style: normal;
  color: var(--rd-zas);
}

.rd-nav-panel {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.rd-navlinks {
  display: flex;
  align-items: center;
  gap: 22px;
}

.rd-navlinks a {
  color: #c9d7e4;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.rd-navlinks a:hover {
  color: var(--rd-zas);
}

.rd-nav-btn {
  flex-shrink: 0;
  background: var(--rd-zas);
  color: var(--rd-navy);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.rd-nav-menu {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  margin-left: auto;
}

.rd-hero {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 56px 5% 42px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  background:
    linear-gradient(105deg, rgba(10, 17, 24, 0.94) 0%, rgba(10, 17, 24, 0.78) 48%, rgba(10, 17, 24, 0.45) 100%),
    url('../images/landing/zas-repartidor.png') center / cover no-repeat;
  color: #fff;
}

.rd-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 232, 0.12);
  color: var(--rd-zas);
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 212, 232, 0.28);
}

.rd-hero__eyebrow .dot {
  width: 7px;
  height: 7px;
  background: var(--rd-zas);
  border-radius: 50%;
}

.rd-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 18px 0 14px;
  font-weight: 800;
  color: #fff;
}

.rd-hero h1 span {
  color: var(--rd-zas);
}

.rd-hero__lead {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin: 0;
}

.rd-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.rd-benefit {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: 16px;
  backdrop-filter: blur(6px);
}

.rd-benefit__icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(0, 212, 232, 0.15);
  color: var(--rd-zas);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 800;
  border: 1px solid rgba(0, 212, 232, 0.35);
}

.rd-benefit b {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: #fff;
}

.rd-benefit small {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  font-size: 12px;
}

.rd-visual {
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  background:
    linear-gradient(160deg, rgba(0, 212, 232, 0.2), rgba(10, 17, 24, 0.15)),
    url('../images/landing/zas-repartidor.png') center / cover no-repeat;
  border: 1px solid rgba(0, 212, 232, 0.2);
}

.rd-visual__card {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  background: #fff;
  color: #0a1118;
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.14);
  font-size: 13px;
  line-height: 1.35;
  max-width: 220px;
}

.rd-visual__card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
  color: #0a1118;
  font-weight: 800;
}

.rd-visual__phone {
  position: absolute;
  right: 24px;
  bottom: 18px;
  z-index: 2;
  width: min(180px, 42%);
  border-radius: 22px;
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  background: #fff;
}

.rd-main {
  max-width: 920px;
  margin: -48px auto 70px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.rd-shell {
  background: #fff;
  border: 1px solid var(--rd-line);
  border-radius: 28px;
  box-shadow: var(--rd-shadow);
  overflow: hidden;
}

.rd-progress {
  padding: 26px 32px 20px;
  border-bottom: 1px solid var(--rd-line);
  background: linear-gradient(180deg, #f7fdff, #fff);
}

.rd-progress__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.rd-progress__top b {
  font-size: 14px;
}

.rd-progress__top span {
  font-size: 13px;
  color: var(--rd-muted);
}

.rd-progress__bar {
  height: 7px;
  background: #e8eef3;
  border-radius: 20px;
  overflow: hidden;
}

.rd-progress__fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--rd-zas), #5cefff);
  border-radius: 20px;
  transition: width 0.35s ease;
}

.rd-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  gap: 8px;
}

.rd-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #94a3b8;
  flex: 1;
  text-align: center;
}

.rd-step__circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid var(--rd-line);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
}

.rd-step.is-active {
  color: var(--rd-navy);
  font-weight: 700;
}

.rd-step.is-active .rd-step__circle {
  background: var(--rd-zas);
  border-color: var(--rd-zas);
  color: #06343a;
}

.rd-step.is-done .rd-step__circle {
  background: var(--rd-zas-soft);
  border-color: var(--rd-zas);
  color: var(--rd-navy);
}

.rd-form-body {
  padding: 34px 40px;
}

.rd-panel {
  display: none;
  animation: rdFade 0.3s ease;
}

.rd-panel.is-active {
  display: block;
}

@keyframes rdFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.rd-form-title {
  font-size: 26px;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  font-weight: 800;
}

.rd-form-sub {
  color: var(--rd-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 26px;
}

.rd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rd-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rd-field--full {
  grid-column: 1 / -1;
}

.rd-field label {
  font-size: 13px;
  font-weight: 700;
}

.rd-field label .req {
  color: var(--rd-danger);
}

.rd-field input,
.rd-field select {
  width: 100%;
  border: 1px solid var(--rd-line);
  border-radius: 13px;
  padding: 13px 14px;
  background: #fff;
  color: var(--rd-ink);
  outline: none;
  transition: 0.2s;
}

.rd-field input:focus,
.rd-field select:focus {
  border-color: var(--rd-zas);
  box-shadow: 0 0 0 4px rgba(0, 212, 232, 0.18);
}

.rd-phone {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
}

.rd-phone__cc {
  display: grid;
  place-items: center;
  border: 1px solid var(--rd-line);
  border-radius: 13px;
  background: #f8fafc;
  font-weight: 700;
  font-size: 13px;
}

.rd-hint {
  font-size: 12px;
  color: var(--rd-muted);
  margin: 0;
  line-height: 1.45;
}

.rd-vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

#departamento[readonly] {
  background: #f3f7f9;
  color: var(--rd-muted, #5b6b75);
}

.rd-vehicle {
  border: 1.5px solid var(--rd-line);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: 0.2s;
  display: block;
}

.rd-vehicle:hover {
  border-color: #7deef8;
  transform: translateY(-1px);
}

.rd-vehicle:has(:checked),
.rd-vehicle.is-selected {
  border-color: var(--rd-zas);
  background: var(--rd-zas-soft);
}

.rd-vehicle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rd-vehicle__icon {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}

.rd-vehicle b {
  display: block;
  font-size: 14px;
}

.rd-vehicle small {
  display: block;
  color: var(--rd-muted);
  margin-top: 4px;
  font-size: 12px;
}

.rd-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--rd-ink);
  cursor: pointer;
}

.rd-check input {
  margin-top: 2px;
  accent-color: var(--rd-zas);
}

/* Términos: forzar cyan en esta página */
.rd-page .reg-terms-open-btn {
  border-color: var(--rd-zas);
  background: var(--rd-zas-soft);
  color: #067a86;
}

.rd-page .reg-terms-open-btn:hover,
.rd-page .reg-terms-open-btn:focus-visible {
  background: #d7f9ff;
  border-color: var(--rd-zas-dark);
}

.rd-page .reg-terms-open-btn__chevron {
  color: var(--rd-zas-dark);
}

.rd-page .reg-terms-gate.is-accepted .reg-terms-open-btn {
  border-color: var(--rd-zas);
  background: #e8fcff;
  color: #067a86;
}

.rd-docs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rd-doc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rd-muted);
  margin: 16px 0 8px;
  grid-column: 1 / -1;
}

.rd-doc-label:first-child {
  margin-top: 0;
}

.file-upload {
  border: 1.5px dashed #cbd5e1;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: #f8fafc;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.file-upload:hover {
  border-color: var(--rd-zas);
  background: var(--rd-zas-soft);
}

.file-upload.has-file {
  border-style: solid;
  border-color: var(--rd-zas);
  background: #f0fdfa;
}

.file-upload.file-upload-required {
  border-color: rgba(220, 38, 38, 0.28);
  background: #fef2f2;
}

.file-upload.file-upload-required.has-file {
  border-color: var(--rd-zas);
  background: #f0fdfa;
}

.file-upload.missing-file {
  border-color: #b91c1c !important;
  background: #fef2f2 !important;
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.2);
}

.file-upload input {
  display: none;
}

.file-upload input.file-upload-overlay-input {
  display: block !important;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.file-upload.file-upload-mobile-pick input.file-upload-overlay-input {
  pointer-events: none;
}

.file-upload span {
  color: var(--rd-ink);
  font-size: 12px;
  font-weight: 600;
}

.file-upload .name {
  color: #067a86;
  font-weight: 600;
  margin-top: 4px;
  font-size: 11px;
  word-break: break-all;
}

.file-pick-sheet {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.file-pick-sheet.hidden {
  display: none !important;
}

.file-pick-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.file-pick-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
}

.file-pick-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.file-pick-btn {
  width: 100%;
  min-height: 50px;
  margin-bottom: 10px;
  border: none;
  border-radius: 12px;
  background: var(--rd-ink);
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.file-pick-btn-secondary {
  background: #fff;
  color: var(--rd-ink);
  border: 2px solid var(--rd-line);
}

.file-pick-cancel {
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 12px;
  background: #f1f5f9;
  font-weight: 600;
  cursor: pointer;
}

.file-pick-hidden-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  opacity: 0 !important;
}

.rd-notice {
  display: flex;
  gap: 10px;
  padding: 14px;
  background: #f8fafc;
  border-radius: 14px;
  margin-top: 16px;
  color: var(--rd-muted);
  font-size: 12px;
  line-height: 1.5;
}

.rd-notice strong {
  color: var(--rd-ink);
}

.rd-summary {
  display: grid;
  gap: 12px;
}

.rd-summary__box {
  border: 1px solid var(--rd-line);
  border-radius: 16px;
  padding: 16px;
}

.rd-summary__box h3 {
  font-size: 12px;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rd-muted);
}

.rd-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  font-size: 13px;
}

.rd-summary__row span {
  color: var(--rd-muted);
}

.rd-summary__row b {
  text-align: right;
  font-weight: 700;
}

.rd-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 40px;
  border-top: 1px solid var(--rd-line);
  background: #fcfdfe;
}

.rd-btn {
  border: 0;
  border-radius: 13px;
  padding: 14px 22px;
  font-weight: 800;
  font-size: 14px;
  transition: 0.2s;
  cursor: pointer;
}

.rd-btn--back {
  background: #f1f5f9;
  color: #475569;
}

.rd-btn--back:hover {
  background: #e2e8f0;
}

.rd-btn--next,
.rd-btn--submit {
  background: var(--rd-zas);
  color: #06343a;
  min-width: 160px;
  box-shadow: 0 8px 22px rgba(0, 212, 232, 0.35);
  margin-left: auto;
}

.rd-btn--next:hover,
.rd-btn--submit:hover {
  background: #5cefff;
}

.rd-btn--submit.is-terms-locked,
.rd-btn.is-terms-locked {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.15);
  pointer-events: auto;
  box-shadow: none;
}

.rd-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  border: 1px solid transparent;
}

.message.error {
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 100%);
  color: #9a3412;
  border-color: #fed7aa;
}

.message.success {
  background: linear-gradient(135deg, #ecfeff 0%, #f0fdf4 100%);
  color: #0f766e;
  border-color: #a5f3fc;
}

.message.hidden {
  display: none;
}

/* Toast flotante — registro repartidor */
.rd-toast {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(18px);
  z-index: 2147483647;
  width: min(94vw, 420px);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 42px 1fr 32px;
  gap: 12px;
  align-items: start;
  padding: 14px 14px 14px 12px;
  border-radius: 18px;
  background: #fff;
  color: var(--rd-ink, #101820);
  border: 1px solid rgba(10, 17, 24, 0.08);
  box-shadow:
    0 18px 50px rgba(10, 17, 24, 0.18),
    0 2px 0 rgba(255, 255, 255, 0.7) inset;
  font: 600 14px/1.45 Inter, system-ui, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.rd-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.rd-toast.is-leaving {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
}

.rd-toast__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  flex: none;
}

.rd-toast__body {
  min-width: 0;
  padding-top: 2px;
}

.rd-toast__label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
  opacity: 0.72;
}

.rd-toast__text {
  display: block;
  word-break: break-word;
  color: inherit;
}

.rd-toast__close {
  border: 0;
  background: transparent;
  color: #6b7a86;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 2px;
  border-radius: 8px;
  width: 32px;
  height: 32px;
}

.rd-toast__close:hover {
  background: rgba(10, 17, 24, 0.06);
  color: #101820;
}

.rd-toast--error {
  border-color: rgba(234, 88, 12, 0.22);
}

.rd-toast--error .rd-toast__icon {
  background: #fff7ed;
  color: #c2410c;
  box-shadow: inset 0 0 0 1px #fed7aa;
}

.rd-toast--error .rd-toast__label {
  color: #c2410c;
}

.rd-toast--success {
  border-color: rgba(0, 212, 232, 0.35);
}

.rd-toast--success .rd-toast__icon {
  background: var(--rd-zas-soft, #e6fbff);
  color: #0e7490;
  box-shadow: inset 0 0 0 1px #a5f3fc;
}

.rd-toast--success .rd-toast__label {
  color: #0e7490;
}

.rd-toast--info {
  border-color: rgba(10, 17, 24, 0.1);
}

.rd-toast--info .rd-toast__icon {
  background: #f3f6f9;
  color: #0a1118;
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rdSpin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

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

.rd-success {
  text-align: center;
  padding: 56px 32px;
}

.rd-success.hidden {
  display: none;
}

.rd-success__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--rd-zas-soft);
  color: #067a86;
  display: grid;
  place-items: center;
  font-size: 32px;
  margin: 0 auto 18px;
}

.rd-success h2 {
  font-size: 28px;
  margin: 0 0 10px;
}

.rd-success p {
  color: var(--rd-muted);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 20px;
}

.rd-footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  padding: 28px 20px 40px;
  background: var(--rd-navy);
}

.rd-footer a {
  color: var(--rd-zas);
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .rd-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 18px 18px;
  }

  .rd-visual {
    min-height: 280px;
  }

  .rd-visual__phone {
    display: none;
  }

  .rd-benefits {
    grid-template-columns: 1fr;
  }

  .rd-benefit {
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .rd-benefit__icon {
    margin: 0;
  }
}

@media (max-width: 900px) {
  .rd-topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .rd-nav-menu {
    display: grid;
    place-items: center;
  }

  .rd-nav-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-left: 0;
    padding: 14px;
    background: rgba(7, 23, 45, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: var(--rd-shadow);
  }

  .rd-topbar.rd-nav-open .rd-nav-panel {
    display: flex;
  }

  .rd-navlinks {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .rd-navlinks a {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .rd-navlinks a:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .rd-nav-btn {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 650px) {
  .rd-topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .rd-main {
    padding: 0 10px;
  }

  .rd-shell {
    border-radius: 20px;
  }

  .rd-progress {
    padding: 20px 16px 16px;
  }

  .rd-form-body {
    padding: 24px 16px;
  }

  .rd-grid,
  .rd-docs {
    grid-template-columns: 1fr;
  }

  .rd-field--full {
    grid-column: auto;
  }

  .rd-vehicle-grid {
    grid-template-columns: 1fr;
  }

  .rd-steps .rd-step span {
    display: none;
  }

  .rd-actions {
    padding: 16px;
    position: sticky;
    bottom: 0;
    z-index: 5;
  }

  .rd-btn {
    flex: 1;
  }

  .rd-btn--next,
  .rd-btn--submit {
    margin-left: 0;
  }
}

/* —— Portal postulante (estilo applicant / PedidosYa) —— */
.rd-portal {
  min-height: 100vh;
  background: linear-gradient(160deg, #00d4e8 0%, #0099b3 45%, #0a1118 100%);
  padding: 28px 16px 48px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.rd-portal.hidden { display: none !important; }
.rd-portal__card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.22);
}
.rd-portal__hero {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 12px;
  padding: 28px 24px 22px;
  background: #f4f6f8;
}
.rd-portal__hero h1 {
  margin: 0 0 8px;
  font-size: 34px;
  letter-spacing: -1.2px;
}
.rd-portal__hero p {
  margin: 0;
  color: #5b6b76;
  font-size: 14px;
  line-height: 1.5;
}
.rd-portal__illu {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.rd-portal__avatar {
  width: 88px;
  height: 100px;
  border-radius: 18px 18px 8px 8px;
  background:
    radial-gradient(circle at 50% 28%, #f2c4a0 0 22px, transparent 23px),
    linear-gradient(180deg, #0a1118 38%, #00d4e8 38% 78%, #0a1118 78%);
  position: relative;
}
.rd-portal__avatar:after {
  content: "";
  position: absolute;
  width: 34px;
  height: 42px;
  right: 6px;
  top: 42px;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 2px #e3e9ef;
}
.rd-portal__body { padding: 8px 8px 22px; }
.rd-portal__body h2 {
  margin: 12px 16px 6px;
  font-size: 18px;
  letter-spacing: -.3px;
}
.rd-portal__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rd-portal__list li { border-top: 1px solid #eceff2; }
.rd-portal__item {
  width: 100%;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 22px 1fr 28px;
  gap: 12px;
  align-items: center;
  padding: 18px 16px;
  text-align: left;
  cursor: pointer;
  color: #101820;
}
.rd-portal__item:disabled { cursor: not-allowed; }
.rd-portal__bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c5ced6;
  justify-self: center;
}
.rd-portal__copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rd-portal__copy strong { font-size: 15px; font-weight: 700; }
.rd-portal__copy small { color: #8a96a0; font-size: 12px; line-height: 1.35; }
.rd-portal__trail {
  color: #e11d48;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}
.rd-portal__lock { color: #b7c0c8; font-size: 16px; }
.rd-portal__item.is-active .rd-portal__bullet { background: #101820; }
.rd-portal__item.is-active .rd-portal__copy strong { color: #101820; }
.rd-portal__item.is-done .rd-portal__bullet { background: #16a34a; }
.rd-portal__item.is-done .rd-portal__trail { color: #16a34a; font-size: 16px; }
.rd-portal__item.is-locked,
.rd-portal__item.is-locked .rd-portal__copy strong,
.rd-portal__item.is-locked .rd-portal__copy small {
  color: #b0bac3;
}
.rd-portal__item.is-locked .rd-portal__bullet { background: #d5dbe1; }
.rd-portal__submit {
  margin: 18px 16px 0;
  width: calc(100% - 32px);
  border: 0;
  border-radius: 999px;
  padding: 16px;
  background: #101820;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}
.rd-portal__submit:disabled { opacity: .45; cursor: not-allowed; }
.rd-portal__submit.hidden { display: none; }
.rd-portal__cta {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 16px;
  background: #101820;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}

/* Sheet documentación */
.rd-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10,17,24,.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}
.rd-sheet.hidden { display: none !important; }
.rd-sheet__panel {
  width: 100%;
  max-width: 460px;
  max-height: min(92vh, 820px);
  background: #fff;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
}
.rd-sheet__head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 14px 12px 8px;
}
.rd-sheet__head h3 {
  margin: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
}
.rd-sheet__iconbtn {
  border: 0;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: #101820;
  width: 40px;
  height: 40px;
}
.rd-sheet__progress {
  height: 4px;
  background: #e8f9fc;
  margin: 0 16px 8px;
  border-radius: 99px;
  overflow: hidden;
}
.rd-sheet__progress-fill {
  height: 100%;
  width: 16%;
  background: #00d4e8;
  transition: width .3s ease;
}
.rd-sheet__body {
  padding: 12px 20px 8px;
  overflow: auto;
  flex: 1;
}
.rd-docstep { display: none; animation: fade .3s ease; }
.rd-docstep.is-active { display: block; }
.rd-docstep__section {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
  margin: 8px 0 16px;
}
.rd-docstep__lead {
  font-size: 16px;
  line-height: 1.45;
  margin: 8px 0 18px;
  color: #101820;
}
.rd-sheet__footer {
  padding: 14px 20px 20px;
  border-top: 1px solid #eef2f5;
}
.rd-sheet-upload { min-height: 180px; display: flex; flex-direction: column; justify-content: center; }
.rd-docs--sheet { grid-template-columns: 1fr; }
.rd-vehicle-grid--sheet { grid-template-columns: 1fr; }
@media (min-width: 520px) {
  .rd-vehicle-grid--sheet { grid-template-columns: repeat(3, 1fr); }
  .rd-docs--sheet { grid-template-columns: 1fr 1fr; }
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
body.rd-portal-mode .rd-topbar,
body.rd-portal-mode .rd-footer { display: none; }
