/* ─────────────────────────────────────────────────────────────────
    8. HERO
───────────────────────────────────────────────────────────────── */
#page-hero {
  background: var(--h-dark);
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

/* Video desktop / imagen móvil */
.hero-video-desktop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.85) saturate(1);
}

.hero-mobile-bg {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-mobile-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.38) saturate(.3);
}

@media (max-width: 760px) {
  .hero-video-desktop {
    display: none !important;
  }

  .hero-mobile-bg {
    display: block;
  }
}

@media (min-width: 761px) {
  .hero-video-desktop {
    display: block;
  }

  .hero-mobile-bg {
    display: none !important;
  }
}

.hero-ov {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, transparent 55%, rgba(10,10,10,.85) 100%);
}

.hero-grain {
  position: absolute;
  inset: -50%;
  z-index: 2;
  opacity: .022;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(6) infinite;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-logo {
  width: 65%;
  max-width: 53vw;
  filter: drop-shadow(0 0 36px color-mix(in srgb, var(--accent) 22%, transparent));
  opacity: 0;
  transform: translateY(60px);
  animation: logoIn 1s var(--ease) 0.6s forwards;
}

/* Botones hero — split: ícono en bloque accent, texto en glass */
.btn-hero-gold,
.btn-hero-ghost {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  flex: 1;
  background: #fff;
  color: #111;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  position: relative;
  box-shadow: 0 3px 0 0 var(--accent);
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}

.btn-hero-gold {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s var(--ease) 1.3s forwards;
}

.btn-hero-ghost {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s var(--ease) 1.45s forwards;
}

/* Bloque ícono accent */
.btn-icon-side {
  background: var(--accent);
  color: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter .2s;
  flex-shrink: 0;
}

/* Bloque texto */
.btn-text-side {
  padding: 12px 22px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.btn-hero-gold:hover,
.btn-hero-ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 0 0 var(--accent), 0 8px 24px rgba(0, 0, 0, .3);
  border-color: rgba(255, 255, 255, .22);
}

.btn-hero-gold:hover .btn-icon-side,
.btn-hero-ghost:hover .btn-icon-side {
  filter: brightness(1.15);
}

/* Hero: CTA en columna en pantallas estrechas (único bloque; ver :root comentario de breakpoints) */
@media (max-width: 500px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}

