/* Landing QR de vehículo. Misma paleta que selectsas.com. Autocontenida. */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato-400.woff2") format("woff2");
}

:root {
  --burgundy: #7a1f2e;
  --burgundy-deep: #4a0f18;
  --ink: #1c1917;
  --muted: #44403c;
  --line: #e7e5e4;
  --soft: #f8eef0;
  --paper: #ffffff;
  --wa: #075e54;
  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Lato", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.45;
  color: #fff;
  background: #16080c center / cover no-repeat;
  background-image:
    linear-gradient(180deg, rgba(22, 8, 12, 0.55) 0%, rgba(12, 10, 9, 0.78) 100%),
    url("../assets/hero.webp");
}

img { display: block; max-width: 100%; height: auto; }

:focus { outline: none; }

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 5;
  background: #fff;
  color: var(--ink);
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus { top: 0.75rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  width: min(28rem, 100%);
  margin: 0 auto;
  padding: max(1.25rem, env(safe-area-inset-top)) 1.15rem max(1.25rem, env(safe-area-inset-bottom));
}

.mast {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.brand img { height: 36px; width: auto; }

h1 {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 10vw, 3.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}

.line {
  margin: 0;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
}

.badge { margin: 0.35rem 0 0; }

.badge img { height: 40px; width: auto; }

.actions,
.trip,
.foot {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.btn-primary,
.btn-primary:visited {
  background: #fff;
  color: var(--burgundy-deep);
}

.btn-wa,
.btn-wa:visited {
  background: var(--wa);
  color: #fff;
}

.btn-ghost,
.btn-ghost:visited {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}

.btn-quiet,
.btn-quiet:visited {
  min-height: 48px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
}

h2 {
  margin: 0.6rem 0 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0.55rem 0.85rem;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input:focus-visible {
  outline-color: #fff;
  border-color: #fff;
}

.fine {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
}

.error { color: #fff; font-weight: 700; }

.driver {
  margin: 0.15rem 0 0;
  text-align: center;
}

.driver a,
.driver a:visited {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
}

@media (min-width: 700px) {
  body {
    display: grid;
    place-items: center;
    padding: 2.5rem 1.25rem;
  }

  .screen {
    width: min(26rem, 100%);
    padding: 1.6rem 1.4rem 1.4rem;
    border-radius: 28px;
    background: rgba(12, 10, 9, 0.55);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}
