/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 40px;
  text-align: center;
  position: relative;
}

.hero .eyebrow {
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h1 .accent-line {
  color: var(--accent);
}

.hero p.lede {
  max-width: 46ch;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  animation: hero-fade-up 0.8s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 12px;
  animation: hero-fade-up 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Órbita (elemento firma) ---------- */

.orbit-stage {
  position: relative;
  height: 380px;
  margin: 72px auto 0;
  max-width: 620px;
  animation: hero-fade-up 0.9s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid var(--border);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-ring--1 {
  width: 200px;
  height: 200px;
}

.orbit-ring--2 {
  width: 320px;
  height: 320px;
  border-color: rgba(255, 255, 255, 0.05);
}

.orbit-ring--3 {
  width: 440px;
  height: 440px;
  border-color: rgba(255, 255, 255, 0.035);
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: orbit-core-pulse 3.2s ease-in-out infinite;
}

@keyframes orbit-core-pulse {
  0%, 100% {
    box-shadow: 0 0 40px -8px var(--accent-dim);
  }
  50% {
    box-shadow: 0 0 70px -6px rgba(198, 255, 61, 0.28);
  }
}

.orbit-core svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.orbit-formats {
  position: absolute;
  inset: 0;
  animation: orbit-spin 36s linear infinite;
}

.orbit-format {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  animation: orbit-counter-spin 36s linear infinite;
}

/* Cada formato ubicado en un radio/ángulo distinto sobre los anillos */
.orbit-format--mp3 {
  transform: translate(-50%, -50%) rotate(0deg) translateX(160px) rotate(0deg);
}
.orbit-format--wav {
  transform: translate(-50%, -50%) rotate(72deg) translateX(160px) rotate(-72deg);
}
.orbit-format--jpg {
  transform: translate(-50%, -50%) rotate(144deg) translateX(220px) rotate(-144deg);
}
.orbit-format--png {
  transform: translate(-50%, -50%) rotate(216deg) translateX(160px) rotate(-216deg);
}
.orbit-format--webp {
  transform: translate(-50%, -50%) rotate(288deg) translateX(220px) rotate(-288deg);
}

@keyframes orbit-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-counter-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-formats {
    animation: none;
  }
  .orbit-format {
    animation: none;
  }
  .orbit-core {
    animation: none;
  }
}

@media (max-width: 720px) {
  .orbit-stage {
    height: 260px;
    max-width: 300px;
  }
  .orbit-ring--1 {
    width: 130px;
    height: 130px;
  }
  .orbit-ring--2 {
    width: 200px;
    height: 200px;
  }
  .orbit-ring--3 {
    width: 270px;
    height: 270px;
  }
  .orbit-core {
    width: 64px;
    height: 64px;
  }
  .orbit-core svg {
    width: 24px;
    height: 24px;
  }
  .orbit-format {
    width: 40px;
    height: 40px;
    font-size: 8px;
  }
  .orbit-format--mp3 {
    transform: translate(-50%, -50%) rotate(0deg) translateX(100px) rotate(0deg);
  }
  .orbit-format--wav {
    transform: translate(-50%, -50%) rotate(72deg) translateX(100px) rotate(-72deg);
  }
  .orbit-format--jpg {
    transform: translate(-50%, -50%) rotate(144deg) translateX(134px) rotate(-144deg);
  }
  .orbit-format--png {
    transform: translate(-50%, -50%) rotate(216deg) translateX(100px) rotate(-216deg);
  }
  .orbit-format--webp {
    transform: translate(-50%, -50%) rotate(288deg) translateX(134px) rotate(-288deg);
  }
}

@media (max-width: 380px) {
  .orbit-stage {
    height: 230px;
    max-width: 260px;
  }
  .orbit-ring--3 {
    width: 230px;
    height: 230px;
  }
  .orbit-format--jpg,
  .orbit-format--webp {
    display: none;
  }
}

/* ---------- Secciones de categoría ---------- */

.category {
  padding: 88px 0 0;
}

.category-head {
  text-align: center;
  margin-bottom: 40px;
}

.category-head .eyebrow {
  margin-bottom: 18px;
}

.category-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.category-head p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 10px;
}

/* ---------- Grid de herramientas ---------- */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 190px;
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(14px);
}

.tool-card.is-visible {
  animation: card-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes card-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tool-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.tool-card .tool-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-card .tool-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.tool-card h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
}

.tool-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.tool-card .tool-go {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

.tool-card .tool-go svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.tool-card:hover .tool-go svg {
  transform: translate(2px, -2px);
}

@media (max-width: 720px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .category {
    padding-top: 64px;
  }
}
