/* ══════════════════════════════════════════════════
   CLOROFILA — Sistema de diseño compartido
   Paleta: verde profundo + crema + terracota acento
   Tipografía: Cormorant Garamond + Jost
   ══════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────── */
:root {
  --verde:     #243324;
  --verde-med: #3d6640;
  --verde-luz: #dce8dc;
  --crema:     #f4efe6;
  --crema-osc: #e4d9ca;
  --acento:    #bf5220;
  --texto:     #1a271a;
  --texto-med: #4a5848;
  --blanco:    #ffffff;
  --ff-d: 'Cormorant Garamond', Georgia, serif;
  --ff-b: 'Jost', system-ui, sans-serif;
  --r: 4px;
  --shadow-sm: 0 1px 8px rgba(36,51,36,.08);
  --shadow:    0 4px 24px rgba(36,51,36,.12);
  --max: 1160px;
}

/* ── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-b);
  background: var(--crema);
  color: var(--texto);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── TIPOGRAFÍA ─────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--ff-d); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(3rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
p  { font-size: clamp(.88rem, 1.4vw, 1rem); color: var(--texto-med); }
em { font-style: italic; color: var(--acento); }

.kicker {
  font-family: var(--ff-b);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--acento);
  display: block;
  margin-bottom: .75rem;
}

/* ── LAYOUT ─────────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.5rem,5vw,3.5rem); }
section { padding: clamp(4.5rem,9vw,8rem) clamp(1.5rem,5vw,3.5rem); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-head p { margin-top: .75rem; }

/* ── BOTONES ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--ff-b); font-weight: 500; font-size: .88rem;
  border-radius: 100px;
  padding: .75rem 1.75rem;
  cursor: pointer; border: none;
  transition: transform .15s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid  { background: var(--verde);  color: var(--blanco); }
.btn-solid:hover { background: var(--verde-med); }
.btn-ghost  { background: transparent; color: var(--verde); border: 1.5px solid var(--verde); }
.btn-ghost:hover { background: var(--verde-luz); }
.btn-ghost-inv { background: transparent; color: var(--blanco); border: 1.5px solid rgba(255,255,255,.5); }
.btn-ghost-inv:hover { background: rgba(255,255,255,.1); border-color: var(--blanco); }

/* ── IMÁGENES B&W ──────────────────────────────── */
.img-bw { filter: grayscale(1) contrast(1.05); transition: filter .4s; }
.img-bw:hover { filter: grayscale(.3) contrast(1); }

/* ── TOP BAR ────────────────────────────────────── */
.topbar {
  background: var(--verde);
  color: rgba(255,255,255,.85);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-align: center;
  padding: .55rem 1rem;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  flex-wrap: wrap;
}
.topbar-dot { color: var(--acento); }
.topbar a { color: var(--blanco); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ── NAV ─────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,239,230,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--crema-osc);
  height: 62px;
  display: flex; align-items: center;
  padding: 0 clamp(1.5rem,5vw,3.5rem);
  gap: 2rem;
}
.nav-logo {
  font-family: var(--ff-d);
  font-size: 1.4rem; font-weight: 600;
  color: var(--verde);
  letter-spacing: .01em;
  flex-shrink: 0;
  line-height: 1;
}
.nav-logo span { display: block; font-size: .6rem; font-family: var(--ff-b); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--texto-med); margin-top: .1rem; }
.nav-links { display: flex; gap: 1.75rem; align-items: center; flex: 1; justify-content: center; }
.nav-links a { font-size: .78rem; font-weight: 500; letter-spacing: .04em; color: var(--texto-med); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--verde); }
.nav-cta { flex-shrink: 0; }
.nav-ham { display: none; background: none; border: none; cursor: pointer; color: var(--verde); font-size: 1.3rem; margin-left: auto; }
.nav-mobile {
  display: none;
  position: fixed; top: 62px; left: 0; right: 0; z-index: 99;
  background: var(--crema);
  border-bottom: 1px solid var(--crema-osc);
  padding: 1.5rem 2rem;
  flex-direction: column; gap: 1.2rem;
  box-shadow: var(--shadow);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: .9rem; font-weight: 500; color: var(--texto); padding: .25rem 0; border-bottom: 1px solid var(--crema-osc); }

/* ── FOOTER ──────────────────────────────────────── */
footer {
  background: var(--verde);
  padding: clamp(2.5rem,5vw,4rem) clamp(1.5rem,5vw,3.5rem);
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand .f-logo { font-family: var(--ff-d); font-size: 1.6rem; color: var(--blanco); }
.footer-brand .f-sub  { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-top: .2rem; }
.footer-brand p { margin-top: 1rem; font-size: .82rem; color: rgba(255,255,255,.55); line-height: 1.7; }
.footer-col h5 { font-family: var(--ff-b); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: .9rem; }
.footer-col a  { display: block; font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: .5rem; transition: color .2s; }
.footer-col a:hover { color: var(--blanco); }
.footer-bottom {
  max-width: var(--max); margin: 2.5rem auto 0;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem;
}
.footer-bottom span { font-size: .72rem; color: rgba(255,255,255,.35); }

/* ── STICKY MOBILE CTA ───────────────────────────── */
.sticky-mobile {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--verde); color: var(--blanco);
  text-align: center; padding: 1rem 1.5rem;
  font-family: var(--ff-b); font-weight: 500; font-size: .9rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,.18);
}

/* ── WHATSAPP FAB ────────────────────────────────── */
.wa-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 89;
  background: #25d366; color: white;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: transform .2s, box-shadow .2s;
}
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(0,0,0,.25); }

/* ── SCROLL REVEAL ───────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-ham { display: block; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .sticky-mobile { display: block; }
  .wa-fab { bottom: 4.5rem; }
}
