/**
 * NaviGPS — capa visual moderna / pro
 * Profundidad suave, CTAs vivos, hover premium.
 * Sin ocultar contenido al scrollear.
 */

html {
  scroll-behavior: smooth;
}

::selection {
  background: rgba(34, 211, 238, 0.28);
  color: #f8fafc;
}

:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.65);
  outline-offset: 3px;
}

/* ---- Contenido siempre visible ---- */
.reveal,
.reveal.in-view,
.reveal-delay-1,
.reveal-delay-2,
.reveal-delay-3 {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
}

/* ---- Atmósfera hero (profundidad sin 3D pesado) ---- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 60% at 20% 30%, rgba(34, 211, 238, 0.12), transparent 70%),
    radial-gradient(ellipse 45% 55% at 85% 20%, rgba(34, 197, 94, 0.1), transparent 68%);
  animation: navi-ambient 10s ease-in-out infinite alternate;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

@keyframes navi-ambient {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  to { transform: translate3d(2%, 3%, 0) scale(1.04); opacity: 1; }
}

/* Hint scroll (discreto) */
.hero .navi-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 18px;
  height: 28px;
  margin-left: -9px;
  border: 1.5px solid rgba(148, 163, 184, 0.4);
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.hero .navi-scroll-hint::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.85);
  animation: navi-scroll-dot 1.8s ease-in-out infinite;
}

.hero.is-scrolled-past .navi-scroll-hint {
  opacity: 0;
}

@keyframes navi-scroll-dot {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 0.95; transform: translateY(8px); }
}

/* Entrada hero */
@keyframes navi-hero-in {
  from { opacity: 0.4; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .pill { animation: navi-hero-in 0.65s ease 0.04s both; }
.hero h1 { animation: navi-hero-in 0.7s ease 0.1s both; }
.hero p { animation: navi-hero-in 0.7s ease 0.16s both; }
.hero .cta { animation: navi-hero-in 0.7s ease 0.24s both; }
.hero .stat-row { animation: navi-hero-in 0.7s ease 0.32s both; }
.hero .panel,
.hero .stats {
  animation: navi-hero-in 0.75s ease 0.18s both;
}

/* Panel hero: profundidad + reflejo */
.hero .panel,
.hero .stats {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  box-shadow:
    0 24px 60px rgba(2, 8, 23, 0.45),
    0 0 0 1px rgba(56, 189, 248, 0.12);
}

.hero .panel::before,
.hero .stats::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%, transparent 60%, rgba(34, 211, 238, 0.06));
  z-index: 2;
}

.hero .panel::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -18px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(34, 211, 238, 0.22), transparent 70%);
  filter: blur(8px);
  z-index: -1;
  pointer-events: none;
}

.hero .map,
.hero .map-video {
  transition: transform 0.5s ease;
}

.hero .panel:hover .map-video {
  transform: scale(1.03);
}

/* ---- Header ---- */
.header {
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.header.is-scrolled {
  background: rgba(5, 11, 22, 0.92) !important;
  border-bottom-color: rgba(56, 189, 248, 0.18) !important;
  box-shadow: 0 10px 36px rgba(2, 8, 23, 0.35);
}

/* ---- Pills ---- */
@keyframes navi-pill-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.22);
    border-color: rgba(125, 211, 252, 0.35);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(34, 211, 238, 0);
    border-color: rgba(125, 211, 252, 0.6);
  }
}

.pill,
.exclusive-badge,
.tag {
  animation: navi-pill-pulse 2.8s ease-in-out infinite;
}

/* ---- CTAs ---- */
@keyframes navi-cta-breathe {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.2), 0 0 0 0 rgba(34, 211, 238, 0.3);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.32), 0 0 0 7px rgba(34, 211, 238, 0);
    filter: brightness(1.05);
  }
}

@keyframes navi-cta-shine {
  0%, 55% { left: -45%; opacity: 0; }
  62% { opacity: 1; }
  88% { left: 125%; opacity: 0.55; }
  100% { left: 125%; opacity: 0; }
}

.btn-primary,
a.btn.btn-primary,
button.btn.btn-primary {
  position: relative;
  overflow: hidden;
  animation: navi-cta-breathe 2.6s ease-in-out infinite;
}

.btn-primary::after,
a.btn.btn-primary::after,
button.btn.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -45%;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-18deg);
  animation: navi-cta-shine 3.2s ease-in-out infinite;
  pointer-events: none;
}

.btn {
  transition: transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary:hover,
a.btn.btn-primary:hover {
  animation: none;
  filter: brightness(1.08);
  box-shadow: 0 14px 34px rgba(34, 197, 94, 0.38);
}

.btn-mini {
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.btn-mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.2);
}

/* ---- Bandas ---- */
@keyframes navi-band-glow {
  0%, 100% {
    border-color: rgba(34, 197, 94, 0.28);
    box-shadow: 0 0 0 rgba(34, 211, 238, 0);
  }
  50% {
    border-color: rgba(34, 211, 238, 0.38);
    box-shadow: 0 0 26px rgba(34, 197, 94, 0.1);
  }
}

.cta-band,
.custom-solution-band,
.impact-section,
.diff-section,
.exclusive-section {
  animation: navi-band-glow 4.5s ease-in-out infinite;
}

/* ---- Tarjetas con profundidad ---- */
.card,
.step,
.stat,
.diff-item,
.impact-item,
.exclusive-item,
.faq-item,
.feature-item,
.band,
.panel {
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    box-shadow 0.28s ease,
    background 0.25s ease;
}

.card:hover,
.step:hover,
.diff-item:hover,
.impact-item:hover,
.exclusive-item:hover,
.faq-item:hover,
.feature-item:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.38);
  box-shadow:
    0 16px 40px rgba(2, 8, 23, 0.36),
    0 0 0 1px rgba(34, 211, 238, 0.08);
}

.service-icon,
.feature-icon {
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover .service-icon,
.card:hover .feature-icon,
.exclusive-item:hover .feature-icon {
  transform: scale(1.07);
  border-color: rgba(34, 197, 94, 0.7);
  background: rgba(34, 197, 94, 0.18);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.2);
}

/* ---- Flotantes ---- */
@keyframes navi-float-bob {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  50% {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 0 12px rgba(34, 197, 94, 0);
  }
}

.ai-float {
  animation: navi-float-bob 2.8s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.ai-float:hover,
.ai-float:focus-visible {
  animation: none;
  transform: translateY(-3px) scale(1.04);
}

/* ---- Nav underline ---- */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #22c55e, #22d3ee);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-link:hover { color: #7dd3fc; }
.nav-link:hover::after { transform: scaleX(1); }

/* ---- FAQ / footer ---- */
.faq-item summary { transition: background 0.2s ease, color 0.2s ease; }
.faq-item[open] summary {
  color: #e2e8f0;
  background: rgba(12, 26, 47, 0.45);
}

.footer-item a,
footer a { transition: color 0.2s ease; }
.footer-item a:hover,
footer a:hover { color: #7dd3fc; }

/* Pricing cards popular pulse */
.card.popular {
  animation: navi-band-glow 3.8s ease-in-out infinite;
}

/* ---- Contenido: animación suave SIN ocultar texto ----
   Solo se desplaza un poco; siempre legible (opacity 1). */
.navi-rise {
  opacity: 1;
  transform: translateY(14px);
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s ease,
    border-color 0.55s ease;
  will-change: transform;
}

.navi-rise.is-in {
  transform: translateY(0);
}

.navi-rise-delay-1 { transition-delay: 60ms; }
.navi-rise-delay-2 { transition-delay: 120ms; }
.navi-rise-delay-3 { transition-delay: 180ms; }
.navi-rise-delay-4 { transition-delay: 240ms; }

/* Títulos de sección: línea de acento que se dibuja */
.navi-title {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.navi-title::after {
  content: "";
  display: block;
  width: min(72px, 30%);
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #22d3ee);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.navi-title.is-in::after {
  transform: scaleX(1);
}

/* Subtítulos: leve énfasis de color al entrar */
.navi-sub {
  transition: color 0.45s ease;
}

.navi-sub.is-in {
  color: #cbd5e1;
}

@media (max-width: 960px) {
  .hero .navi-scroll-hint { display: none; }
  .hero::after { animation: none; opacity: 0.7; }

  .hero .pill,
  .hero h1,
  .hero p,
  .hero .cta,
  .hero .stat-row,
  .hero .panel,
  .hero .stats {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .navi-rise {
    transform: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero::after,
  .pill,
  .exclusive-badge,
  .tag,
  .btn-primary,
  a.btn.btn-primary,
  button.btn.btn-primary,
  .btn-primary::after,
  .cta-band,
  .custom-solution-band,
  .impact-section,
  .diff-section,
  .exclusive-section,
  .card.popular,
  .ai-float,
  .hero .pill,
  .hero h1,
  .hero p,
  .hero .cta,
  .hero .stat-row,
  .hero .panel,
  .hero .stats,
  .navi-scroll-hint::after,
  .navi-rise,
  .navi-title::after {
    animation: none !important;
    transition: none !important;
  }

  .navi-rise,
  .navi-rise.is-in {
    transform: none !important;
  }

  .navi-title::after,
  .navi-title.is-in::after {
    transform: scaleX(1) !important;
  }

  .card:hover,
  .step:hover,
  .btn:hover,
  .btn-mini:hover {
    transform: none;
  }

  .hero .navi-scroll-hint { display: none; }
}
