/* ============================================
   CHILENUT — Hoja de estilos compartida
   Paleta: verde lima + verde bosque + gris claro
   Estética: natural / sostenible / fresca
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Caveat:wght@500;600;700&display=swap');

:root {
  --bg:          #e8eae6;   /* gris claro fondo      */
  --bg-2:        #f2f3f0;   /* gris más claro        */
  --paper:       #ffffff;
  --lime:        #aee04a;   /* verde lima brillante  */
  --lime-d:      #8cc63f;   /* lima oscuro           */
  --forest:      #1e3320;   /* verde bosque oscuro   */
  --forest-2:    #2d4a2e;   /* verde bosque medio    */
  --green:       #5a7d3a;   /* verde hoja            */
  --green-soft:  #7a9b5a;
  --ink:         #1e2a1c;
  --muted:       #5c6657;
  --line:        rgba(30,51,32,.12);

  --sans:   'Poppins', sans-serif;
  --script: 'Caveat', cursive;

  --maxw: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- HEADER / NAV ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(232,234,230,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--forest);
  letter-spacing: -.02em;
  line-height: 1;
}
.brand .mark { width: 150px; height: 30px; flex-shrink: 0; }
.brand small { display: block; font-size: .58rem; font-weight: 500; letter-spacing: .14em; color: var(--green); text-transform: uppercase; }

.nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav ul a {
  font-size: .8rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--forest);
  position: relative;
  padding: 6px 0;
  transition: color .25s;
}
.nav ul a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2.5px;
  background: var(--lime-d);
  border-radius: 2px;
  transition: width .3s ease;
}
.nav ul a:hover { color: var(--lime-d); }
.nav ul a:hover::after,
.nav ul a.active::after { width: 100%; }
.nav ul a.active { color: var(--lime-d); }

.nav-cta {
  background: var(--lime);
  color: var(--forest) !important;
  padding: 12px 24px;
  border-radius: 40px;
  text-transform: uppercase;
  font-size: .74rem !important;
  letter-spacing: .06em;
  font-weight: 700;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--forest); color: var(--lime) !important; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(30,51,32,.2); }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.burger span { width: 26px; height: 2.5px; background: var(--forest); border-radius: 2px; transition: .3s; }

/* header transparente sobre hero oscuro */
header.site.on-hero {
  background: transparent;
  border-bottom-color: transparent;
}
header.site.on-hero .brand,
header.site.on-hero .brand small { color: #fff; }
header.site.on-hero .brand small { color: var(--lime); }
header.site.on-hero .nav ul a { color: rgba(255,255,255,.9); }
header.site.on-hero .nav ul a:hover,
header.site.on-hero .nav ul a.active { color: var(--lime); }
header.site.on-hero .nav ul a::after { background: var(--lime); }
header.site.on-hero .brand .mark circle { fill: #fff; }
header.site.on-hero .brand .mark path { fill: var(--forest); }
header.site.on-hero .burger span { background: #fff; }
header.site { transition: background .4s ease, border-color .4s ease; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 44px;
  cursor: pointer;
  border: none;
  transition: transform .25s, background .25s, color .25s, box-shadow .25s;
}
.btn-lime { background: var(--lime); color: var(--forest); }
.btn-lime:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(140,198,63,.4); }
.btn-forest { background: var(--forest); color: #fff; }
.btn-forest:hover { transform: translateY(-3px); background: var(--forest-2); box-shadow: 0 12px 28px rgba(30,51,32,.3); }
.btn-outline { background: transparent; color: var(--forest); border: 2px solid var(--forest); }
.btn-outline:hover { background: var(--forest); color: #fff; transform: translateY(-3px); }
.btn .arrow { font-size: 1.1rem; }

/* ---------- SECTION PRIMITIVES ---------- */
.eyebrow {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--green);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 3px;
  background: var(--lime-d);
  border-radius: 2px;
}
h1,h2,h3,h4 { font-weight: 700; color: var(--forest); letter-spacing: -.02em; line-height: 1.08; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.script { font-family: var(--script); color: var(--green); font-weight: 600; }
.section { padding: 110px 0; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 56ch; }
.tag-pill {
  display: inline-block; background: var(--lime); color: var(--forest);
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 30px;
}

/* page hero (inner pages) */
.page-hero {
  background: var(--forest);
  color: #fff;
  padding: 130px 0 100px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; right: -120px; bottom: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(174,224,74,.18), transparent 70%);
}
.page-hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 5rem); max-width: 18ch; }
.page-hero h1 em { font-family: var(--script); color: var(--lime); font-style: normal; font-weight: 600; }
.page-hero .eyebrow { color: var(--lime); }
.page-hero .eyebrow::before { background: var(--lime); }
.page-hero p { color: rgba(255,255,255,.78); max-width: 56ch; margin-top: 22px; font-size: 1.1rem; }

/* cards */
.card {
  background: var(--paper);
  border-radius: 22px;
  padding: 38px;
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(30,51,32,.12); }

/* ---------- FOOTER ---------- */
footer.site {
  background: var(--forest);
  color: rgba(255,255,255,.8);
  padding: 80px 0 32px;
}
footer.site .cols {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
footer.site h4 { color: var(--lime); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 22px; font-weight: 700; }
footer.site .fbrand { display:flex; align-items:center; gap:12px; font-weight: 800; font-size: 1.5rem; color: #fff; margin-bottom: 18px; }
footer.site .fbrand .mark { width: 200px; height: auto; }
footer.site p, footer.site li { color: rgba(255,255,255,.7); font-size: .92rem; }
footer.site ul { list-style: none; display: flex; flex-direction: column; gap: 13px; }
footer.site ul a:hover { color: var(--lime); }
.socials { display: flex; gap: 12px; margin-top: 8px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: grid; place-items: center;
  transition: background .25s, transform .25s;
}
.socials a:hover { background: var(--lime); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.socials a:hover svg { fill: var(--forest); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; font-size: .8rem; color: rgba(255,255,255,.5);
  flex-wrap: wrap; gap: 12px;
}

/* ---------- REVEAL ANIM ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav ul {
    position: fixed; inset: 80px 0 auto 0;
    background: var(--bg); flex-direction: column; gap: 0;
    padding: 16px 32px 28px; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .35s ease;
  }
  .nav ul.open { transform: translateY(0); }
  .nav ul li { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  header.site.on-hero .nav ul { background: var(--forest); }
  header.site.on-hero .nav ul li { border-bottom-color: rgba(255,255,255,.12); }
  .burger { display: flex; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  footer.site .cols { grid-template-columns: 1fr; }
}
