/* ==========================================================================
   03 · HERO — portada
   Fondo tech (maqueta_06 + onda maqueta_01), logo del evento, bajada y
   bloque de cierre de postulaciones. Una sola dirección de diseño.
   ========================================================================== */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: max(70vh, 540px);
  padding: 88px clamp(16px, 2.2vw, 44px) 52px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  border-bottom: 2px solid #0a0a0a;
  /* !important necesario: vence el reset global `*{background-image:none!important}`
     de 01-base.css (Direction 02). Sin esto el fondo del hero queda negro plano. */
  background-color: #000 !important;
  background-image:
    linear-gradient(
      90deg,
      rgba(1, 8, 12, 0.97) 0%,
      rgba(1, 8, 12, 0.88) 44%,
      rgba(1, 8, 12, 0.38) 72%,
      rgba(1, 8, 12, 0.58) 100%
    ),
    var(--ta-hero-bg) !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

/* Onda tech animada (decorativa, autónoma).
   z-index: 0 (no negativo): con mix-blend-mode:screen + isolation, un z-index
   negativo hace que Chromium/Brave no componga el blend y la onda desaparece. */
.hero::before {
  position: absolute;
  z-index: 0;
  top: 6%;
  right: -7%;
  bottom: 4%;
  width: min(56vw, 790px);
  content: "";
  pointer-events: none;
  opacity: 0.48;
  /* !important: mismo motivo que .hero — vence el reset global de background-image. */
  background-image: var(--ta-hero-wave) !important;
  background-position: right center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  mix-blend-mode: screen;
  will-change: transform, opacity;
  animation: ta-wave-float 16s ease-in-out infinite alternate;
}

/* Viñeta inferior + halo verde */
.hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.06) 0%,
      transparent 60%,
      rgba(0, 0, 0, 0.58) 100%
    ),
    radial-gradient(circle at 72% 42%, rgba(0, 225, 164, 0.13), transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1000px;
}

/* Kicker */
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-nota);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  /* !important en radius/shadow: el reset global los anula (Direction 02). */
  border-radius: 50% !important;
  background: var(--ta-cyan);
  box-shadow:
    0 0 0 7px rgba(0, 174, 217, 0.09),
    0 0 22px rgba(0, 174, 217, 0.75) !important;
  animation: pulseDot 2s ease infinite;
}

/* Logo del evento (incluye título "Tech Awards 2026" y subtítulo de edición) */
.event-logo-heading {
  max-width: min(860px, 100%);
  margin: 0;
  font-size: 0;
  line-height: 0;
  aspect-ratio: 1536 / 377;
  animation: heroLogoIn 0.9s cubic-bezier(0.16, 0.84, 0.34, 1) both;
}
.event-logo-heading img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: left center;
}

/* Bajada — negrita y compacta (2 líneas en desktop, según referencia cliente) */
.hero-copy {
  max-width: 900px;
  margin: 24px 0 0;
  color: #fff;
  font-size: var(--fs-cuerpo);
  font-weight: 700;
  line-height: 1.45;
}

/* Cierre de postulaciones + CTA */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  margin-top: 38px;
}
.hero-deadline {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-deadline-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-nota);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-deadline-date {
  color: var(--ta-green);
  font-size: var(--fs-subtitulo);
  font-weight: 700;
  line-height: 1.1;
}

/* --- Responsive --- */
@media (max-width: 820px) {
  .hero {
    min-height: 560px;
    padding: 84px 24px 52px;
    background-position: 62% center;
  }
  .hero::before {
    top: 20%;
    right: -34%;
    width: 90vw;
    opacity: 0.26;
  }
}
@media (max-width: 640px) {
  .hero::before {
    right: -52%;
    width: 118vw;
    opacity: 0.2;
  }
  .hero-cta {
    gap: 22px;
  }
  .hero-deadline {
    width: 100%;
  }
  .hero-cta .button {
    width: 100%;
  }
}

/* --- Animaciones --- */
@keyframes pulseDot {
  50% {
    box-shadow: 0 0 0 11px rgba(0, 174, 217, 0);
  }
}
@keyframes heroLogoIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes ta-wave-float {
  0% {
    transform: translate3d(-12px, 12px, 0) rotate(-1.6deg) scale(0.985);
    opacity: 0.42;
  }
  100% {
    transform: translate3d(14px, -14px, 0) rotate(1.6deg) scale(1.03);
    opacity: 0.55;
  }
}
