/* ============================================================
   DIN NEXT LT PRO
============================================================ */
@font-face { font-family: 'DIN Next'; src: url('assets/fonts/DINNextLTPro-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DIN Next'; src: url('assets/fonts/DINNextLTPro-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'DIN Next'; src: url('assets/fonts/DINNextLTPro-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'DIN Next'; src: url('assets/fonts/DINNextLTPro-Heavy.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'DIN Next'; src: url('assets/fonts/DINNextLTPro-Black.ttf') format('truetype'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'DIN Next Cond'; src: url('assets/fonts/DINNextLTPro-BoldCondensed.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'DIN Next Cond'; src: url('assets/fonts/DINNextLTPro-HeavyCondensed.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'DIN Next Cond'; src: url('assets/fonts/DINNextLTPro-BlackCondensed.ttf') format('truetype'); font-weight: 900; font-display: swap; }

/* ============================================================
   RESET & VARS
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow: #F6D417;
  --yellow-light: #F3E27A;
  --yellow-warm: #E8C72B;
  --blue: #0B2A6B;
  --blue-deep: #081E52;
  --cream: #F5E89A;
  --gold: #E8B923;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DIN Next', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  color: #fff;
  background: var(--blue);
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none) {
  body { cursor: auto; }
  .cursor-gold { display: none; }
}

img { max-width: 100%; display: block; height: auto; }
button, a { cursor: none; }
@media (hover: none) { button, a { cursor: pointer; } }

/* ============================================================
   CURSOR
============================================================ */
.cursor-gold {
  position: fixed;
  top: 0; left: 0;
  width: 28px; height: 18px;
  background: linear-gradient(135deg, #FFD84A, #B8860B);
  border-radius: 3px;
  box-shadow: 0 0 18px rgba(255, 200, 50, 0.8), inset 0 0 8px rgba(255,255,255,0.3);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width .25s ease, height .25s ease;
}
.cursor-gold.hover { width: 50px; height: 32px; }

/* ============================================================
   PROGRESS BAR
============================================================ */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--yellow), var(--gold));
  z-index: 9998;
  box-shadow: 0 0 10px rgba(246,212,23,0.6);
  transition: width .1s linear;
}

/* ============================================================
   PRELOADER
============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: url('assets/amarilloclaro.png') center center / cover no-repeat, var(--cream);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preloader .grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  z-index: 1;
}

.preloader .nail {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8a6a00, #3a2a00);
  box-shadow: 0 2px 4px rgba(0,0,0,0.4), inset -1px -1px 2px rgba(0,0,0,0.4), inset 1px 1px 1px rgba(255,220,100,0.4);
  z-index: 2;
}
.preloader .nail--tl { top: 22px; left: 22px; }
.preloader .nail--tr { top: 22px; right: 22px; }
.preloader .nail--bl { bottom: 22px; left: 22px; }
.preloader .nail--br { bottom: 22px; right: 22px; }

.preloader__stage {
  position: relative;
  width: min(900px, 92vw);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preloader__flash {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at center, rgba(255,220,100,0.75), transparent 55%);
  opacity: 0;
  pointer-events: none;
  animation: plFlash 2s ease-out 1.5s;
  z-index: 1;
}
@keyframes plFlash {
  0% { opacity: 0; transform: scale(0.5); }
  30% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(1.8); }
}

.preloader__composition {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  z-index: 2;
}

.preloader__title {
  width: min(720px, 85%);
  opacity: 0;
  transform: translateY(-30px) scale(0.97);
  animation: plDrop 1s cubic-bezier(.3,1.4,.4,1) 0.3s forwards;
  filter: drop-shadow(0 6px 0 rgba(0,0,0,0.12)) drop-shadow(0 12px 20px rgba(0,0,0,0.08));
}
.preloader__title img { width: 100%; }
@keyframes plDrop {
  0% { opacity: 0; transform: translateY(-40px) scale(0.95); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.preloader__gold {
  width: min(380px, 55%);
  opacity: 0;
  transform: translateY(-120vh) scale(0.4) rotate(-15deg);
  animation: plGoldDrop 1.4s cubic-bezier(.3,1.5,.4,1) 1.4s forwards;
  filter: drop-shadow(0 0 40px rgba(255,200,50,0.7)) drop-shadow(0 20px 40px rgba(0,0,0,0.5));
  transform-origin: center center;
}
.preloader__gold img { width: 100%; }
@keyframes plGoldDrop {
  0% { opacity: 0; transform: translateY(-120vh) scale(0.4) rotate(-15deg); }
  55% { opacity: 1; transform: translateY(20px) scale(1.1) rotate(4deg); }
  75% { transform: translateY(-8px) scale(0.97) rotate(-2deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

.preloader__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.preloader__particles span {
  position: absolute;
  width: 6px; height: 6px;
  background: radial-gradient(circle, #FFE066, #D4A017);
  border-radius: 50%;
  box-shadow: 0 0 12px #FFD84A;
  animation: plParticle 2.5s ease-out infinite;
}
@keyframes plParticle {
  0% { transform: translate(0,0) scale(0); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) scale(1); opacity: 0; }
}

.preloader__wipe {
  position: absolute;
  inset: 0;
  background: url('assets/amarillo.png') center center / cover no-repeat, var(--yellow);
  transform: translateY(100%);
  z-index: 10;
  transition: transform 1.1s cubic-bezier(.7,0,.3,1);
}
.preloader.is-out .preloader__wipe { transform: translateY(0); }
.preloader.is-gone { opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }

@media (max-width: 640px) {
  .preloader__title { width: 90%; }
  .preloader__gold { width: 65%; }
}

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: url('assets/amarillo.png') center top / cover no-repeat, var(--yellow);
}

.hero__bg-yellow { display: none; }

.hero__bg-blue {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 16vh;
  min-height: 120px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  z-index: 0;
}

.grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5vw 5vw 2vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__subtitle {
  width: min(900px, 95%);
  margin-top: 1vw;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,0.1)) drop-shadow(0 10px 18px rgba(0,0,0,0.08));
}

.hero__construye {
  margin-top: 1.5vw;
  color: var(--blue);
  font-family: 'DIN Next', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2.1vw, 28px);
  line-height: 1.2;
  text-align: left;
  align-self: flex-start;
  padding-left: 4vw;
}
.hero__construye .badge {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 0.1em 0.5em;
  border-radius: 2px;
  font-weight: 900;
  margin-top: 0.15em;
  letter-spacing: 0.01em;
}

.hero__moto {
  width: min(780px, 95%);
  margin-top: 0;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.35));
  animation: motoVibrate 0.08s linear infinite;
}
@keyframes motoVibrate {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(0.4px, -0.2px); }
  50% { transform: translate(-0.3px, 0.3px); }
  75% { transform: translate(0.2px, 0.2px); }
}
.hero__moto img {
  width: 100%;
  transition: transform 0.6s cubic-bezier(.3,1.4,.4,1);
}
.hero__moto:hover img {
  transform: translateX(12px) rotate(-2deg) scale(1.02);
}
.moto-shadow {
  position: absolute;
  bottom: 2%;
  left: 10%; right: 10%;
  height: 22px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.5), transparent 70%);
  filter: blur(6px);
  z-index: -1;
}

.exhaust-smoke {
  position: absolute;
  left: 2%;
  bottom: 35%;
  width: 120px; height: 80px;
  pointer-events: none;
  z-index: 1;
}
.exhaust-smoke span {
  position: absolute;
  bottom: 0; left: 0;
  width: 20px; height: 20px;
  background: radial-gradient(circle, rgba(255,255,255,0.8), rgba(200,200,200,0.2) 60%, transparent);
  border-radius: 50%;
  opacity: 0;
  animation: smoke 2.4s ease-out infinite;
}
.exhaust-smoke span:nth-child(2) { animation-delay: 0.8s; }
.exhaust-smoke span:nth-child(3) { animation-delay: 1.6s; }
@keyframes smoke {
  0% { transform: translate(0,0) scale(0.5); opacity: 0; }
  20% { opacity: 0.8; }
  100% { transform: translate(-80px,-50px) scale(3); opacity: 0; }
}

.speed-lines {
  position: absolute;
  inset: 30% auto 30% -10%;
  width: 40%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hero__moto:hover .speed-lines { opacity: 1; }
.speed-lines::before, .speed-lines::after {
  content: '';
  position: absolute;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue));
  border-radius: 3px;
}
.speed-lines::before { top: 20%; width: 70%; animation: dash 0.6s linear infinite; }
.speed-lines::after { top: 60%; width: 100%; animation: dash 0.6s linear infinite 0.2s; }
@keyframes dash {
  0% { transform: translateX(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

.hero__caption {
  color: #fff;
  font-family: 'DIN Next', sans-serif;
  font-weight: 300;
  font-size: clamp(11px, 1vw, 14px);
  text-align: left;
  align-self: flex-start;
  padding-left: 4vw;
  margin-top: 1rem;
  line-height: 1.35;
  position: relative;
  z-index: 2;
}

/* ============================================================
   INFO
============================================================ */
.info {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  padding: 4vw 5vw 5vw;
  position: relative;
}
.info::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.3'/></svg>");
  opacity: 0.06;
  pointer-events: none;
}

.info__wrap {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.info__intro {
  font-family: 'DIN Next', sans-serif;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.5;
  font-weight: 500;
  margin-bottom: 2.5rem;
}

.info__title {
  font-family: 'DIN Next Cond', 'DIN Next', sans-serif;
  color: var(--yellow);
  font-weight: 900;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: 0.02em;
  margin-bottom: 1.6rem;
  text-transform: uppercase;
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 3rem;
}

.step {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 500;
  line-height: 1.4;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2em; height: 2em;
  border: 2.5px solid var(--yellow);
  color: var(--yellow);
  border-radius: 50%;
  font-weight: 900;
  font-family: 'DIN Next', sans-serif;
  font-size: 1em;
  flex-shrink: 0;
  transition: all .3s ease;
}
.step:hover .step__num {
  background: var(--yellow);
  color: var(--blue);
  box-shadow: 0 0 20px rgba(246,212,23,0.5);
  transform: scale(1.1);
}
.step__label {
  background: var(--yellow);
  color: var(--blue);
  padding: 0.2em 0.7em;
  border-radius: 4px;
  font-weight: 800;
}
.step__text { flex: 1; min-width: 200px; }

/* ============================================================
   COUNTDOWN
============================================================ */
.countdown {
  margin-bottom: 2.5rem;
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(0,0,0,0.2);
  border: 2px solid rgba(246,212,23,0.2);
  border-radius: 12px;
}
.countdown__label {
  font-family: 'DIN Next Cond', sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  max-width: 600px;
  margin: 0 auto;
}
.countdown__cell {
  background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow-warm) 100%);
  color: var(--blue);
  padding: 1rem 0.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25), inset 0 -3px 0 rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .2s ease;
}
.countdown__cell:hover { transform: translateY(-4px); }
.countdown__num {
  font-family: 'DIN Next Cond', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__unit {
  font-family: 'DIN Next', sans-serif;
  font-weight: 700;
  font-size: clamp(10px, 1vw, 13px);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

/* ============================================================
   CTA
============================================================ */
.cta-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, var(--yellow) 0%, var(--gold) 100%);
  color: var(--blue);
  font-family: 'DIN Next Cond', sans-serif;
  font-weight: 900;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 1.1rem 2.5rem;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(246,212,23,0.4), inset 0 -4px 0 rgba(0,0,0,0.15);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.3,1.4,.4,1), box-shadow .3s ease;
  animation: ctaPulse 2.5s ease-in-out infinite;
}
.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.6) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.cta-btn:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 20px 40px rgba(246,212,23,0.55), inset 0 -4px 0 rgba(0,0,0,0.15);
}
.cta-btn:hover::before { transform: translateX(100%); }
.cta-btn svg { width: 24px; height: 24px; transition: transform .3s ease; }
.cta-btn:hover svg { transform: translateX(6px); }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(246,212,23,0.4), inset 0 -4px 0 rgba(0,0,0,0.15); }
  50% { box-shadow: 0 10px 50px rgba(246,212,23,0.8), inset 0 -4px 0 rgba(0,0,0,0.15); }
}

.info__logos {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}
.info__logos img {
  max-width: 720px;
  width: 100%;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 1.5rem 1.2rem;
  font-family: 'DIN Next', sans-serif;
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.6;
  font-weight: 600;
}
.footer a {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 700;
  transition: color .2s ease;
}
.footer a:hover { color: #fff; text-decoration: underline; }

/* ============================================================
   ANIMACIONES DE ENTRADA
============================================================ */
.reveal-up, .reveal-zoom, .reveal-left, .reveal-moto {
  opacity: 0;
  will-change: transform, opacity;
}
.reveal-up { transform: translateY(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal-zoom { transform: scale(0.6) rotate(-5deg); transition: opacity 1s ease, transform 1s cubic-bezier(.3,1.6,.4,1); }
.reveal-left { transform: translateX(-40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal-moto { transform: translateX(-80px) rotate(-2deg); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.8,.2,1); }

.is-visible.reveal-up { opacity: 1; transform: translateY(0); }
.is-visible.reveal-zoom { opacity: 1; transform: scale(1) rotate(0); }
.is-visible.reveal-left { opacity: 1; transform: translateX(0); }
.is-visible.reveal-moto { opacity: 1; transform: translateX(0) rotate(0); }

/* ============================================================
   RESPONSIVE — MOBILE
============================================================ */
@media (max-width: 720px) {
  .hero {
    background: url('assets/amarillo.png') center top / 100% auto repeat-y, var(--yellow);
    padding-bottom: 0;
  }

  /* La franja azul mobile: más alta, para que el caption quepa ahí */
  .hero__bg-blue {
    height: 18vh;
    min-height: 140px;
  }

  .hero__content {
    padding: 8vw 5vw 0;
    gap: 1.5rem;
  }

  .hero__subtitle { width: 80%; margin-top: -15px; }

  .hero__construye {
    font-size: 20px;
    padding-left: 0;
    align-self: center;
    text-align: center;
    margin-top: 40px;
  }

  .hero__moto {
    width: 90%;
    margin-top: -1rem;
    margin-bottom: 0;
  }

  /* CAPTION → sobre el azul */
  .hero__caption {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    align-self: center;
    width: 100%;
    color: #fff;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.4;
    /* Empuja el caption hacia el área azul */
    margin-top: 1.5rem;
    padding: 1.2rem 1rem 2rem;
    background: transparent;
    position: relative;
    z-index: 3;
  }

  /* Necesitamos que el área azul cubra el caption.
     Crecemos la franja azul con un pseudo-elemento que se expande
     bajo el caption */
  .hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    /* Cubre desde arriba del caption hasta el final */
    height: calc(18vh + 5rem);
    background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
    z-index: 0;
    pointer-events: none;
  }
  .hero__bg-blue { display: none; } /* reemplazado por ::after que se adapta */

  .step { font-size: 15px; }
  .step__text { flex-basis: 100%; padding-left: 2.5em; }
  .countdown__grid { gap: 0.4rem; }
  .countdown__cell { padding: 0.7rem 0.3rem; }
  .preloader .nail { width: 10px; height: 10px; }
}

@media (max-width: 480px) {
  .hero__content { padding: 10vw 5vw 0; }
  .hero__moto { width: 95%; }
  .cta-btn { padding: 0.9rem 1.6rem; }
  .hero::after { height: calc(16vh + 4.5rem); }
}
