/* ---------- Anime Navbar — liquid glass + mascota ----------
   Portado de un componente shadcn/framer-motion ("AnimeNavBar") a HTML/CSS/JS
   vanilla — el sitio no usa React (ver pagina-completa/assets/volumetric-hero.css
   para el mismo criterio de port). Material "Liquid Glass" tomado de
   liquid-glass-preview/index.html (blur+saturate, highlight que sigue el
   cursor) con los tokens de marca de ARV (--accent/--accent-glow/--ease) en
   vez de la paleta genérica azul/morada del demo original. Reemplaza a
   .site-head / .nav / .nav-toggle (esas reglas se dejan sin usar en
   styles.css como red de seguridad mientras Axel confirma el cambio). */

.anb-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding-top: clamp(14px, 3vh, 26px);
  pointer-events: none;
}

.anb {
  --anb-blur: 22px;
  --anb-sat: 180%;
  --anb-bg: rgba(16, 20, 31, 0.55);
  --anb-border: rgba(231, 238, 251, 0.14);
  --anb-highlight: rgba(231, 238, 251, 0.22);
  --anb-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.2rem, 1vw, 0.5rem);
  max-width: calc(100vw - 24px);
  padding: 0.4rem 0.4rem 0.4rem clamp(0.9rem, 2vw, 1.25rem);
  border-radius: 999px;
  background: var(--anb-bg);
  border: 1px solid var(--anb-border);
  backdrop-filter: blur(var(--anb-blur)) saturate(var(--anb-sat));
  -webkit-backdrop-filter: blur(var(--anb-blur)) saturate(var(--anb-sat));
  box-shadow:
    inset 0 1px 1px var(--anb-highlight),
    inset 0 -1px 14px rgba(0, 0, 0, 0.25),
    0 16px 40px -12px rgba(2, 4, 12, 0.65);
  opacity: 0;
  transform: translateY(-14px);
  animation: anbIn 0.6s var(--anb-bounce) 0.1s forwards;
}

.anb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 20%) var(--my, 0%), rgba(255, 255, 255, 0.16), transparent 60%);
  mix-blend-mode: overlay;
  pointer-events: none;
}

@keyframes anbIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Marca ---------- */

.anb-brand {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  padding-right: clamp(0.5rem, 1.5vw, 0.9rem);
  margin-right: 0.15rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  border-right: 1px solid var(--anb-border);
  white-space: nowrap;
}

.anb-brand span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ---------- Items ---------- */

.anb-items { position: relative; display: flex; align-items: center; gap: 2px; }

.anb-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

.anb-item svg { width: 17px; height: 17px; flex-shrink: 0; }

.anb-item:hover { color: var(--ink); }

.anb-item[aria-current="page"] { color: var(--ink); }

.anb-item-hover {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 999px;
  background: rgba(231, 238, 251, 0.08);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.anb-item:not([aria-current="page"]):hover .anb-item-hover { opacity: 1; transform: scale(1); }

.anb-item-glow { position: absolute; inset: 0; z-index: -1; border-radius: 999px; opacity: 0; }

.anb-item[aria-current="page"] .anb-item-glow {
  opacity: 1;
  animation: anbGlowPulse 2.4s ease-in-out infinite;
}

.anb-item-glow::before,
.anb-item-glow::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: radial-gradient(closest-side, rgba(var(--accent-glow), 0.45), transparent 75%);
}

.anb-item-glow::after { inset: -12px; background: radial-gradient(closest-side, rgba(var(--accent-glow), 0.22), transparent 75%); }

@keyframes anbGlowPulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.anb-item:focus-visible,
.anb-brand:focus-visible,
.anb-cta:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .anb-brand { display: none; }
  .anb-item { padding: 0.65rem; }
  .anb-item-label { display: none; }
  .anb-item svg { width: 19px; height: 19px; }
}

/* ---------- CTA WhatsApp ---------- */

.anb-cta {
  display: flex;
  align-items: center;
  gap: 0.45em;
  margin-left: 0.15rem;
  padding: 0.55rem 1.05rem 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 18px -6px rgba(var(--accent-glow), 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.anb-cta:hover {
  background: var(--accent-deep);
  box-shadow: 0 8px 22px -6px rgba(var(--accent-glow), 0.9), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.anb-cta svg { width: 15px; height: 15px; flex-shrink: 0; }

@media (max-width: 860px) {
  .anb-cta span { display: none; }
  .anb-cta { padding: 0.65rem; }
}

/* ---------- Mascota ---------- */

.anb-mascot {
  position: absolute;
  top: -2.5rem;
  left: 0;
  width: 2.375rem;
  height: 2.375rem;
  margin-left: -1.1875rem;
  opacity: 0;
  pointer-events: none;
  transition: left 0.3s var(--ease), opacity 0.3s var(--ease);
  z-index: 5;
}

.anb-mascot.is-ready { opacity: 1; }

.anb-mascot-tail {
  position: absolute;
  bottom: -0.3rem;
  left: 50%;
  width: 0.7rem;
  height: 0.7rem;
  margin-left: -0.35rem;
  background: #f5f7ff;
  border-radius: 0 0 3px 0;
  transform: rotate(45deg);
  animation: anbTailSway 2.2s ease-in-out infinite 0.3s;
}

.anb-mascot-body {
  position: absolute;
  inset: 0.1rem;
  background: #f5f7ff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(2, 4, 12, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  animation: anbBob 2.4s ease-in-out infinite;
}

.anb-mascot.is-hovering .anb-mascot-body { animation: anbWiggle 0.5s ease-in-out; }

.anb-mascot-eye {
  position: absolute;
  top: 40%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #14141f;
}

.anb-mascot-eye.l { left: 26%; }
.anb-mascot-eye.r { right: 26%; }

.anb-mascot.is-hovering .anb-mascot-eye { animation: anbBlink 0.35s ease-in-out; }

.anb-mascot-blush {
  position: absolute;
  top: 54%;
  width: 6px;
  height: 4px;
  border-radius: 50%;
  background: #f4b8c6;
  opacity: 0.75;
}

.anb-mascot-blush.l { left: 14%; }
.anb-mascot-blush.r { right: 14%; }

.anb-mascot-mouth {
  position: absolute;
  left: 32%;
  top: 56%;
  width: 36%;
  height: 24%;
  border-bottom: 2px solid #14141f;
  border-radius: 0 0 50% 50%;
  transition: transform 0.25s var(--ease);
}

.anb-mascot.is-hovering .anb-mascot-mouth { transform: scaleY(1.4) translateY(-1px); }

.anb-mascot-spark {
  position: absolute;
  font-size: 0.6rem;
  line-height: 1;
  color: var(--accent-text);
  opacity: 0;
}

.anb-mascot-spark.a { top: -0.15rem; right: -0.2rem; }
.anb-mascot-spark.b { top: -0.55rem; left: 0.1rem; }

.anb-mascot.is-hovering .anb-mascot-spark.a { animation: anbSpark 0.5s ease-out; }
.anb-mascot.is-hovering .anb-mascot-spark.b { animation: anbSpark 0.5s ease-out 0.1s; }

@keyframes anbBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes anbWiggle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-5deg); }
  75% { transform: scale(1.1) rotate(5deg); }
}

@keyframes anbBlink {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.15); }
}

@keyframes anbTailSway {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(2px); }
}

@keyframes anbSpark {
  0% { opacity: 0; transform: scale(0.3); }
  50% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.6) translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .anb { animation: none; opacity: 1; transform: none; }
  .anb-item-glow[style],
  .anb-item[aria-current="page"] .anb-item-glow { animation: none; }
  .anb-mascot { transition: none; }
  .anb-mascot-body,
  .anb-mascot-tail { animation: none; }
  .anb-mascot.is-hovering .anb-mascot-body,
  .anb-mascot.is-hovering .anb-mascot-eye,
  .anb-mascot.is-hovering .anb-mascot-spark.a,
  .anb-mascot.is-hovering .anb-mascot-spark.b { animation: none; }
}
