:root {
  --green-900: #12382a;
  --green-700: #1f6849;
  --green-500: #4b9365;
  --leaf: #81a969;
  --earth: #9a6a3b;
  --clay: #c28347;
  --cream: #f7f5ef;
  --paper: #ffffff;
  --ink: #17231d;
  --muted: #64726b;
  --line: #dce4dc;
  --shadow: 0 22px 70px rgba(18, 56, 42, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--paper);
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--green-900);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(18, 56, 42, 0.1);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}

.brand-logo {
  width: 118px;
  height: 72px;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  font-size: 0.78rem;
  opacity: 0.78;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  font-weight: 800;
}

.site-nav a {
  opacity: 0.9;
}

.site-nav a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--paper);
  isolation: isolate;
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
  overflow: hidden;
  background: var(--green-900);
}

.hero-media::before {
  position: absolute;
  inset: -24px;
  content: "";
  background: url("../assets/imagenes/hero-agricultura-sostenible.webp") center / cover no-repeat;
  filter: blur(18px) brightness(0.72);
  opacity: 0.72;
  transform: scale(1.06);
}

.hero-media img {
  width: 100%;
  height: 100%;
  z-index: 1;
  object-fit: contain;
  object-position: center;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 56, 42, 0.9), rgba(18, 56, 42, 0.42) 52%, rgba(18, 56, 42, 0.14)),
    linear-gradient(0deg, rgba(18, 56, 42, 0.62), transparent 38%);
}

.hero-content {
  width: min(760px, 100%);
  padding: 150px clamp(18px, 6vw, 84px) 82px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0c38b;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 6vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.25;
}

.hero p {
  max-width: 660px;
  font-size: clamp(1rem, 2vw, 1.24rem);
}

.hero-actions,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 13px 20px;
  font-weight: 800;
}

.button-primary {
  color: var(--paper);
  background: var(--green-700);
}

.button-primary:hover {
  background: var(--green-900);
}

.button-secondary {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.1);
}

.facebook-icon-link {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: var(--paper);
  background: #1877f2;
  box-shadow: 0 12px 28px rgba(18, 56, 42, 0.2);
  font-family: Arial, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.facebook-icon-link span {
  transform: translateY(2px);
}

.facebook-icon-link:hover {
  background: #0f62d2;
}

.section {
  padding: clamp(64px, 9vw, 118px) 0;
}

.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.intro-band {
  background: var(--green-900);
  color: var(--paper);
}

.feature-grid,
.product-grid,
.values-grid {
  display: grid;
  gap: 18px;
}

.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.feature-card,
.product-card,
.values-grid article,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.feature-card {
  min-height: 250px;
  padding: 30px;
  color: var(--ink);
}

.feature-card h2 {
  max-width: 100%;
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 2.2vw, 2.15rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.feature-card p {
  margin-bottom: 0;
}

.icon {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--earth);
  font-weight: 800;
}

.split,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: start;
}

.reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.prose {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-visual {
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid rgba(220, 228, 220, 0.9);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.section-visual.wide {
  max-width: 860px;
}

.section-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

#productos .section-visual img {
  display: block;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.prose .section-visual {
  margin-top: 0;
  margin-bottom: 28px;
}

#nosotros {
  padding-bottom: clamp(56px, 7vw, 92px);
}

.about-layout {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.about-copy h2 {
  margin-bottom: 22px;
}

.about-copy p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
}

.about-visual {
  margin-top: 0;
}

.about-visual img {
  aspect-ratio: auto;
  min-height: 0;
}

.advisory .section-visual {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.values-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(24px, 4vw, 42px);
}

.values-grid article,
.product-card {
  padding: 28px;
}

.muted {
  background: var(--cream);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p {
  color: var(--muted);
}

.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card {
  min-height: 100%;
}

.product-card h3 {
  margin-bottom: 12px;
  color: var(--green-900);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.product-card p {
  margin-bottom: 22px;
  color: var(--muted);
}

.product-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.product-list li {
  display: grid;
  gap: 5px;
  border-left: 4px solid var(--leaf);
  border-radius: 6px;
  padding: 13px 14px;
  background: #fbfcfa;
}

.product-list strong {
  color: var(--green-900);
  font-size: 0.98rem;
  line-height: 1.25;
}

.product-list span {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.product-list small {
  color: var(--earth);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-700);
  content: "✓";
  font-weight: 800;
}

.advisory {
  color: var(--paper);
  background: var(--green-900);
}

.advisory .prose {
  color: rgba(255, 255, 255, 0.78);
}

.contact-section {
  background: linear-gradient(180deg, var(--paper), var(--cream));
}

.contact-layout > div > p {
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  color: var(--green-900);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--green-900);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfcfa;
  font: inherit;
}

textarea {
  resize: vertical;
}

.site-footer {
  padding: 28px 0;
  color: var(--paper);
  background: #0e2a20;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner p {
  margin: 0;
  font-weight: 800;
}

.social-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--paper);
  background: #1f8f52;
  box-shadow: 0 14px 34px rgba(18, 56, 42, 0.26);
  font-weight: 800;
}

@media (max-width: 980px) {
  .three,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .reverse,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .about-visual img {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 10px 18px;
  }

  .brand-logo {
    width: 92px;
    height: 58px;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    color: var(--green-900);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 13px 12px;
    font-size: 1.08rem;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    padding: 124px 18px 58px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(18, 56, 42, 0.9), rgba(18, 56, 42, 0.52)),
      linear-gradient(0deg, rgba(18, 56, 42, 0.68), transparent 45%);
  }

  h1 {
    font-size: clamp(2.25rem, 13vw, 3.6rem);
  }

  .three,
  .product-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .about-visual img {
    min-height: 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Enlaces a fichas técnicas de productos */

.technical-link { display:inline-flex; align-items:center; gap:12px; width:fit-content; margin-top:12px; padding:9px 13px; border:1px solid #27714c; border-radius:6px; color:#19583b; background:#edf5ee; font-size:.82rem; font-weight:700; line-height:1.4; text-decoration:none; }
.technical-link:hover { background:#19583b; color:white; }
.technical-link:focus-visible { outline:3px solid #c68732; outline-offset:3px; }
.technical-link.request { background:transparent; border-color:#a8bcae; }
#catalogo-productos { scroll-margin-top: 100px; }
