/* ============================================================
   BIOSFERA — CONSULTORÍA AMBIENTAL
   biosferapy.com — CSS Global (main)
   AranduCAD — Mayo 2026
   ============================================================ */

/* ── VARIABLES ── */
:root {
  --g1:        #2ECC40;
  --g2:        #1A8A2A;
  --g3:        #0D5C1A;
  --g4:        #A8E063;
  --g5:        #E8F5E9;
  --dark:      #060E06;
  --dark2:     #0C1A0C;
  --dark3:     #132213;
  --dark4:     #1A2E1A;
  --text:      #1A2A1A;
  --muted:     #5A7A5A;
  --border:    #D4E8D4;
  --light:     #F4FBF4;
  --white:     #FFFFFF;
  --font-h:    'Playfair Display', serif;
  --font-b:    'DM Sans', sans-serif;
  --nav-h:     76px;
  --max-w:     1200px;
  --pad-x:     60px;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── UTILITIES ── */
.inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--g1);
  margin-bottom: 16px;
}
.tag::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--g1);
  display: inline-block;
  opacity: 0.6;
}
.tag.light { color: var(--g4); }
.tag.light::before { background: var(--g4); }

.green-bar {
  width: 48px;
  height: 3px;
  background: var(--g1);
  margin: 20px 0 32px;
}

/* ── BOTONES ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 2px;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-green {
  background: var(--g1);
  color: var(--white);
  border: 2px solid var(--g1);
}
.btn-green:hover { background: var(--g2); border-color: var(--g2); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline-white:hover { border-color: var(--g1); color: var(--g1); }
.btn-outline-dark {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline-dark:hover { border-color: var(--g1); color: var(--g1); }

/* ── FADE IN ── */
.fade {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.fade.on { opacity: 1; transform: translateY(0); }
.fade-d1 { transition-delay: 0.1s; }
.fade-d2 { transition-delay: 0.2s; }
.fade-d3 { transition-delay: 0.3s; }

/* ============================================================
   NAVBAR
   ============================================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  background: rgba(6,14,6,0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(46,204,64,0.1);
  transition: height 0.3s, border-color 0.3s, background 0.3s;
}
#nav.scrolled {
  height: 62px;
  background: rgba(6,14,6,0.98);
  border-bottom-color: rgba(46,204,64,0.25);
}
.nav-logo img { height: 46px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--g1);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--g1); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  background: var(--g1) !important;
  color: var(--white) !important;
  padding: 9px 22px !important;
  font-weight: 700 !important;
  border-radius: 2px !important;
  letter-spacing: 1px !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--g2) !important; }
.nav-cta::after { display: none !important; }

/* Hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--dark2);
  border-bottom: 1px solid rgba(46,204,64,0.15);
  padding: 20px var(--pad-x);
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--g1); }
.nav-mobile a:last-child {
  border-bottom: none;
  margin-top: 10px;
  text-align: center;
  background: var(--g1);
  color: var(--white) !important;
  padding: 14px;
  border-radius: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: #030A03;
  padding: 60px var(--pad-x) 28px;
  border-top: 1px solid rgba(46,204,64,0.1);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  margin-bottom: 28px;
}
.footer-logo img { height: 50px; width: auto; margin-bottom: 16px; }
.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  line-height: 1.75;
  font-weight: 300;
}
.footer-col h4 {
  font-family: var(--font-b);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--g4);
  margin-bottom: 18px;
}
.footer-col ul li {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  padding: 5px 0;
  font-weight: 300;
}
.footer-col ul li a {
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--g1); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.18); }
.footer-copy a { color: rgba(255,255,255,0.32); transition: color 0.2s; }
.footer-copy a:hover { color: var(--g1); }
.footer-credit { font-size: 11px; color: rgba(46,204,64,0.3); }
.footer-credit a { color: var(--g1); transition: opacity 0.2s; }
.footer-credit a:hover { opacity: 0.75; }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
#wa {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 998;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s;
  animation: wap 2.5s infinite;
}
#wa:hover { transform: scale(1.1); }
#wa svg { width: 26px; height: 26px; fill: white; }
@keyframes wap {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.38); }
  50%      { box-shadow: 0 4px 32px rgba(37,211,102,0.68); }
}

/* ============================================================
   RESPONSIVE (chrome global: nav, footer, secciones)
   ============================================================ */
@media (max-width: 1024px) {
  :root { --pad-x: 40px; }
}

@media (max-width: 768px) {
  :root { --pad-x: 22px; --nav-h: 64px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  #footer { padding: 44px var(--pad-x) 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }

  .section { padding: 72px 0; }
  .sec-header { flex-direction: column; align-items: flex-start; }
}
