/* ══════════════════════════════════════════════
  GrowIA – Hoja de estilos compartida
   Importar en todas las páginas:
   ══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@700;900&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── Reset & Variables ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #3d6b3a;
  --green-dark:  #2a4d28;
  --green-light: #5a9955;
  --green-pale:  #e8f0e7;
  --accent:      #4a7c47;
  --text:        #1a1f1a;
  --muted:       #6b7c6a;
  --border:      #dde8dc;
  --white:       #ffffff;
  --off-white:   #f7faf6;
  --dark-bg:     #151a14;
  --radius:      14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 4rem;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 400;
  transition: color .2s;
}
.nav-links a:hover { color: white; }

.nav-cta {
  background: var(--green) !important;
  color: white !important;
  padding: .55rem 1.4rem;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--green-dark) !important; }

/* ── Nav oscura (páginas interiores) ─────────── */
nav.nav-dark {
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
nav.nav-dark .nav-logo { color: var(--green-dark); }
nav.nav-dark .nav-logo-icon { background: var(--green-pale); }
nav.nav-dark .nav-links a { color: var(--muted); }
nav.nav-dark .nav-links a:hover { color: var(--text); }

/* ── Secciones generales ──────────────────────── */
section { padding: 6rem 4rem; }

.section-tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: .7rem;
  line-height: 1.15;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  max-width: 480px;
  line-height: 1.6;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ── Botones ──────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: white; color: var(--green-dark);
  padding: .8rem 1.8rem; border-radius: 50px;
  font-weight: 600; font-size: .95rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }

.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; color: white;
  padding: .8rem 1.8rem; border-radius: 50px;
  font-weight: 500; font-size: .95rem;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.5);
  transition: border-color .2s, background .2s;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.08); }

.btn-green {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--green-dark); color: white;
  padding: .8rem 1.8rem; border-radius: 50px;
  font-weight: 600; font-size: .9rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-green:hover { background: var(--green); transform: translateY(-1px); }

/* ── Check icon (compartido) ──────────────────── */
.check-icon {
  width: 20px; height: 20px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: .7rem; flex-shrink: 0;
}

/* ── Animaciones ──────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── FOOTER ──────────────────────────────────── */
footer {
  background: var(--dark-bg);
  color: rgba(255,255,255,0.6);
  padding: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem; font-weight: 700;
  color: white; line-height: 1.1;
  margin-bottom: .7rem;
}
.footer-brand p {
  font-size: .85rem; line-height: 1.6;
  margin-bottom: 1.5rem; max-width: 280px;
}
.footer-email-form { display: flex; gap: .5rem; }
.footer-email-form input {
  flex: 1; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; color: white;
  padding: .6rem .9rem; font-family: 'Outfit', sans-serif;
  font-size: .85rem; outline: none;
}
.footer-email-form input::placeholder { color: rgba(255,255,255,0.3); }
.footer-subscribe {
  background: var(--green);
  color: white; border: none; border-radius: 8px;
  padding: .6rem 1.1rem; font-weight: 600;
  font-size: .82rem; cursor: pointer;
  display: flex; align-items: center; gap: .3rem;
  transition: background .2s;
}
.footer-subscribe:hover { background: var(--green-light); }

.footer-col h4 {
  color: white; font-weight: 600;
  font-size: .82rem; text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a {
  color: rgba(255,255,255,0.55); text-decoration: none;
  font-size: .85rem; transition: color .2s;
}
.footer-col a:hover { color: white; }

.footer-contact-item {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .85rem; margin-bottom: .6rem;
}
.footer-contact-item span:first-child { font-size: 1rem; margin-top: .1rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem;
}
.footer-socials { display: flex; gap: .75rem; }
.social-btn {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; cursor: pointer;
  transition: background .2s;
  text-decoration: none; color: rgba(255,255,255,0.6);
}
.social-btn:hover { background: var(--green); color: white; }

.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a {
  color: rgba(255,255,255,0.4); text-decoration: none; font-size: .78rem;
  transition: color .2s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.8); }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
  nav { padding: 1rem 2rem; }
  section { padding: 4rem 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Hamburguesa ─────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.4rem;
  z-index: 1001;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
nav.nav-dark .nav-burger span { background: var(--green-dark); }

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  nav { padding: 1rem; position: relative; }
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark, #0d1117);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  nav.nav-dark .nav-links { background: #fff; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links li a {
    display: block;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  nav.nav-dark .nav-links li a { border-bottom-color: rgba(0,0,0,0.07); }
  .nav-links .nav-cta { margin: 0.5rem 1.5rem; display: inline-block; width: auto; }
  section { padding: 3rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  footer { padding: 2.5rem 1.5rem; }
}

/* ── Script scroll reveal (incluir en cada página) ──
   <script>
   const observer = new IntersectionObserver((entries) => {
     entries.forEach(e => {
       if (e.isIntersecting) { e.target.classList.add('visible'); observer.unobserve(e.target); }
     });
   }, { threshold: 0.12 });
   document.querySelectorAll('.reveal').forEach(el => observer.observe(el));
   </script>
──────────────────────────────────────────────── */
