/* ============================================================
   AgroLink · css/style.css
   Mobile-first · No frameworks · MJ Soluciones Agrícolas SL
   ============================================================ */

:root {
  --green:       #1b5e37;
  --green-dark:  #0f3d22;
  --green-mid:   #2d7d50;
  --green-light: #e8f5ed;
  --amber:       #956209;
  --amber-bg:    #fef6e4;
  --white:       #ffffff;
  --cream:       #f8faf7;
  --text:        #1a1a1a;
  --muted:       #637069;
  --border:      #dde8e0;
  --radius:      10px;
  --shadow:      0 1px 4px rgba(0,0,0,.06);
  --shadow-md:   0 4px 20px rgba(0,0,0,.09);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--text); background: var(--white); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .75rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: opacity .15s, transform .12s; border: 2px solid transparent;
  line-height: 1;
}
.btn:hover { opacity: .86; transform: translateY(-1px); }
.btn-primary   { background: var(--green); color: #fff; border-color: var(--green); }
.btn-outline   { background: transparent; color: var(--green); border-color: var(--green); }
.btn-lg        { padding: .9rem 2rem; font-size: 1.05rem; border-radius: 12px; }
.btn-white     { background: #fff; color: var(--green-dark); border-color: #fff; }
.btn-ghost     { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.1); opacity: 1; }

/* ── Navigation ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.25rem; max-width: 1080px; margin: 0 auto; gap: 1rem;
}
.nav-logo {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 800; font-size: 1.1rem; color: var(--green-dark); white-space: nowrap;
}
.nav-logo-sub { font-size: .7rem; font-weight: 500; color: var(--muted); display: block; line-height: 1; }
.nav-right { display: flex; align-items: center; gap: .75rem; }
.nav-lang {
  font-size: .78rem; font-weight: 600; color: var(--muted);
  padding: .3rem .65rem; border: 1px solid var(--border); border-radius: 6px;
  white-space: nowrap;
}
.nav-lang:hover { border-color: var(--green); color: var(--green); }

/* ── Hero ── */
.hero {
  background: linear-gradient(160deg, #ecf7f0 0%, #e5f3ea 45%, #fdf8ec 100%);
  padding: 4.5rem 1.25rem 3.5rem; text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--green-light); color: var(--green-dark);
  border: 1px solid #b4d9c3; border-radius: 99px;
  padding: .3rem 1rem; font-size: .75rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; line-height: 1.18;
  color: var(--green-dark); margin-bottom: 1.1rem;
  max-width: 760px; margin-left: auto; margin-right: auto;
}
.hero h1 em { font-style: normal; color: var(--green-mid); }
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem); color: #3d5a46;
  max-width: 580px; margin: 0 auto 2.25rem;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-markets {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: .6rem; font-size: .82rem; color: var(--muted);
}
.hero-markets-label { font-weight: 600; margin-right: .2rem; }
.flag { font-size: .9rem; }

/* ── Stats strip ── */
.stats {
  background: var(--green-dark); color: #fff; padding: 2rem 1.25rem;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 1.25rem; max-width: 1080px; margin: 0 auto;
}
.stat { text-align: center; }
.stat-num { font-size: 2.1rem; font-weight: 800; color: #8fdcaa; line-height: 1; }
.stat-label { font-size: .78rem; color: #9abfaa; margin-top: .2rem; }

/* ── Section base ── */
.section { padding: 4.5rem 1.25rem; }
.section-alt { background: var(--cream); }

.section-label {
  display: inline-block; border-radius: 99px; padding: .2rem .85rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; margin-bottom: .7rem;
}
.label-green { background: var(--green-light); color: var(--green); }
.label-amber { background: var(--amber-bg); color: var(--amber); }

.section-title {
  font-size: clamp(1.45rem, 4vw, 2.1rem); font-weight: 800;
  color: var(--green-dark); line-height: 1.22; margin-bottom: .65rem;
}
.section-desc { color: var(--muted); font-size: .97rem; max-width: 540px; }
.section-header { margin-bottom: 2.5rem; }
.section-header-center { text-align: center; }
.section-header-center .section-desc { margin: 0 auto; }

/* ── Role cards ── */
.roles-grid { display: grid; gap: 1.5rem; }
.role-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 2rem; box-shadow: var(--shadow);
}
.role-card-green { border-top: 3px solid var(--green); }
.role-card-amber { border-top: 3px solid #c88a10; }
.role-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem; font-size: 1.4rem;
}
.icon-green { background: var(--green-light); }
.icon-amber { background: var(--amber-bg); }
.role-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--green-dark); margin-bottom: .85rem; }
.role-card li {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .9rem; color: #374151; margin-bottom: .55rem;
}
.check {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 800;
}
.check-green { background: var(--green-light); color: var(--green); }
.check-amber { background: var(--amber-bg); color: var(--amber); }

/* ── Varieties ── */
.varieties-grid { display: grid; gap: 1.1rem; }
.variety-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem;
  display: flex; gap: 1rem; align-items: flex-start;
  box-shadow: var(--shadow); transition: box-shadow .18s, transform .18s;
}
.variety-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.variety-emoji { font-size: 2.2rem; line-height: 1; flex-shrink: 0; padding-top: .1rem; }
.variety-body {}
.variety-badge {
  display: inline-block; background: #fff3cd; color: #7a5700;
  border: 1px solid #f0c040; border-radius: 4px;
  font-size: .67rem; font-weight: 700; padding: .1rem .45rem;
  margin-bottom: .35rem; letter-spacing: .03em;
}
.variety-card h3 { font-size: .97rem; font-weight: 700; color: var(--green-dark); margin-bottom: .3rem; }
.variety-card p { font-size: .85rem; color: var(--muted); line-height: 1.55; }

/* ── How it works ── */
.steps-grid { display: grid; gap: 2rem; }
.step { display: flex; gap: 1.1rem; align-items: flex-start; }
.step-num {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.15rem; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(27,94,55,.35);
}
.step-body h3 { font-size: 1rem; font-weight: 700; color: var(--green-dark); margin-bottom: .3rem; }
.step-body p { font-size: .9rem; color: var(--muted); }

/* ── Markets ── */
.markets-pills { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; }
.market-pill {
  display: flex; align-items: center; gap: .45rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 99px; padding: .45rem 1rem;
  font-size: .88rem; font-weight: 500;
  box-shadow: var(--shadow);
}

/* ── Trust bar ── */
.trust-bar { background: var(--green-dark); padding: 2.5rem 1.25rem; text-align: center; color: #fff; }
.trust-bar h2 { font-size: clamp(1.2rem, 3.5vw, 1.7rem); font-weight: 700; margin-bottom: .5rem; }
.trust-bar p { color: #9abfaa; font-size: .92rem; }

/* ── CTA band ── */
.cta-band {
  background: linear-gradient(145deg, var(--green-dark) 0%, var(--green-mid) 100%);
  color: #fff; text-align: center; padding: 5rem 1.25rem;
}
.cta-band h2 { font-size: clamp(1.55rem, 4.5vw, 2.4rem); font-weight: 800; margin-bottom: .75rem; }
.cta-band p { color: #a8d5b5; margin-bottom: 2.25rem; font-size: 1rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.footer { background: #0d2818; color: #94b59e; padding: 3.5rem 1.25rem 2rem; }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: .75rem;
}
.footer-brand p { font-size: .875rem; line-height: 1.7; }
.footer-col h4 {
  color: #c9e4d1; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: .8rem;
}
.footer-col a { display: block; font-size: .875rem; margin-bottom: .4rem; }
.footer-col a:hover { color: #fff; }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .875rem; margin-bottom: .5rem;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 3px; opacity: .7; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid #1a3d26;
  display: flex; flex-wrap: wrap; gap: .75rem;
  justify-content: space-between; font-size: .8rem;
}
.footer-bottom a:hover { color: #fff; }

/* ── Responsive ── */
@media (min-width: 600px) {
  .stats-grid      { grid-template-columns: repeat(4, 1fr); }
  .varieties-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid     { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .roles-grid  { grid-template-columns: repeat(2, 1fr); }
  .steps-grid  { grid-template-columns: repeat(3, 1fr); }
  .step        { flex-direction: column; align-items: flex-start; }
  .step-num    { margin-bottom: .25rem; }
}
@media (min-width: 960px) {
  .varieties-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid    { grid-template-columns: 2.2fr 1fr 1fr 1.4fr; }
}
