/* ===============================
   HERO SECTION
   Image → CTAs → Video layout
   =============================== */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: var(--spacing-3xl);
}

/* Background pattern overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(198, 123, 62, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(212, 145, 74, 0.1) 0%,
      transparent 40%
    );
  z-index: 1;
}

/* ── Hero Image (portada) ── */
.hero__image-wrap {
  position: relative;
  z-index: 2;
  max-width: 700px;
  width: 90%;
  margin-inline: auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
}

.hero__image {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Content wrapper (below image) ── */
.hero__wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: var(--spacing-2xl) var(--spacing-xl) var(--spacing-xl);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-md);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-xl);
  backdrop-filter: blur(10px);
}

.hero__title {
  font-size: var(--font-size-hero);
  font-weight: var(--font-weight-extrabold);
  color: white;
  letter-spacing: var(--letter-spacing-tight);
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
}

.hero__title-accent {
  background: linear-gradient(135deg, #fcd9a0, #fff0d9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-2xl);
  max-width: 600px;
  margin-inline: auto;
}

.hero__cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* ── Video embed (third section) ── */
.hero__video-section {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: var(--spacing-2xl) var(--spacing-xl) var(--spacing-3xl);
}

.hero__video-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 700px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
}

.hero__video-wrap iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* Scroll indicator */
.hero__scroll {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--font-size-xs);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  border: none;
  padding-bottom: var(--spacing-xl);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  animation: bounce 2s ease-in-out infinite;
}

/* Floating decorative element */
.hero__float-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  z-index: 1;
}

.hero__float-circle--1 {
  width: 300px;
  height: 300px;
  bottom: -100px;
  left: -50px;
  animation: float 6s ease-in-out infinite;
}

.hero__float-circle--2 {
  width: 200px;
  height: 200px;
  top: 20%;
  right: 5%;
  animation: float 8s ease-in-out infinite reverse;
}

@media (max-width: 640px) {
  .hero__cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero__cta-group .button {
    width: 100%;
  }

  .hero__image-wrap {
    width: 95%;
  }
}
