/* Largada: el V30 con su piloto (render), y nuestras cabezas gigantes en lugar del casco.
   --cx/--cy: cuello del piloto en % del render; --cw: ancho de la cabeza. */
.largada { padding-bottom: clamp(160px, 27vh, 280px); }
.largada > * { position: relative; }
.largada .montaje, .largada .montaje__titulo, .largada .grilla, .largada .gigantes { position: absolute; }
.grilla { left: 0; right: 0; bottom: clamp(14px, 4vh, 40px); z-index: 1; display: flex; justify-content: center; align-items: flex-end; gap: clamp(4px, 3vw, 44px); pointer-events: none; }
.autito { --cx: 44.2%; --cy: 53%; --cw: 31%; --gb: 120%; position: relative; width: clamp(128px, 31vw, 380px); animation: ralenti .12s linear infinite alternate; }
.autito--punta { z-index: 1; margin-bottom: -2.4vh; }
.autito__auto { display: block; width: 100%; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .65)); }
.autito__cara {
  position: absolute; left: var(--cx); bottom: var(--cy); width: var(--cw); translate: -50% 0; transform-origin: 50% 95%;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .55)); animation: bambolea 1.3s ease-in-out var(--e) infinite alternate;
}
.autito--perfil { --cx: 44.9%; --cy: 44%; --cw: 22%; }
.autito::after { content: ""; position: absolute; left: -6%; bottom: 4%; width: 40%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(220, 225, 235, .75), rgba(220, 225, 235, 0) 70%); opacity: 0; pointer-events: none; }
@keyframes ralenti { to { transform: translateY(-1.5px) rotate(-.5deg); } }
@keyframes bambolea { from { rotate: -8deg; } to { rotate: 8deg; } }
.largada.corriendo .autito { animation-duration: .05s; }
.largada.corriendo .autito__cara { animation-duration: .5s; }
.largada.sale .autito { animation: arranca var(--d) cubic-bezier(.6, 0, .9, .5) var(--e) forwards; }
.largada.sale .autito--wheelie { animation-name: wheelie; }
.largada.sale .grilla .autito::after { animation: humo .9s ease-out var(--e) forwards; }
@keyframes arranca { 0% { transform: none; } 14% { transform: translateX(-10px) rotate(-5deg); } 100% { transform: translateX(115vw) rotate(-2deg); } }
@keyframes wheelie { 0% { transform: none; } 20% { transform: translateX(-6px) rotate(-16deg); } 60% { transform: translateX(40vw) rotate(-18deg); } 100% { transform: translateX(115vw) rotate(-6deg); } }
@keyframes humo { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: translateX(-60%) scale(3.2); } }

/* Globos de diálogo mientras esperan la largada */
.globo {
  position: absolute; left: calc(var(--cx) + 8%); bottom: var(--gb); z-index: 2; padding: 7px 12px; border-radius: 14px 14px 14px 4px;
  background: #fff; color: #0b0d12; font: 700 clamp(12px, 1.3vw, 16px)/1.15 var(--sans); white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .4); opacity: 0; transform: translateY(6px) scale(.6); transform-origin: 0 100%;
  transition: opacity .18s, transform .3s cubic-bezier(.2, 1.6, .4, 1);
}
.globo.ve { opacity: 1; transform: none; }
.largada.corriendo .globo { opacity: 0; }

/* Pasada gigante: las tres caras cruzan la pantalla en grande */
.gigantes { inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.largada .gigantes .autito, .largada.sale .gigantes .autito { position: absolute; left: 0; top: var(--gy); width: max(340px, min(78vw, 110vh, 1100px)); animation: cruza 1.25s cubic-bezier(.15, .75, .85, .25) forwards; }
.largada .gigantes .autito__cara { animation: bambolea .18s ease-in-out infinite alternate; }
@keyframes cruza { from { transform: translate(-105%, -50%) rotate(var(--gr)); } to { transform: translate(170vw, -50%) rotate(var(--gr)); } }

/* Montaje de la largada: memes que caen de golpe con destello, y un título que se estampa */
.montaje { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.montaje img {
  position: absolute; left: 50%; top: 46%; width: clamp(110px, 30vw, 230px);
  transform: translate(calc(-50% + var(--mx)), calc(-50% + var(--my))) rotate(var(--mr));
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .6)); animation: golpe .22s cubic-bezier(.2, 1.6, .4, 1) both;
}
@keyframes golpe { 0% { opacity: 0; transform: translate(calc(-50% + var(--mx)), calc(-50% + var(--my))) rotate(calc(var(--mr) * -3)) scale(3); } 100% { opacity: 1; } }
.largada::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 4; }
.largada.destello::after { animation: destello .22s ease-out; }
@keyframes destello { 0% { opacity: .55; } 100% { opacity: 0; } }
.montaje__titulo {
  position: absolute; left: 50%; top: 46%; z-index: 5; margin: 0; pointer-events: none; opacity: 0; white-space: nowrap;
  font: 900 clamp(64px, 17vw, 200px)/.9 var(--sans); font-stretch: 62%; letter-spacing: -.03em; text-transform: uppercase;
  color: #fff; -webkit-text-stroke: 3px #000; paint-order: stroke fill; text-shadow: 0 10px 0 var(--rojo), 0 24px 50px rgba(0, 0, 0, .7);
  transform: translate(-50%, -50%) rotate(-6deg);
}
.largada.titulo .montaje__titulo { animation: estampa .35s cubic-bezier(.2, 1.7, .4, 1) both; }
.largada.titulo .luces, .largada.titulo .largada__tope { opacity: 0; transition: opacity .2s; }
@keyframes estampa { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-20deg) scale(3.2); } 100% { opacity: 1; transform: translate(-50%, -50%) rotate(-6deg) scale(1); } }

/* Spam de stickers: aparecen al bajar, por toda la página, a propósito */
.spam {
  position: absolute; left: var(--sx); top: var(--sy); width: var(--sw); z-index: 6;
  cursor: grab; user-select: none; -webkit-user-drag: none; touch-action: pan-y;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .55));
  --t: translate(-50%, -50%) translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--r)); transform: var(--t);
  animation: cae .45s cubic-bezier(.2, 1.6, .4, 1) backwards, flota var(--dur) ease-in-out .45s infinite;
}
.spam.salta { animation: brinca .7s cubic-bezier(.3, 1.5, .5, 1); }
.spam.agarrado { animation: none; cursor: grabbing; z-index: 30; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .6)); }
@keyframes cae { 0% { opacity: 0; transform: var(--t) scale(2.6) rotate(30deg); } 100% { opacity: 1; transform: var(--t); } }

/* Pasadas: un autito con cabezón cruza la pantalla cada tanto; tocándolo, salta */
.pasada-mini {
  position: fixed; left: 0; top: var(--py); z-index: 20; width: clamp(170px, 24vw, 330px); cursor: pointer;
  animation: pasa-mini 4.2s linear forwards;
}
.pasada-mini--vuelta { animation-name: vuelve-mini; }
.pasada-mini--vuelta .autito__auto { transform: scaleX(-1); }
.pasada-mini--vuelta .autito { --cx: 55.1%; }
.pasada-mini .autito { width: 100%; }
.pasada-mini .autito__cara { animation-duration: .35s; }
.pasada-mini .autito.brinco { animation: brinco-auto .6s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes pasa-mini { from { transform: translateX(-110%); } to { transform: translateX(110vw); } }
@keyframes vuelve-mini { from { transform: translateX(110vw); } to { transform: translateX(-110%); } }
@keyframes brinco-auto { 0% { transform: none; } 40% { transform: translateY(-60%) rotate(-14deg); } 100% { transform: none; } }
