/* ===== Tokens ===== */
:root {
  --asphalt: #2b3036;      /* fondo: asfalto */
  --asphalt-dark: #22262b;
  --sign-green: #0c6b45;   /* verde de señal de autopista */
  --sign-white: #f7f7f2;
  --lane-yellow: #f4c21b;  /* línea central */
  --cone-orange: #f2711c;  /* señal de obra */
  --text: #e9eae6;
  --text-muted: #aeb3b8;
  --font: "Overpass", "Highway Gothic", "Segoe UI", system-ui, sans-serif;
}

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

html, body { margin: 0; }

body {
  min-height: 100vh;
  background: var(--asphalt);
  /* textura sutil de asfalto */
  background-image:
    radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,.18) 1px, transparent 1px);
  background-size: 5px 5px, 7px 7px;
  background-position: 0 0, 2px 3px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.scene {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 16px 0;
  overflow: hidden;
}

/* ===== Señal de autopista ===== */
.highway {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 640px;
}

.highway__sign {
  width: 100%;
  background: var(--sign-green);
  color: var(--sign-white);
  border-radius: 18px;
  padding: 28px 32px 30px;
  /* borde blanco reflectivo, típico de señal vial */
  box-shadow:
    inset 0 0 0 5px var(--sign-green),
    inset 0 0 0 9px var(--sign-white),
    0 18px 40px rgba(0,0,0,.35);
  text-align: center;
  position: relative;
  z-index: 2;
}

.highway__exit {
  display: inline-block;
  background: var(--lane-yellow);
  color: #1d1d1d;
  font-weight: 800;
  font-size: .95rem;
  padding: 4px 14px 2px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.highway__brand {
  margin: 0;
  font-weight: 900;
  font-size: clamp(2.8rem, 10vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.01em;
}

.highway__tagline {
  margin: 12px 0 22px;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 600;
}

.highway__distance {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-top: 3px solid rgba(247,247,242,.85);
  padding-top: 16px;
  font-weight: 800;
  font-size: clamp(1.1rem, 3.4vw, 1.5rem);
}

.highway__arrow { width: 34px; height: 34px; }

.highway__posts {
  display: flex;
  justify-content: space-between;
  width: 52%;
  height: 46px;
  margin-top: -2px;
}
.highway__posts span {
  width: 12px;
  background: linear-gradient(90deg, #8d949a, #c5cacf 45%, #7a8187);
  border-radius: 0 0 3px 3px;
}

/* ===== Señal de obra ===== */
.work-sign {
  position: absolute;
  top: 28px;
  right: max(16px, calc(50% - 400px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
}
.work-sign__diamond {
  width: 74px;
  height: 74px;
  background: var(--cone-orange);
  border: 4px solid #1d1d1d;
  border-radius: 8px;
  transform: rotate(45deg);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.work-sign__icon {
  width: 42px;
  height: 42px;
  transform: rotate(-45deg);
  fill: #1d1d1d;
}
.work-sign__label {
  font-size: .85rem;
  font-weight: 800;
  color: var(--cone-orange);
  margin-top: 10px;
}

/* ===== Contenido ===== */
.info {
  width: 100%;
  max-width: 560px;
  margin-top: 36px;
  position: relative;
  z-index: 2;
}

.info__lead {
  margin: 0 0 20px;
  font-size: 1.15rem;
  color: var(--text);
}

.info__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.info__list li {
  position: relative;
  padding: 8px 0 8px 30px;
  color: var(--text-muted);
}
.info__list li::before {
  /* pequeño tramo de línea de carril */
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 18px;
  height: 5px;
  border-radius: 2px;
  background: var(--lane-yellow);
}
.info__list strong { color: var(--text); font-weight: 700; }

/* ===== Carretera ===== */
.road {
  position: relative;
  width: 100vw;
  height: 120px;
  margin-top: 48px;
  background: var(--asphalt-dark);
  border-top: 6px solid var(--sign-white);
  overflow: hidden;
}
.road__line {
  position: absolute;
  top: 50%;
  left: 0;
  height: 8px;
  width: 200%;
  transform: translateY(-50%);
  background: repeating-linear-gradient(
    90deg,
    var(--lane-yellow) 0 64px,
    transparent 64px 112px
  );
  /* un solo momento de movimiento: la línea avanza al cargar y se detiene */
  animation: drive 2.4s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes drive {
  from { transform: translate(-50%, -50%); }
  to   { transform: translate(0, -50%); }
}

.footer {
  width: 100vw;
  background: var(--asphalt-dark);
  text-align: center;
  padding: 0 16px 28px;
  color: var(--text-muted);
  font-size: .9rem;
}
.footer p { margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .scene { padding-top: 136px; }
  .work-sign { top: 22px; right: 50%; transform: translateX(50%) scale(.8); }
  .highway__sign { padding: 24px 18px 26px; }
}

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