.parallax-card {
  transition: transform 0.2s ease-out;
}

/* ============================================
   MENÚ DINÁMICO Y PROFESIONAL
   Mantiene la tipografía original del sitio
   ============================================ */

/* Base del menú - respeta la fuente original */
nav a {
  position: relative;
  padding: 14px 26px;
  margin: 0 4px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 8px;
  /* NO modificamos font-family - usa la original */
}

/* Hover con energía - fondo y elevación */
nav a:hover {
  color: #1e3a5f;
  background: linear-gradient(135deg, rgba(44, 82, 130, 0.08), rgba(74, 144, 226, 0.12));
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 20px rgba(44, 82, 130, 0.18);
}

/* Línea animada inferior con rebote */
nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #4a90e2, #2c5282, #4a90e2);
  transform: translateX(-50%);
  transition: width 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(44, 82, 130, 0.3);
}

nav a:hover::after {
  width: 85%;
}

/* Brillo sutil que pulsa */
nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(74, 144, 226, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 8px;
  z-index: -1;
}

nav a:hover::before {
  opacity: 1;
  animation: pulse 1.5s ease-in-out infinite;
}

/* Animación de pulso suave */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.3;
  }
}

/* Estado activo con más presencia */
nav a.active,
nav a[aria-current="page"] {
  color: #2c5282;
  background-color: rgba(44, 82, 130, 0.1);
  font-weight: 600;
}

nav a.active::after,
nav a[aria-current="page"]::after {
  width: 85%;
}

/* Transición del dropdown "Servicios" */
nav .dropdown-toggle:hover,
nav a[href*="servicios"]:hover {
  transform: translateY(-4px) scale(1.03) rotate(-1deg);
}

/* Mejora de los iconos de contacto - más vida */
header a[href^="tel"],
header a[href^="mailto"],
header a[href*="whatsapp"] {
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  color: #2c5282;
  display: inline-block;
}

header a[href^="tel"]:hover,
header a[href^="mailto"]:hover,
header a[href*="whatsapp"]:hover {
  transform: scale(1.2) rotate(10deg);
  color: #4a90e2;
}

/* Animación del logo */
header img[alt*="logo"],
header .logo img {
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

header img[alt*="logo"]:hover,
header .logo:hover img {
  transform: scale(1.08) rotate(-2deg);
}

/* Mejora del header con más vida */
header {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  background-color: #ffffff;
  transition: box-shadow 0.3s ease;
}

/* Responsive - mantiene la energía */
@media (max-width: 768px) {
  nav a {
    padding: 12px 20px;
    font-size: 15px;
  }
  
  nav a:hover {
    transform: translateY(-2px) scale(1.02);
  }
}

/* Accesibilidad con estilo */
nav a:focus-visible {
  outline: 3px solid #4a90e2;
  outline-offset: 3px;
  border-radius: 8px;
}