/* ================= BASE ================= */
:root {
  --bp-mobile: 991px;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f8f0f4;
}

/* ================= DESKTOP NAV ================= */
.desktop-nav {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 90%;
  height: 90px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px) saturate(100%);
  -webkit-backdrop-filter: blur(10px) saturate(50%);
  border-radius: 45px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.logo-nav {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-nav img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-links {
  position: relative;
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 6px;
  background: #ffffff79;
  backdrop-filter: blur(8px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 50px;
}

.nav-links li {
  display: inline-block;
}

.nav-links li a {
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

/* Botón activo con fondo mágico animado (estilo IA) */
.nav-links li a.active {
  background: rgba(0, 0, 0, 0.37);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 50px;

  /* necesario para las capas animadas */
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* halo exterior suave (glow) */
.nav-links li a.active::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: conic-gradient(
   from 0deg,
  rgba(34, 197, 94, 0.65),   /* verde brillante (balde) */
  rgba(250, 204, 21, 0.65),  /* amarillo guantes */
  rgba(236, 72, 153, 0.65),  /* fucsia botella */
  rgba(59, 130, 246, 0.65),  /* azul spray */
  rgba(139, 92, 246, 0.65),  /* violeta */
  rgba(34, 197, 94, 0.65)    /* regresa al verde */

  );
  filter: blur(16px);
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
  backdrop-filter: blur(8px) saturate(180%);
}

/* aurora interior animada */
.nav-links li a.active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
      120deg,
     rgba(124, 58, 237, 0.35) 0%,
  rgba(0, 194, 255, 0.35) 20%,
  rgba(34, 197, 94, 0.35) 40%,
  rgba(245, 158, 11, 0.35) 60%,
  rgba(244, 63, 94, 0.35) 80%,
  rgba(124, 58, 237, 0.35) 100%
  );
  background-size: 300% 300%;
  animation: aiGradient 8s ease-in-out infinite;
  mix-blend-mode: screen; /* look mágico sin perder legibilidad */
  opacity: 0.85;
  pointer-events: none;
  will-change: background-position;
  
}

/* Animación del gradiente */
@keyframes aiGradient {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}


/* ================= BURBUJA LÍQUIDA DESKTOP ================= */
.liquid-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.35);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.5);
  transition:
    width 0.25s ease,
    height 0.25s ease,
    transform 0.35s cubic-bezier(0.25, 1.5, 0.5, 1),
    opacity 0.3s ease;
}

.liquid-indicator.active {
  opacity: 1;
  transform: scale(1);
}

/* ================= CHAT BUBBLE ================= */
.chat-bubble {
  position: fixed;
  right: 20px;
  bottom: 70px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: background 0.2s, transform 0.2s;
  z-index: 9999;
}

.chat-bubble:hover {
  background: #0ea371;
  transform: translateY(-2px);
}

.chat-bubble:active {
  transform: scale(0.95);
}

.chat-bubble .badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ef4444;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ================= MOBILE NAV TOGGLE ================= */
.mobile-nav-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1200;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px) saturate(180%);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  margin: 4px 0;
  transition: 0.4s;
}

.mobile-nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ================= MOBILE NAV FULLSCREEN ================= */
.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.37);
  backdrop-filter: blur(5px) saturate(200%);
  -webkit-backdrop-filter: blur(5px) saturate(200%);
  transition: left 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-nav.active {
  left: 0;
}

.mobile-nav h2 {
  color: #ffffffff;
  font-size: 20px;
  margin-bottom: 30px;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.mobile-nav ul li {
  margin: 20px 0;
}

.mobile-nav ul li a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  transition: background 0.3s ease;
}

.mobile-nav ul li a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-nav .cta-phone {
  margin-top: 40px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  padding: 12px 24px;
  border-radius: 30px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, background 0.3s ease;
}

.mobile-nav .cta-phone:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #2563eb, #1e40af);
}

/* ================= RESPONSIVE SWITCH ================= */
@media (max-width: 991px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }
}