.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Paleta: marca + TikTok — https://fonts.google.com/specimen/TikTok+Sans */
:root {
  --tt-bg: #050505;
  --tt-brand: #00e676;
  --tt-pink: #fe2c55;
  --tt-cyan: #25f4ee;
  --tt-gaming: #ff2a2a;
  --tt-gold: #ffd700;
  --agency-font: "TikTok Sans", system-ui, -apple-system, sans-serif;
}

body.agency-body {
  font-family: var(--agency-font);
  -webkit-font-smoothing: antialiased;
}

.agency-body h1,
.agency-body h2,
.agency-body h3 {
  font-family: var(--agency-font);
  letter-spacing: -0.02em;
}

/* “Glitch” tipo logo TikTok: sombras rosa + cian */
.agency-glitch-title {
  color: #f4f4f5;
  text-shadow:
    -2px 0 0 rgba(254, 44, 85, 0.92),
    2px 0 0 rgba(37, 244, 238, 0.88);
}

.agency-title-italic {
  font-style: italic;
}

@keyframes agency-spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.animate-spin-slow-3s {
  animation: agency-spin-slow 3s linear infinite;
}
.animate-spin-slow-4s {
  animation: agency-spin-slow 4s linear infinite;
}

/* Fondo atmosférico — orbes alineados a la paleta */
/* Partículas (particles.js): fondo no bloquea; el canvas recibe hover para repulse */
.particles-host {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.particles-host canvas {
  pointer-events: auto;
  mix-blend-mode: screen;
}

/* Degradados radiales en esquinas (Gaming / Batallas PK) */
.ag-corners-wrap {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.ag-corner {
  position: absolute;
  border-radius: 50%;
}
.ag-corner--pk-tl {
  top: -5rem;
  left: -7rem;
  width: min(100vw, 520px);
  height: min(100vw, 520px);
  background: radial-gradient(circle at 32% 32%, rgba(254, 44, 85, 0.1), transparent 62%);
}
.ag-corner--pk-tr {
  top: -4rem;
  right: -6rem;
  width: min(95vw, 480px);
  height: min(95vw, 480px);
  background: radial-gradient(circle at 68% 28%, rgba(37, 244, 238, 0.1), transparent 62%);
}
.ag-corner--pk-bl {
  bottom: -6rem;
  left: -5rem;
  width: min(90vw, 440px);
  height: min(90vw, 440px);
  background: radial-gradient(circle at 28% 72%, rgba(37, 244, 238, 0.08), transparent 58%);
}
.ag-corner--pk-br {
  bottom: -5rem;
  right: -7rem;
  width: min(95vw, 480px);
  height: min(95vw, 480px);
  background: radial-gradient(circle at 72% 76%, rgba(254, 44, 85, 0.09), transparent 60%);
}

.agency-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.agency-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.5;
  animation: agency-float-orb 22s ease-in-out infinite;
}

.agency-orb-a {
  width: min(52vw, 440px);
  height: min(52vw, 440px);
  background: radial-gradient(circle, rgba(0, 230, 118, 0.4) 0%, transparent 72%);
  top: -12%;
  left: -8%;
}

.agency-orb-b {
  width: min(48vw, 400px);
  height: min(48vw, 400px);
  background: radial-gradient(circle, rgba(254, 44, 85, 0.22) 0%, transparent 72%);
  top: 35%;
  right: -12%;
  animation-delay: -7s;
}

.agency-orb-c {
  width: min(42vw, 340px);
  height: min(42vw, 340px);
  background: radial-gradient(circle, rgba(37, 244, 238, 0.26) 0%, transparent 72%);
  bottom: 8%;
  left: 25%;
  animation-delay: -14s;
}

.agency-orb-d {
  width: min(58vw, 520px);
  height: min(58vw, 520px);
  background: radial-gradient(circle, rgba(255, 42, 42, 0.16) 0%, transparent 72%);
  bottom: -18%;
  right: 5%;
  animation-delay: -5s;
}

@keyframes agency-float-orb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(4%, 5%) scale(1.06);
  }
  66% {
    transform: translate(-3%, 3%) scale(0.94);
  }
}

.agency-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.agency-body > nav,
body.agency-body > section,
body.agency-body > footer {
  position: relative;
  z-index: 1;
}

body.agency-body > section {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

body.agency-body > section.reveal-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.agency-text-shimmer {
  background-size: 220% auto;
  animation: agency-shimmer 5s ease-in-out infinite;
}

@keyframes agency-shimmer {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

.agency-btn-primary {
  animation: agency-btn-pulse 2.8s ease-out infinite;
}

@keyframes agency-btn-pulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(0, 230, 118, 0.45),
      0 4px 24px rgba(37, 244, 238, 0.12);
  }
  65% {
    box-shadow:
      0 0 0 16px rgba(0, 230, 118, 0),
      0 4px 24px rgba(37, 244, 238, 0.06);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(0, 230, 118, 0),
      0 4px 24px rgba(37, 244, 238, 0.12);
  }
}

.agency-glass-nav {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

/* Menú móvil (cajón bajo la barra) */
body.agency-nav-open {
  overflow: hidden;
}

.agency-mobile-drawer {
  position: fixed;
  left: 0;
  right: 0;
  top: 4rem;
  bottom: 0;
  z-index: 40;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.agency-mobile-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.agency-mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.agency-mobile-drawer__panel {
  position: relative;
  z-index: 1;
  max-height: min(70vh, 28rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  background: rgba(12, 12, 12, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

.agency-mobile-drawer__inner {
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  .agency-mobile-drawer {
    display: none !important;
  }
}

.agency-hero-mesh {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 230, 118, 0.16), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(37, 244, 238, 0.1), transparent),
    radial-gradient(ellipse 50% 50% at 0% 80%, rgba(254, 44, 85, 0.08), transparent);
  animation: agency-mesh-drift 28s ease-in-out infinite;
  opacity: 0.9;
  pointer-events: none;
}

@keyframes agency-mesh-drift {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.08) rotate(6deg);
  }
}

.agency-chart-line {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: agency-draw-line 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.4s;
}

@keyframes agency-draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

.agency-hover-lift {
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease,
    border-color 0.35s ease;
}

.agency-hover-lift:hover {
  transform: translateY(-10px);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(0, 230, 118, 0.08);
}

#interactive .agency-hover-lift:hover {
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.55),
    0 0 72px rgba(0, 230, 118, 0.12),
    0 0 40px rgba(37, 244, 238, 0.06);
}

#gaming .agency-hover-lift:hover {
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.55),
    0 0 70px rgba(255, 42, 42, 0.14);
}

#batallas .agency-hover-lift:hover {
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.55),
    0 0 64px rgba(37, 244, 238, 0.1),
    0 0 48px rgba(254, 44, 85, 0.08);
}

.faq-answer {
  display: none;
}
.faq-item.is-open .faq-answer {
  display: block;
}
.faq-item.is-open .faq-chevron-down {
  display: none;
}
.faq-item.is-open .faq-chevron-up {
  display: block;
}
.faq-item:not(.is-open) .faq-chevron-up {
  display: none;
}
.faq-item:not(.is-open) .faq-chevron-down {
  display: block;
}

/* Modales (Eventos / Capacitaciones) */
.agency-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4.5rem 1rem 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.agency-modal[hidden] {
  display: none !important;
}
.agency-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.agency-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}
.agency-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.agency-modal__body {
  padding: 1.25rem;
}
.agency-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  background: transparent;
  border: 0;
  padding: 0.35rem;
  cursor: pointer;
  border-radius: 0.375rem;
  line-height: 0;
}
.agency-modal__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.agency-cap-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.agency-cap-cal__wd {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  padding: 6px 0;
}
.agency-cap-cal__cell {
  min-height: 4.5rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 4px 4px 6px;
  font-size: 10px;
  background: rgba(0, 0, 0, 0.35);
}
.agency-cap-cal__cell--muted {
  opacity: 0.2;
  pointer-events: none;
  min-height: 2.5rem;
}
.agency-cap-cal__daynum {
  font-weight: 800;
  color: #f3f4f6;
  font-size: 12px;
  line-height: 1.2;
}
.agency-cap-cal__tag {
  display: block;
  margin-top: 3px;
  padding: 3px 4px;
  border-radius: 4px;
  line-height: 1.25;
  font-size: 9px;
  font-weight: 600;
}
.agency-cap-cal__tag--cap {
  background: rgba(0, 230, 118, 0.14);
  color: #86efac;
}
.agency-cap-cal__tag--met {
  background: rgba(191, 90, 242, 0.14);
  color: #e9d5ff;
}

@media (prefers-reduced-motion: reduce) {
  .agency-orb,
  .agency-text-shimmer,
  .agency-btn-primary,
  .agency-hero-mesh,
  .agency-chart-line {
    animation: none !important;
  }
  .agency-chart-line {
    stroke-dashoffset: 0 !important;
  }
  body.agency-body > section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
