/* ===== LONGEVITY INNOVATION — Custom CSS ===== */
/* Complementa Tailwind CSS. Variables y animaciones únicamente. */

:root {
  --color-navy:   #0D1B2A;
  --color-primary: #1565C0;
  --color-accent:  #00B4D8;
  --color-light:   #F5F7FA;
  --color-green:   #1B4332;
}

html { scroll-behavior: smooth; }

/* Guard global contra overflow horizontal en móvil */
html, body { overflow-x: hidden; max-width: 100%; }

/* ===== NAVBAR ===== */
#navbar {
  transition: transform 0.3s ease, background-color 0.3s ease;
}
#navbar.scrolled-up {
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
#navbar.hidden-nav {
  transform: translateY(-100%);
}

/* ===== HERO water glow particles ===== */
.water-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  animation: pulse-glow 6s ease-in-out infinite;
}
.water-glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,180,216,0.18) 0%, transparent 70%);
  top: -10%; right: -5%;
  animation-delay: 0s;
}
.water-glow-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(21,101,192,0.25) 0%, transparent 70%);
  bottom: 5%; left: 20%;
  animation-delay: 3s;
}
@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%       { transform: scale(1.12); opacity: 1; }
}

/* ===== STATS counter ===== */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,180,216,0.18);
}

/* ===== SECTOR ICON CARDS ===== */
.sector-card {
  transition: all 0.25s ease;
}
.sector-card:hover {
  background-color: #0D1B2A;
  color: #ffffff;
}
.sector-card:hover .sector-icon {
  color: #00B4D8;
}

/* ===== WHY US ITEMS ===== */
.why-item {
  border-left: 3px solid transparent;
  transition: border-color 0.25s ease, padding-left 0.25s ease;
}
.why-item:hover {
  border-left-color: #00B4D8;
  padding-left: 1rem;
}

/* ===== STEP PROCESS (tecnologia.html) ===== */
.process-step {
  position: relative;
}
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 28px;
  top: 60px;
  width: 3px;
  height: calc(100% - 10px);
  background: linear-gradient(to bottom, #00B4D8, #1565C0);
  border-radius: 2px;
}

/* ===== CONTACT FORM ===== */
.form-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: #00B4D8;
  box-shadow: 0 0 0 3px rgba(0,180,216,0.15);
}

/* ===== HONEYPOT (hidden from humans, visible to bots) ===== */
.hp-field {
  opacity: 0;
  position: absolute;
  top: 0; left: 0;
  height: 0; width: 0;
  z-index: -1;
}

/* ===== FOOTER ===== */
.footer-link {
  transition: color 0.2s ease;
}
.footer-link:hover { color: #00B4D8; }

/* ===== BADGE CERT ===== */
.cert-badge {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cert-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,180,216,0.2);
}

/* ===== RESPONSIVE HELPERS ===== */
@media (max-width: 640px) {
  .hero-title { font-size: 2.5rem; line-height: 1.15; }
}

/* ===== CIRCULAR WATER ANIMATION (productos.html) ===== */
.spin-slow {
  animation: spin 20s linear infinite;
}
.spin-reverse {
  animation: spin 15s linear infinite reverse;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ===== AOS OVERRIDE ===== */
[data-aos] { will-change: transform, opacity; }

/* ===== SYSTEMS CAROUSEL ===== */
.carousel-track {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-dot { cursor: pointer; }
.carousel-prev:focus-visible,
.carousel-next:focus-visible,
.carousel-dot:focus-visible {
  outline: 2px solid #00B4D8;
  outline-offset: 2px;
}
