:root {
  --lime: #8CC63F;
  --lime-dark: #6FA82C;
  --olive: #3F5B1F;
  --olive-dark: #2E4417;
  --text: #1B1E18;
  --muted: #5B5F56;
  --bg: #FFFFFF;
  --bg-soft: #F6F8F2;
  --border: #E7E9E2;
  --placeholder-bg: #EDEDE7;
  --placeholder-text: #8A8F86;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 .6em;
}

p { margin: 0 0 1em; color: var(--muted); }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.btn-primary {
  background: var(--lime);
  color: var(--text);
}
.btn-primary:hover { background: var(--olive); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--olive);
  color: var(--olive);
}
.btn-outline:hover { background: var(--olive); color: #fff; }

.btn-lg { padding: 18px 38px; font-size: 1.05rem; }

.btn-nav { padding: 10px 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark { display: flex; }
.logo-img { max-height: 36px; }

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .3px;
  line-height: 1.2;
}
.logo-text small {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: .68rem;
  letter-spacing: .4px;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 600;
  font-size: .95rem;
}
.main-nav a:not(.btn):hover { color: var(--olive); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Media frames (with placeholder fallback) ---------- */
.media-frame {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--placeholder-bg);
}
.media-frame--card { aspect-ratio: 12 / 5; }
.media-frame--tall { aspect-ratio: 4 / 5; }

.media-frame--hero-bg {
  position: absolute;
  inset: 0;
  border-radius: 0;
  aspect-ratio: auto;
  z-index: 0;
}

.media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 1rem;
  color: var(--placeholder-text);
  font-size: .8rem;
  line-height: 1.4;
}
.media-placeholder code {
  font-size: .72rem;
  background: rgba(0,0,0,.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame.img-missing .media-img { display: none; }

.hero-slide {
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 96px 0 72px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(27, 30, 24, 1) 0%,
    rgba(27, 30, 24, 1) 45%,
    rgba(27, 30, 24, .6) 72%,
    rgba(27, 30, 24, .25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  margin: 0;
  margin-left: max(24px, calc((100% - 1160px) / 2 + 24px));
  padding-right: 24px;
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  max-width: 22ch;
}

.hero-content .lead {
  color: rgba(255, 255, 255, .88);
  font-size: 1.05rem;
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.btn-outline {
  border-color: #fff;
  color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--olive-dark); border-color: #fff; }

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: .95rem;
  color: #fff;
}
.checklist svg { flex-shrink: 0; }

/* ---------- Services ---------- */
.services { padding: 80px 0; background: var(--bg-soft); }

.services h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  max-width: 30ch;
}

.section-lead {
  font-size: 1.05rem;
  max-width: 56ch;
  margin-bottom: 44px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 18px 24px;
}

.card .media-frame { margin-bottom: 20px; }

.card-icon {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.card p { margin: 0; font-size: .93rem; }

/* ---------- Differentials ---------- */
.differentials { padding: 84px 0; }

.differentials-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}

.differentials-text h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.differentials-text .section-lead {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--olive);
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}

.diff-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.diff-item svg { flex-shrink: 0; margin-top: 2px; }

.diff-title {
  font-weight: 700;
  margin: 0 0 4px;
  font-size: .98rem;
  color: var(--text);
}
.diff-desc { margin: 0; font-size: .87rem; }

.differentials-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ---------- CTA final ---------- */
.cta-final {
  background: var(--olive-dark);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.cta-final h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.cta-final p {
  color: rgba(255,255,255,.85);
  max-width: 48ch;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text);
  color: #D9DBD4;
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer h3, .site-footer h4 {
  color: #fff;
  font-size: 1rem;
}
.site-footer h4 {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .8rem;
  color: #A7AB9E;
}
.site-footer p { color: #B7BAAF; font-size: .92rem; }

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: .92rem;
  color: #B7BAAF;
}

.footer-legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px;
  text-align: center;
  font-size: .8rem;
  color: #8C9084;
}
.footer-legal p { color: inherit; margin: 4px 0; }
.dev-link { color: #A7AB9E; text-decoration: underline; text-underline-offset: 2px; }
.dev-link:hover { color: var(--lime); }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  z-index: 999;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.3));
  transition: transform .15s ease;
}
.whatsapp-float img {
  width: 100%;
  height: 100%;
  display: block;
}
.whatsapp-float:hover { transform: scale(1.06); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .differentials-grid {
    grid-template-columns: 1fr;
  }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero {
    min-height: 520px;
    padding: 84px 0 56px;
  }
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(27, 30, 24, .92) 55%,
      rgba(27, 30, 24, .55) 100%
    );
  }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .btn-nav { margin-top: 14px; justify-content: center; }
  .nav-toggle { display: flex; }

  .diff-grid { grid-template-columns: 1fr; }
  .differentials-media { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
