:root {
  --carbon: #3b3f45;
  --carbon-dark: #2e3136;
  --green: #5a7f2e;
  --green-dark: #4a6b25;
  --green-light: #b5d18a;
  --green-tint: #f1f5e8;
  --text: #2e3136;
  --muted: #5d636b;
  --white: #ffffff;
  --radius: 6px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); }
.container { width: min(var(--max), 100% - 2rem); margin-inline: auto; }

h1, h2, h3 { font-family: "Barlow Condensed", "Barlow", sans-serif; line-height: 1.05; letter-spacing: .01em; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 700; text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; text-transform: uppercase; color: var(--green); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: .4rem; font-family: "Barlow", sans-serif; }
.eyebrow {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase;
  letter-spacing: .18em; color: var(--green-light); font-size: 1rem; margin-bottom: 1rem;
}

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid #e6e8ea; position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.logo { text-decoration: none; color: var(--carbon); display: inline-flex; flex-direction: column; line-height: 1; }
.logo b { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 2.2rem; letter-spacing: -.01em; }
.logo b span { color: var(--green); }
.logo small { font-size: .62rem; letter-spacing: .08em; color: var(--muted); background: var(--green-tint); padding: .15rem .4rem; margin-top: .15rem; }
.nav ul { display: flex; gap: 1.6rem; list-style: none; align-items: center; }
.nav ul a { text-decoration: none; color: var(--carbon); font-weight: 600; font-size: .98rem; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--green); }
.menu-btn { display: none; background: none; border: 2px solid var(--carbon); border-radius: var(--radius); padding: .35rem .7rem; font: inherit; font-weight: 700; cursor: pointer; color: var(--carbon); }

.logo img { height: 58px; width: auto; }

/* Buttons */
.btn {
  display: inline-block; padding: .85rem 1.6rem; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; font-size: .95rem;
  border: 2px solid transparent; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-light); color: var(--carbon-dark); }
.btn-primary:hover { background: #c6de9f; }
.btn-dark { background: var(--green); color: var(--white); }
.btn-dark:hover { background: var(--green-dark); }
.btn-outline { border-color: var(--green-light); color: var(--white); }
.btn-outline:hover { background: rgba(181,209,138,.15); }
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* Hero */
.hero { background: var(--carbon); color: var(--white); padding: clamp(3rem, 8vw, 6rem) 0; }
.hero h1 em { font-style: normal; color: var(--green-light); display: block; }
.hero p.lead { font-size: 1.25rem; max-width: 640px; margin-top: 1.4rem; color: #e4e6e8; }
.hero.small { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.hero.small h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }

/* Sections */
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-intro { max-width: 680px; color: var(--muted); margin-bottom: 2rem; font-size: 1.1rem; }
.alt { background: var(--green-tint); }
.dark { background: var(--carbon); color: var(--white); }
.dark h2 { color: var(--green-light); }

.grid { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card { background: var(--white); border: 1px solid #dfe6cf; border-radius: var(--radius); padding: 1.6rem; }
.alt .card { background: var(--white); }
.card p { color: var(--muted); }
.card .num {
  width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: var(--white);
  display: grid; place-items: center; font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.2rem; margin-bottom: .9rem;
}
.card.link { text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .15s; }
.card.link:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(46,49,54,.1); }
.card.link .more { color: var(--green); font-weight: 700; margin-top: .8rem; display: inline-block; }

.checks { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem 2rem; }
.checks li { font-weight: 600; font-size: 1.1rem; display: flex; align-items: center; gap: .7rem; }
.checks li::before { content: ""; width: 12px; height: 12px; background: var(--green-light); flex: none; }

.banner { background: var(--green); color: var(--white); text-align: center; padding: 1.1rem 0; font-weight: 600; font-size: 1.15rem; }

/* CTA */
.cta { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.cta h2 { color: var(--carbon); font-size: clamp(2rem, 5vw, 3rem); }
.cta .phone { font-family: "Barlow Condensed", sans-serif; font-size: 2.8rem; font-weight: 700; color: var(--green-dark); text-decoration: none; display: block; line-height: 1.1; }
.cta .email { font-weight: 600; color: var(--carbon); text-decoration: none; }

/* Contact */
.contact-list { list-style: none; display: grid; gap: 1.2rem; }
.contact-list strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--green); }
.contact-list a { font-size: 1.3rem; font-weight: 600; color: var(--carbon); text-decoration: none; }
form { display: grid; gap: 1rem; }
label { font-weight: 600; font-size: .95rem; display: grid; gap: .3rem; }
input, select, textarea {
  font: inherit; padding: .75rem .9rem; border: 1.5px solid #c8ccd0; border-radius: var(--radius); width: 100%; background: var(--white); color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--green-light); border-color: var(--green); }
textarea { min-height: 130px; resize: vertical; }
.hint { font-size: .85rem; color: var(--muted); }

.note { background: var(--carbon); color: #d3d6d9; font-size: .92rem; padding: 1.2rem 0; }
.note strong { color: var(--white); }

/* Footer */
footer { background: var(--carbon-dark); color: #c3c7cb; padding: 2.5rem 0 1.5rem; font-size: .95rem; }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 1.8rem; }
footer h4 { color: var(--green-light); font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .6rem; font-size: 1.05rem; }
footer a { color: #e4e6e8; text-decoration: none; display: block; padding: .15rem 0; }
footer a:hover { color: var(--green-light); }
footer .legal { border-top: 1px solid #44484e; padding-top: 1rem; font-size: .85rem; color: #98a0a8; }

/* WhatsApp floating */
.wa { position: fixed; right: 1rem; bottom: 1rem; background: #25d366; color: #fff; font-weight: 700; padding: .8rem 1.1rem; border-radius: 999px; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 60; }
.wa:hover { background: #1fb957; }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav ul { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 1rem; gap: 1rem; border-bottom: 1px solid #e6e8ea; align-items: flex-start; }
  .nav ul.open { display: flex; }
  .cta { grid-template-columns: 1fr; }
}

/* ===== Capa de diseño: fondos, formas del logo y detalles ===== */
:root {
  --pattern: repeating-linear-gradient(45deg, rgba(255,255,255,.028) 0 2px, transparent 2px 16px);
  --shadow: 0 10px 30px rgba(46,49,54,.08);
}

/* Cabecera */
.site-header {
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 3px solid var(--green-light);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(46,49,54,.12); }

/* Hero: degradado + textura + barras verdes como las del logo */
.hero {
  position: relative;
  overflow: hidden;
  background:
    var(--pattern),
    radial-gradient(900px 400px at 85% 10%, rgba(90,127,46,.35), transparent 60%),
    linear-gradient(135deg, #2b2e33 0%, #3b3f45 55%, #454a51 100%);
  padding-bottom: clamp(4.5rem, 10vw, 7.5rem);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - clamp(28px, 5vw, 64px)), 0 100%);
}
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; }
.hero::before {
  top: 0; right: 0; width: min(42vw, 520px); height: clamp(28px, 4vw, 48px);
  background: rgba(129,157,107,.55);
}
.hero::after {
  top: clamp(28px, 4vw, 48px); right: 0; width: clamp(14px, 1.6vw, 22px); height: min(46%, 220px);
  background: rgba(194,211,157,.35);
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow::before { content: ""; display: inline-block; width: 38px; height: 4px; background: var(--green-light); vertical-align: middle; margin-right: .8rem; }

/* Títulos de sección con la barra del logo */
h2::after { content: ""; display: block; width: 56px; height: 5px; background: var(--green-light); margin-top: .55rem; }
.dark h2::after { background: var(--green); }

/* Secciones con fondo */
.alt {
  background:
    radial-gradient(circle, rgba(90,127,46,.16) 1.2px, transparent 1.6px) 0 0 / 24px 24px,
    linear-gradient(180deg, #f4f8ec, #eaf1db);
}
.dark {
  position: relative;
  overflow: hidden;
  background: var(--pattern), linear-gradient(135deg, #2b2e33, #3b3f45);
}
.dark::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: min(36vw, 420px); height: 14px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
}
.dark .container { position: relative; z-index: 1; }
.checks li::before { background: var(--green-light); border-radius: 2px; box-shadow: 0 0 0 4px rgba(181,209,138,.18); }

/* Sección de llamada a la acción */
section:has(.cta) {
  background: linear-gradient(180deg, #fff 0%, var(--green-tint) 100%);
  border-top: 1px solid #e3ead3;
}

/* Tarjetas */
.card {
  position: relative;
  border: 1px solid #dfe6cf;
  border-top: 4px solid var(--green);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(46,49,54,.14); }
.card .num { box-shadow: 0 0 0 5px rgba(90,127,46,.15); }

/* Banda verde */
.banner {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.07) 0 2px, transparent 2px 14px),
    linear-gradient(90deg, var(--green-dark), var(--green), var(--green-dark));
  letter-spacing: .02em;
}

/* Botones */
.btn-primary { box-shadow: 0 6px 18px rgba(181,209,138,.35); }
.btn-dark { box-shadow: 0 6px 18px rgba(90,127,46,.3); }

/* Formulario */
form {
  background: #fff; border: 1px solid #dfe6cf; border-top: 4px solid var(--green);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow);
}

/* Pie */
footer { border-top: 6px solid var(--green); background: var(--pattern), var(--carbon-dark); }

/* Animaciones de aparición */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.card.reveal.in { transition: opacity .6s ease, transform .2s, box-shadow .2s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Botón de la cabecera: texto blanco */
.nav ul a.btn-dark { color: #fff; }
.nav ul a.btn-dark:hover { color: #fff; }
@media (max-width: 760px) { .logo img { height: 48px; } }
