/* ═══════════════════════════════════════════
   SHARED NAV + FOOTER — nav.css
   Load on every page via <link rel="stylesheet" href="/nav.css">
   ═══════════════════════════════════════════ */

/* ── Navigation Bar ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 62px;
  background: rgba(5, 13, 8, 0.90);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 999;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
  font-family: 'Outfit', sans-serif;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-seedling {
  font-size: 1.45rem;
  background: linear-gradient(135deg, #2ecc71, #f39c12);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(46, 204, 113, 0.6));
  transition: transform 0.3s;
}

.nav-logo:hover .nav-seedling {
  transform: scale(1.18) rotate(8deg);
}

.nav-brand {
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 10px rgba(46, 204, 113, 0.35);
}

.nav-latin {
  background: linear-gradient(90deg, #2ecc71, #7dffb3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.70);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1px solid transparent;
  transition: all 0.22s;
  letter-spacing: 0.3px;
}

.nav-link:hover {
  color: #fff;
  background: rgba(46, 204, 113, 0.1);
  border-color: rgba(46, 204, 113, 0.2);
}

.nav-link.active {
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.1);
  border-color: rgba(46, 204, 113, 0.3);
}

/* Language toggle inside nav */
.nav-lang-toggle {
  width: 70px;
  height: 42px;
  cursor: pointer;
  perspective: 600px;
  flex-shrink: 0;
}

.nav-lang-toggle .waving-flag {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  transform-origin: left center;
  animation: waveFlag 3s ease-in-out infinite alternate;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.nav-lang-toggle .waving-flag:hover { opacity: 1; }

.nav-lang-toggle .us-flag {
  background-image: url('https://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg');
}

.nav-lang-toggle .mx-flag {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/f/fc/Flag_of_Mexico.svg');
}

@keyframes waveFlag {
  0%   { transform: rotateY(0deg) rotateZ(0deg) translateY(0); }
  50%  { transform: rotateY(14deg) rotateZ(-2deg) translateY(-2px); }
  100% { transform: rotateY(-9deg) rotateZ(3deg) translateY(2px); }
}

/* ── Site Footer ── */
.site-footer {
  width: 100%;
  align-self: stretch;
  background: rgba(3, 8, 5, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  margin-top: auto;
}

.footer-pages {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-pages a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: color 0.25s;
}

.footer-pages a:hover { color: #2ecc71; }

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.55);
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.28s;
}

.footer-social a:hover {
  background: linear-gradient(135deg, #1a7a4a, #e8820c);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
}

.footer-address {
  font-size: 0.80rem;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 1rem;
}

.footer-address i {
  color: #f39c12;
  margin-right: 4px;
}

.footer-credit {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.22);
}

.footer-credit strong {
  color: rgba(46, 204, 113, 0.6);
  font-weight: 700;
}

/* ── Responsive nav ── */
@media (max-width: 640px) {
  .site-nav { padding: 0 1rem; gap: 0.4rem; }
  .nav-brand { font-size: 0.76rem; letter-spacing: 1px; }
  .nav-link  { font-size: 0.78rem; padding: 0.35rem 0.7rem; }
  .nav-lang-toggle { width: 54px; height: 34px; }
}

@media (max-width: 380px) {
  .nav-brand { display: none; }
}
