/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 9rem 15% 5rem;
  position: relative; overflow: hidden;
}
.hero-mesh {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(217,119,87,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(20,20,19,0.03) 0%, transparent 55%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  gap: 5rem; flex-wrap: wrap; width: 100%;
}
.hero-text { flex: 1; min-width: 300px; max-width: 600px; }
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-label::before {
  content: ''; display: block;
  width: 20px; height: 1px; background: var(--accent);
}
.hero h1 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--dark); margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic; color: var(--accent);
}
.hero p {
  font-size: 1.05rem; color: var(--muted);
  max-width: 480px; line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-fill {
  background: var(--dark); color: #fff;
  padding: 0.8rem 1.8rem; border-radius: 6px;
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-fill:hover { background: var(--dark2); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--dark);
  padding: 0.8rem 1.8rem; border-radius: 6px;
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none;
  border: 1.5px solid rgba(20,20,19,0.25);
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--dark); background: rgba(20,20,19,0.04); }

/* ── HERO VISUAL: stack en órbita ── */
.hero-visual { flex: 1; min-width: 280px; display: flex; justify-content: center; }
.stack-scene {
  position: relative;
  width: 400px; height: 400px;
  --stack-r-outer: 158px;
  --stack-r-inner: 106px;
  --stack-spin-outer: 54s;
  --stack-spin-inner: 36s;
  --stack-dot: 182px;
}
.stack-ring-ornament {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(217,119,87,0.14);
  pointer-events: none;
  animation: stackRingBreath 5.5s ease-in-out infinite;
}
.stack-ring-ornament--1 { width: 58%; height: 58%; animation-delay: 0s; }
.stack-ring-ornament--2 { width: 76%; height: 76%; animation-delay: 0.9s; }
.stack-ring-ornament--3 { width: 94%; height: 94%; animation-delay: 1.8s; }
@keyframes stackRingBreath {
  0%,100% { opacity: 0.35; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.85; transform: translate(-50%, -50%) scale(1.02); }
}
.stack-glow-mesh {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%,
    rgba(217,119,87,0.07) 0%,
    transparent 55%);
  pointer-events: none;
  animation: stackGlowPulse 6s ease-in-out infinite;
}
@keyframes stackGlowPulse {
  0%,100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.stack-hub {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 96px; height: 96px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(217,119,87,0.12);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.5rem;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.8) inset,
    0 12px 40px rgba(217,119,87,0.1),
    0 4px 24px rgba(20,20,19,0.04);
  z-index: 4;
}
.stack-hub-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.35;
}
.stack-orbit {
  position: absolute;
  inset: 0;
  --orbit-step: 30deg;
  --stack-r: var(--stack-r-outer);
  --stack-spin: var(--stack-spin-outer);
}
.stack-orbit--outer {
  z-index: 5;
  animation: stackOrbitSpinCW var(--stack-spin-outer) linear infinite;
}
.stack-orbit--inner {
  z-index: 3;
  --orbit-step: 60deg;
  --stack-r: var(--stack-r-inner);
  --stack-spin: var(--stack-spin-inner);
  animation: stackOrbitSpinCCW var(--stack-spin-inner) linear infinite;
}
@keyframes stackOrbitSpinCW {
  to { transform: rotate(360deg); }
}
@keyframes stackOrbitSpinCCW {
  to { transform: rotate(-360deg); }
}
.stack-sat {
  position: absolute;
  left: 50%; top: 50%;
  width: 52px; height: 52px;
  margin: -26px;
  transform: rotate(calc(var(--i) * var(--orbit-step))) translateY(calc(-1 * var(--stack-r)));
}
.stack-orbit--inner .stack-sat {
  width: 46px; height: 46px;
  margin: -23px;
}
.stack-sat-inner {
  width: 100%; height: 100%;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(217,119,87,0.14);
  display: grid;
  place-items: center;
  box-shadow:
    0 8px 28px rgba(217,119,87,0.12),
    0 2px 8px rgba(20,20,19,0.04);
  animation:
    stackKeepUprightCW var(--stack-spin) linear infinite,
    stackIconGlow 4.2s ease-in-out infinite;
  animation-delay: 0s, calc(var(--i) * 0.28s);
}
.stack-orbit--inner .stack-sat-inner {
  border-radius: 12px;
  animation:
    stackKeepUprightCCW var(--stack-spin) linear infinite,
    stackIconGlow 4.2s ease-in-out infinite;
  animation-delay: 0s, calc(var(--i) * 0.4s);
}
.stack-sat-inner img {
  width: 28px; height: 28px;
  object-fit: contain;
  display: block;
}
.stack-orbit--inner .stack-sat-inner img {
  width: 24px; height: 24px;
}
.stack-sat-inner--n8n {
  background: linear-gradient(145deg, #fff 0%, #fff5f3 100%);
}
.stack-sat-inner--ai {
  background: linear-gradient(155deg, #fff 0%, #f8f6ff 55%, #fff8f5 100%);
  border-color: rgba(217,119,87,0.1);
}
@keyframes stackKeepUprightCW {
  from { transform: rotate(calc(-1 * var(--i) * var(--orbit-step))); }
  to { transform: rotate(calc(-1 * var(--i) * var(--orbit-step) - 360deg)); }
}
@keyframes stackKeepUprightCCW {
  from { transform: rotate(calc(-1 * var(--i) * var(--orbit-step))); }
  to { transform: rotate(calc(-1 * var(--i) * var(--orbit-step) + 360deg)); }
}
@keyframes stackIconGlow {
  0%,100% {
    box-shadow:
      0 8px 28px rgba(217,119,87,0.12),
      0 2px 8px rgba(20,20,19,0.04);
    border-color: rgba(217,119,87,0.14);
  }
  50% {
    box-shadow:
      0 12px 36px rgba(217,119,87,0.22),
      0 0 0 1px rgba(217,119,87,0.08);
    border-color: rgba(217,119,87,0.28);
  }
}
.stack-dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  z-index: 1;
  animation: stackDotPath linear infinite;
}
.stack-dot--accent {
  background: var(--accent);
  box-shadow: 0 0 18px rgba(217,119,87,0.55);
  animation-duration: 23s;
}
.stack-dot--dark {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--dark);
  animation-duration: 31s;
  animation-delay: -6s;
  opacity: 0.85;
}
@keyframes stackDotPath {
  from { transform: rotate(0deg) translateX(var(--stack-dot)); }
  to { transform: rotate(360deg) translateX(var(--stack-dot)); }
}
@media (prefers-reduced-motion: reduce) {
  .stack-orbit--outer,
  .stack-orbit--inner,
  .stack-sat-inner,
  .stack-ring-ornament,
  .stack-glow-mesh,
  .stack-dot {
    animation: none !important;
  }
  .stack-orbit--outer .stack-sat-inner,
  .stack-orbit--inner .stack-sat-inner {
    transform: rotate(calc(-1 * var(--i) * var(--orbit-step)));
  }
}
