:root {
  --green: #2f701d;
  --green-dark: #174d22;
  --green-deep: #10391c;
  --lime: #84a949;
  --ink: #101914;
  --text: #3f4b44;
  --muted: #6b756f;
  --cream: #f6f6f1;
  --paper: #ffffff;
  --line: #e2e7e1;
  --shadow: 0 24px 65px rgba(18, 57, 28, .16);
  --container: 1380px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
svg { display: block; }
.container { width: min(calc(100% - 44px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 999; padding: 10px 15px; border-radius: 8px; color: white; background: var(--green-dark); }
.skip-link:focus { top: 16px; }

/* Cabecera */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 231, 225, .9);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 88px; display: flex; align-items: center; gap: 27px; }
.brand { flex: 0 0 auto; text-decoration: none; }
.brand img { width: 210px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 29px; margin-left: auto; }
.site-nav a { position: relative; padding: 31px 0 28px; color: #1b211d; text-decoration: none; font-size: .91rem; font-weight: 650; white-space: nowrap; }
.site-nav a::after { content: ""; position: absolute; left: 50%; bottom: 18px; width: 0; height: 2px; background: var(--green); transform: translateX(-50%); transition: width .2s ease; }
.site-nav a:hover::after, .site-nav a.active::after { width: 30px; }
.header-contact { display: flex; align-items: center; gap: 17px; margin-left: 7px; }
.header-contact a { display: inline-flex; align-items: center; gap: 7px; color: #252b27; text-decoration: none; white-space: nowrap; font-size: .82rem; }
.header-contact svg { width: 18px; height: 18px; fill: var(--green); }
.nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 25px; height: 2px; margin: 5px auto; background: var(--ink); }

/* Botones */
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; padding: 11px 22px; border: 1px solid transparent; border-radius: 6px; text-decoration: none; font-weight: 760; line-height: 1; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, #387b21, #235d17); box-shadow: 0 12px 26px rgba(48, 112, 29, .22); }
.btn-primary:hover { background: linear-gradient(135deg, #2d6d1c, #174d22); }
.btn-outline { color: var(--green-dark); border-color: var(--green); background: rgba(255,255,255,.75); }
.btn-light { color: var(--green-dark); background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.btn-header { min-height: 43px; padding-inline: 21px; font-size: .88rem; white-space: nowrap; }
.play { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: .72rem; }

/* Hero */
.hero { position: relative; min-height: 600px; overflow: hidden; background: #f3f1e8; isolation: isolate; }
.hero-backdrop { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.93) 31%, rgba(255,255,255,.48) 62%, rgba(255,255,255,.16) 100%), url("imagen-erp-agricola.webp"); background-position: center; background-size: cover; transform: scale(1.015); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 36%; z-index: -1; background: linear-gradient(0deg, rgba(45,103,26,.2), transparent); pointer-events: none; }
.hero-grid { min-height: 600px; display: grid; grid-template-columns: .94fr 1.06fr; align-items: center; gap: 58px; padding-block: 60px 54px; }
.hero-copy { position: relative; z-index: 3; max-width: 680px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--green); font-size: .76rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--lime); }
h1, h2, h3 { margin-top: 0; line-height: 1.12; }
h1 { margin-bottom: 14px; font-size: clamp(3rem, 5.2vw, 5.05rem); letter-spacing: -.052em; }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 3.6vw, 3.45rem); letter-spacing: -.04em; }
h3 { font-size: 1.18rem; }
.hero-tagline { margin: 0 0 20px; color: var(--green); font-size: clamp(1.35rem, 2.3vw, 2rem); font-weight: 780; line-height: 1.25; }
.lead { max-width: 660px; margin: 0; color: #263329; font-size: clamp(1rem, 1.35vw, 1.16rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.hero-benefits { display: flex; flex-wrap: wrap; gap: 20px 28px; margin-top: 28px; color: #263329; font-size: .91rem; font-weight: 700; }
.hero-benefits span { display: inline-flex; align-items: center; gap: 7px; }
.hero-benefits b { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: .69rem; }

/* Mockup ERP */
.product-visual { position: relative; min-height: 430px; align-self: end; }
.laptop { position: absolute; left: 1%; right: 7%; bottom: 9px; filter: drop-shadow(0 32px 32px rgba(0,0,0,.22)); }
.laptop-screen { height: 364px; display: grid; grid-template-columns: 98px 1fr; overflow: hidden; border: 13px solid #151716; border-radius: 20px 20px 8px 8px; background: #f7f8f6; }
.app-sidebar { display: flex; flex-direction: column; gap: 13px; padding: 15px 10px; color: #dce8de; background: linear-gradient(180deg, #184d2e, #0f3721); font-size: .62rem; }
.app-sidebar > span { padding: 5px 8px; border-radius: 5px; }
.app-sidebar .selected { color: #fff; background: rgba(255,255,255,.12); }
.app-logo { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 3px; margin-bottom: 6px; color: white; font-size: .78rem; font-weight: 800; }
.app-logo span { grid-row: span 2; font-size: 1rem; }
.app-logo small { grid-column: 2; color: #d2dfd4; font-size: .43rem; letter-spacing: .08em; }
.app-main { padding: 18px 17px 15px; overflow: hidden; background: #f7f8f6; }
.app-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 14px; }
.app-heading div { display: grid; }
.app-heading small { color: #667069; font-size: .63rem; }
.app-heading strong { font-size: .95rem; }
.app-heading > span { color: #89918c; font-size: .48rem; letter-spacing: 4px; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.kpi-row > div { display: grid; min-width: 0; padding: 10px; border: 1px solid #e2e7e1; border-radius: 6px; background: #fff; box-shadow: 0 3px 8px rgba(15,45,22,.04); }
.kpi-row small { color: #68716c; font-size: .47rem; white-space: nowrap; }
.kpi-row strong { margin: 4px 0 1px; color: var(--green); font-size: .91rem; }
.kpi-row em { color: #428d36; font-size: .43rem; font-style: normal; }
.kpi-row em.negative { color: #b44b42; }
.charts-row { display: grid; grid-template-columns: .76fr 1.24fr; gap: 9px; margin-top: 10px; }
.chart-card { min-height: 137px; padding: 10px; border: 1px solid #e2e7e1; border-radius: 6px; background: #fff; }
.chart-card > small { display: block; margin-bottom: 9px; font-size: .5rem; font-weight: 700; }
.donut-card { position: relative; }
.donut { width: 73px; height: 73px; margin: 10px 0 0 5px; border-radius: 50%; background: conic-gradient(#2f701d 0 42%, #67a45c 42% 67%, #9bb96a 67% 84%, #d5dfc9 84% 100%); }
.donut::after { content: ""; position: absolute; width: 37px; height: 37px; margin: 18px; border-radius: 50%; background: #fff; }
.donut-card ul { position: absolute; top: 38px; right: 6px; margin: 0; padding: 0; list-style: none; color: #59635c; font-size: .43rem; line-height: 1.75; }
.donut-card li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: var(--green); }
.line-card svg { width: 100%; height: 92px; overflow: visible; }
.gridline { fill: none; stroke: #e7ebe7; stroke-width: 1; }
.area { fill: rgba(47,112,29,.09); }
.line { fill: none; stroke: #2f701d; stroke-width: 3; vector-effect: non-scaling-stroke; }
.task-list { display: grid; gap: 4px; margin-top: 9px; padding: 8px 10px; border: 1px solid #e2e7e1; border-radius: 6px; background: #fff; color: #5f6862; font-size: .44rem; }
.task-list small { color: var(--ink); font-weight: 800; }
.laptop-base { width: 110%; height: 17px; margin-left: -5%; border-radius: 0 0 50% 50%; background: linear-gradient(#d5d7d4, #9ea09e 45%, #e6e7e5 48%, #b2b3b1); box-shadow: inset 0 2px 1px rgba(255,255,255,.8); }
.phone { position: absolute; z-index: 6; right: 0; bottom: 0; width: 125px; padding: 7px; border-radius: 24px; background: #111; box-shadow: 0 18px 35px rgba(0,0,0,.28); transform: rotate(1.3deg); }
.phone-notch { position: absolute; z-index: 2; top: 7px; left: 50%; width: 46px; height: 12px; border-radius: 0 0 9px 9px; background: #111; transform: translateX(-50%); }
.phone-body { min-height: 242px; padding: 24px 9px 8px; border-radius: 18px; background: #fbfcfa; font-size: .55rem; }
.phone-title { margin-bottom: 15px; font-weight: 800; }
.phone-body small { display: block; color: #7a847e; font-size: .43rem; }
.phone-body strong { display: block; margin-bottom: 9px; color: var(--green); font-size: .68rem; }
.phone-field { height: 77px; margin: 7px 0; border-radius: 7px; background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.4)), url("imagen-erp-agricola.webp") center/cover; }
.phone-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; color: #253127; font-size: .45rem; font-weight: 700; }
.phone-nav { display: flex; justify-content: space-around; margin-top: 11px; padding-top: 8px; border-top: 1px solid #e2e7e1; }
.phone-nav i { width: 8px; height: 8px; border-radius: 50%; background: #8eb682; }

/* Secciones */
.section { padding: 84px 0; }
.section-heading { max-width: 860px; margin-bottom: 47px; }
.centered { margin-inline: auto; text-align: center; }
.centered .eyebrow { justify-content: center; }
.centered p:last-child { margin: 0; color: var(--text); font-size: 1.02rem; }
.solution-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; }
.solution-item { text-align: center; }
.solution-icon { display: grid; width: 55px; height: 55px; place-items: center; margin: 0 auto 18px; color: var(--green); }
.solution-icon svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.solution-item h3 { margin-bottom: 11px; font-size: .98rem; }
.solution-item p { margin: 0; color: var(--text); font-size: .85rem; line-height: 1.55; }

/* Franja */
.cta-band { position: relative; overflow: hidden; color: #fff; background: var(--green-deep); isolation: isolate; }
.cta-band-bg { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(90deg, rgba(8,50,22,.96), rgba(8,50,22,.72)), url("imagen-erp-agricola.webp"); background-position: center 70%; background-size: cover; filter: saturate(1.3); }
.cta-band-grid { min-height: 215px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 45px; align-items: center; padding-block: 25px; }
.cta-copy { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; }
.round-icon { display: grid; width: 58px; height: 58px; place-items: center; margin-top: 4px; border-radius: 50%; color: #fff; background: rgba(127,181,65,.8); font-size: 1.7rem; }
.cta-copy h2 { max-width: 560px; margin-bottom: 8px; font-size: clamp(1.55rem, 2.3vw, 2.25rem); letter-spacing: -.03em; }
.cta-copy p { margin: 0; color: #e5eee6; }
.cta-copy ul { display: flex; flex-wrap: wrap; gap: 11px 25px; padding: 0; margin: 18px 0 0; list-style: none; font-size: .84rem; font-weight: 700; }
.cta-copy li::before { content: "✓"; display: inline-grid; width: 18px; height: 18px; margin-right: 6px; place-items: center; border-radius: 50%; color: var(--green-dark); background: white; font-size: .65rem; }
.quick-contact { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 24px 25px; border-radius: 17px; color: #fff; background: rgba(10,54,28,.88); box-shadow: 0 18px 45px rgba(0,0,0,.22); backdrop-filter: blur(8px); }
.quick-icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; background: rgba(132,169,73,.26); font-size: 1.5rem; }
.quick-contact h3 { margin: 0 0 3px; font-size: 1.42rem; }
.quick-contact p { margin: 0 0 10px; color: #e2ebe3; font-size: .84rem; }
.quick-links { display: grid; gap: 4px; }
.quick-links a { color: #fff; text-decoration: none; font-size: .83rem; font-weight: 650; }
.quick-contact .btn { min-width: 132px; }

/* Módulos */
.modules-section { background: var(--cream); }
.split-section { display: grid; grid-template-columns: 1.02fr .98fr; gap: 68px; align-items: center; }
.visual-card { position: relative; padding: 12px; border: 1px solid var(--line); border-radius: 25px; background: #fff; box-shadow: var(--shadow); }
.visual-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 17px; }
.visual-badge { position: absolute; right: 31px; bottom: 28px; display: grid; min-width: 178px; padding: 13px 17px; border-radius: 13px; color: white; background: rgba(16,57,28,.92); box-shadow: 0 12px 25px rgba(0,0,0,.2); }
.visual-badge strong { font-size: 1.25rem; }
.visual-badge span { font-size: .72rem; }
.text-block > p:not(.eyebrow) { color: var(--text); font-size: 1.03rem; }
.module-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.module-chips span { padding: 9px 13px; border: 1px solid #d5dfd2; border-radius: 99px; color: var(--green-dark); background: #fff; font-size: .82rem; font-weight: 750; }

/* SEO */
.seo-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 75px; align-items: start; }
.seo-grid h2 { position: sticky; top: 125px; }
.seo-copy { columns: 2; column-gap: 38px; }
.seo-copy p { break-inside: avoid; margin-top: 0; color: var(--text); }
.seo-copy strong { color: var(--ink); }

/* Contacto */
.contact-section { color: #fff; background: linear-gradient(145deg, #10391c, #174d2b); }
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 60px; align-items: start; }
.contact-copy { padding-top: 24px; }
.contact-copy .eyebrow { color: #b9db9a; }
.contact-copy h2 { max-width: 600px; }
.contact-copy > p:not(.eyebrow) { max-width: 630px; color: #dce8df; font-size: 1.04rem; }
.contact-details { display: grid; gap: 14px; margin-top: 32px; }
.contact-details a { display: grid; width: fit-content; color: white; text-decoration: none; }
.contact-details span { color: #9fb4a5; font-size: .75rem; }
.contact-details strong { font-size: 1.08rem; }
.contact-form { position: relative; padding: 32px; border-radius: 22px; color: var(--ink); background: #fff; box-shadow: 0 28px 65px rgba(0,0,0,.2); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
label { font-size: .86rem; font-weight: 760; }
input, textarea, select { width: 100%; padding: 12px 13px; border: 1px solid #ccd7ce; border-radius: 8px; outline: none; color: var(--ink); background: #fbfcfa; }
input:focus, textarea:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,112,29,.12); }
textarea { min-height: 125px; resize: vertical; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: start; color: var(--text); font-size: .79rem; font-weight: 500; }
.check input { width: 17px; height: 17px; margin-top: 3px; }
.form-footer { display: flex; align-items: center; gap: 16px; }
.form-footer small { color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; }
.form-message { display: none; margin: 0 0 18px; padding: 12px 14px; border-radius: 8px; font-weight: 700; }
.form-message.show { display: block; }
.form-message.success { color: #185a38; background: #e9f5ec; }
.form-message.error { color: #7a2a23; background: #fae8e6; }

/* Pie y legal */
.site-footer { padding: 44px 0 24px; color: #dce8df; background: #0b2815; }
.footer-main { display: grid; grid-template-columns: auto 1fr auto; gap: 35px; align-items: center; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { padding: 9px 13px; border-radius: 10px; background: #fff; }
.footer-brand img { width: 175px; }
.footer-main p { margin: 0; color: #b8c8bd; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: white; text-decoration: none; font-size: .87rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; color: #9fb2a5; font-size: .79rem; }
.legal { padding: 68px 0; }
.legal article { max-width: 900px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.legal h2 { margin-top: 35px; font-size: 1.5rem; }
.notice { padding: 16px; border-left: 4px solid #d59a37; color: #644914; background: #fff7e5; }

@media (max-width: 1240px) {
  .header-contact { display: none; }
  .site-nav { gap: 21px; }
  .solution-grid { grid-template-columns: repeat(3, 1fr); gap: 38px 25px; }
  .product-visual { transform: scale(.92); transform-origin: right center; }
}

@media (max-width: 980px) {
  .header-inner { min-height: 74px; }
  .brand img { width: 185px; }
  .btn-header { display: none; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 74px; left: 0; right: 0; z-index: 60; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 15px 24px 22px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 20px 35px rgba(0,0,0,.08); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; }
  .site-nav a::after { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding-top: 65px; }
  .hero-copy { max-width: 760px; }
  .hero-backdrop { background-image: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.82)), url("imagen-erp-agricola.webp"); }
  .product-visual { min-height: 420px; transform: none; }
  .laptop { left: 3%; right: 10%; }
  .cta-band-grid, .split-section, .seo-grid, .contact-grid { grid-template-columns: 1fr; }
  .cta-band-grid { padding-block: 45px; }
  .seo-grid { gap: 22px; }
  .seo-grid h2 { position: static; }
  .seo-copy { columns: 1; }
  .footer-main { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .section { padding: 65px 0; }
  .hero-grid { padding-block: 50px 38px; gap: 20px; }
  h1 { font-size: clamp(2.65rem, 13vw, 4.1rem); }
  .hero-tagline { font-size: 1.35rem; }
  .hero-benefits { gap: 12px 16px; }
  .product-visual { min-height: 315px; margin-top: 10px; }
  .laptop { left: 0; right: 1%; bottom: 7px; }
  .laptop-screen { height: 265px; grid-template-columns: 72px 1fr; border-width: 9px; border-radius: 13px 13px 5px 5px; }
  .app-sidebar { gap: 8px; padding: 10px 7px; font-size: .45rem; }
  .app-main { padding: 11px 9px; }
  .kpi-row { gap: 4px; }
  .kpi-row > div { padding: 6px 5px; }
  .kpi-row small { font-size: .34rem; }
  .kpi-row strong { font-size: .58rem; }
  .charts-row { gap: 4px; }
  .chart-card { min-height: 100px; padding: 6px; }
  .donut { width: 55px; height: 55px; }
  .donut::after { width: 27px; height: 27px; margin: 14px; }
  .donut-card ul { top: 29px; font-size: .31rem; }
  .line-card svg { height: 65px; }
  .task-list { display: none; }
  .phone { width: 92px; right: -2px; bottom: -2px; padding: 5px; border-radius: 17px; }
  .phone-body { min-height: 177px; padding: 18px 6px 5px; }
  .phone-field { height: 55px; }
  .solution-grid { grid-template-columns: repeat(2, 1fr); gap: 35px 18px; }
  .cta-copy { grid-template-columns: 1fr; }
  .round-icon { display: none; }
  .quick-contact { grid-template-columns: auto 1fr; }
  .quick-contact .btn { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .form-footer { align-items: flex-start; flex-direction: column; }
  .contact-form { padding: 23px 19px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 470px) {
  .brand img { width: 160px; }
  .hero-actions .btn { width: 100%; }
  .product-visual { min-height: 245px; }
  .laptop-screen { height: 205px; grid-template-columns: 56px 1fr; }
  .app-logo { font-size: .5rem; }
  .app-sidebar { gap: 5px; font-size: .34rem; }
  .app-heading { margin-bottom: 6px; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .kpi-row > div:nth-child(n+3) { display: none; }
  .charts-row { grid-template-columns: 1fr; }
  .donut-card { display: none; }
  .phone { width: 74px; }
  .phone-body { min-height: 140px; }
  .phone-field { height: 42px; }
  .phone-stats { grid-template-columns: 1fr; }
  .solution-grid { grid-template-columns: 1fr; }
  .visual-badge { right: 20px; bottom: 20px; }
}
