/* ============================================================
   03-hero.css · Hero Apple-impact + motion SVG sutil
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + var(--space-xl)) 0 var(--space-xl);
  overflow: hidden;
  background: var(--color-dominant);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Motion SVG (líneas arquitectónicas) ── */
.hero__motion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero__diagonals .diag {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: diagDraw 8s var(--ease) infinite;
  opacity: 0;
}
.diag--1 { animation-delay: 0s; }
.diag--2 { animation-delay: 2s; }
.diag--3 { animation-delay: 4s; }
.diag--4 { animation-delay: 6s; }

@keyframes diagDraw {
  0%   { stroke-dashoffset: 1200; opacity: 0; }
  15%  { opacity: 0.35; }
  60%  { stroke-dashoffset: 0; opacity: 0.35; }
  85%  { opacity: 0.15; }
  100% { stroke-dashoffset: -1200; opacity: 0; }
}

.hero__nodes .node {
  opacity: 0;
  transform-origin: center;
  animation: nodePulse 4s var(--ease) infinite;
}
.node--1 { animation-delay: 1s; }
.node--2 { animation-delay: 2s; }
.node--3 { animation-delay: 3s; }
.node--4 { animation-delay: 0s; }

@keyframes nodePulse {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50%      { opacity: 0.7; transform: scale(1.2); }
}

/* ── Inner content ── */
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  width: 100%;
}

.hero__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-2);
  margin-bottom: var(--space-md);
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 9rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--color-ink);
  margin-bottom: var(--space-md);
  max-width: 14ch;
}

.hero__line {
  display: block;
}
.hero__line--ink {
  color: var(--color-ink);
  font-weight: 800;
}
.hero__line--accent {
  color: var(--color-accent);
  font-weight: 300;
  font-style: italic;
}

.hero__sub {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.5;
  max-width: 50ch;
  color: var(--color-ink-soft);
  margin-bottom: var(--space-lg);
  font-weight: 400;
}

.hero__ctas {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ── Stats abajo del hero (subtle KPIs) ── */
.hero__stats {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: var(--space-xl) auto 0;
  padding: var(--space-lg) var(--container-pad) 0;
  border-top: 1px solid var(--color-line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.hero__stat {
  display: flex;
  flex-direction: column;
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-accent);
}

.hero__stat-label {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

/* ── Scroll indicator ── */
.hero__scroll {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-ink-soft);
  z-index: 3;
}
.hero__scroll span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s var(--ease) infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  50%      { transform: scaleY(0.6); transform-origin: top; opacity: 0.5; }
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: calc(var(--nav-h) + var(--space-lg)) 0 var(--space-lg);
  }
  .hero__headline { font-size: clamp(2.8rem, 13vw, 4.5rem); }
  .hero__sub { font-size: 1rem; }
  .hero__ctas { gap: 10px; }
  .hero__ctas .btn { font-size: 13px; padding: 12px 20px; }
  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xs);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
  }
  .hero__stat-num { font-size: clamp(1.5rem, 6vw, 2rem); }
  .hero__stat-label { font-size: 10px; letter-spacing: 0.1em; }
  .hero__scroll { display: none; }
}

@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; text-align: center; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .hero__diagonals .diag,
  .hero__nodes .node,
  .hero__scroll-line {
    animation: none !important;
    opacity: 0.15;
  }
}
