:root {
  --primary: #00a03e;           /* Verde principal ClickAgro */
  --primary-soft: rgba(0, 160, 62, 0.08);
  --text-main: #1f2933;
  --text-muted: #6b7280;
  --bg-body: #f5f7fa;
  --bg-hero: #0b1720;
  --border-soft: #e5e7eb;
  --card-bg: #ffffff;
  --max-width: 1120px;
  --radius: 10px;
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  --transition-fast: 0.2s ease-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--bg-body);
  scroll-behavior: smooth;
}

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* HEADER / NAV */
header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 23, 32, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.nav-logo img {
  height: 32px;
}

.nav-logo span {
  font-size: 18px;
  font-weight: 600;
  color: #e5e7eb;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: #cbd5f5;
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 6px 16px rgba(0, 160, 62, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.nav-cta:hover {
  transform: translateY(-1px);
  background: #009338;
  box-shadow: 0 10px 22px rgba(0, 160, 62, 0.55);
}

/* NAV MOBILE */
.nav-toggle {
  display: none;
  cursor: pointer;
  color: #e5e7eb;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #e5e7eb;
  margin: 4px 0;
  border-radius: 999px;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    inset: 72px 0 auto 0;
    background: #020617;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-fast);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
  }

  .nav-toggle {
    display: block;
  }
}

/* HERO */
.hero {
  color: #e5e7eb;
  padding: 64px 0 72px;
}

.hero-agro {
  background: radial-gradient(circle at top left, rgba(0, 160, 62, 0.18), transparent 55%),
              radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.18), transparent 55%),
              var(--bg-hero);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: center;
}

.hero-kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: #cbd5f5;
  margin-bottom: 24px;
  max-width: 520px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.badge {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.7);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 160, 62, 0.45);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn-primary:hover {
  background: #009338;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 160, 62, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: transparent;
  color: #e5e7eb;
  font-size: 13px;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: #e5e7eb;
}

.hero-meta {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 10px;
}

/* HERO VISUAL */
.hero-visual {
  position: relative;
  padding: 18px;
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(0, 160, 62, 0.4), transparent 60%),
              radial-gradient(circle at bottom, rgba(248, 250, 252, 0.08), transparent 60%),
              #020617;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-visual-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 11px;
  color: #9ca3af;
}

.hero-visual-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 10px;
}

.hero-visual-body {
  border-radius: 12px;
  background: radial-gradient(circle at center, #0b1220, #020617);
  border: 1px solid rgba(15, 23, 42, 0.9);
  padding: 16px;
  color: #e5e7eb;
}

.hero-grid-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  font-size: 11px;
}

.mini-card {
  padding: 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.mini-card-title {
  font-size: 11px;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mini-pill {
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: #6ee7b7;
}

.mini-metric {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.mini-caption {
  font-size: 10px;
  color: #9ca3af;
}

.hero-visual-footer {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #9ca3af;
}

.signal {
  display: flex;
  gap: 3px;
  align-items: flex-end;
}

.signal span {
  display: block;
  width: 2px;
  border-radius: 999px;
  background: #22c55e;
}

.signal span:nth-child(1) { height: 6px; opacity: 0.6; }
signal span:nth-child(2) { height: 9px; opacity: 0.8; }
.signal span:nth-child(3) { height: 13px; }

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* SECCIONES GENERALES */
section {
  padding: 60px 0;
}

.section-header {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 620px;
}

.section-kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-title {
  font-size: 24px;
  font-weight: 600;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* SOLUCIONES */
.solutions {
  background: #ffffff;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
  border-color: rgba(0, 160, 62, 0.4);
}

.card-label {
  font-size: 11px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
}

.card-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #064e3b;
}

@media (max-width: 960px) {
  .solutions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .solutions-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* CÓMO FUNCIONA */
.how {
  background: #f9fafb;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step {
  padding: 18px 18px 20px;
  border-radius: var(--radius);
  border: 1px dashed #d1d5db;
  background: #ffffff;
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* TECNOLOGÍA / BENEFICIOS / PROCESOS */
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

.list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.list-item {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.list-item span.bullet {
  margin-top: 4px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  flex-shrink: 0;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  color: var(--text-main);
}

.h3-small {
  font-size: 15px;
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* CONTACTO */
.contact {
  background: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: flex-start;
}

.contact-panel {
  background: #020617;
  color: #e5e7eb;
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top right, rgba(0, 160, 62, 0.25), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.contact-panel-inner {
  position: relative;
  z-index: 1;
}

.contact-panel h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.contact-panel p {
  font-size: 13px;
  color: #cbd5f5;
  margin-bottom: 16px;
  max-width: 420px;
  line-height: 1.6;
}

.contact-meta {
  font-size: 12px;
  color: #94a3b8;
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.contact-meta strong {
  color: #e5e7eb;
  font-weight: 500;
}

.contact-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.contact-panel-actions a {
  font-size: 13px;
}

.contact-form-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-group {
  margin-bottom: 12px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--text-main);
}

.input,
.textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 9px 10px;
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  background: #f9fafb;
}

.input:focus,
.textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(0, 160, 62, 0.25);
  background: #ffffff;
}

.textarea {
  min-height: 90px;
  resize: vertical;
}

.small-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.form-footer span {
  font-size: 11px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* FOOTER */
footer {
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 18px 0;
  font-size: 11px;
  color: #9ca3af;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: #6b7280;
}

@media (max-width: 640px) {
  .hero {
    padding-top: 40px;
  }

  .section-header {
    margin-bottom: 24px;
  }
}
