/* ── HOME HERO ──
 * Dark purple gradient block — only this section and the bottom CTA stay
 * inverted against the cream body. Two-column on desktop (content left,
 * image right); single column on tablet/mobile.
 *
 * Class names follow the `ays-home-{section}-{element}` convention so
 * the Home page styles are self-identifying and can't collide with
 * legacy `.hero-*` selectors that might live in other consumers. */
.ays-home-hero {
  /* Direction is the inverse of the bottom CTA — darker at top, lighter
   * at the bottom — matching Figma node 188:4. */
  background: linear-gradient(
    180deg,
    var(--ays-color-primary-950) 0%,
    var(--ays-color-primary-900) 100%
  );
  color: var(--white);
  display: flex;
  align-items: center;
  padding: 168px 24px 0;
  position: relative;
  overflow: hidden;
}

/* Atmospheric purple glow behind the text column */
.ays-home-hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(60.56% 0.2189 292.72 / 0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* ── TWO-COLUMN GRID ── */
.ays-home-hero-container {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

/* ── LEFT COLUMN ── */
.ays-home-hero-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 80px;
}

/* Badge pills row — solid filled, matching Figma tag styling */
.ays-home-hero-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s ease both;
}
.ays-home-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ays-text-inverse-secondary);
  padding: 4px 12px 4px 10px;
  border-radius: 999px;
  background: var(--ays-color-primary-700);
  border: 1px solid var(--ays-color-primary-800);
}
.ays-home-hero-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ays-color-purple-400);
  flex-shrink: 0;
}

/* ── HEADLINE ── */
.ays-home-hero h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  animation: fadeUp 0.7s 0.08s ease both;
}
.ays-home-hero h1 em {
  font-style: italic;
  color: var(--ays-color-purple-400);
}

.ays-home-hero-sub {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--ays-text-inverse-primary);
  line-height: 1.5;
  font-weight: 400;
  max-width: 460px;
  animation: fadeUp 0.7s 0.16s ease both;
}

/* ── CTA STACK ──
 * In order: primary CTA pill → store badges → microcopy row → italic dare line. */
.ays-home-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  animation: fadeUp 0.7s 0.24s ease both;
}

.ays-home-hero-actions .btn-primary {
  background: linear-gradient(180deg, var(--ays-button-bg-primary), var(--ays-button-bg-primary-bottom));
  box-shadow: 0 8px 24px oklch(54.18% 0.2112 314.87 / 0.4);
}

/* "Desde $10/mes · Cancela cuando quieras · Atrévete a escuchar." */
.ays-home-hero-trial {
  font-size: 12px;
  color: var(--ays-text-inverse-tertiary);
  letter-spacing: 0.01em;
  margin-top: 4px;
}

/* ── RIGHT COLUMN: IMAGE ──
 * Hosts the locale-aware hero image. No container chrome — the image
 * fills 100% of the column and bleeds to the section's bottom edge. */
.ays-home-hero-image {
  position: relative;
  animation: fadeUp 0.9s 0.1s ease both;
}
.ays-hero-image {
  display: block;
  width: 100%;
  height: auto;
}

/* ── RESPONSIVE: HERO ── */
@media (max-width: 1024px) {
  .ays-home-hero {
    padding: 120px 24px 64px;
  }
  .ays-home-hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 600px;
  }
  .ays-home-hero-image {
    order: -1;
  }
  .ays-home-hero-content {
    align-items: center;
    text-align: center;
  }
  .ays-home-hero-pills {
    justify-content: center;
  }
  .ays-home-hero h1 {
    text-align: center;
  }
  .ays-home-hero-sub {
    max-width: 100%;
    text-align: center;
  }
  .ays-home-hero-actions {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .ays-home-hero {
    padding: 96px 20px 56px;
  }
  .ays-home-hero h1 {
    font-size: clamp(40px, 8vw, 56px);
  }
}
