/* ==========================================================================
   ZOONARANJA — Animaciones: cursor, keyframes, magnetic, glow
   ========================================================================== */

/* ---- Cursor personalizado (solo desktop con puntero fino) ---- */
.custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange);
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  mix-blend-mode: normal;
  transition: width 0.2s var(--ease-soft), height 0.2s var(--ease-soft), background 0.2s;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--turquoise);
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-soft), height 0.25s var(--ease-soft), opacity 0.25s, border-color 0.25s;
}
.custom-cursor.hovering { width: 6px; height: 6px; }
.cursor-ring.hovering { width: 58px; height: 58px; border-color: var(--orange); background: rgba(255,122,48,0.08); }
.cursor-ring.hidden-cursor, .custom-cursor.hidden-cursor { opacity: 0; }

@media (hover: none), (pointer: coarse) {
  .custom-cursor, .cursor-ring { display: none; }
}

/* ---- Hero ---- */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
#hero-canvas { position: absolute; inset: 0; z-index: 0; }
#hero .hero-media { position: absolute; inset: 0; z-index: 0; }
#hero .hero-media img, #hero .hero-media video {
  width: 100%; height: 100%; object-fit: cover;
}
#hero .hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: var(--grad-hero);
}
#hero .hero-content {
  position: relative; z-index: 2;
  padding-top: calc(var(--nav-height) + 1rem);
  padding-bottom: 2rem;
  width: 100%;
}
#hero .hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 700;
  margin-bottom: var(--space-md);
}
#hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  line-height: 1.12;
  color: #fff;
  max-width: 900px;
  margin-bottom: var(--space-md);
}
#hero h1 .word { display: inline-block; overflow: hidden; }
#hero h1 .hero-title-line { display: block; white-space: nowrap; }
@media (max-width: 768px) {
  #hero h1 { font-size: clamp(1rem, 5.2vw, 2.5rem); }
}
#hero h1 .word span { display: inline-block; }
#hero .hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}
#hero .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
#hero .hero-trust {
  margin-top: 1.5rem;
  display: flex; gap: var(--space-lg); flex-wrap: wrap;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.2);
}
#hero .hero-trust .trust-item { display: flex; flex-direction: column; }
#hero .hero-trust .trust-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; }
#hero .hero-trust .trust-label { font-size: 0.75rem; color: rgba(255,255,255,0.75); }

.scroll-cue {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.scroll-cue .mouse {
  width: 24px; height: 38px; border: 1.5px solid rgba(255,255,255,0.6); border-radius: var(--radius-full);
  position: relative;
}
.scroll-cue .mouse::before {
  content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: #fff; border-radius: var(--radius-full);
  animation: scroll-wheel 1.8s infinite;
}
@keyframes scroll-wheel {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 0; transform: translate(-50%, 14px); }
  100% { opacity: 0; }
}

/* ---- Floating particles / light waves (CSS lightweight) ---- */
.floating-icon {
  position: absolute;
  font-size: 1.4rem;
  color: rgba(255,255,255,0.5);
  animation: float-y 6s ease-in-out infinite;
}
@keyframes float-y {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(8deg); }
}

.light-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
  pointer-events: none;
}

/* ---- Utilidades de revelado GSAP (clases objetivo) ---- */
.reveal-up, .reveal-fade, .reveal-scale, .reveal-blur, .reveal-mask, .reveal-slide-l, .reveal-slide-r {
  will-change: transform, opacity, filter;
}

/* ---- Magnetic wrapper ---- */
.magnetic-wrap { display: inline-block; }

/* ---- Marquee (para logos / trust bar) ---- */
.marquee-track { display: flex; gap: var(--space-2xl); white-space: nowrap; }

/* ---- Blob orgánico decorativo ---- */
.organic-blob {
  position: absolute;
  border-radius: 50% 40% 60% 50% / 50% 60% 40% 50%;
  background: var(--grad-primary);
  opacity: 0.12;
  filter: blur(10px);
  animation: blob-morph 12s ease-in-out infinite;
}
@keyframes blob-morph {
  0%, 100% { border-radius: 50% 40% 60% 50% / 50% 60% 40% 50%; transform: rotate(0deg) scale(1); }
  33% { border-radius: 60% 50% 40% 60% / 40% 50% 60% 50%; transform: rotate(8deg) scale(1.05); }
  66% { border-radius: 40% 60% 50% 40% / 60% 40% 50% 60%; transform: rotate(-6deg) scale(0.97); }
}

/* ---- Pet companion (perro + gato SVG animados) ---- */
.pet-companion {
  position: absolute;
  bottom: 6px;
  width: 84px;
  height: 68px;
  transition: transform 0.1s linear;
}
.pet-companion svg { width: 100%; height: 100%; }
.pet-companion.hidden-pet { opacity: 0; }
.pet-tail { transform-origin: 70% 70%; animation: tail-wag 0.5s ease-in-out infinite; }
@keyframes tail-wag {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(22deg); }
}
.pet-blink { animation: pet-blink-anim 4s infinite; }
@keyframes pet-blink-anim {
  0%, 96%, 100% { transform: scaleY(1); }
  98% { transform: scaleY(0.1); }
}
.pet-leg-run { animation: leg-run 0.35s linear infinite; }
@keyframes leg-run {
  0%, 100% { transform: rotate(-18deg); }
  50% { transform: rotate(18deg); }
}
.ball-bounce { animation: ball-bounce-anim 0.7s ease-in-out infinite; }
@keyframes ball-bounce-anim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---- Chat bubble aparición typing ---- */
.typing-indicator { display: flex; gap: 4px; padding: 0.5rem 0; }
.typing-indicator span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-400);
  animation: typing-bounce 1.2s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ---- Ondas de luz (glow ring pulse decorativo) ---- */
.glow-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(20,184,166,0.3);
  animation: glow-ring-anim 3s ease-out infinite;
}
@keyframes glow-ring-anim {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}
