/* ═══════════════════════════════════════════════════
   Bia Ruta Mundialista 2026 — Hero (campaña)
   Estilo: imagen fullscreen, minimal, tipo operacionmayo
═══════════════════════════════════════════════════ */

/* ══════════════════════════════
   HERO — video en bucle, sin scroll animation
══════════════════════════════ */

#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  text-align: center;
  background: #040d1e;
}

/* ══════════════════════════════
   VIDEO DE PORTADA — fullscreen
══════════════════════════════ */

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
  animation: badSignalFlicker 9s ease-in-out infinite;
}

/* ══════════════════════════════
   EFECTO SEÑAL MALA
══════════════════════════════ */

/* Scanlines horizontales en movimiento */
.hero-glitch {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.09) 3px,
    rgba(0, 0, 0, 0.09) 4px
  );
  animation: scanlinesDrift 6s linear infinite;
}

@keyframes scanlinesDrift {
  from { background-position: 0 0; }
  to   { background-position: 0 200px; }
}

/* Flicker del video — glitch de señal */
@keyframes badSignalFlicker {
  0%,  78%, 100% { opacity: 1; transform: none; filter: none; }
  79% { opacity: 0.88; transform: skewX(0.4deg) translateX(3px); filter: brightness(1.12) saturate(0.9); }
  80% { opacity: 1; transform: none; filter: none; }
  81% { opacity: 0.82; transform: skewX(-0.3deg) translateX(-2px); filter: hue-rotate(6deg) brightness(0.95); }
  82% { opacity: 1; transform: none; filter: none; }
  83% { opacity: 0.94; transform: translateX(1px); filter: contrast(1.08); }
  84% { opacity: 1; transform: none; filter: none; }
}

/* ══════════════════════════════
   OVERLAY — vignette sutil
══════════════════════════════ */

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.10) 25%,
      rgba(0, 0, 0, 0.05) 55%,
      rgba(0, 0, 0, 0.22) 100%
    ),
    radial-gradient(
      ellipse at center,
      transparent 45%,
      rgba(0, 0, 0, 0.18) 100%
    );
  pointer-events: none;
}

/* ══════════════════════════════
   CONTENIDO INFERIOR — minimal
══════════════════════════════ */

.hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: fadeIn 1.2s ease 0.6s both;
}

/* Botón CTA estilo operacionmayo */
.btn-descubrir {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
  padding: 11px 30px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    letter-spacing 0.25s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.btn-descubrir:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.22em;
}

.btn-descubrir svg {
  opacity: 0.8;
  transition: transform 0.25s ease;
}

.btn-descubrir:hover svg {
  transform: translateY(3px);
}

/* ══════════════════════════════
   FLECHA SCROLL
══════════════════════════════ */

#scroll-arrow {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  z-index: 3;
  transition: opacity 0.4s ease;
  animation: fadeIn 1s ease 1.4s both;
  background: none;
  border: none;
  padding: 0;
}

.arrow-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.arrow-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: shimmer 2.4s ease-in-out infinite;
  transition: border-color 0.25s ease, background 0.25s ease;
}

#scroll-arrow:hover .arrow-icon {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

/* ══════════════════════════════
   BOTÓN "CONOCER LA RUTA" — hero esquina inferior derecha
══════════════════════════════ */

.btn-descubrir-hero {
  position: absolute;
  bottom: 36px;
  right: 48px;
  z-index: 10;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(11, 13, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 14px 22px 12px;
  cursor: pointer;
  font-family: inherit;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s ease;
  animation: fadeIn 1.2s ease 1.0s both;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.btn-descubrir-hero:hover {
  background: rgba(97, 114, 243, 0.12);
  border-color: rgba(97, 114, 243, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(97, 114, 243, 0.2);
}

.descubrir-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.descubrir-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: shimmer 2.4s ease-in-out infinite;
  transition: border-color 0.25s ease;
}

.btn-descubrir-hero:hover .descubrir-icon {
  border-color: rgba(97, 114, 243, 0.6);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  #hero { padding: 0 32px 64px; }
  .btn-descubrir-hero { right: 32px; bottom: 28px; }
}

@media (max-width: 768px) {
  #hero { padding: 0 20px 60px; }
  .btn-descubrir { font-size: 10px; padding: 10px 24px; }
  .btn-descubrir-hero { right: 20px; bottom: 24px; padding: 11px 18px 10px; }
  .descubrir-label { font-size: 10px; }
}
