/* Hero cromado PRO: layout y animación WebGL con fallback */
:root {
  --hero-maxw: 1200px;
  --space-2: 0.5rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --fg: #0a0f1a;
  --muted: #5b6472;
  --btn: #2f3d56;
  --btn-cta: #22314e;
}

.hero {
  max-width: var(--hero-maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 4vw, 4rem) var(--space-4);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
}

.hero__text h1 {
  font: 600 clamp(1.2rem, 3vw, 1.5rem) / 1.2 ui-sans-serif, system-ui;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero__text h2 {
  font: 700 clamp(2rem, 7vw, 3.4rem) / 1.05 ui-sans-serif;
  letter-spacing: -0.02em;
  margin: 0.2rem 0 0.9rem;
  color: var(--fg);
}

.hero__text p {
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: var(--space-6);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
}

.hero__cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero__cta .btn {
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero__cta .btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--btn-cta) 60%, white 40%);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--btn-cta);
  color: #ffffff;
  box-shadow: 0 15px 45px rgba(34, 49, 78, 0.28);
}

.btn--primary:hover {
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--btn);
  border: 1px solid color-mix(in srgb, var(--btn) 30%, transparent);
}

.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 420px;
  filter: drop-shadow(0 40px 70px rgba(20, 32, 58, 0.35));
}

.hero__visual > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 28px;
}

.hero__svg {
  display: none;
  border-radius: 28px;
  width: 100%;
  height: 100%;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    order: -1;
    min-height: clamp(300px, 70vw, 420px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cta .btn {
    transition: none;
  }
}
