:root {
  --ink: #16231b;
  --muted: #68746d;
  --line: #dfe7df;
  --surface: #ffffff;
  --ground: #f3f6f1;
  --soft: #e8f0e7;
  --brand: #245b3d;
  --brand-dark: #173d29;
  --danger: #9c352e;
  --warning: #9a681a;
  --success: #2f7048;
  --shadow: 0 24px 70px rgba(31, 67, 44, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(223, 231, 223, 0.85);
  background: rgba(243, 246, 241, 0.91);
  backdrop-filter: blur(18px);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.nav-branding { display: flex; align-items: center; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; white-space: nowrap; }
.partner-credit {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 15px; padding-left: 15px;
  border-left: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 700;
  white-space: nowrap;
}
.partner-logo { display: block; width: auto; height: auto; object-fit: contain; }
.partner-logo-nav { width: 124px; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 13px; color: white; background: var(--brand);
  font-size: 18px; letter-spacing: -0.03em;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.button {
  min-height: 46px; padding: 0 19px; border-radius: 14px; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 750; transition: transform .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--brand); }
.button-primary:hover { background: var(--brand-dark); }
.button-secondary { background: var(--surface); border-color: var(--line); }
.button-ghost { background: transparent; border-color: var(--line); }

.hero { padding: 92px 0 74px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 62px; align-items: center; }
.eyebrow {
  display: inline-flex; padding: 8px 12px; border-radius: 999px;
  background: var(--soft); color: var(--brand-dark); font-size: 14px; font-weight: 800;
}
h1 { margin: 22px 0 20px; font-size: clamp(46px, 6vw, 78px); line-height: .98; letter-spacing: -.055em; }
.hero-copy { max-width: 690px; margin: 0; color: var(--muted); font-size: 20px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.microcopy { margin-top: 14px; color: var(--muted); font-size: 13px; }
.hero-stage {
  position: relative; padding: 24px; border: 1px solid var(--line); border-radius: 32px;
  background: var(--surface); box-shadow: var(--shadow);
}
.hero-stage::before {
  content: ""; position: absolute; inset: -80px -60px auto auto; width: 220px; height: 220px;
  border-radius: 50%; background: rgba(36, 91, 61, .08); filter: blur(10px); pointer-events: none;
}
.phone { position: relative; z-index: 1; width: min(350px, 100%); margin: 0 auto; padding: 12px; border-radius: 40px; background: #142019; }
.phone-screen { min-height: 585px; padding: 21px; border-radius: 30px; background: var(--ground); }
.phone-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.online { color: var(--success); font-size: 12px; font-weight: 750; }
.phone-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
.phone-card { padding: 15px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.phone-card small { display: block; color: var(--muted); }
.phone-card strong { display: block; margin-top: 7px; font-size: 25px; letter-spacing: -.04em; }
.alert-demo { margin-top: 16px; padding: 16px; border-radius: 16px; border-left: 4px solid var(--danger); background: var(--surface); }
.alert-demo p { margin: 7px 0 0; color: var(--muted); line-height: 1.45; }
.quick-action { margin-top: 13px; padding: 14px; border-radius: 16px; background: var(--brand); color: white; text-align: center; font-weight: 750; }

.section { padding: 76px 0; }
.section-soft { background: var(--soft); }
.section-heading { max-width: 760px; margin-bottom: 36px; }
.section-heading h2 { margin: 0 0 14px; font-size: clamp(34px, 4vw, 54px); line-height: 1.04; letter-spacing: -.045em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 27px; border-radius: 23px; border: 1px solid var(--line); background: var(--surface); }
.card-index { color: var(--brand); font-size: 13px; font-weight: 850; }
.card h3 { margin: 17px 0 10px; font-size: 21px; }
.card p { margin: 0; color: var(--muted); line-height: 1.62; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.flow-step { padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.flow-step strong { display: block; margin-bottom: 8px; }
.flow-step span { color: var(--muted); line-height: 1.45; }
.cta { padding: 44px; border-radius: 30px; color: white; background: var(--brand-dark); }
.cta h2 { margin: 0 0 14px; font-size: clamp(34px, 4vw, 50px); line-height: 1.05; letter-spacing: -.04em; }
.cta p { max-width: 720px; margin: 0; color: rgba(255,255,255,.76); line-height: 1.65; }
.footer { padding: 36px 0; color: var(--muted); }

.demo-shell { min-height: 100vh; padding-bottom: 94px; }
.demo-header { padding: 17px 0; border-bottom: 1px solid var(--line); background: var(--surface); }
.demo-title { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.demo-title h1 { margin: 0; font-size: 27px; letter-spacing: -.035em; }
.demo-title p { margin: 4px 0 0; color: var(--muted); }
.demo-main { padding: 25px 0; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.status-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 999px; background: var(--soft); color: var(--brand-dark); font-size: 13px; font-weight: 750; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.metric { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.metric-label { color: var(--muted); font-size: 14px; }
.metric-value { display: block; margin-top: 9px; font-size: 32px; letter-spacing: -.045em; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); gap: 18px; margin-top: 18px; }
.panel { padding: 22px; border: 1px solid var(--line); border-radius: 23px; background: var(--surface); }
.panel + .panel { margin-top: 18px; }
.panel h2 { margin: 0 0 17px; font-size: 20px; }
.alert-list, .event-list, .farm-list { display: grid; gap: 11px; }
.alert-item, .event-item, .farm-item { padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.item-title { font-weight: 750; }
.item-meta { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.severity { font-size: 12px; font-weight: 850; }
.severity-alta { color: var(--danger); }
.severity-media { color: var(--warning); }
.severity-baja { color: var(--success); }
.form-grid { display: grid; gap: 13px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 750; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 47px; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 13px; background: white; color: var(--ink);
}
.field textarea { min-height: 86px; resize: vertical; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.feedback { display: none; padding: 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.feedback.success { display: block; background: #e4f2e8; color: #205b35; }
.feedback.error { display: block; background: #f7e7e5; color: #81261f; }
.empty { padding: 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; }
.bottom-nav {
  position: fixed; left: 50%; bottom: 13px; z-index: 50; transform: translateX(-50%);
  width: min(540px, calc(100% - 22px)); padding: 8px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
  border: 1px solid var(--line); border-radius: 21px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); backdrop-filter: blur(17px);
}
.bottom-nav a { min-height: 54px; display: grid; place-items: center; border-radius: 14px; color: var(--muted); font-size: 12px; font-weight: 750; }
.bottom-nav a.active { color: white; background: var(--brand); }
.skeleton { min-height: 56px; border-radius: 14px; background: linear-gradient(90deg, #edf1ec 25%, #f7f9f6 50%, #edf1ec 75%); background-size: 200% 100%; animation: pulse 1.4s infinite; }
@keyframes pulse { to { background-position: -200% 0; } }

@media (max-width: 860px) {
  .hero-grid, .demo-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 58px; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 22px, 1160px); }
  .nav { min-height: 64px; }
  .nav-actions .button-secondary { display: none; }
  h1 { font-size: 47px; }
  .hero-copy { font-size: 17px; }
  .hero-actions .button { width: 100%; }
  .hero-stage { padding: 13px; }
  .section { padding: 60px 0; }
  .flow { grid-template-columns: 1fr; }
  .cta { padding: 28px; }
  .metric { padding: 15px; }
  .metric-value { font-size: 27px; }
  .demo-title { align-items: flex-start; }
  .demo-title .button { min-height: 40px; padding: 0 13px; }
  .two-cols { grid-template-columns: 1fr; }
}

/* Language selector */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.language-switch button {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.language-switch button.active {
  background: var(--brand);
  color: white;
}
.demo-header-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 720px) {
  .nav-actions { gap: 7px; }
  .nav-solution { display: none; }
  .language-switch button { padding: 0 8px; }
  .demo-header-actions { align-items: flex-end; flex-direction: column-reverse; }
}


/* ProcessAgile brand attribution */
.demo-brand-lockup { display: flex; align-items: center; gap: 18px; min-width: 0; }
.demo-partner {
  display: inline-flex; align-items: center; gap: 8px; padding-left: 17px;
  border-left: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 700;
  white-space: nowrap;
}
.partner-logo-demo { width: 120px; }

@media (max-width: 1020px) {
  .partner-credit { display: none; }
}

@media (max-width: 720px) {
  .demo-partner { display: none; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 18px; }
  .footer-partner { align-items: flex-start; flex-direction: column; gap: 7px; }
  .partner-logo-footer { width: 165px; }
}
