:root {
  color-scheme: dark;
  font: 16px/1.5 system-ui, sans-serif;
  background: #161412;
  color: #fff8ea;
  --gold: #f5c568;
  --line: #443a2d;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--gold); }
.bar, main, footer { width: min(100% - 32px, 960px); margin-inline: auto; }
.bar, footer { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 0; }
.bar > a:last-child { font-size: .86rem; }
.brand { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; }
.brand strong { color: var(--gold); }
.brand img { border-radius: 12px; }
.hero { padding: clamp(24px, 6vw, 64px); border: 1px solid var(--line); border-radius: 26px; background: radial-gradient(ellipse at 95% 15%, #543518, #242018 57%, #211c17); }
.kicker { margin: 0 0 9px; color: var(--gold); font-size: .73rem; font-weight: 800; letter-spacing: .12em; }
.flag { display: inline-block; width: 22px; height: 13px; vertical-align: middle; margin-right: 6px; border-radius: 3px; background: linear-gradient(#f9d02b 33%, #2557ae 33% 66%, #e24841 66%); }
h1, h2 { margin: 0; line-height: 1.04; }
h1 { font-size: clamp(2.8rem, 9vw, 6rem); letter-spacing: -.065em; }
h1 span { color: var(--gold); }
.hero p:not(.kicker) { max-width: 40ch; margin: 16px 0; color: #e8dcca; }
.cities { display: flex; gap: 8px; flex-wrap: wrap; }
.cities span { border: 1px solid #826340; border-radius: 999px; padding: 4px 12px; font-size: .84rem; }
.panel { margin-top: 16px; padding: clamp(18px, 4vw, 32px); border-radius: 20px; border: 1px solid var(--line); background: #211e19; }
.panel h2 { font-size: clamp(1.5rem, 4vw, 2.15rem); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fields label { display: grid; gap: 4px; font-weight: 650; }
input, select { width: 100%; min-height: 46px; padding: 9px 10px; border: 1px solid #74624b; border-radius: 9px; color: inherit; background: #171511; font: inherit; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 15px; border: 1px solid #a17b48; border-radius: 10px; color: var(--gold); background: #2e261c; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.primary { background: var(--gold); border-color: var(--gold); color: #22170a; }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 2px solid #fff1c9; outline-offset: 3px; }
.muted, footer { color: #d1c2ac; font-size: .9rem; }
#notice { color: #e9d8bc; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 7px 16px; }
dt { color: #d1c2ac; }
dd { margin: 0; overflow-wrap: anywhere; }
#job-details { white-space: pre-line; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
@media (max-width: 550px) { .fields { grid-template-columns: 1fr; } }

.car-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.car-photo-grid label { display: grid; gap: 8px; align-content: start; }
.car-photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
@media (max-width: 660px) { .car-photo-grid { grid-template-columns: 1fr; } }

.driver-step-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
[data-driver-step][hidden] { display: none; }

.access-password-field { position: relative; }
.access-password-field input { width: 100%; padding-inline-end: 54px; }
.access-password-toggle { position: absolute; inset-inline-end: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; color: #d4af58; background: transparent; border: 0; cursor: pointer; }
.access-password-toggle[hidden], .access-password-toggle[aria-pressed="false"] .access-eye-slash { display: none; }

[data-account-panel][hidden] { display: none; }

.driver-welcome { text-align: center; background: #fff7e8; color: #191713; overflow: hidden; }
.driver-welcome-photo {
  width: 100%; aspect-ratio: 634 / 486; border-radius: 16px 16px 30% 12%;
  background: url('/driver-welcome.png') 86.9% 4.3% / 242.27% auto no-repeat;
}
[data-driver-country="DO"] .driver-welcome-photo { background-position: 13.1% 4.3%; }
.driver-welcome-logo { margin-top: 14px; object-fit: contain; }
.driver-welcome .driver-step-actions, .driver-welcome-country { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.driver-welcome-country a { color: #102a56; }
.driver-welcome-country a[aria-current] { font-weight: 800; }
.driver-welcome .primary { background: #ff981a; color: #241707; }
[data-driver-country="DO"] .driver-welcome .primary { background: #102a56; color: #fff; }
.driver-welcome .secondary { color: #102a56; }

[data-account-destination="general"] :is(.driver-welcome-photo, .driver-welcome-logo, .driver-welcome-country) { display: none; }

/* Paleta de RUVI Conductores Venezuela en Render. */
html:has(.driver-render) {
  color-scheme: light;
  background: #fff4e4;
  color: #14283f;
  --gold: #9e3500;
  --line: #dfcdb9;
}
.driver-render .hero {
  background: #14283f;
  color: #fff4e4;
  display: flow-root;
}
.driver-render .hero .kicker, .driver-render .hero h1 span { color: #ff9b50; }
.driver-render .hero h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); }
.driver-render .hero p:not(.kicker) { color: #fff4e4; }
.driver-render .cities span { border-color: #c49774; }
.driver-render .driver-cover {
  float: right;
  width: min(44%, 340px);
  height: auto;
  border-radius: 18px;
  margin: 12px 0 0 20px;
}
.driver-render .panel { background: #fffbf4; }
.driver-render input, .driver-render select { background: #fff; }
.driver-render .primary { background: #ff9950; border-color: #a33c08; color: #14283f; }
.driver-render .secondary { background: #fff4e4; color: #14283f; }
.driver-render :is(.muted, footer, #notice, dt) { color: #39485a; }
.driver-render :focus-visible { outline-color: #b84a12; }
@media (max-width: 550px) {
  .driver-render .driver-cover { float: none; width: 100%; margin: 12px 0 0; }
}
