:root {
  --primary: #002e82; /* Azul Institucional AP */
  --primary-light: #1a4ab2;
  --accent-cyan: #00b4d8; /* Turquesa Caribe */
  --accent: #10b981;
  --accent-hover: #059669;
  --background-light: #ffffff; /* Blanco Puro */
  --background-alt: #f2f0e9; /* Beige light / Nuevo porcelana */
  --text-main: #000729; /* Azul Medianoche muy oscuro */
  --text-muted: #64748b;
  --footer-bg: #000729; /* Azul Medianoche muy oscuro */
}

/* Clases Útiles Adicionales */
.font-montserrat {
  font-family: "Montserrat", sans-serif;
}
.font-sans {
  font-family: "Open Sans", sans-serif;
}

/* Utilidad global para efecto ruido */
.noise-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
  filter: url(#noiseFilter);
}

/* Utilidad para fondo de cuadrícula técnica (Digital Instrument) */
.bg-grid {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(0, 46, 130, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 46, 130, 0.05) 1px, transparent 1px);
}

/* Extracted Styles */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.glass-nav {
  background: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 46, 130, 0.05);
}

.gradient-text {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(to right, var(--primary), var(--accent));
}

.bg-grid {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(0, 46, 130, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 46, 130, 0.03) 1px, transparent 1px);
}

/* [DEPRECATED] brand-logo-container / brand-logo-img — reemplazadas por el nuevo navbar unificado */

/* Clients Section Placeholders */
.client-logo-placeholder {
  height: 60px;
  background-color: #e2e8f0;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.client-logo-placeholder:hover {
  background-color: #cbd5e1;
  color: #64748b;
}

/* Marquee / Auto-Scroll Animation */
.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 2rem;
  mask-image: linear-gradient(
    to right,
    hsl(0 0% 0% / 0),
    hsl(0 0% 0% / 1) 10%,
    hsl(0 0% 0% / 1) 90%,
    hsl(0 0% 0% / 0)
  );
  -webkit-mask-image: linear-gradient(
    to right,
    hsl(0 0% 0% / 0),
    hsl(0 0% 0% / 1) 10%,
    hsl(0 0% 0% / 1) 90%,
    hsl(0 0% 0% / 0)
  );
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  min-width: 100%;
  gap: 2rem;
  animation: scroll 10s linear infinite;
}

/* Pause scroll animation on hover */
.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - 2rem));
  }
}

/* Logos Interactivity */
.client-logo {
  height: 6rem; /* Incremented by 200% from 3rem */
  width: auto;
  opacity: 1; /* High fade-out */
  filter: grayscale(0%);
  transition: all 0.4s ease;
  object-fit: contain;
}

.client-logo:hover {
  opacity: 1; /* Full visibility */
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #0d5f4a;
  /* User requested color */
  color: white;
  padding: 10px 16px;
  /* Smaller padding */
  border-radius: 9999px;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.05);
  background-color: #094a3a;
  /* Darker shade for hover */
}

.whatsapp-icon {
  width: 24px;
  /* Smaller icon */
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.whatsapp-text {
  font-weight: 700;
  font-size: 14px;
  /* Smaller text */
  letter-spacing: 0.025em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ==================== NAVBAR (Transparente sobre Hero) ==================== */

/**
 * .navbar-link — Texto blanco en reposo, accent-cyan en hover/activo.
 * Underline deslizante con ::after en accent-cyan (#00b4d8).
 * Técnica: scaleX 0→1 centrado, separado del flujo del texto con bottom: -2px.
 */
.navbar-link {
  position: relative;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  overflow: visible; /* garantiza que ::after no se corte */
  transition: color 0.25s ease;
}

/* Hover: texto cambia a accent-cyan */
.navbar-link:hover {
  color: #00b4d8 !important;
}

/* Activo: texto en accent-cyan permanente */
.navbar-link--active {
  color: #00b4d8 !important;
}

.navbar-link::after {
  content: "";
  display: block;
  position: absolute;
  bottom: -2px;
  left: 1rem;
  right: 1rem;
  height: 2.5px;
  background-color: #00b4d8; /* accent-cyan */
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center center;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 10;
}

/* Hover: underline aparece */
.navbar-link:hover::after {
  transform: scaleX(1) !important;
}

/* Estado activo (página actual): underline permanente */
.navbar-link--active::after {
  transform: scaleX(1) !important;
}
/* =========================================================================== */
