/* The demo Campoalto website: its own light, earthy look, unlike our site, to show a client's brand.
   Only the demo bar at the top uses our colours. Both languages sit in the page; <html lang> picks one. */
html[lang="es"] [data-l="en"], html:not([lang="es"]) [data-l="es"] { display: none !important; }
:root {
  --cream: #faf6ee; --paper: #fffdf8; --ink: #1d2a1f; --muted: #5d6b5f; --green: #1f4d2b; --green-2: #2f6b3c; --leaf: #9bbf7a;
  --wheat: #d9a441; --clay: #b5532c; --line: #e4dccb; --radius: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; margin: 0 0 12px; letter-spacing: -.01em; }
h1 { font-size: clamp(36px, 6.4vw, 60px); }
h2 { font-size: clamp(28px, 4.4vw, 40px); }
h3 { font-size: 19px; }
p { margin: 0 0 14px; }
a { color: var(--green-2); }
:focus-visible { outline: 3px solid var(--wheat); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 30; }
.cw-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* The demo bar: our label, so the site is never mistaken for a real company's. */
.demo-bar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 7px 16px; background: #0A1712; color: #E8F1EC; font-size: 13px; }
.demo-bar p { margin: 0; }
@media (max-width: 700px) { .demo-bar { position: static; } } /* on phones it would cover too much of the screen */
.demo-bar strong { color: #F5C451; margin-right: 4px; }
.demo-bar a { color: #4ADE80; margin-left: 6px; font-weight: 600; }
.demo-switch { display: flex; gap: 8px; }
.demo-switch [role="group"] { display: inline-flex; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; overflow: hidden; }
.demo-switch button { font: 600 12px system-ui, sans-serif; letter-spacing: .05em; color: #9DB5A8; background: none; border: 0; padding: 4px 10px; min-height: 28px; cursor: pointer; }
.demo-switch button[aria-pressed="true"] { background: rgba(74, 222, 128, .22); color: #fff; }

.cw-header { background: var(--cream); border-bottom: 1px solid var(--line); }
.cw-header .cw-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 10px; padding-bottom: 10px; }
.cw-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.cw-logo svg { width: 40px; height: 40px; }
.cw-logo b { display: block; font: 700 21px/1 var(--serif); }
.cw-logo small { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.cw-header ul { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; list-style: none; margin: 0; padding: 0; }
.cw-header nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.cw-header nav a:hover { color: var(--green-2); }
.cw-header .cw-btn { padding: 8px 14px; color: var(--paper); }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--wheat); color: var(--ink); font-size: 12px; }

.cw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 700 15px/1.2 system-ui, sans-serif; color: var(--paper); background: var(--green); border: 2px solid var(--green); border-radius: 999px; padding: 10px 18px; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.cw-btn:hover { background: var(--green-2); border-color: var(--green-2); }
.cw-btn.big { font-size: 17px; padding: 14px 24px; }
.cw-btn.ghost { background: transparent; color: var(--green); }
.cw-btn.ghost:hover { background: rgba(31, 77, 43, .07); }
.cw-btn.added { background: var(--wheat); border-color: var(--wheat); color: var(--ink); }

.cw-hero { padding: 48px 0 32px; }
.cw-hero .cw-wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cw-hero .cw-wrap { grid-template-columns: 1.1fr 1fr; } .cw-hero { padding: 72px 0 48px; } }
.kicker { font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); }
.cw-lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.cw-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cw-hero-art { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 30px rgba(31, 77, 43, .18)); }

.cw-trust { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 8px; margin-bottom: 8px; }
.cw-trust li { display: grid; padding: 14px 18px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.cw-trust b { font: 700 26px var(--serif); color: var(--green); }

.cw-section { padding: 56px 0; }
.cw-section.alt { background: #f2ecdf; }
.cw-sub { color: var(--muted); max-width: 680px; }

.cw-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 20px; }
.cw-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.cw-chips button { font: 600 14px system-ui, sans-serif; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.cw-chips button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--paper); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid #cfc5b0; border-radius: 10px; padding: 10px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--green-2); outline: 2px solid rgba(47, 107, 60, .2); }
.cw-search input { width: min(280px, 100%); border-radius: 999px; }

.cw-products { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (max-width: 560px) {
  .cw-products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cw-card { padding: 12px; }
  .cw-card h3 { font-size: 15px; }
  .cw-icon { width: 36px; height: 36px; margin-bottom: 8px; }
  .cw-card .cw-btn { font-size: 13px; padding: 8px 10px; }
  .cw-price { font-size: 17px; }
}
.cw-card { display: flex; flex-direction: column; padding: 18px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.cw-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px -16px rgba(31, 77, 43, .45); }
.cw-card h3 { font-size: 18px; flex: 1; }
.cw-card .cw-btn { margin-top: 6px; width: 100%; }
.cw-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; }
.cw-icon svg { width: 24px; height: 24px; }
.cat-fert { background: #f3e5c8; color: #8a5a12; }
.cat-prot { background: #e2eedb; color: var(--green-2); }
.cat-seed { background: #eef3dc; color: #5d7a22; }
.cat-irr { background: #dcebf1; color: #1f5f7a; }
.cat-pack { background: #f1e1d8; color: var(--clay); }
.cat-safe { background: #e7e3f1; color: #4b3f8a; }
.cw-cat { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.cw-avail { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.cw-avail.good { color: var(--green-2); }
.cw-avail.mid { color: #a16207; }
.cw-price { font: 700 20px var(--serif); margin-bottom: 10px; }
.cw-price span { font: 400 13px system-ui, sans-serif; color: var(--muted); }
.cw-empty { color: var(--muted); list-style: none; padding: 16px 0; }

.cw-quote { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .cw-quote { grid-template-columns: 1fr 1fr; gap: 48px; } }
.cw-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.cw-list li { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-size: 15px; }
.cw-list li.cw-empty { display: block; background: none; border: 1px dashed #cfc5b0; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper button, .remove { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--cream); font-size: 18px; line-height: 1; cursor: pointer; color: var(--ink); }
.stepper b { min-width: 22px; text-align: center; }
.line { font-weight: 700; white-space: nowrap; }
.remove { border: 0; background: none; color: var(--muted); }
@media (max-width: 520px) { .cw-list li { grid-template-columns: 1fr auto; } .cw-list .line { grid-column: 1; } }
.cw-total { margin-top: 12px; color: var(--muted); }
.cw-total b { color: var(--ink); font-size: 18px; }
.cw-form { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; padding: 22px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 18px 40px -28px rgba(31, 77, 43, .5); }
.cw-form label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.cw-form .wide, .cw-form .cw-error, .cw-form button, .cw-form .cw-fine, .cw-thanks { grid-column: 1 / -1; }
@media (max-width: 560px) { .cw-form { grid-template-columns: 1fr; } }
.cw-error { color: #b42318; font-weight: 600; margin: 0; }
.cw-fine { font-size: 13px; color: var(--muted); margin: 0; }
.cw-thanks h3 { font-size: 24px; color: var(--green); }

.cw-heat { margin-top: 18px; overflow-x: auto; }
.cw-heat table { border-collapse: separate; border-spacing: 3px; width: 100%; min-width: 520px; font-size: 13px; }
.cw-heat th { font-weight: 600; color: var(--muted); padding: 2px 4px; }
.cw-heat thead th { text-transform: capitalize; }
.cw-heat tbody th { width: 1%; text-align: left; color: var(--ink); white-space: nowrap; padding-right: 10px; }
.cw-heat td, .cw-heat th { position: relative; } /* keeps the hidden labels inside the scroll box */
.cw-heat td { height: 30px; border-radius: 6px; }
.cw-legend { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.cw-legend i { width: 120px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, rgb(238, 243, 230), rgb(31, 77, 43)); }

.cw-about { display: grid; gap: 28px; }
@media (min-width: 900px) { .cw-about { grid-template-columns: 1.2fr 1fr; gap: 48px; } }
.cw-values { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cw-values li { display: grid; gap: 2px; padding: 14px 16px; border-left: 4px solid var(--wheat); background: var(--paper); border-radius: 0 12px 12px 0; color: var(--muted); }
.cw-values b { color: var(--ink); }

.cw-sites { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 20px; }
.cw-sites article { padding: 20px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.cw-sites p { margin: 0 0 6px; color: var(--muted); }

.cw-footer { background: var(--green); color: #e2eedb; padding: 28px 0; font-size: 14px; }
.cw-footer .cw-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.cw-footer p { margin: 0; }
.cw-footer a { color: var(--wheat); }

.cw-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 40; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--cream); font-size: 15px; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
@media (prefers-reduced-motion: no-preference) { .cw-toast:not([hidden]) { animation: toast-in .3s ease-out; } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }
@media (prefers-reduced-motion: reduce) { .cw-card, .cw-btn { transition: none; } }
