/* ─────────────────────────────────────────────────────────
   M&Co — Animations · Dark Aurora
   ───────────────────────────────────────────────────────── */

/* ── Scroll reveal ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal].revealed {
  opacity: 1;
  transform: translate(0, 0);
}
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="150"] { transition-delay: 0.15s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }

/* ── Entrada del hero ── */
.hero-animate-1 { opacity: 0; animation: heroEnter 0.8s var(--ease-out) 0.15s forwards; }
.hero-animate-2 { opacity: 0; animation: heroEnter 0.9s var(--ease-out) 0.3s forwards; }
.hero-animate-3 { opacity: 0; animation: heroEnter 0.9s var(--ease-out) 0.45s forwards; }
.hero-animate-4 { opacity: 0; animation: heroEnter 0.9s var(--ease-out) 0.6s forwards; }
.hero-animate-5 { opacity: 0; animation: heroEnter 0.9s var(--ease-out) 0.8s forwards; }

@keyframes heroEnter {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Flotación suave ── */
.float-1 { animation: floatA 6s ease-in-out infinite; }
.float-2 { animation: floatB 7s ease-in-out 1s infinite; }
.float-3 { animation: floatA 5.5s ease-in-out 2s infinite; }

@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* ── Orbes: resplandores aurora ── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.orb-1 {
  width: 520px; height: 420px;
  left: -140px; bottom: -180px;
  background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 65%);
  animation: orbDrift1 18s ease-in-out infinite;
}
.orb-2 {
  width: 520px; height: 420px;
  right: -140px; bottom: -180px;
  background: radial-gradient(circle, rgba(255,255,255,0.04), transparent 65%);
  animation: orbDrift2 22s ease-in-out infinite;
}
.orb-3 {
  width: 460px; height: 380px;
  left: 50%; top: -160px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,255,255,0.035), transparent 65%);
}
@keyframes orbDrift1 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(36px, -24px); }
}
@keyframes orbDrift2 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-36px, -18px); }
}

/* ── Esferas de cristal del hero ── */
@keyframes orbBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ── Ticker ── */
.ticker-wrap {
  overflow: hidden;
  display: flex;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.ticker-track {
  display: flex;
  flex-shrink: 0;
  animation: ticker 32s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-size: 13px;
  color: var(--text-3);
  white-space: nowrap;
}
.ticker-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-4);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ── Link flecha ── */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: gap 0.25s var(--ease), color 0.2s;
}
.link-arrow:hover { gap: 11px; color: var(--text); }
.link-arrow::after { content: '→'; }

/* ── Entrada de página ── */
.page-enter {
  animation: pageIn 0.7s var(--ease-out);
}
@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Movimiento reducido ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-animate-1, .hero-animate-2, .hero-animate-3,
  .hero-animate-4, .hero-animate-5 { opacity: 1; }
  html { scroll-behavior: auto; }
}
